Difference between revisions of "Options Menu"
Jump to navigation
Jump to search
m
→Multilevel, looping menu: the "!" should be outside the brackets, otherwise you are applying it to the int rather than to the bool. I presume you meant to apply it to the bool, yes? Otherwise casting the value as a bool is redundant.
imported>Threedee m (→Menu with sub-options: Removed property MenuBook as it is not used in the script, also the book should probably be cast as an ObjectReference not as an Armor?) |
imported>Threedee m (→Multilevel, looping menu: the "!" should be outside the brackets, otherwise you are applying it to the int rather than to the bool. I presume you meant to apply it to the bool, yes? Otherwise casting the value as a bool is redundant.) |
||
Line 102: | Line 102: | ||
bFeatureEnabled = True | bFeatureEnabled = True | ||
ElseIf aiButton == 2 || aiButton == 3 ; Toggle DragonsEnabled. Buttons have opposite conditions. | ElseIf aiButton == 2 || aiButton == 3 ; Toggle DragonsEnabled. Buttons have opposite conditions. | ||
DragonsEnabled.SetValue(( | DragonsEnabled.SetValue(!(DragonsEnabled.GetValue() As Bool) As Int) | ||
ElseIf aiButton == 4 | ElseIf aiButton == 4 | ||
ElseIf aiButton == 5 | ElseIf aiButton == 5 |