вторник, 17 марта 2015 г.

ArmA 2 icon test

init.sqf
[] execVM "scripts\ShowIcon.sqf"

description.ext
Respawn = "BASE";
RespawnDelay = 10;
RespawnDialog = 0;
class RscTitles {
class RIP_SIDEDISPLAY {
idd=64431;

movingEnable = true;
fadein       =  0;
fadeout      =  0;
duration     =  10800;
name = "RIP_SIDE_DISPLAY";
controls[] = {"RIP_SIDEICON"};
onLoad = "uiNamespace setVariable ['RIP_SIDE_DISPLAY', _this select 0]";
class RIP_SIDEICON {
type = 13;
idc = 64434;
style = 0x00;
x = safeZoneX+safeZoneW/2-0.1;
y = safeZoneY+safeZoneH/2+0.3;
w = safeZoneW;
h = safeZoneH;
font = "Zeppelin33";
size = 0.03;
sizeEx = 0.03;
colorText[] = { 0, 0.4, 0.8, 0.8};
colorBackground[] ={ 0,0,0,0.0};
text = ""; class Attributes {
font = "Zeppelin33";
color = "#347C17";
align = "center";
valign = "middle";
shadow = "1";
shadowColor = "#000000";
size = "1";
}; };
};
}; 

scripts\ShowIcon.sqf 
private ["_ctrlText","_icons"];
disableSerialization;
while {true} do {
titleRsc ["RIP_SIDEDISPLAY", "PLAIN"];
_icons = "";
_icons = _icons + format [" %1
", (name player)];
_icons = _icons + format [" %1
", (name player)];
_icons = _icons + format [" %1
", (name player)];
_icons = _icons + format [" %1
", (name player)];
_icons = _icons + format ["7 %1
", (name player)];
_ctrlText = (uiNamespace getVariable 'RIP_SIDE_DISPLAY') displayCtrl 64434;
_ctrlText ctrlSetStructuredText parseText _icons;
sleep 1;
};
true;

Комментариев нет:

Отправить комментарий