Emu icon indicating copy to clipboard operation
Emu copied to clipboard

Buttons inside Tabs inside Dialogs not working

Open Juiin opened this issue 5 years ago • 0 comments

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);

Juiin avatar Nov 26 '20 22:11 Juiin