warmenu
warmenu copied to clipboard
Possible problem with loop: issue adding new buttons when in the menu from the client
Seems to be issue adding new buttons when in menu from client,
In " warmenu_demo.lua " I try to add the button below, but it fails to stay. It does add items but hides them super quick from the menu
I also added this to the function the same problem button will disappear.
-- I added this under main part " if WarMenu.Begin('warmenuDemo') then "
local isPressed2 = WarMenu.Button('Button ADD', 'Subtext')
if isPressed2 then
WarMenu.Button('TEST button', 'Testing it')
end
My function test
local function ButtonTest()
--add
WarMenu.Button('TEST button', 'Testing it')
end
-- in menu loop
local isPressed2 = WarMenu.Button('Button ADD', 'Subtext')
if isPressed2 then
ButtonTest()
end
Maybe the loop is causing it somehow, I'm trying to add in results from a search request, which was my main goal.