Hi all, first message to the list, hope you can help.

I was curious about the workings of the xpos and ypos options in the
VGUI panels.  I have a panel that is 600 wide.  I then have the
following:

"Resource/UI/ScoreBoard.res"
{
        "scores"
        {
                "ControlName"           "CClientScoreBoardDialog"
                "fieldName"             "scores"
                "xpos"          "63"
                "ypos"          "42"
                "wide"          "600"
                "tall"          "400"
                "autoResize"            "0"
                "pinCorner"             "0"
                "visible"               "0"
                "enabled"               "1"
                "tabPosition"           "0"
        }
        "ServerName"
        {
                "ControlName"           "Label"
                "fieldName"             "ServerName"
                "xpos"          "3"
                "ypos"          "2"
                "wide"          "250"
                "tall"          "24"
                "autoResize"    "0"
                "pinCorner"             "0"
                "visible"               "1"
                "enabled"               "1"
                "labelText"             ""
                "textAlignment"         "north-west"
                "dulltext"              "0"
                "brighttext"    "1"
        }
        "mapname"
        {
                "ControlName"           "Label"
                "fieldName"             "mapname"
                "xpos"                  "R180"
                "ypos"                  "2"
                "wide"                  "170"
                "tall"                  "24"
                "autoResize"            "0"
                "pinCorner"             "0"
                "visible"               "1"
                "enabled"               "1"
                "labelText"              ""
                "textAlignment"         "north-west"
                "dulltext"              "0"
                "brighttext"    "1"
        }
etc...

So the server name will be printed on the right and the map name on the
left.  The map name should start 180 left of the right edge of the
panel.  I change textalignment to be "north-east" hoping that it would
be right aligned and remove any whitespace left over from the text.
However the text appears centered over the right border, so half of it
is missing.

Is this possible because in the res labelText = "", so it calculates
absed off that.  Then when I put in my actual text in code, it uses the
old alignment.

Are there any guides, not the existing valve page in valve-erc, that
actually contains all of the layout options of the CGUI2 panels?


This E-Mail is intended only for the addressee. Its use is limited to that
intended by the author at the time and it is not to be distributed without the
author's consent. Unless otherwise stated, the State of Queensland accepts no
liability for the contents of this E-Mail except where subsequently confirmed in
writing. The opinions expressed in this E-Mail are those of the author and do
not necessarily represent the views of the State of Queensland. This E-Mail is
confidential and may be subject to a claim of legal privilege.

If you have received this E-Mail in error, please notify the author and delete 
this message immediately.


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to