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

Added grid mode view to tiles window #26

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

DavideRei
Copy link
Contributor

No description provided.

{
ImGui.Text(leftLabel);
ImGui.SameLine();
var pos = ImGui.GetCursorPos();
var wpos = ImGui.GetCursorScreenPos();
if (value)
wpos.X += 40;
var result = ImGui.Button(" ", new Vector2(80, 18)); //Just empty label makes button non functional
var result = ImGui.Button(buttonLabel, new Vector2(80, 18)); //Just empty label makes button non functional
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hacking it with multiple spaces we can assign button identifier manually.
Here we should be able to use $" ##{leftLabel}{rightLabel} and get rid of the buttonLabel
https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-how-can-i-have-multiple-windows-with-the-same-label

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok done, it seems to work

@kaczy93 kaczy93 merged commit bf75aa3 into kaczy93:master Oct 2, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants