mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Use text height for entity visibility toggle
This commit is contained in:
@@ -389,7 +389,7 @@ namespace GlitchyEditor.EditWindows
|
|||||||
|
|
||||||
ImGui.Vec4 tintColor = hidden ? *ImGui.GetStyleColorVec4(.TextDisabled) : *ImGui.GetStyleColorVec4(.Text);
|
ImGui.Vec4 tintColor = hidden ? *ImGui.GetStyleColorVec4(.TextDisabled) : *ImGui.GetStyleColorVec4(.Text);
|
||||||
|
|
||||||
if (ImGui.ImageButtonEx(ImGui.GetID("visibilityToggle"), icon, .(16, 16), .Zero, .Ones, .Zero, tintColor))
|
if (ImGui.ImageButtonEx(ImGui.GetID("visibilityToggle"), icon, .(ImGui.GetTextLineHeight(), ImGui.GetTextLineHeight()), .Zero, .Ones, .Zero, tintColor))
|
||||||
{
|
{
|
||||||
flags.Flags ^= .HideInScene;
|
flags.Flags ^= .HideInScene;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user