EQ2Interface

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

diabolist 05-12-2005 03:14 PM

Variable Question
 
ok, situation is this, you have 2 windows, windowA and windowB

in WindowA you have a Location for placement, when users move the window it saves a new Location.

In WindowA i have a statment Onshow='Parent.WindowB.Location=100,100'

what i really want is WindowB to open at WindowA.Location+100,100 so that windowB is in a predetermined position in relation to windowA.

ALSO

is there a way to force WindowB to always be on top

WindowA
.......................................................................
| |
| .................................. |
| | Window B | |
| | | |
| |................................| |
|.....................................................................|

dc_roenfanz 05-12-2005 03:43 PM

Lets see, the grafx kinda got scewed, but I think I know whatcha mean.

For a window always on top, you should be able to add in the property AlwaysOnTop=true

hope that helps

Deathbane27 05-12-2005 04:03 PM

Unfortunately, there's no way to set something's location in relation to something else (except its parent page, of course).

Although, you might try putting 100 pixels of blank deadspace on the left and top of window B and simply set its location to the same as A. I believe you can get it to not absorb input so you can click through to A, thus giving you the effect you want.

diabolist 05-12-2005 04:28 PM

Thanks
 
Actually trying to position the window on the right side will try top,right and redesign accordingly

dc_roenfanz 05-13-2005 06:24 AM

Hmmmm. OK, judging by the editing made by deathbane, I said something wrong? From what I underxstood, this guy wanted window B inside of window A, is that not correct? So the pack location should work right? Maybe im understanding it wrong.

Window B is a child page of Window A, correct? If that is not the case, then I apologize for faulty information. If they are infact two seperate pages then, yeah deathbane is obviously right.

If someone can tell my WHY what i said was wrong, instead of simply saying it is, i would appreciate that.

Zonx 05-13-2005 06:49 AM

Realy only 2 options in this case:

1) Nest the overlayed window inside the underlayed window and just hide/show it as needed. This way it'll move with the parent window.

2) If they must be seperate windows (cause they both use hardcoded data like clock and compass) you'll need to pad the overlayed window with empty space so it's top-left corner position matches the underlayed window.

This limitation results from a few shortcomings in UIBuilder:

A) X, Y and Z values aren't seperate so we can't alter them independently.
B) We can't split those values up.
C) We can't construct the comma seperated values without concatination.
D) There's no "ResizeLoc" atribute that would allow us to move objects via a series of resizes relative to corners other than top-left.

diabolist 05-13-2005 09:56 AM

attempting
 
3 Attachment(s)
Was attempting to add Spell Effects from the character window to the persona window, but the spell effects data is hard coded to the character window, so I then tried opening the character window "inside" the Persona window. no such luck, now was trying to have the persona window auto open the character window, and have them place the character window on top the persona, to "visually" be one window (see image below)

Thanks for the input, sorry origonal post was a bit vague, but all of your ideas helped clarify the issue of what I needed to do. I have the window working 98% the only thing I dont know how to do is the click thru.

attacked are the two modded files

BTW origonal file credits go to Jaxel for the persona window, and Quib for the Character wndow.

One thing to Note:

in the OnShow line of Persona.... Parent.Character.Location=Parent.Persona.Location

will place the Character window at the currect Location Persona opened at, so if someone MOVES persona the closes and reopens, Character apears in the correct place.

dc_roenfanz 05-13-2005 10:10 AM

I believe for click thru, its (IIRC, correct me if im wrong) AbsorbsInput=false. That should make it click thru.

diabolist 05-13-2005 12:16 PM

Yeppers
 
That did it DC thanks.

Nice group effort all

DC - gave me always on top and additionally the Clickthru syntax.
deathbane - gave idea for larger frame with same Location in both, and clickthru suggestion.
Zonx/Deathbane - for pointing out the limitations of SoE XML and forcing me to think outside the box to come up with Parent.Character.Location=Parent.Persona.Location

Thanks everyone for the help. now that this is done i have new ideas for resolving some of my older issues lol.


All times are GMT -5. The time now is 02:57 PM.

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