drawer button size

This commit is contained in:
2025-11-19 13:36:53 +01:00
parent daa208a2fa
commit 28c36c699a
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -18,7 +18,5 @@ class NekoIconButton extends Button{
bmp.width = pWidth; bmp.width = pWidth;
bmp.height = pHeight; bmp.height = pHeight;
bmp.smoothing = true; bmp.smoothing = true;
traceYellow(pWidth + " / " + pHeight);
} }
} }
+1 -1
View File
@@ -53,7 +53,7 @@ class MainHeader extends LayoutGroup {
layout = l; layout = l;
// Drawer button // Drawer button
drawerBtn = new NekoIconButton(Assets.getBitmapData("bitmaps/menu_white.png"), 0, 0, Std.int(headerHeight), Std.int(headerHeight)); drawerBtn = new NekoIconButton(Assets.getBitmapData("bitmaps/menu_white.png"), 0, 0, Std.int(headerHeight * .5), Std.int(headerHeight * .5));
drawerBtn.addEventListener(TriggerEvent.TRIGGER, onDBtnPress); drawerBtn.addEventListener(TriggerEvent.TRIGGER, onDBtnPress);
addChild(drawerBtn); addChild(drawerBtn);