M.Sz.
M.Sz.
meh, popups... It is IMO the most tricky part of giu. @AllenDang you should refactor it ASAP. IIRC, We had some nice impl of this system in HellSpawner: https://github.com/OpenDiablo2/HellSpawner/blob/master/hswindow/hsdialog/dialog.go. Maybe...
> Oh, I cannot add it into this repo cause using imgui.InputTextCallback will add reference of imgui into the go.mod Hmm but the referencje to your imguigo already is present...
@allendang generally, I was trying to solve #460 and wondering, why the following code doesn't work _as I expect_ ```golang package main import ( "fmt" "github.com/AllenDang/giu" "github.com/AllenDang/imgui-go" ) var container...
yah @AllenDang but my code from previous post isn't caled at any time (I dont recieve log at all)
hmm @AllenDang I've implemented your code and it doesn't work code ```golang package main import ( "strings" "github.com/AllenDang/giu" "github.com/AllenDang/imgui-go" ) var container string func loop() { giu.SingleWindow().Layout( giu.InputText(&container).Callback(func(i imgui.InputTextCallbackData) int32...
~~@schabil I'd suggest you to try with `(*InputTextMultilineWidget).Callback(...)`~~ well it doesn't work btw @AllenDang IMO `imgui.InputTextCallbackData` needs some API in giu
> The popup should be defined at very certain position, rather than random layout in random widget hierarchy. what do you mean? what could the demo code look like? >...
hmm, @AllenDang I just got an idea. Maybe for now, change `PopupModal()` function name to `RegisterPopupModal`? Then, everyone'll know that this method doesn't actually make popup appear but just add...
@AllenDang what should I do with this? close?
it may be a bug as well, IMO giu doesn't call some imgui's stuff that cleans its state, and tht's probably because the memory usage rises... (thats only my supposes)...