Posted 18 April 2013 - 06:18 AM
Hello Everyone!
i am trying to make a button, that displays a menu when i click on it. but i also wanted the menu to dissappear, when i click the same icon.. but it doesnt change the
inStartMenu variable.. or it doesnt look like it does.
Do anyone have any idea on, why it doesnt change the variable?
Thanks in Advance
i am trying to make a button, that displays a menu when i click on it. but i also wanted the menu to dissappear, when i click the same icon.. but it doesnt change the
inStartMenu variable.. or it doesnt look like it does.
if butID == 1 or text == "START" and inStartMenu == false then
button.enableDisplay(true,2,3,4,5,6,7,8,9,10,11,12,13)
button.drawDisplay(2,3,4,5,6,7,8,9,10,11,12,13)
inStartMenu = true
print(inStartMenu)
elseif butID == 1 or text == "START" and inStartMenu == true then -- this doesnt even run.
button.visibleDisplay(false,13,12,11,10,9,8,7,6,5,4,3,2)
button.enableDisplay(false,2,3,4,5,6,7,8,9,10,11,12,13)
inStartMenu = false
print(inStartMenu)
end
Do anyone have any idea on, why it doesnt change the variable?
Thanks in Advance