Skip to content

Commit 31f64c1

Browse files
committed
Add Missiles tab to command menu above Orders tab
Configure the integral menu to display missile commands (EOS, Seismic, Shockley, Inferno, Reef, Trinity, and Zeno) in a dedicated Missiles tab above the Orders tab. Add display configurations for each missile command with icons and tooltips. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GiaPfKSj8kGFjaUPyxYYHd
1 parent e7ecd5e commit 31f64c1

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

LuaUI/Configs/integral_menu_config.lua

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,36 @@ local factoryButtonLayoutOverride = {
476476
}
477477
}
478478

479+
-- Missile command display configurations
480+
commandDisplayConfig[39610] = { texture = imageDir .. 'Bold/attack.png', tooltip = "Launch EOS: Tactical nuclear missile."}
481+
commandDisplayConfig[39611] = { texture = imageDir .. 'Bold/attack.png', tooltip = "Launch Seismic: Area denial seismic missile."}
482+
commandDisplayConfig[39612] = { texture = imageDir .. 'Bold/attack.png', tooltip = "Launch Shockley: EMP missile."}
483+
commandDisplayConfig[39613] = { texture = imageDir .. 'Bold/attack.png', tooltip = "Launch Inferno: Napalm missile."}
484+
commandDisplayConfig[39614] = { texture = imageDir .. 'Bold/attack.png', tooltip = "Launch Reef Missile: Naval missile."}
485+
commandDisplayConfig[39615] = { texture = imageDir .. 'Bold/attack.png', tooltip = "Launch Trinity: Long-range nuclear missile."}
486+
commandDisplayConfig[39616] = { texture = imageDir .. 'Bold/attack.png', tooltip = "Launch Zeno: Slow homing missile."}
487+
479488
local commandPanels = {
489+
{
490+
humanName = "Missiles",
491+
name = "missiles",
492+
inclusionFunction = function(cmdID)
493+
return (cmdID == 39610 or cmdID == 39611 or cmdID == 39612 or
494+
cmdID == 39613 or cmdID == 39614 or cmdID == 39615 or cmdID == 39616)
495+
end,
496+
loiterable = true,
497+
buttonLayoutConfig = buttonLayoutConfig.command,
498+
},
480499
{
481500
humanName = "Orders",
482501
name = "orders",
483502
inclusionFunction = function(cmdID, factoryUnitDefID, forceOrdersCommand, unitMobilePanelSize)
484503
return ((cmdID >= 0 or unitMobilePanelSize == 1) and
485504
not buildCmdEconomy[cmdID] and not buildCmdFactory[cmdID] and
486505
not buildCmdSpecial[cmdID] and not buildCmdDefence[cmdID] and
487-
not plateCommandID[cmdID])
506+
not plateCommandID[cmdID] and
507+
not (cmdID == 39610 or cmdID == 39611 or cmdID == 39612 or
508+
cmdID == 39613 or cmdID == 39614 or cmdID == 39615 or cmdID == 39616))
488509
end,
489510
loiterable = true,
490511
buttonLayoutConfig = buttonLayoutConfig.command,

0 commit comments

Comments
 (0)