EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-12-2005, 03:14 PM
diabolist diabolist is offline
A Berserk Golem
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 59
Default 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 | |
| | | |
| |................................| |
|.....................................................................|
Reply With Quote
  #2  
Unread 05-12-2005, 03:43 PM
dc_roenfanz's Avatar
dc_roenfanz dc_roenfanz is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Unkown
Posts: 588
Default

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

Last edited by Deathbane27 : 05-12-2005 at 04:02 PM.
Reply With Quote
  #3  
Unread 05-12-2005, 04:03 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

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.
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 05-12-2005 at 04:10 PM.
Reply With Quote
  #4  
Unread 05-12-2005, 04:28 PM
diabolist diabolist is offline
A Berserk Golem
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 59
Default Thanks

Actually trying to position the window on the right side will try top,right and redesign accordingly
Reply With Quote
  #5  
Unread 05-13-2005, 06:24 AM
dc_roenfanz's Avatar
dc_roenfanz dc_roenfanz is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Unkown
Posts: 588
Default

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.
Reply With Quote
  #6  
Unread 05-13-2005, 06:49 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

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.
Reply With Quote
  #7  
Unread 05-13-2005, 09:56 AM
diabolist diabolist is offline
A Berserk Golem
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 59
Default attempting

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.
Attached Thumbnails
Click image for larger version

Name:	Persona.jpg
Views:	228
Size:	168.7 KB
ID:	2676  
Attached Files
File Type: xml eq2ui_mainhud_character.xml (2.3 KB, 430 views)
File Type: xml eq2ui_mainhud_persona.xml (32.3 KB, 196 views)

Last edited by diabolist : 05-13-2005 at 09:58 AM.
Reply With Quote
  #8  
Unread 05-13-2005, 10:10 AM
dc_roenfanz's Avatar
dc_roenfanz dc_roenfanz is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Unkown
Posts: 588
Default

I believe for click thru, its (IIRC, correct me if im wrong) AbsorbsInput=false. That should make it click thru.
Reply With Quote
  #9  
Unread 05-13-2005, 12:16 PM
diabolist diabolist is offline
A Berserk Golem
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Antonia Bayle
Posts: 59
Default 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.
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 02:29 AM.


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