EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 11-26-2010, 09:30 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default TextInput and OnChange in the broker

Hey all...

Anyone ever have trouble messing with the Broker presets and how they populate the text fields when selected?

It seems applying an OnChange property to a textbox only triggers when you manually type in it... which seems odd. I tried forcing some code by using the OnSelect property in my dropdown, but it triggers the code before the textfield even gets populated!

Any suggestions? I'm just trying to copy the text that gets sent to the TextInput to another one when it gets changed/populated.
__________________
"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
>
Reply With Quote
  #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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:04 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI