Thread: Listbox fill?
View Single Post
  #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:	323
Size:	36.1 KB
ID:	6496  
Attached Files
File Type: xml eq2ui_mainhud_voicechat.xml (6.2 KB, 321 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