Create a free account to remove all ad content.

Author Topic:  Resolution values for Variables  (Read 2150 times)

0 Members and 1 Guest are viewing this topic.

DaveTheMonitor

  • Fresh Meat
  • *
  • Posts: 1
    • View Profile
Resolution values for Variables
« on: January 15, 2020, 05:36:04 PM »
As the standard for PC games, you can change the resolution of the game. Total Miner is no exception to this. The problem is that HudText and HudBar are dependent on resolution. This means if you wanted to have a HudText directly in the center of the screen, you would enter half of the screen resolution. The text with a position of [960,540] would be in the center of the screen with a 1920x1080 resolution. On a 1280x720 resolution, it would appear close to the bottom right.

So, if it's possible, could a built-in Variable [Value] for screen resolution be added? Such as "var [name] = [Res:x|y]"

This variable could be used to change the position of HudText/HudBars (or used in any Variable compatible scripts) based on the screen resolution, so it could appear at the same location on all resolutions.

Hayden

  • Elite Member
  • *
  • Posts: 571
  • Henlo
    • View Profile
  • Xbox: mister m0nk3y
  • Steam: Hayden
  • Other: 123456789
Re: Resolution values for Variables
« Reply #1 on: January 16, 2020, 12:11:15 AM »
This has already been recognized as a bug and will be fixed

https://trello.com/c/ZZ74B4QD/29-fix-hudbar-scripts
.
  /\_/\
 ( o.o )
 > ^ <

cY Agent 115

  • Sr. Member
  • *
  • Posts: 358
  • Death to trolls on the forums
    • View Profile
  • Xbox: cY Agent 115
  • Steam: cY Agent 115
Re: Resolution values for Variables
« Reply #2 on: January 16, 2020, 07:50:26 AM »
I don't think there's a way yet for the game to detect and record screen resolution client side.

Hayden

  • Elite Member
  • *
  • Posts: 571
  • Henlo
    • View Profile
  • Xbox: mister m0nk3y
  • Steam: Hayden
  • Other: 123456789
Re: Resolution values for Variables
« Reply #3 on: January 16, 2020, 12:15:02 PM »
I don't think there's a way yet for the game to detect and record screen resolution client side.
What do you mean?
.
  /\_/\
 ( o.o )
 > ^ <

Spark

  • Sr. Member
  • *
  • Posts: 414
  • I'm Italian and I love scripting
    • View Profile
  • Xbox: ShoppingSpark3
  • Steam: Bananatelli
Re: Resolution values for Variables
« Reply #4 on: January 16, 2020, 02:13:54 PM »
I don't think there's a way yet for the game to detect and record screen resolution client side.
Right now there Isn't a way to detect the resolution of a player but you could make a menu where the player can choose from different resolutions and set the huds using that menu.
Anyway this is useless since (as @Hayden has posted) this is in the works
Amazing Scripter!