호출 방법
addon:CreateConditionCheckBox()
addon을 통해 바로 쓸 수 있으며, 의존성이 필요 없습니다.
하는 일
기본 불리언 조건 컨트롤을 만듭니다. SetLabel, SetValue, SetDisabled, OnValueChanged를 설정하고 parent:AddChild(widget)로 추가하세요.
인수
| 이름 | 유형 | 하는 일 |
|---|---|---|
self | RMAddon | Rotation Master 애드온 인스턴스 (콜론 호출에서는 암묵적). |
반환값
| 1 | RMConditionCheckBox | 불리언 값과 콜백 메서드를 가진 체크박스 위젯. |
|---|
버전
기본 제공 도우미는 모든 버전에 등록됩니다. 다른 점은 읽는 게임 API이며, API가 없으면 도우미는 대체 동작을 하거나 이유와 함께 nil을 반환합니다.
게임 API를 직접 읽지 않습니다.
애드온에서 호출하는 방식
- 강화 효과 있음 (widget)
local ownbuff = addon:CreateConditionCheckBox() - 강화 효과 남은 시간 (widget)
local ownbuff = addon:CreateConditionCheckBox() - 강화 효과 중첩 (widget)
local ownbuff = addon:CreateConditionCheckBox() - 그룹 내 직업 (widget)
local raid = addon:CreateConditionCheckBox() - 약화 효과 있음 (widget)
local owndebuff = addon:CreateConditionCheckBox() - 약화 효과 남은 시간 (widget)
local owndebuff = addon:CreateConditionCheckBox() - 약화 효과 중첩 (widget)
local owndebuff = addon:CreateConditionCheckBox() - 약화 효과 유형 있음 (widget)
local owndebuff = addon:CreateConditionCheckBox()
외 19개: 거리 내 개수 (widget), 그룹 중 (widget), 그룹 인원 수 (widget), 면역 (widget), 아이템 사용 가능 (widget), 아이템 재사용 대기시간 (widget), 아이템 사거리 내 (widget), 레벨 (widget), 공격대 징표 (widget), 주문 습득 (widget), Stagger (widget), 무기 공격 주기 (widget), 무기 공격까지 남은 시간 (widget), 무기 마법부여 있음 (widget), 무기 마법부여 유형 (widget), 무기 마법부여 남은 시간 (widget), 무기 마법부여 중첩 (widget), 지역 (widget), Conditions.common.Widget_SpellWidget
의존성
constructor→UI.checkbox.constructor
소스
UI/checkbox.lua, 46번째 줄. 게임에서는 읽기 전용이며, 복제하면 편집 가능한 사본이 생깁니다.
UI.checkbox.CreateConditionCheckBox(self)
local widget=addon:AcquireConditionWidget('RM-CheckBox',constructor)
---@cast widget RMConditionCheckBox
return widget