Page MenuHomeFeedback Tracker

safeZone values change depending on "Interface Size" settings
New, WishlistPublic


I created a HUD in a mission and I used safeZone commands to make sure it stays in the same position whatever the user settings.
But if player chooses an interface size bigger than 'Normal' then the HUD is not visible anymore:

  • the config

idd = -1;
fadein = 0;
duration = 10e9;
onLoad = "uinamespace setvariable ['ZEF_D_INFO_HUD', _this select 0]";

class Controls

		class INFO : RscStructuredText
			idc = 0;
			x = 0;
			y = 0;
			w = 1;
			h = 1;
  • the commands that open the HUD

_ZEF_LAYER_HUD_ cutrsc ["ZEF_D_INFO_HUD", "plain"];
uinamespace getvariable "ZEF_D_INFO_HUD" displayctrl 0 ctrlsetposition [safeZoneX + (0 - safeZoneX), safeZoneY + (-0.25 - safeZoneY)];


Legacy ID
Ingame UI

Event Timeline

d3nn16 edited Steps To Reproduce. (Show Details)Nov 29 2014, 11:41 PM
d3nn16 edited Additional Information. (Show Details)
d3nn16 set Category to Ingame UI.
d3nn16 set Reproducibility to N/A.
d3nn16 set Severity to None.
d3nn16 set Resolution to Open.
d3nn16 set Legacy ID to 3136035164.May 7 2016, 7:54 PM

That is normal behaviour. Interface size changes viewport size which in turn changes safezone values.

d3nn16 added a subscriber: d3nn16.May 7 2016, 7:54 PM
d3nn16 added a comment.Dec 1 2014, 2:28 PM

Some players can't see the HUD at the top of the screen because they increased the "interface size". I didn't find any way so far to check whether the "interface size" is over "normal" and alert the player.

I also didn't find a way to make sure the HUD stays at the top of the screen (not beyond the top limit) and at same time adapt its size to the bigger "interface size" value (as it is the case for ArmA standard menus).

Use getResolution command

d3nn16 removed a subscriber: d3nn16.Dec 21 2020, 2:04 PM
d3nn16 added a subscriber: d3nn16.