EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Pet window (https://www.eq2interface.com/forums/showthread.php?t=15156)

Draven_Caine 12-04-2010 03:20 PM

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

Drumstix42 12-04-2010 07:33 PM

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".

DiggityMan 12-04-2010 07:35 PM

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

Drumstix42 12-04-2010 07:56 PM

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.

Draven_Caine 12-04-2010 09:29 PM

Quote:

Originally Posted by DiggityMan (Post 94644)
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

DiggityMan 12-05-2010 08:34 AM

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.

Draven_Caine 12-05-2010 09:39 AM

Not sure on the se for this UI yet, it is mostly a project my wife and I do together kinda thing.

Draven_Caine 12-05-2010 01:11 PM

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

Drumstix42 12-05-2010 01:19 PM

By new pet window, do you mean your target window?

Draven_Caine 12-05-2010 01:32 PM

Quote:

Originally Posted by Drumstix42 (Post 94658)
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

Drumstix42 12-05-2010 06:19 PM

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.

Draven_Caine 12-05-2010 09:18 PM

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

Drumstix42 12-06-2010 12:58 PM

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

Draven_Caine 12-06-2010 03:16 PM

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


All times are GMT -5. The time now is 01:37 PM.

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