09-17-2005, 10:34 PM
|
#1
|
A Gray Wolf
Join Date: Sep 2004
Posts: 7
|
What's it mean?
This is a segment from the EQ Player window.
PHP Code:
<Gauge item = "Player_HP"> <ScreenID>PlayerHP</ScreenID> <!--<Font>3</Font>--> <TextColor> <R>240</R> <G>240</G> <B>240</B> </TextColor> <RelativePosition>true</RelativePosition> <Location> <X>3</X> <Y>0</Y> </Location> <Size> <CX>108</CX> <CY>41</CY> </Size> <TextOffsetX>8</TextOffsetX> <GaugeOffsetY>33</GaugeOffsetY> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <!--<TooltipReference/>--> <FillTint> <R>240</R> <G>0</G> <B>0</B> </FillTint> <LinesFillTint> <R>220</R> <G>220</G> <B>0</B> </LinesFillTint> <DrawLinesFill>false</DrawLinesFill> <EQType>1</EQType> <GaugeDrawTemplate> <Background>A_GaugeBackground</Background> <Fill>A_GaugeFill</Fill> <Lines>A_GaugeLines</Lines> <LinesFill>A_GaugeLinesFill</LinesFill> <EndCapLeft>A_GaugeEndCapLeft</EndCapLeft> <EndCapRight>A_GaugeEndCapRight</EndCapRight> </GaugeDrawTemplate> </Gauge>
The things I know...
<Gauge item = "Player_HP">
is a label
<RelativePosition>true</RelativePosition>
This is saying that the position is relitive, but to what?
<Location>
<X>3</X>
<Y>0</Y>
</Location>
Is the location of the item.
<TextOffsetX>8</TextOffsetX>
<GaugeOffsetY>33</GaugeOffsetY>
Gotz no idea. Playing with it seems to crash.
I having touched any of the other stuff. I know the RGB is just changing colors and I assume the gauge template is just the little white lines under the gauge.
PHP Code:
<Screen item = "PlayerWindow"> <!--<ScreenID/>--> <RelativePosition>false</RelativePosition> <Location> <X>516</X> <Y>0</Y> </Location> <Size> <CX>124</CX> <CY>78</CY> </Size> <Text>Player</Text> <Style_VScroll>false</Style_VScroll> <Style_HScroll>false</Style_HScroll> <Style_Transparent>false</Style_Transparent> <DrawTemplate>WDT_RoundedNoTitle</DrawTemplate> <Style_Titlebar>false</Style_Titlebar> <Style_Closebox>false</Style_Closebox> <Style_Minimizebox>false</Style_Minimizebox> <Style_Border>true</Style_Border> <Style_Sizable>false</Style_Sizable> <Pieces>Player_HP</Pieces> <Pieces>Player_Mana</Pieces> <Pieces>Player_Fatigue</Pieces> <Pieces>Pet_HP</Pieces> <Pieces>Player_HPLabel</Pieces> <Pieces>Player_HPPercLabel</Pieces> <Pieces>A_AttackIndicatorAnim</Pieces> </Screen> </XML>
<Size>
<CX>124</CX>
<CY>78</CY>
</Size>
is the size of the window itself.
<Pieces>Player_HP</Pieces>
is just saying that these are the items to include in the window.
I guess what I'm asking mostly is how do the /locs work? I would assume that (0,0) would be NW (which it is for the window) but it isn't for the stuff inside the window. What are the locs relitive to?
The rest I'm just kinda saying, hey, this is what I found playing with it, correct me if I'm wrong.
Edit: I have been playing with it. I can move the stuff arround this window np. I added a XP gauge under the EDU. I just don't understand why sometimes I try to add a gauge it will not go to the spot that I want it to. Sometimes not even show up (assuming it's off the window or under something else, even when it has a Y coord 10 > the thing above it).
|
|
|
09-17-2005, 11:07 PM
|
#2
|
A Predatory Creeper
Join Date: Feb 2003
Server: Ayonae Ro
Posts: 293
|
possision reletive to teh window, IE weather or not it changes when u resize the widow. Think petbuff widow, when u make it bigger teh space for buff icons get bigger, rest stays same
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
“Despite everything, I believe that people are really good at heart.”
Anne Frank
|
|
|
09-18-2005, 12:51 AM
|
#3
|
A Gray Wolf
Join Date: Sep 2004
Posts: 7
|
IC.
I also realized tonight that the reason the locs seemed so funy is because the player name is included in the Gauge #1 for HP.
|
|
|
09-18-2005, 02:10 AM
|
#4
|
A Shissar Disciple
Join Date: Feb 2005
Server: Venril Sathir
Posts: 125
|
There is a word document, AboutSIDL.doc, in the UI folder that sort of explains every element and sub-element - though sometimes it takes a bit of experimentation to understand what the explanation means!
Anyway, x is the horizontal and y the vertical dimension, and these increase from left to right and from top to bottom.
So: the top left corner of the screen is absolute position 0,0; the bottom right corner depends on resolution, but on today's most common resolution (thanks to millions of 17" and 19" TFT monitors) it's at 1279,1023.
In your example, the player window is designed to be placed at the top of the screen (y=0) and getting on for midway across (x=516); it's 124 wide (size CX=124), so the right hand edge is at x=640, right on an imaginary vertical line splitting the screen in half.
Relative position means, relative to its parent element: so the player gauge here has its top left position three pixels right (x=3) and no pixels down (y=0) from the window's top left corner.
The overall gauge is 108 wide and 41 deep. The text associated with the gauge (player name is hardcoded into this gauge, I believe) has been offset from the left of the gauge by 8 points - i.e. 11 points from the top left of the window. There's no down offset for the text. The name can therefore be 100 points wide before cutting off.
The gauge bar itself has been offset from the top of the gauge by 33 points - i.e. 33 points from the top left of the window. There's no offset from the left for the gauge.
Hope that helps.
|
|
|
09-18-2005, 02:59 AM
|
#5
|
A Shissar Disciple
Join Date: Feb 2005
Server: Venril Sathir
Posts: 125
|
Quote:
Originally Posted by ArcherPhate
possision reletive to teh window, IE weather or not it changes when u resize the widow. Think petbuff widow, when u make it bigger teh space for buff icons get bigger, rest stays same
|
Nope, that's to do with the [Anchoroffsettoleft] etc attributes. Position absolute is within the window as a whole (for top level elements, this means initial placement on the screen), relative is relative to a parent attribute (making it easier to build sub boxes of clustered info that you could move about, for example).
Unless I'm wrong of course, has been known to happen ... on a daily basis ...
|
|
|
09-18-2005, 09:53 AM
|
#6
|
A Gray Wolf
Join Date: Sep 2004
Posts: 7
|
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|