Skip to content

Commit

Permalink
Added setColumnWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Apr 17, 2024
1 parent 794a4cc commit 9704af1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/ui/win/SimpleMenu.hx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class SimpleMenu extends ui.Window {
}


public function setColumnWidth(w:Int) {
content.maxWidth = w;
}

override function onResize() {
super.onResize();
content.maxHeight = Std.int( 0.8 * h()/Const.UI_SCALE );
Expand Down

0 comments on commit 9704af1

Please sign in to comment.