I have a list of UIGrid based buttons that change the background music track inside of a game. Currently they are just buttons that when pressed change the current track. What i'd like to do is have the currently selected button display differently, either scaled, or colored, potentially even animated in a loop, to show that its the active button. As a player selects another button, it would then turn the last selected one off, and the current one on, and so forth.
Before i hop into it later today, i figured i would put out the question to the forum on the best way to go about this with NGUI.
My thoughts were to create a list of GameObjects in a script on a parent object, then assign the buttons to those list items. The buttons would then have a UIButtonMessage that calls a 'for' loop in the script that sets a tween, or multiple, off/on based on the current selected button. This would run each time a button would be pressed.
Is this the only/best way to go about this in NGUI, or is there an easier/better way?
Nathaniel Hunter
SuperTales Inc.