Fix task module attribute layout

This commit is contained in:
Jacob Schmidt 2026-06-05 18:00:54 -05:00
parent 0d2e52ff81
commit ea53b31456
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,6 @@ class CfgVehicles {
class Module_F: Logic {
class AttributesBase {
class Edit;
class EditMulti;
class Combo;
};
class ModuleDescription {};

View File

@ -50,11 +50,12 @@
tooltip = "Optional title shown in CAD, the map task list, and task notifications. Leave blank to use the Forge default."; \
typeName = "STRING"; \
}; \
class TaskDescription: EditMulti { \
class TaskDescription: Edit { \
property = QUOTE(DOUBLES(PREFIX,TaskDescription)); \
displayName = "Task Description"; \
tooltip = "Optional description shown in CAD and the map task list. Leave blank to use the Forge default."; \
typeName = "STRING"; \
control = "EditMulti5"; \
}; \
class TaskIcon: Combo { \
property = QUOTE(DOUBLES(PREFIX,TaskIcon)); \
@ -63,7 +64,7 @@
typeName = "STRING"; \
defaultValue = QUOTE(DEFAULT_ICON); \
class Values { \
class AirDrop { name = "airdrop"; value = "airdrop"; picture = "\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\airdrop_ca.paa"; }; \
class AirDrop { name = "airdrop"; value = "airdrop"; picture = "\a3\ui_f_orange\data\cfgTaskTypes\airdrop_ca.paa"; }; \
class Armor { name = "armor"; value = "armor"; picture = "\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\armor_ca.paa"; }; \
class Attack { name = "attack"; value = "attack"; picture = "\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\attack_ca.paa"; }; \
class Backpack { name = "backpack"; value = "backpack"; picture = "\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\backpack_ca.paa"; }; \

View File

@ -71,7 +71,7 @@ private _taskTitle = _logic getVariable ["TaskTitle", ""];
if (_taskTitle isEqualTo "") then { _taskTitle = format ["Hostage Rescue: %1", _taskID]; };
private _taskDescription = _logic getVariable ["TaskDescription", ""];
if (_taskDescription isEqualTo "") then { _taskDescription = "Locate and rescue the hostages and bring them to the extraction zone."; };
private _taskIcon = _logic getVariable ["TaskIcon", "help"];
private _taskIcon = _logic getVariable ["TaskIcon", "heal"];
private _display = [
_taskID,
_taskTitle,