![]() |
Script troubles
1 Attachment(s)
Having a bit of trouble getting this script to work. I'm making a chat window where, if you hide the Titlebar, it will also hide the channel button and input bar, and stretch the chat display and scrollbar to cover up where they were. (And go back if you re-display the titlebar.)
I've got it working as expected when you show/hide the titlebar, but the problem is when you load the game. The script (edited for clarity): (Full, Normal, ScrollFull, and ScrollNormal are invisible elements that resize with the window.) Code:
<Page Name="WC_Titlebar" When you log back in: If WC_Titlebar.visible="true", then all the windows with the titlebar showing have the chat bar, as expected. But the ones with the titlebar hidden have the chat bar hidden, but the chatdisplay and scrollbar are set to the size in the XML file, instead of stretching to the size of the window. If WC.Titlebar.visible="false", then regardless of a window's titlebar setting, the input bar is hidden, but the chat display and scrollbar are stretched to the window size how they are supposed to be. So basically: Visible=false: OnHide executes on ALL chat windows whether they're supposed to or not, but it fits the elements to the window correctly. Visible=true: OnHide executed only when it's supposed to, but doesn't fit the elements to the size of the window like it's supposed to. Attaching the file here, feel free to mess with it. I've tried moving the commands around and having the thing automatically show or hide itself on load, but still can't get it to work correctly on log-in. Hopefully someone else here can see a way that I've overlooked. |
1 Attachment(s)
I wasn't able to work through the resize-in-middle-of-loading problem, but I was able to work around it by having the text box change locations instead of sizes. :)
I am uploading the file here so that Reflection Rip can put the script change to use as soon as possible in his recently-uploaded mod. Here is my scrollbar'd version. Reflection Rip's scroll-less version is available here: http://www.eq2interface.com/download...fo.php?id=3381 Enjoy. :) |
I am sorry for the delay, I have been working quite extensivly for the last week, and haven't been able to play or mod.
I have yet to check out this mod, but from the comment I believe it uses the same solution I was thinking about. Instead of resizing the chat area, move part of it outside the window so it looks like it is resized. I am also working on a special 'configure' button idea, so I can make a chat window that allows the players to change a bunch of settings with some check boxes. Turn on/off scroll bar. Turn on/off chat. Left/Right side scroll bar. I will try to get it all done before the end of the weekend. -Reflection |
Talyns has something like that as part of his Tablets set at the moment. Unfortunately the custom settings don't save when you log, which is why ours are so nice. :D
|
| All times are GMT -5. The time now is 11:16 PM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI