Page 4 of 4 FirstFirst ... 234
Results 46 to 53 of 53

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

  1. #46
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,874
    Rep Power
    1
    Quote 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.

  2. #47
    Refugee
    Join Date
    Jun 2019
    Posts
    6
    Rep Power
    0
    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?

  3. #48
    Ranger bigstep70's Avatar
    Join Date
    Feb 2017
    Location
    Building Worlds.
    Posts
    278
    Rep Power
    0
    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 at 07:12 PM.

  4. #49
    Refugee
    Join Date
    Jun 2019
    Posts
    6
    Rep Power
    0
    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 Images Attached Images
    Last edited by MissLysGaming; 06-30-2019 at 07:52 PM.

  5. #50
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,874
    Rep Power
    1
    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"/>

  6. #51
    Refugee
    Join Date
    Jun 2019
    Posts
    6
    Rep Power
    0
    Thanks a bunch!

  7. #52
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,874
    Rep Power
    1
    Quote Originally Posted by JurovskijTT View Post
    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.

  8. #53
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    22,342
    Rep Power
    1
    It's a bot, D. Damn clever one, but a bot nevertheless.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •