please actions

This commit is contained in:
Ralty
2025-07-26 19:11:18 +07:00
parent 45721b8cf3
commit ea85c71523
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ class Checkbox extends TextOption {
__text.x = 100;
var fieldValue = Reflect.field(parent, optionName);
checked = fieldValue != null ? fieldValue : false;
if (optionName != null) checked = Reflect.field(parent, optionName);
else checked = false;
}
public var firstFrame:Bool = true;
+1 -2
View File
@@ -31,8 +31,7 @@ class NumOption extends TextOption {
this.optionName = optionName;
this.parent = parent = parent != null ? parent : Options;
var fieldValue = Reflect.field(parent, optionName);
currentSelection = fieldValue != null ? fieldValue : 0;
if (Reflect.field(parent, optionName) != null) currentSelection = Reflect.field(parent, optionName);
__number = new Alphabet(0, 20, ': $currentSelection', 'bold');
super(text, desc);