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

The Multiline is part of the ImGuiInputTextFlagsPrivate now #2

Open
MrOneTwo opened this issue Oct 14, 2021 · 2 comments
Open

The Multiline is part of the ImGuiInputTextFlagsPrivate now #2

MrOneTwo opened this issue Oct 14, 2021 · 2 comments

Comments

@MrOneTwo
Copy link

I'm trying to play around with this app (thanks for writing it!) but there seems to be problems with compiling. The Multiline is part of the ImGuiInputTextFlagsPrivate now. The commented out chunk on the bottom also complains so I commented it out for now, since I don't fully understand why it doesn't build.

diff --git a/src/gui/client.nim b/src/gui/client.nim
index 6cb104e..7bc2c8a 100644
--- a/src/gui/client.nim
+++ b/src/gui/client.nim
@@ -526,7 +526,7 @@ proc showRequestWindow*(fixedFont: ptr ImFont) =
         validateTextPayload(reqPayText)
       reqPayText = buildPayloadText(reqPayload, FORMAT_HEX)
 
-    var payFlags = ImGuiInputTextFlags.Multiline.int32 or
+    var payFlags = ImGuiInputTextFlagsPrivate.Multiline.int32 or
                    ImGuiInputTextFlags.CallbackCharFilter.int32
     # Can't edit in text mode if contains non-editable chars
     if not isTextOnlyReqPayload and reqPayFormatIndex == FORMAT_TEXT.int32:
@@ -673,9 +673,9 @@ proc showRequestWindow*(fixedFont: ptr ImFont) =
 
       igSetNextItemWidth(420)
       igPushFont(fixedFont)
-      discard igInputTextCap("##respPayload", respPayText, len(respPayText),
-                             ImVec2(x: 0f, y: igGetTextLineHeightWithSpacing() * 8),
-                             (ImGuiInputTextFlags.Multiline.int or ImGuiInputTextFlags.ReadOnly.int).ImGuiInputTextFlags)
+      # discard igInputTextCap("##respPayload", respPayText, len(respPayText),
+      #                        ImVec2(x: 0f, y: igGetTextLineHeightWithSpacing() * 8),
+      #                        (ImGuiInputTextFlagsPrivate.Multiline.int or ImGuiInputTextFlags.ReadOnly.int).ImGuiInputTextFlags)
       igPopFont()
 
   igEnd()
@kb2ma
Copy link
Owner

kb2ma commented Oct 14, 2021

Thanks for the report. Unfortunately I have zero time to investigate. Feel free to fork the project of course. :-)

@MrOneTwo
Copy link
Author

@kb2ma Understandable. I hope I'll find some time soon to play around with cotel.

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

2 participants