호출 방법
addon:CreateConditionEditBox()
addon을 통해 바로 쓸 수 있으며, 의존성이 필요 없습니다.
하는 일
조건 위젯 규약을 따르는 기본 텍스트 입력을 만듭니다. SetLabel, SetText, SetDisabled, SetCallback으로 설정하며, OnEnterPressed가 텍스트를 확정합니다. parent:AddChild(widget)로 콜백 부모에 추가하세요.
인수
| 이름 | 유형 | 하는 일 |
|---|---|---|
self | RMAddon | Rotation Master 애드온 인스턴스 (콜론 호출에서는 암묵적). |
반환값
| 1 | RMConditionInput | 이름표, 텍스트, 대기 중 편집, 콜백 메서드를 지원하는 텍스트 위젯. |
|---|
버전
기본 제공 도우미는 모든 버전에 등록됩니다. 다른 점은 읽는 게임 API이며, API가 없으면 도우미는 대체 동작을 하거나 이유와 함께 nil을 반환합니다.
게임 API를 직접 읽지 않습니다.
애드온에서 호출하는 방식
- 거리 (widget)
local distance = addon:CreateConditionEditBox() - 영웅 특성 계열 (widget)
idEdit = addon:CreateConditionEditBox() - 인스턴스 (widget)
local edit = addon:CreateConditionEditBox() - 이름 있는 소환수 있음 (widget)
local petname = addon:CreateConditionEditBox() - 새긴 룬 (widget)
spellBox = addon:CreateConditionEditBox() - 착용한 세트 아이템 수 (widget)
local setID = addon:CreateConditionEditBox() - 생명력 도달까지 남은 시간 (widget)
local health = addon:CreateConditionEditBox() - 무기 마법부여 유형 (widget)
local enchant = addon:CreateConditionEditBox()
외 3개: 지역 (widget), Conditions.bossmod.idEditor, Conditions.talent.traitsWidget
의존성
constructor→UI.condition_inputs.constructor
소스
UI/condition_inputs.lua, 152번째 줄. 게임에서는 읽기 전용이며, 복제하면 편집 가능한 사본이 생깁니다.
UI.condition_inputs.CreateConditionEditBox(self)
local w=addon:AcquireConditionWidget('RM-ConditionEditBox',function() return constructor(false) end)
---@cast w RMConditionInput
return w