EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-13-2010, 02:38 PM
Savie Savie is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 229
Default 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~
Reply With Quote
  #2  
Unread 01-13-2010, 03:23 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

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.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 01-13-2010 at 03:26 PM.
Reply With Quote
  #3  
Unread 01-13-2010, 03:25 PM
Savie Savie is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 229
Default

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.
__________________
~ Savie
92 Warden, Nagafen.
Reply With Quote
  #4  
Unread 01-13-2010, 03:27 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

Edited my 1st post, I should of been more clear sorry..
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #5  
Unread 01-13-2010, 03:42 PM
Savie Savie is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 229
Default

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? =/
__________________
~ Savie
92 Warden, Nagafen.
Reply With Quote
  #6  
Unread 01-13-2010, 03:53 PM
Jamesc146's Avatar
Jamesc146 Jamesc146 is offline
A Griffon
 
Join Date: Nov 2008
Server: Butcherblock
Posts: 101
Default

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.
Reply With Quote
  #7  
Unread 01-13-2010, 06:19 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

Quote:
Originally Posted by Kerianah View Post
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>
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #8  
Unread 01-13-2010, 06:37 PM
Savie Savie is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 229
Default

Quote:
Originally Posted by Landiin View Post
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!
__________________
~ Savie
92 Warden, Nagafen.
Reply With Quote
  #9  
Unread 01-14-2010, 05:11 PM
Jamesc146's Avatar
Jamesc146 Jamesc146 is offline
A Griffon
 
Join Date: Nov 2008
Server: Butcherblock
Posts: 101
Default

thanks that's a big help
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:06 PM.


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