mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Stringtable addition
This commit is contained in:
parent
7bb7b6fb78
commit
d8554eba13
@ -4,7 +4,7 @@
|
||||
class RscInGameUI {
|
||||
class ACE_RscOptics_spike {
|
||||
idd = 141000;
|
||||
controls[] = { reticle, GVAR(mapHelper) };
|
||||
controls[] = { reticle, manualText, GVAR(mapHelper) };
|
||||
onLoad = QUOTE(with uiNamespace do {ACE_RscOptics_spike = _this select 0;};);
|
||||
|
||||
class GVAR(mapHelper): RscMapControl {
|
||||
@ -15,6 +15,22 @@ class RscInGameUI {
|
||||
h = 0;
|
||||
};
|
||||
|
||||
class manualText: RscText {
|
||||
idc = 241000;
|
||||
x = "safeZoneX + safeZoneW * 0.425";
|
||||
y = "safeZoneY + safeZoneH * 0.2";
|
||||
w = "safeZoneW * 0.15";
|
||||
h = "safeZoneH * 0.05";
|
||||
style = "0 + 2";
|
||||
text = CSTRING(Manual);
|
||||
colorBackground[] = {0,0,0,0};
|
||||
colorText[] = COLOR_WHITE;
|
||||
font = "LucidaConsoleB";
|
||||
sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 2.2);
|
||||
enabled = 1;
|
||||
show = 1;
|
||||
};
|
||||
|
||||
class reticle: RscControlsGroupNoScrollbars {
|
||||
idc = 242000;
|
||||
x = "safeZoneX";
|
||||
|
@ -16,7 +16,7 @@ class RscTitles {
|
||||
w = "safeZoneW * 0.15";
|
||||
h = "safeZoneH * 0.05";
|
||||
style = "0 + 2";
|
||||
text = "MANUAL";
|
||||
text = CSTRING(Manual);
|
||||
colorBackground[] = {0,0,0,0};
|
||||
colorText[] = COLOR_WHITE;
|
||||
font = "LucidaConsoleB";
|
||||
|
@ -68,11 +68,15 @@ if (cameraView isEqualTo "GUNNER") then {
|
||||
(__SPIKE_DISPLAY displayCtrl 243101) ctrlShow false;
|
||||
(__SPIKE_DISPLAY displayCtrl 243201) ctrlShow false;
|
||||
(__SPIKE_DISPLAY displayCtrl 243301) ctrlShow false;
|
||||
|
||||
(__SPIKE_DISPLAY displayCtrl 241000) ctrlShow true;
|
||||
} else {
|
||||
(__SPIKE_DISPLAY displayCtrl 243101) ctrlShow true;
|
||||
(__SPIKE_DISPLAY displayCtrl 243201) ctrlShow true;
|
||||
(__SPIKE_DISPLAY displayCtrl 243301) ctrlShow true;
|
||||
|
||||
(__SPIKE_DISPLAY displayCtrl 241000) ctrlShow false;
|
||||
|
||||
_seekerPositionScreen = worldToScreen ASLtoAGL _targetPosition;
|
||||
if (_seekerPositionScreen isEqualTo []) then {
|
||||
_seekerPositionScreen = [0, 0];
|
||||
@ -92,5 +96,6 @@ if (cameraView isEqualTo "GUNNER") then {
|
||||
__SPIKE_RETICLE ctrlCommit 0;
|
||||
} else {
|
||||
__SPIKE_RETICLE ctrlShow false;
|
||||
(__SPIKE_DISPLAY displayCtrl 241000) ctrlShow false;
|
||||
};
|
||||
|
||||
|
@ -22,5 +22,8 @@
|
||||
<Key ID="STR_ACE_Spike_CycleVisionMode">
|
||||
<English>Cycle Camera Vision Mode</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Spike_Manual">
|
||||
<English>MANUAL</English>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user