localise missile guidance

This commit is contained in:
Brandon Danyluk 2021-05-02 00:34:45 -06:00
parent 0d38505ea3
commit f45ee879ac
5 changed files with 61 additions and 25 deletions

View File

@ -4,45 +4,39 @@ class CfgMagazines {
class 6Rnd_ACE_Hydra70_DAGR : 12Rnd_PG_missiles { class 6Rnd_ACE_Hydra70_DAGR : 12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR"; ammo = "ACE_Hydra70_DAGR";
count = 12; count = 12;
displayName = "6 Round DAGR"; displayName = CSTRING(Hydra70_DAGR_6x);
displayNameShort = "6 Round DAGR";
descriptionShort = "6 Round DAGR";
weight = 36; weight = 36;
}; };
class 12Rnd_ACE_Hydra70_DAGR : 6Rnd_ACE_Hydra70_DAGR { class 12Rnd_ACE_Hydra70_DAGR : 6Rnd_ACE_Hydra70_DAGR {
count = 12; count = 12;
displayName = "16 Round DAGR"; displayName = CSTRING(Hydra70_DAGR_12x);
displayNameShort = "16 Round DAGR";
descriptionShort = "16 Round DAGR";
weight = 72; weight = 72;
}; };
class 24Rnd_ACE_Hydra70_DAGR : 6Rnd_ACE_Hydra70_DAGR { class 24Rnd_ACE_Hydra70_DAGR : 6Rnd_ACE_Hydra70_DAGR {
count = 24; count = 24;
displayName = "24 Round DAGR"; displayName = CSTRING(Hydra70_DAGR_24x);
displayNameShort = "24 Round DAGR";
descriptionShort = "24 Round DAGR";
weight = 72; weight = 72;
}; };
class PylonRack_12Rnd_PG_missiles; class PylonRack_12Rnd_PG_missiles;
class PylonRack_6Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles { class PylonRack_6Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR"; ammo = "ACE_Hydra70_DAGR";
displayName = "6x DAGR [ACE]"; displayName = CSTRING(Hydra70_DAGR_6x);
count = 6; count = 6;
pylonWeapon = QGVAR(dagr); pylonWeapon = QGVAR(dagr);
}; };
class PylonRack_12Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles { class PylonRack_12Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR"; ammo = "ACE_Hydra70_DAGR";
displayName = "12x DAGR [ACE]"; displayName = CSTRING(Hydra70_DAGR_12x);
count = 12; count = 12;
pylonWeapon = QGVAR(dagr); pylonWeapon = QGVAR(dagr);
}; };
class PylonRack_24Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles { class PylonRack_24Rnd_ACE_DAGR: PylonRack_12Rnd_PG_missiles {
ammo = "ACE_Hydra70_DAGR"; ammo = "ACE_Hydra70_DAGR";
displayName = "24x DAGR [ACE]"; displayName = CSTRING(Hydra70_DAGR_24x);
count = 24; count = 24;
pylonWeapon = QGVAR(dagr); pylonWeapon = QGVAR(dagr);
}; };

View File

@ -16,7 +16,7 @@ class GVAR(gpsAttackOptionsUI) {
class controlsBackground { class controlsBackground {
class Header: RscText { class Header: RscText {
idc = -1; idc = -1;
text = "temp a [header]"; text = CSTRING(GPS_ui_header);
x = 13.5 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 13.5 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 5 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 5 * GUI_GRID_H + GUI_GRID_CENTER_Y;
w = 18 * GUI_GRID_W; w = 18 * GUI_GRID_W;
@ -36,7 +36,7 @@ class GVAR(gpsAttackOptionsUI) {
class controls { class controls {
class TOOButton: RscButton { class TOOButton: RscButton {
idc = GPS_UI_TOO; idc = GPS_UI_TOO;
text = "TARGET OF OPPORTUNITY"; text = CSTRING(GPS_ui_too);
onButtonClick = QUOTE([GPS_UI_TOO] call FUNC(gps_modeSelect)); onButtonClick = QUOTE([GPS_UI_TOO] call FUNC(gps_modeSelect));
x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 6.3 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 6.3 * GUI_GRID_H + GUI_GRID_CENTER_Y;
@ -49,7 +49,7 @@ class GVAR(gpsAttackOptionsUI) {
class PPButton: RscButton { class PPButton: RscButton {
idc = GPS_UI_PB; idc = GPS_UI_PB;
text = "PRE-PLANNED"; text = CSTRING(GPS_ui_pp);
onButtonClick = QUOTE([GPS_UI_PB] call FUNC(gps_modeSelect)); onButtonClick = QUOTE([GPS_UI_PB] call FUNC(gps_modeSelect));
x = 26 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 26 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 6.3 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 6.3 * GUI_GRID_H + GUI_GRID_CENTER_Y;
@ -62,7 +62,7 @@ class GVAR(gpsAttackOptionsUI) {
class PPMission: RscText { class PPMission: RscText {
idc = GPS_UI_PB_MISSION; idc = GPS_UI_PB_MISSION;
text = "PP 1"; text = CSTRING(GPS_ui_pp_short);
onButtonClick = ""; onButtonClick = "";
x = 27.5 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 27.5 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 7.5 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 7.5 * GUI_GRID_H + GUI_GRID_CENTER_Y;
@ -103,7 +103,7 @@ class GVAR(gpsAttackOptionsUI) {
class TargetPosXText: RscText { class TargetPosXText: RscText {
idc = -1; idc = -1;
text = "Easting"; text = CSTRING(GPS_ui_easting);
x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 8.5 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 8.5 * GUI_GRID_H + GUI_GRID_CENTER_Y;
w = 3 * GUI_GRID_W; w = 3 * GUI_GRID_W;
@ -128,7 +128,7 @@ class GVAR(gpsAttackOptionsUI) {
class TargetPosYText: RscText { class TargetPosYText: RscText {
idc = -1; idc = -1;
text = "Northing"; text = CSTRING(GPS_ui_northing);
x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y;
w = 3 * GUI_GRID_W; w = 3 * GUI_GRID_W;
@ -146,7 +146,7 @@ class GVAR(gpsAttackOptionsUI) {
class TargetPosHeightText: RscText { class TargetPosHeightText: RscText {
idc = -1; idc = -1;
text = "Height"; text = CSTRING(GPS_ui_altitude);
x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 14 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 11.7 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 11.7 * GUI_GRID_H + GUI_GRID_CENTER_Y;
w = 3 * GUI_GRID_W; w = 3 * GUI_GRID_W;
@ -176,7 +176,7 @@ class GVAR(gpsAttackOptionsUI) {
class ImpactAngleText: RscText { class ImpactAngleText: RscText {
idc = -1; idc = -1;
text = "Impact Angle"; text = CSTRING(GPS_ui_impact_angle);
x = 21 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 21 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y;
w = 4 * GUI_GRID_W; w = 4 * GUI_GRID_W;
@ -201,7 +201,7 @@ class GVAR(gpsAttackOptionsUI) {
class AttackHeadingText: RscText { class AttackHeadingText: RscText {
idc = -1; idc = -1;
text = "Attack Heading"; text = CSTRING(GPS_ui_attack_heading);
x = 21 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 21 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 11 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 11 * GUI_GRID_H + GUI_GRID_CENTER_Y;
w = 5 * GUI_GRID_W; w = 5 * GUI_GRID_W;
@ -226,7 +226,7 @@ class GVAR(gpsAttackOptionsUI) {
class CancelButton: RscButton { class CancelButton: RscButton {
idc = -1; idc = -1;
text = "temp b [cancel]"; text = CSTRING(GPS_ui_cancel);
onButtonClick = QUOTE(closeDialog 0); onButtonClick = QUOTE(closeDialog 0);
x = 13.5 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 13.5 * GUI_GRID_W + GUI_GRID_CENTER_X;
y = 14.2 * GUI_GRID_H + GUI_GRID_CENTER_Y; y = 14.2 * GUI_GRID_H + GUI_GRID_CENTER_Y;
@ -238,7 +238,7 @@ class GVAR(gpsAttackOptionsUI) {
}; };
class ConfirmButton: CancelButton { class ConfirmButton: CancelButton {
idc = IDC_TIMER_CONFIRM; idc = IDC_TIMER_CONFIRM;
text = "temp c [confirm]"; text = CSTRING(GPS_ui_confirm);
onButtonClick = QUOTE([] call FUNC(gps_confirm)); onButtonClick = QUOTE([] call FUNC(gps_confirm));
x = 26.5 * GUI_GRID_W + GUI_GRID_CENTER_X; x = 26.5 * GUI_GRID_W + GUI_GRID_CENTER_X;
}; };

View File

@ -25,7 +25,7 @@
}; };
[_mode, true] call FUNC(gps_modeSelect); [_mode, true] call FUNC(gps_modeSelect);
(_display displayCtrl GPS_UI_PB_MISSION) ctrlSetText format ["PP %1", GVAR(gps_pbMode) + 1]; (_display displayCtrl GPS_UI_PB_MISSION) ctrlSetText format ["%1 %2", localize LSTRING(GPS_ui_pp_short), GVAR(gps_pbMode) + 1];
// update current settings // update current settings
GVAR(gps_uiPerFrameHandler) = [{ GVAR(gps_uiPerFrameHandler) = [{

View File

@ -32,5 +32,5 @@ if (_direction > 0) then {
}; };
[GVAR(gps_pbMode)] call FUNC(gps_loadAttackSettings); [GVAR(gps_pbMode)] call FUNC(gps_loadAttackSettings);
(_display displayCtrl GPS_UI_PB_MISSION) ctrlSetText format ["PP %1", GVAR(gps_pbMode) + 1]; (_display displayCtrl GPS_UI_PB_MISSION) ctrlSetText format ["%1 %2", localize LSTRING(GPS_ui_pp_short), GVAR(gps_pbMode) + 1];

View File

@ -205,5 +205,47 @@
<Chinese>循環切換開火模式</Chinese> <Chinese>循環切換開火模式</Chinese>
<Turkish>Ateşleme Modunu Değiştir</Turkish> <Turkish>Ateşleme Modunu Değiştir</Turkish>
</Key> </Key>
<Key ID="STR_ACE_MissileGuidance_Hydra70_DAGR_6x">
<English>6x DAGR [ACE]</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_Hydra70_DAGR_12x">
<English>12x DAGR [ACE]</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_Hydra70_DAGR_24x">
<English>24x DAGR [ACE]</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_header">
<English>GPS Weapon Setup</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_too">
<English>TARGET OF OPPORTUNITY</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_pp">
<English>PRE-PLANNED</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_easting">
<English>Easting</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_northing">
<English>Northing</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_altitude">
<English>Altitude</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_impact_angle">
<English>Impact Angle</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_attack_heading">
<English>Attack Heading</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_cancel">
<English>Cancel</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_confirm">
<English>Confirm</English>
</Key>
<Key ID="STR_ACE_MissileGuidance_GPS_ui_pp_short">
<English>PP</English>
</Key>
</Package> </Package>
</Project> </Project>