Author Topic: PopUp List Selection Reset  (Read 2199 times)

robrab2000

  • Guest
PopUp List Selection Reset
« on: March 13, 2013, 09:52:49 AM »
Hi,

I'm having trouble figuring our how to get the popup list to have no value. I'm using it for a main menu dropdown in a strategy game I'm working on. when i click on it, it starts on a default value, ie. 'New Game'. If I click on new game, nothing happens because it assumes that 'New Game' was already selected and doesn't send off its message to the event receiver. What I've done as a temp work around is have it select 'options' by default however this only allows me to select 'new game' once and after that I have to select a different option before I can return to 'new game'. Is there a way for me to get it to set the menu to null before and after every click?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: PopUp List Selection Reset
« Reply #1 on: March 14, 2013, 01:08:50 AM »
Use a popup menu instead.

robrab2000

  • Guest
Re: PopUp List Selection Reset
« Reply #2 on: March 14, 2013, 02:35:54 PM »
What is the difference?

I actually did make this as a popup menu. I guess I just said popup list because that's what the script is called??

Any Ideas?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: PopUp List Selection Reset
« Reply #3 on: March 14, 2013, 04:04:14 PM »
Popup menu doesn't have a set selection, so you can choose the same option multiple times. Just make sure that the popup's value doesn't equal one of your items. Ie: Popup with text "Menu", and items "1", "2", "3", etc.