Fandom

武装突袭 Wiki

SafeZone

简体 | 繁體

4,827个页面创建
于此维基上
添加新页面
评论0 Share

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

File:UI Size.jpg

In Arma: Cold War Assault, user interface Displays were drawn always in 4:3 aspect ratio. Since then, many other aspect ratios became common and interface has to be compatible with them. Currently, interface is base on following variables:

  • Aspect Ratio - change screen width to fit user's monitor
  • Interface Size - resize size of interface Controls, like menus, hints, cursors, etc. Introduced in Arma 2.

Coordinate Systems 编辑

Games now contains following two coordinate systems, both of them starting in their top left corner and going bottom right (see picture on right).

  • Absolute (red frame) - based on CWA system. Its always 4:3 and changes together with Interface Size.
    • As absolute area is always centered, [0.5,0.5] is always center a of screen.
  • Safezone (black frame) - actual monitor size. Uses following commands:
    • safeZoneX, safeZoneY, safeZoneW and safeZoneH, with additional safeZoneXAbs and safeZoneWAbs to work with multi-screen size.
    • In case game is running only on one monitor, safeZoneXAbs equals to safezoneX and safezoneWAbs is same as safezoneW.
    • Safezones serves only as references to absolute positions. Result of safezoneX can for example be -0.452381, which means it's left from absolute area.

Sample configs 编辑

Control with following size will cover whole screen (middle screen in case of TripleHead):

x = safezoneX;
y = safezoneY;
w = safezoneW;
h = safezoneH;

Following proportions will cover all screens in TripleHead:

x = safezoneXAbs;
y = safezoneY;
w = safezoneWAbs;
h = safezoneH;

Creates centered control with 80% width and height:

x = safezoneX + 0.1 * safezoneW;
y = safezoneY + 0.1 * safezoneH;
w = safezoneW * 0.8;
h = safezoneH * 0.8;

Creates control with absolute width and height, moved 10% from top left screen corner

x = safezoneX + 0.1 * safezoneW;
y = safezoneY + 0.1 * safezoneH;
w = 0.2;
h = 0.3;

Crates the same as above, but aligned to bottom right corner

x = safezoneX + safezoneW - 0.2;
y = safezoneY + safezoneH - 0.3;
w = 0.2;
h = 0.3;

Creates a control that spans the horizontal and is centered on the vertical according to the control's aspect ratio (useful for fullscreen images that shouldn't be stretched but letterboxed). 2 is the aspect ratio.

x = safeZoneX;
y = safeZoneY+((safeZoneH-(safeZoneW/2*(4/3)))/2);
w = safeZoneW;
h = safeZoneH/2*(4/3);

User Interface Editor 编辑

User Interface Editor helps with display creation, enabling designer to place controls in simple WYSIWYG editor and export it afterwards to config format.


Image gallery 编辑

Aspect Ratio and Interface Size combinations 编辑

Video Options 编辑

更多维基

随机维基