Skip to content

Commit

Permalink
Renamed group>uiCtrl
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Apr 21, 2024
1 parent f855dae commit b1b7a0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/game/ui/win/SimpleMenu.hx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ui.win;

class SimpleMenu extends ui.Window {
public var group : UiGroupController;
public var uiCtrl : UiGroupController;

public function new() {
super(true);
Expand All @@ -13,8 +13,8 @@ class SimpleMenu extends ui.Window {
content.multiline = true;
content.colWidth = 150;

group = new UiGroupController(this);
group.customControllerLock = ()->!isActive();
uiCtrl = new UiGroupController(this);
uiCtrl.customControllerLock = ()->!isActive();
}


Expand Down Expand Up @@ -48,7 +48,7 @@ class SimpleMenu extends ui.Window {
if( autoClose )
close();
}
group.register(bt);
uiCtrl.register(bt);
}

public function addCheckBox(label:String, getter:Void->Bool, setter:Bool->Void, autoClose=false) {
Expand All @@ -59,7 +59,7 @@ class SimpleMenu extends ui.Window {
close();
}

group.register(bt);
uiCtrl.register(bt);
}

// public function addRadio(label:String, isActive:Bool, onPick:Void->Void, close=false) {
Expand Down

0 comments on commit b1b7a0d

Please sign in to comment.