This commit is contained in:
2026-05-21 23:33:23 -05:00
parent 85781f4510
commit f932a7704b
3 changed files with 76 additions and 7 deletions
+24
View File
@@ -71,6 +71,30 @@ public class Program
ImGui.EndMenuBar();
}
string hash = "AAAA";
bool hasValue = true;
string text2 = "";
if (ImGui.InputTextWithHint($"##{hash}", hasValue ? "" : "Null", ref text2, 99999, ImGuiInputTextFlags.EnterReturnsTrue | ImGuiInputTextFlags.CtrlEnterForNewLine))
{
}
float buttonSize = ImGui.GetFrameHeight();
float avail = ImGui.GetContentRegionAvail().X;
float inputWidth = avail - buttonSize;
ImGui.PushItemWidth(inputWidth);
ImGui.SameLine(0f, 0f);
if (ImGui.Button($"X##{hash}_clear", new Vector2(buttonSize, buttonSize)))
{
}
ImGui.PopItemWidth();
ImGui.End();
if (_fontStuff)