EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 12-04-2010, 03:20 PM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default Pet window

Greetings,
As I was working with the pet window and adding it to my target window a noticed that now I can right click the pet window in my target window and it has a menu for attack, dismiss, ect.

Since all this is there how exactly can I get rid of the pet window all together? If I delete the file than sony just replaces it, so what is the correct way?

Thanks,
Draven

Last edited by Draven_Caine : 12-04-2010 at 03:26 PM.
Reply With Quote
  #2  
Unread 12-04-2010, 07:33 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

You could just delete the content of the file, except the first <Page> with the name of the window. Set the size of the window to "0,0".
__________________
"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
  #3  
Unread 12-04-2010, 07:35 PM
DiggityMan's Avatar
DiggityMan DiggityMan is offline
A Dragoon Sith
Interface Author - Click to view interfaces
 
Join Date: Aug 2010
Server: Oasis
Posts: 95
Default

Well setting the opacity to 0 on both mouse over and normal in all the settings and making it click through.
Place it out of the way where u wont click just in-case and you wont see it any more. Thats the easiest way to remove it from your view as for removing it all together. Well one way is to remove it it from the UI. You need to be using a Custom Folder for this option as i assume you are.
Copy the eq2ui_mainhud.xml from your default folder to your custom folder
Open it and remove the line <include>eq2ui_mainhud_pet.xml</include>
save it start game
If you remove this line from your default Folder with out coping the eq2ui_mainhud.xml over to your Custom the server will fix the removed line and you will still see it. Hope this helps
__________________
*On Leave Got Married*

Reply With Quote
  #4  
Unread 12-04-2010, 07:56 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

I'd suggest my method above. It's better to stray away from files like eq2ui_mainhud.xml when making mods for the community. Less hassle from game updates. Either just reduce the code to not show the window, or manually hide it with window settings.

Either way, someone could get it back if they wanted by just deleting the custom pet xml, or making it visible again.
__________________
"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
  #5  
Unread 12-04-2010, 09:29 PM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Quote:
Originally Posted by DiggityMan View Post
Well setting the opacity to 0 on both mouse over and normal in all the settings and making it click through.
Place it out of the way where u wont click just in-case and you wont see it any more. Thats the easiest way to remove it from your view as for removing it all together. Well one way is to remove it it from the UI. You need to be using a Custom Folder for this option as i assume you are.
Copy the eq2ui_mainhud.xml from your default folder to your custom folder
Open it and remove the line <include>eq2ui_mainhud_pet.xml</include>
save it start game
If you remove this line from your default Folder with out coping the eq2ui_mainhud.xml over to your Custom the server will fix the removed line and you will still see it. Hope this helps
removing the include line doesnt help, i tried that as I am a modder that came from vg (hell code lol).

Let em try Drumstix's method int he next few days and see what issues I can fix. I do manage to break all things good.

Thanks,
Draven
Reply With Quote
  #6  
Unread 12-05-2010, 08:34 AM
DiggityMan's Avatar
DiggityMan DiggityMan is offline
A Dragoon Sith
Interface Author - Click to view interfaces
 
Join Date: Aug 2010
Server: Oasis
Posts: 95
Default

i didnt know you where using it for public use i thought you wanted it gone for personal use. Drums method would be best for public use.
__________________
*On Leave Got Married*

Reply With Quote
  #7  
Unread 12-05-2010, 09:39 AM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Not sure on the se for this UI yet, it is mostly a project my wife and I do together kinda thing.
Reply With Quote
  #8  
Unread 12-05-2010, 01:11 PM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Ok drum's method worked great, now another question, is there a way to key bind alt-P to my new pet window?

Thanks,
Draven
Reply With Quote
  #9  
Unread 12-05-2010, 01:19 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

By new pet window, do you mean your target window?
__________________
"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
  #10  
Unread 12-05-2010, 01:32 PM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Quote:
Originally Posted by Drumstix42 View Post
By new pet window, do you mean your target window?
Well yes .. kinda just the part of the target window that holds the pet. This part is its own page within the target page but outside the v1. If that makes sense lol
I am thinking i could tie the pet page i made together with the default pet page some how.

Thanks,
Draven

Last edited by Draven_Caine : 12-05-2010 at 01:35 PM.
Reply With Quote
  #11  
Unread 12-05-2010, 06:19 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

You could do an OnShow and OnHide event in your "barebones" pet window xml, which triggers the pet data in your target window to hide/show.

That's about as far as I can see that being possible.
__________________
"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
  #12  
Unread 12-05-2010, 09:18 PM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Greetings,
Yeah, I was thinking if default pet window is visible than show High Fantasy pet window. (High Fantasy is my UI btw.)

Now here comes where i needf the mighty drumstix ...
How do I do this?
I know i use the onshow / on hide values but the script part is still a bit beyond me.

Thanks,
Draven
Reply With Quote
  #13  
Unread 12-06-2010, 12:58 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

During runtime of the UI, the main window elements (Pet, Target, Inventory, Broker, Player, etc) all get put into the same "_ROOT" element in which they are located under. With this structure tree you can see how they are placed and how to access them via script:

Code:
_ROOT
   |- Target
      |- v0
      |- v1
      |- HighFantasyPetPage
      |- WindowFrame
   |- Pet
      |- WindowFrame
   |- Random window name
   |- Another random window name
I put a few examle Pages under those windows just to show how the tree looks as you go further in.

So let's say your Pet window's main page has an element of "OnShow".
Inside that element, you need to access your High Fantasy pet page (whatever the name might be). You'll need to travel backwards in the tree just one time (to reach the _ROOT) and then down into that pet page, and mark it visible:

Code:
Parent.Target.HighFantasyPetPage.visible=true
The "Parent." instructs the code to navigate backwards one time in the tree's hierarchy. If you needed to do it more than once, you would just continue:
Parent.Parent.Parent.Parent.WindowName.SubPage1.SubPage2.Page2Text.visible=true

And then do the opposite in a "OnHide" property:

Code:
Parent.Target.HighFantasyPetPage.visible=false
__________________
"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 : 12-06-2010 at 01:02 PM.
Reply With Quote
  #14  
Unread 12-06-2010, 03:16 PM
Draven_Caine's Avatar
Draven_Caine Draven_Caine is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Oct 2009
Server: Unrest
Posts: 155
Default

Greetings,
After altering it a bit it works awsome.

I know php, html, css, ect but xml is kinda new for me. I appreciate all your knowledge and help.

Thanks,
Draven
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 04:29 PM.


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