Announcement

Collapse
No announcement yet.

[TUT] GUI's and You - Elements/Design/Positioning/Building/Implementation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Originally posted by Okumba View Post
    Sorry if I didn't get it but is there a way to do a "reloadui" without leaving and re-entering the game?
    Nope.
    SSD helps.

    Comment


      #47
      Does anyone happen to know how to remove a sprite using xpath? I'm currently trying to remove the date and time from the top of the screen, but it is in the same window as the compass, which I would like to remain there. So I just want to remove the sprite. Is that possible?

      Comment


        #48
        This is the code to put it in, so just "un-code" it... lol

        Code:
        <!-- time/date temp wind elev under compass -->
        <!-- <insertAfter xpath="/windows/window[@name='windowCompass']/texture[@name='compassTexture']" >
        <rect name="rect_compassStats" pos="0,-5">
        <sprite name="sprite_compassStatsBackground" depth="0" pos="48,-39"  width="384" height="24" type="sliced" fillcenter="false"  color="0,0,0,100" sprite="ui_game_header_fill" />
        <sprite name="sprite_compassClock" depth="2" pos="50,-41"  size="20,20" sprite="ui_game_symbol_clock" color="*"  foregroundlayer="true"/>
        <label name="label_compassDayTime" depth="2" pos="70,-40" width="172"  height="24" text=" [FFFFFF]{day|always} {time|always}[-]"  font_size="22" effect="outline" />
        <rect name="rect_compassMapStats" pos="40,-40" width="400" height="32" controller="MapStats" anchor="CenterTop">
        <sprite name="sprite_compassTemp" depth="2" pos="122,-1" size="20,20"  sprite="ui_game_symbol_temperature" color="*"  foregroundlayer="true"/>
        <label name="label_compassTemp" depth="2" pos="142,0" width="172"  height="24" text=" [FFFFFF]{maptemperature}[-]" font_size="22"  effect="outline" />
        <sprite name="sprite_compassWind" depth="2" pos="212,-1" size="20,20"  sprite="ui_game_symbol_wind" color="*" foregroundlayer="true"/>
        <label name="label_compassWind" depth="2" pos="232,0" width="172"  height="24" text=" [FFFFFF]{mapwind} MPH[-]" font_size="22"  effect="outline" />
        <sprite name="sprite_compassElevaytion" depth="2" pos="302,-1"  size="20,20" sprite="ui_game_symbol_climb" color="*"  foregroundlayer="true"/>
        <label name="label_compassElevation" depth="2" pos="322,0"  width="172" height="24" text=" [FFFFFF]{mapelevation} M[-]"  font_size="22" effect="outline" />
        </rect>
        </rect>
        </insertAfter> -->
        Last edited by bigstep70; 06-30-2019, 07:12 PM.

        Comment


          #49
          Forgive me, but I am super new at this....

          This is what I am seeing...

          <window name="windowCompass" style="compass.window" controller="CompassWindow">
          <sprite style="compass.window.background.border"/>
          <sprite style="compass.window.background"/>

          <sprite style="compass.window.compass.background">


          </sprite>
          <texture style="compass.window.compass.texture" name="compassTexture" rect_size="0.25,1" rect_offset=".8,0" >

          </texture>
          <sprite pos="240,-60" sprite="" color="255,255,255,255" globalopacitymod="1.8">
          <label depth="2" width="300" height="30" text="{daytitle}: [{daycolor|always}]{day|always}[-] {timetitle}: {time|always}" font_size="28" pivot="center" effect="outline" upper_case="true" justify="center"/>
          </sprite>
          </window>

          if you could dumb it down for me a bit?
          Attached Files
          Last edited by MissLysGaming; 06-30-2019, 07:52 PM.

          Comment


            #50
            Comment out the label.

            Code:
            <window name="windowCompass" style="compass.window" controller="CompassWindow">
            <sprite style="compass.window.background.border"/>
            <sprite style="compass.window.background"/>
            
            <sprite style="compass.window.compass.background">
            
            
            </sprite>
            <texture style="compass.window.compass.texture" name="compassTexture" rect_size="0.25,1" rect_offset=".8,0" >
            
            </texture>
            <sprite pos="240,-60" sprite="" color="255,255,255,255" globalopacitymod="1.8">
            <!-- <label depth="2" width="300" height="30" text="{daytitle}: [{daycolor|always}]{day|always}[-] {timetitle}: {time|always}" font_size="28" pivot="center" effect="outline" upper_case="true" justify="center"/> -->
            </sprite>
            </window>
            If the game has a fit because label is required just move it offscreen.
            Code:
            <label depth="2" pos="9999,9999" width="300" height="30" text="{daytitle}: [{daycolor|always}]{day|always}[-] {timetitle}: {time|always}" font_size="28" pivot="center" effect="outline" upper_case="true" justify="center"/>

            Comment


              #51
              Thanks a bunch!

              Comment


                #52
                Originally posted by JurovskijTT
                I was just reading thru this and I think you made a mistake .. I believe the other black cover is for the a/c compressor ..Please correct me if Im wrong

                Thanks
                Not sure what you are referring to?
                This was written a while ago and hasnt been updated but the basics are still the same. If there is an error its most likely due to changes since posting the OP.

                Comment


                  #53
                  It's a bot, D. Damn clever one, but a bot nevertheless.

                  Comment

                  Working...
                  X