View Single Post
  #2  
Unread 11-27-2010, 03:02 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

I tried making a Text element which receives the SelectedItemIndex when something is selected from the dropdown via OnChange.

Then within the Text I do an OnTextChanged event and echo to the chat window the values.

The problem is this is still inefficient as it will echo the text contained in the textinput fields before they get updated. So if I switch between Selection A and Selection B, it will echo the text from the previous one every time.
And OnTextChanged doesn't seem to ever fire when being filled in with data from the dropdowns....

*edit*
Well after many unsuccessful attempts, I just reverted to how I load custom settings when loading the game/changing characters. I use a Text element tied to the /GameData.General.Time and set it to update the field when the DD updates, and then clear the OnTextChanged property afterward. It has a very small delay to text appearing, but it's working well enough.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 11-27-2010 at 04:05 AM.
Reply With Quote