please actions
This commit is contained in:
@@ -37,7 +37,8 @@ class Checkbox extends TextOption {
|
|||||||
__text.x = 100;
|
__text.x = 100;
|
||||||
|
|
||||||
var fieldValue = Reflect.field(parent, optionName);
|
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;
|
public var firstFrame:Bool = true;
|
||||||
|
|||||||
@@ -31,8 +31,7 @@ class NumOption extends TextOption {
|
|||||||
this.optionName = optionName;
|
this.optionName = optionName;
|
||||||
this.parent = parent = parent != null ? parent : Options;
|
this.parent = parent = parent != null ? parent : Options;
|
||||||
|
|
||||||
var fieldValue = Reflect.field(parent, optionName);
|
if (Reflect.field(parent, optionName) != null) currentSelection = Reflect.field(parent, optionName);
|
||||||
currentSelection = fieldValue != null ? fieldValue : 0;
|
|
||||||
|
|
||||||
__number = new Alphabet(0, 20, ': $currentSelection', 'bold');
|
__number = new Alphabet(0, 20, ': $currentSelection', 'bold');
|
||||||
super(text, desc);
|
super(text, desc);
|
||||||
|
|||||||
Reference in New Issue
Block a user