Skip to content

Buttons inside Tabs inside Dialogs not working #8

Description

@Juiin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions