b
This commit is contained in:
+24
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user