gabstv / ebiten-imgui

Dear ImGui renderer for Ebitengine
MIT License
122 stars 18 forks source link

An example should show how to change the default title "Debug" #17

Open harbdog opened 2 years ago

harbdog commented 2 years ago

After crawling through all the examples and source code for this project and the imgui-go project I finally stumbled upon the secret sauce to get the window to have the text "Menu" instead of "Debug". Can you please consider adding this to one of your examples?

g.mgr.BeginFrame()
imgui.Begin("Menu") // changes menu title from default "Debug"
{
    imgui.Text("Hello, world!")
}
imgui.End()
g.mgr.EndFrame()