Page 2 of 13 FirstFirst 123412 ... LastLast
Results 16 to 30 of 184

Thread: DUST's UI/HUD Collection [REQUESTS]

  1. #16
    Hood Ornament Gamida's Avatar
    Join Date
    May 2015
    Location
    The Rock
    Posts
    4,243
    Rep Power
    1
    I am trying to get a handle on ui placement.
    For example in the guppy wasteland ui compass is top center, toolbelt bottom center, day/time bottom left, etc.

    How are coordinates laid out for this? ex. toolbelt seems to be -240,87 and day/time is 0,63.
    Are first numbers position from left to right of screen and second numbers from top to bottom of screen?

    Would like to know if there is any tutorial of how to place ui objects where you want them on screen so I could fiddle with where things are.

    I have tried changing numbers and have been getting some weird results

  2. #17
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,906
    Rep Power
    1

    Everything is Relative.

    Positioning is all relative.
    pos="1,2".

    1 is horizontal. negative value moves left, positive value moves right.
    2 is vertical. negative value moves down, positive value moves up.



    first you have the anchor points.

    CenterBottom,CenterTop,LeftTop,LeftCenter,LeftBott om,RightTop,RightCenter,Rightbottom.
    This defines the "Starting" location (if you will), starting point is always 0,0 of the anchor location.

    In the case of the toolbelt, to have it centered properly, it needs to be moved left so that the first 4 item slots are before 0,0 (pos -240,x)

    Following this, you will then have a container (often a rect or panel). The position that you set this container to is relative to the parent positioning.
    in the image above, the container (green) would be set to pos="20,-20". its positioning is relative to the main window. (grey) top left corner. (that's the green containers 0,0)

    After that you have any items/labels etc. All their positioning is relative to the green container. 0,0 is top left corner of green box for an item nested within.

    Once you understand that, then comes the pivots.

    If you see an item that has (pivot="center") it means that it will pin said item (usually a icon) to the center point of the container. If a pivot is used, positioning is still relative to the container, but you must specify the pin point of the container.

    Using the toolbelt as an example, it has a 60x60 container for the toolbelt slot.
    the icons, use pivot center so their position = [pos=30,-30"] as this is the center point of the container 60wx60h.

    TLDR: everything is relative to the parent.
    Last edited by DUST2DEATH; 09-22-2017 at 03:34 AM. Reason: Corrected position anchors for A16

  3. #18
    Hood Ornament Gamida's Avatar
    Join Date
    May 2015
    Location
    The Rock
    Posts
    4,243
    Rep Power
    1
    Thank you....may have to read it over a few times for it to sink in but thank you lol

    With some trial and error I have managed to move the top left box to position between day/time and toolbelt.

    I tried changing the icon and having it load from my hard drive but just got the white box with the red question mark. I suppose I could just add it to my own imgur account and link that one instead.

    Also noted that the player position box I moved to bottom of screen disappears when I open menu, not sure why as it is lower than the toolbelt.
    Last edited by Gamida; 12-27-2016 at 12:04 PM.

  4. #19
    Survivor Ruso's Avatar
    Join Date
    Nov 2016
    Posts
    71
    Rep Power
    0
    Is this compatible with Valmod Expa or Overhaul or War of the Walkers?

  5. #20
    Survivor
    Join Date
    Apr 2016
    Location
    Singapore
    Posts
    65
    Rep Power
    0
    Are u able to do a UI for steelmod? based on your Diablo theme UI which I saw on another post which looks damn awesome

  6. #21
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,906
    Rep Power
    1
    Quote Originally Posted by Ruso View Post
    Is this compatible with Valmod Expa or Overhaul or War of the Walkers?
    Zompact Full has a Valmod Overhaul Branch.
    YaUI has a War of the Walkers Patch.

    Guppy's Wasteland is standalone.
    Was there one in particular you were after?

    - - - Updated - - -

    Quote Originally Posted by icymage84 View Post
    Are u able to do a UI for steelmod? based on your Diablo theme UI which I saw on another post which looks damn awesome
    Depends on the complexity of Steelmod. I will have a look.

  7. #22
    Survivor Ruso's Avatar
    Join Date
    Nov 2016
    Posts
    71
    Rep Power
    0
    Quote Originally Posted by DUST2DEATH View Post
    Zompact Full has a Valmod Overhaul Branch.
    YaUI has a War of the Walkers Patch.

    Guppy's Wasteland is standalone.
    Was there one in particular you were after?
    Guppy's actually. Being standalone, means could be use with any mod or just the vanilla?

  8. #23
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,906
    Rep Power
    1
    Quote Originally Posted by Ruso View Post
    Guppy's actually. Being standalone, means could be use with any mod or just the vanilla?
    Id need to make patch files for Guppy's to support either or. Which one are you playing?

  9. #24
    Survivor
    Join Date
    Apr 2016
    Location
    Singapore
    Posts
    65
    Rep Power
    0
    Quote Originally Posted by DUST2DEATH View Post
    Zompact Full has a Valmod Overhaul Branch.
    YaUI has a War of the Walkers Patch.

    Guppy's Wasteland is standalone.
    Was there one in particular you were after?

    - - - Updated - - -



    Depends on the complexity of Steelmod. I will have a look.
    Thanks a lot, DUST2DEATH

  10. #25
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    22,504
    Rep Power
    1
    D, do you have the skillset to write a wysiwyg editor?
    Last edited by Guppycur; 12-28-2016 at 06:01 PM.

  11. #26
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,906
    Rep Power
    1
    Quote Originally Posted by Guppycur View Post
    D, do you have the skillset to write a wysiwyg editor?
    err, not really. I could probably dive in headfirst and see if I sink or swim.

    Check steam, talk more.

  12. #27
    QA Tester schwanz9000's Avatar
    Join Date
    Apr 2015
    Posts
    514
    Rep Power
    1
    Quote Originally Posted by DUST2DEATH View Post
    Positioning is all relative.
    pos="1,2".

    1 is horizontal. negative value moves left, positive value moves right.
    2 is vertical. negative value moves down, positive value moves up.



    first you have the anchor points.

    CenterBottom,CenterTop,LeftTop,Left,LeftBottom,Rig htTop,Right,Rightbottom.
    This defines the "Starting" location (if you will), starting point is always 0,0 of the anchor location. *snip*
    Quote Originally Posted by Guppycur View Post
    D, do you have the skillset to write a wysiwyg editor?
    Quote Originally Posted by DUST2DEATH View Post
    err, not really. I could probably dive in headfirst and see if I sink or swim.

    Check steam, talk more.
    Would anyone know where the CenterBottom,CenterTop,LeftTop,Left,LeftBottom,Rig htTop,Right,RightBottom anchor points are defined? I "might" have a way to make a WYSIWYG editor if I can figure this out. I've looked in the xml and parts of the dll without any luck.

    UPDATE: I found them mentioned in the dll inside the XUi.cs. This is gonna take a while to study.
    Last edited by schwanz9000; 12-30-2016 at 03:43 AM.

  13. #28
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,906
    Rep Power
    1
    Nice.

    From what I can tell, 0,0 is always the edge of screen on the 8 points around the edge.
    Some <window> tags will honor the pos setting, others will ignore it. Thats why I ended up using position containers.

    You will also need to consider layer depths, depending how far you wish to go.

  14. #29
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,906
    Rep Power
    1
    Quote Originally Posted by icymage84 View Post
    *Diablo request*
    What HUD items are you wanting?

  15. #30
    Colony Founder DUST2DEATH's Avatar
    Join Date
    Jun 2014
    Location
    AU - HDHQ Overhaul
    Posts
    1,906
    Rep Power
    1
    Guppy's Wasteland UI 1.0b

    Adds Support for Valmod Overhaul & War of the Walkers. No other changes.

    Installation:
    Install either Valmod or War of the Walkers as described by the mod authors first!

    Open Master archive, browse to the patch folder and open the appropriate directory.
    Drag the data folder into your 7 days directory, yes to overwrite.

    If you are using Valmars Bigger Backpack, you will need to patch the patch. Same process applies.
    Open Bigger Backpack folder, drag Data folder into your 7 days directory, yes to overwrite.

    DOWNLOAD
    Last edited by DUST2DEATH; 01-05-2017 at 07:31 AM.

Posting Permissions

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