Stringtable addition

This commit is contained in:
Brandon Danyluk 2022-01-01 18:35:48 -07:00
parent 7bb7b6fb78
commit d8554eba13
4 changed files with 26 additions and 2 deletions

View File

@ -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";

View File

@ -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";

View File

@ -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;
};

View File

@ -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>