You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a tab item is created, there are times when you want to use a flag to override selection. However, in Quaver, this is only possible when p_open = true or p_open = false, both of which are not ideal:
p_open = true creates x's on the tab items
p_open = false just removes the tab entirely
When p_open = nil, the flags are ignored.
To Reproduce
Create a new plugin with whatever settings.ini you'd like.
Add the following to plugin.lua:
functiondraw()
imgui.Begin("hi")
imgui.BeginTabBar("the tab bar of all time")
ifimgui.BeginTabItem("item 1") thenimgui.EndTabItem()
endifimgui.BeginTabItem("item 2", nil, imgui_tab_item_flags.SetSelected) thenimgui.EndTabItem()
endifimgui.BeginTabItem("item 3") thenimgui.EndTabItem()
endimgui.EndTabBar()
imgui.End()
end
Notice that item 2 is not always selected.
Expected behavior
Expected behavior occurs when the nil is replaced to true within the second imgui.BeginTabItem():
functiondraw()
imgui.Begin("hi")
imgui.BeginTabBar("the tab bar of all time")
ifimgui.BeginTabItem("item 1") thenimgui.EndTabItem()
endifimgui.BeginTabItem("item 2", true, imgui_tab_item_flags.SetSelected) thenimgui.EndTabItem()
endifimgui.BeginTabItem("item 3") thenimgui.EndTabItem()
endimgui.EndTabBar()
imgui.End()
end
Log Files
Quaver does not produce plugin logs.
Screenshots
When item 2 has p_open = true:
In the above image, it is impossible to select another tab, which is the intended behavior of the code above.
When item 2 has p_open = nil:
Notice that item 1 being selected completely violates the code, as it mandates that item 2 be selected at all times. This is the core error.
The text was updated successfully, but these errors were encountered:
Also, if it's possible, please update imgui.NET to the latest release. The current version being used by Quaver is 1.67.0, which is 5 years old. (Source: Quaver_Secure/Quaver.deps.json)
Describe the bug
When a tab item is created, there are times when you want to use a flag to override selection. However, in Quaver, this is only possible when
p_open = true
orp_open = false
, both of which are not ideal:p_open = true
creates x's on the tab itemsp_open = false
just removes the tab entirelyWhen
p_open = nil
, the flags are ignored.To Reproduce
settings.ini
you'd like.plugin.lua
:item 2
is not always selected.Expected behavior
Expected behavior occurs when the
nil
is replaced totrue
within the secondimgui.BeginTabItem()
:Log Files
Quaver does not produce plugin logs.
Screenshots
When
item 2
hasp_open = true
:In the above image, it is impossible to select another tab, which is the intended behavior of the code above.
When
item 2
hasp_open = nil
:Notice that
item 1
being selected completely violates the code, as it mandates thatitem 2
be selected at all times. This is the core error.The text was updated successfully, but these errors were encountered: