EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Need code help please (https://www.eq2interface.com/forums/showthread.php?t=13719)

Savie 01-13-2010 02:38 PM

Need code help please
 
I'm trying to get a custom window to show when I load up the game, but so far nothing I've tried has worked.

I've tried the following, none of it has worked:

OnShow commands to both the clock and player window
Onhide commands to both the clock and player window
(Both of the above using custom.player2 and mainhud.player2)

Visible=true command to the custom window
Dynamicdatafilter=0000, FFFF, FFFE, and 0001
Adding an include in the Mainhud.xml
Removing the include in the mainhud.xml
Listing it as eq2ui_mainhud_player2
Listing is as _custom_player2

I've tried each of those in every different combination I can think of. The window functions properly when I /Show_window mainHUD.player2 in game but it will not load when the rest of the windows load. Is this just impossible what I'm trying to do, or am I missing something?

Thanks~

Landiin 01-13-2010 03:23 PM

You have to initialize the window with the show_window command. Then you can use the visible property to show and hide the window but not until.

So you can add OnSHow="show_window Custom.player2" to your script to get it so show.

Savie 01-13-2010 03:25 PM

Yes, that works fine in game, to make it come up, but I'm looking to get this thing to load with the rest of the windows when I boot the game - without having to enter a / command. :confused:

Landiin 01-13-2010 03:27 PM

Edited my 1st post, I should of been more clear sorry..

Savie 01-13-2010 03:42 PM

I currently have it in the clock xml file to OnSHow="show_window Custom.player2 show_window Custom.player2" and I can use the in game command to bring it up and move it around, resize and everything, but when I log out and back in I have to again type the /show window command to bring it up. I'd just like it to automatically show when I log in game without having to type the /show_window command - is there a way to do this? Am I completely misunderstanding what you're telling me? =/

Jamesc146 01-13-2010 03:53 PM

I'm trying to do the same thing but I'm not as smart as you guys so where do I place the onshow command? Can you make the reply for dummies please and thank you.

as of right now I have an in game macro to get the window up it is a /show_window macro.

It would sure be nice to have it load up with the rest of my windows.

Thanks,
James

P.S. What is the format for an include command (/include filename, <include filename>, include filename etc.? How do I write it is what I mean? and where can I see some of them in my eq2 folder? I'm trying to learn this stuff.

Landiin 01-13-2010 06:19 PM

Quote:

Originally Posted by Kerianah (Post 87726)
I currently have it in the clock xml file to OnSHow="show_window Custom.player2 show_window Custom.player2" and I can use the in game command to bring it up and move it around, resize and everything, but when I log out and back in I have to again type the /show window command to bring it up. I'd just like it to automatically show when I log in game without having to type the /show_window command - is there a way to do this? Am I completely misunderstanding what you're telling me? =/

If the clock's is always visible then the onshow will never fire. The best way to do this is to add a text object that changes with dynamic data. Something like <Text Name="ini" DynamicData="GameData.Self.Subclass" OnTextChanged="show_window Custom.player2" />. Only thing is now when ever u change toons the window will open.

Jamesc146;
it is
<include>filename</include>

Savie 01-13-2010 06:37 PM

Quote:

Originally Posted by Landiin (Post 87729)
If the clock's is always visible then the onshow will never fire. The best way to do this is to add a text object that changes with dynamic data. Something like <Text Name="ini" DynamicData="GameData.Self.Subclass" OnTextChanged="show_window Custom.player2" />. Only thing is now when ever u change toons the window will open.

I want the window to show all the time on any toon, so this is perfect, I'll give that a try tomorrow. Thank you! :D

Jamesc146 01-14-2010 05:11 PM

thanks that's a big help


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

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI