EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 08-08-2008, 03:59 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default Listbox fill?

I'm not quite looking to reverse the order of how a listbox is filled but rather align it to the bottom of the listbox size.

Basically, I'm wanting to align the listbox to the bottom in the VoiceChat window, so that when you resize the window the names stay at the bottom of the window. I've had no luck doing it yet. The rows are by a template of pages that have nothing about them that I can figure out to change to make them align to the bottom, rather than the top.


Hope that's kinda clear....
Right now I'm messing with dynamically changing the location of the "Speakers" page so that the top of the page will change when Hovering out of the window, so that it will "appear" the speakers align to the bottom. But even with that it's a bit rough with the scroll bar being present and all. ScrollExtent comes into play, and it just gets ugly from there
__________________
"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 08-08-2008, 04:19 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

I managed to get what I want, as far as I've tested so far. I attached the XML file if anyone is interested and there isn't an easier way.

My OnHoverOut on the main page of VoiceChat window:
Code:
bUseSize=(Speakers.Players.Size==Speakers.Players.ScrollExtent)
iRowNum=(VoiceUserCount.localtext) * (17)
iTotalHeight=height
iSubtract=(iTotalHeight-iRowNum)
iCorrectHeight=(bUseSize) ? (iSubtract) : (48)
Speakers.location=('3' ## ',' ## 'iCorrectHeight')
I wanted to make sure not to mess around with it if the scrollbar was present (not tested really). Also, my window is modded a bit. So this isn't dealing with default window locations.
I made a VoiceUserCount text object using the DynamicData of how many people are in the chat, to do some math.

I'd still like to know if there is any XML change to accomplish what I ask above, so that this isn't so sloppy!
Attached Thumbnails
Click image for larger version

Name:	voicechat_ingame1.jpg
Views:	219
Size:	36.1 KB
ID:	6496  
Attached Files
File Type: xml eq2ui_mainhud_voicechat.xml (6.2 KB, 232 views)
__________________
"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 : 08-08-2008 at 03:34 PM.
Reply With Quote
  #3  
Unread 08-08-2008, 12:10 PM
ObsidianDragon ObsidianDragon is offline
A Berserk Golem
 
Join Date: Aug 2005
Server: Oasis
Posts: 57
Default

I was just trying to find a way to do the same thing. I'm using the upside down voice users by Ke'la (it has the channel dropdown at bottom). Looking in the uibuilder reference I saw there was an Align Back for composites, but apparently not for listboxes (I am a complete and utter noob at this, usually all I've been able to do is hack chunks of well written code to make more complex chunks of kludgy code).

It's really cool what you managed to do there, but I too would love to see if there is some secret bottom-filling style for the listbox, also so the sort could then sort bottom up.
Reply With Quote
  #4  
Unread 08-08-2008, 12:54 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

I don't even know of a listbox control that does this. I know such fucntion isn't supported by the win API either so I doubt there is this functionality in the UI.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #5  
Unread 08-08-2008, 03:27 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Ah well. I updated the xml and code above to show my final result. I just had to change it for when the scrollbar was present. My code was a bit off

It works nicely and doesn't look too shabby overall. I'll probably change it to have the dropdown menu located at the bottom as well. But I'll do that when I release the window for download.
__________________
"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
  #6  
Unread 08-08-2008, 04:27 PM
ObsidianDragon ObsidianDragon is offline
A Berserk Golem
 
Join Date: Aug 2005
Server: Oasis
Posts: 57
Default

Good! I look forward to taking advantage of your labor

If only there were a way to push listbox type gamedata into a volume fill window, like with the effects windows
Reply With Quote
  #7  
Unread 10-07-2008, 01:51 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

I'm still messing with this thing, trying to get it be more "automatic" and have been having no luck.

The listbox uses a template file (eq2ui_voice_template.xml). I'm trying to get perhaps an OnShow property put into the template file to mess with the rest of the UI... or in this case the VoiceChat window.

Anyone have any ideas on how about trying to this, or if it's possible at all? I tried a few Parent.Parent.x.x.x.x combinations without any luck.
__________________
"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
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 03:58 PM.


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