DragoniteSpam / Emu

UI for GameMaker. Looks like Windows Forms. Use this if you're not making a game, or otherwise if you want your game to look like tax software or something.
https://dragonite.itch.io/emu
MIT License
40 stars 3 forks source link

Buttons inside Tabs inside Dialogs not working #8

Open Juiin opened 3 years ago

Juiin commented 3 years ago

When placing an EmuButton inside a EmuTab which is inside an EmuDialog, the Button does not respond to clicks anymore and appears visually as being hovered.

Here a screenshot and the code used: grafik

dialog = new EmuDialog(400, 600, "Character");

var group = new EmuTabGroup(0, EMU_AUTO, 400, 320, 2, 32); var tab_inv = new EmuTab("Inventory"); var tab_com = new EmuTab("Combat"); var tab_rs = new EmuTab("Relationships"); var tab_dg = new EmuTab("Dialogue"); var tab_ai = new EmuTab("AI"); group.AddTabs(0, [tab_inv, tab_com, tab_rs]); group.AddTabs(1, [tab_dg, tab_ai]);

tab_inv.AddContent(new EmuText(32, 32, 256, 32, "Text label")); btn = new EmuButton(32, 64, 256, 32, "Top Button", function(){log("hi")}) tab_inv.AddContent(btn); tab_inv.AddContent(new EmuButton(32, 96, 256, 32, "Bottom Button", emu_null));

dialog.AddContent(group);