Thread: ListBox
View Single Post
  #7  
Unread 03-09-2005, 01:09 PM
Kosmos's Avatar
Kosmos Kosmos is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Lucan DLere
Posts: 581
Default

Ok, I'm going to ask for an assist. I'm boggled.
The goal. A ListBox that that performs an emote on selection of the text.
I'm making a matrix that will have all the emtos re-organized in a more appropirate order rather than alphabetical.
If you check these files, Pay NOT attention to cosmetics yet. It's ugly.

What I have.
A ListBox with 4 data items.
The data times are defined as 'text' and the values are set to four emotes.

The documentaion p.39 says that
SelectedItem - value of item 'string'

As far as I can tell I have everything set up correctly.
What I need is the syntax for the
OnSelect=SelectedItem

If I put OnSelect="curse" it works when I select any item in the list box withuot having to click OK or anything. As it should.
I've not messed with the OK and Cancle buttons, because I dont expect to have them in the final mod.
When I'm done, it will just bring up a table of semi-transparent text and nothing else. If you select one of the text it will do the emote.
the emotes will be sorted by the situations you might be in. Like.
Greetings/FareWells, Agressive emotes, passive emotes, Physical/Emotional States, Agree, and Disagree.


I've tried putting SelectedItem="Value" and OnSelect="Value"
I've tried OnSelect="Parent.Current.SelectedItem"

Looking at a couple other mods it seems like you guys have been moving data into the local text then moving it into the variable and having to click an button.

Using the listbox instead of the the table. 'SHOULD' avoid this as far as I can tell.
Any ideas.
here are the files to mess with.
Attached Files
File Type: xml eq2ui_mainhud_emotes.xml (3.0 KB, 280 views)
File Type: xml eq2ui_emoteslist_template.xml (451 Bytes, 285 views)
Reply With Quote