Jump to content
Sign in to follow this  
Igitur

Detecting UI size

Recommended Posts

Hi there,

 

Is anyone aware of a simple way to detect by script which size of the game interface (large, small, very small, etc...) a player is using  ? I've tried 

_scale = profilenamespace getvariable 'IGUIScale'; hint str _scale;

//and : 

_scale = UInamespace getvariable 'IGUIScale'; hint str _scale;

, but that doesn't seem to return anything.

'IGUIScale' seems to be what I'm looking for. It's a variable I found in my user profile. Any clue ?

 

Thanks in advance for your reply :)

  • Like 1

Share this post


Link to post
Share on other sites

Eh eh, I knew that was simple.. Thanks Lucullus !

Share this post


Link to post
Share on other sites
On 11/8/2017 at 11:20 AM, Igitur said:

Hi there,

 

Is anyone aware of a simple way to detect by script which size of the game interface (large, small, very small, etc...) a player is using  ? I've tried 


_scale = profilenamespace getvariable 'IGUIScale'; hint str _scale;

//and : 

_scale = UInamespace getvariable 'IGUIScale'; hint str _scale;

, but that doesn't seem to return anything.

'IGUIScale' seems to be what I'm looking for. It's a variable I found in my user profile. Any clue ?

 

Thanks in advance for your reply 🙂

You need to use "uiScale" instead of "IGUIScale"

Have a nice day

https://community.bistudio.com/wiki/getResolution

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×