Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons inside Tabs inside Dialogs not working #8

Open
Juiin opened this issue Nov 26, 2020 · 0 comments
Open

Buttons inside Tabs inside Dialogs not working #8

Juiin opened this issue Nov 26, 2020 · 0 comments

Comments

@Juiin
Copy link

Juiin commented Nov 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant