Jump to content

GUI Not Adaptive to Widescreens

Closed 1.0.3

dustyhansen

Posted

The Skill Tree XP Event alert and the pump bar for Skill Tree are not working well with ultra widescreen monitors. I had the XP bar placed above the hot bar for my players and the event alert placed to the far right, but on my widescreen monitor they move to different locations. Other plugins with GUI elements seem to be able to adapt to different monitor sizes correctly. Is there a way to fix this?

Screenshot 2024-07-06 105443.png

imthenewguy

Posted

You need to set the pump bar values in Skill Tree to anchor in the correct location, and use the /stemoveui command in xp event to reposition the hud, as well as adjust the anchor points.

Anchoring is where you are having problems.

dustyhansen

Posted

6 hours ago, imthenewguy said:

You need to set the pump bar values in Skill Tree to anchor in the correct location, and use the /stemoveui command in xp event to reposition the hud, as well as adjust the anchor points.

Anchoring is where you are having problems.

Sorry, I don't understand. The black box on the screen has the same anchor points as the XP pump bar, yet it stays next to the health bar regardless of screen resolution. Why does the XP pump bar not do the same? Shouldn't this be something that you do on your end to make sure that the UI elements stay the same on different monitor resolutions? What would you suggest i adjust the anchor points to?

imthenewguy

Posted

Skill Tree's pump bar has a default value of:

      "Anchor points": {
        "anchor_min": "1 0",
        "anchor_max": "1 0"
      },

This anchors to the bottom right corner of the screen, near the health bar. You can adjust the distance and size of the bar with the offset values.

Changing the values in the config does not change for all players who have connected to your server already, as Skill Tree allows for individually set xp bar points.

You can force an update for yourself using the /resetxpbar command, or you can update it for all players using the /resetxpbars command.

 

dustyhansen

Posted

1 hour ago, imthenewguy said:

Skill Tree's pump bar has a default value of:

      "Anchor points": {
        "anchor_min": "1 0",
        "anchor_max": "1 0"
      },

This anchors to the bottom right corner of the screen, near the health bar. You can adjust the distance and size of the bar with the offset values.

Changing the values in the config does not change for all players who have connected to your server already, as Skill Tree allows for individually set xp bar points.

You can force an update for yourself using the /resetxpbar command, or you can update it for all players using the /resetxpbars command.

 

Ok I moved the pump bar to be above the black box, next to the health bar, since that is what it is anchored to (instead of the hot bar). And I re-anchored the XP Event box to the bottom right instead of the middle of the screen and it looks good now for everyone. Thanks for the guidance.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.