Use Stop button on (production) buildings to reset rally point fixes #20414
This commit is contained in:
@@ -118,6 +118,12 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
public void ResolveOrder(Actor self, Order order)
|
public void ResolveOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
if (order.OrderString == "Stop")
|
||||||
|
{
|
||||||
|
Path.Clear();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (order.OrderString != OrderID)
|
if (order.OrderString != OrderID)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -1387,7 +1387,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
DisableKeyRepeat: true
|
DisableKeyRepeat: true
|
||||||
DisableKeySound: true
|
DisableKeySound: true
|
||||||
TooltipText: Stop
|
TooltipText: Stop
|
||||||
TooltipDesc: Selected units will stop their current activity.\n\nActs immediately on selected units.
|
TooltipDesc: Selected units will stop their current activity.\nSelected buildings will reset their rally point.\n\nActs immediately on selected targets.
|
||||||
TooltipContainer: TOOLTIP_CONTAINER
|
TooltipContainer: TOOLTIP_CONTAINER
|
||||||
TooltipTemplate: BUTTON_TOOLTIP_FACTIONSUFFIX
|
TooltipTemplate: BUTTON_TOOLTIP_FACTIONSUFFIX
|
||||||
Children:
|
Children:
|
||||||
|
|||||||
@@ -330,6 +330,8 @@ PYLE:
|
|||||||
Range: 5c0
|
Range: 5c0
|
||||||
WithBuildingBib:
|
WithBuildingBib:
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: -426,85,0
|
SpawnOffset: -426,85,0
|
||||||
ExitCell: 0,1
|
ExitCell: 0,1
|
||||||
@@ -389,6 +391,8 @@ HAND:
|
|||||||
Range: 5c0
|
Range: 5c0
|
||||||
WithBuildingBib:
|
WithBuildingBib:
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
Priority: 2
|
Priority: 2
|
||||||
SpawnOffset: 512,1024,0
|
SpawnOffset: 512,1024,0
|
||||||
@@ -450,6 +454,8 @@ AFLD:
|
|||||||
RevealsShroud:
|
RevealsShroud:
|
||||||
Range: 7c0
|
Range: 7c0
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: -1024,0,0
|
SpawnOffset: -1024,0,0
|
||||||
ExitCell: 3,1
|
ExitCell: 3,1
|
||||||
@@ -516,6 +522,8 @@ WEAP:
|
|||||||
RequiresCondition: !build-incomplete
|
RequiresCondition: !build-incomplete
|
||||||
Sequence: build-top
|
Sequence: build-top
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: -512,-512,0
|
SpawnOffset: -512,-512,0
|
||||||
ExitCell: 0,1
|
ExitCell: 0,1
|
||||||
@@ -584,6 +592,8 @@ HPAD:
|
|||||||
WithResupplyAnimation:
|
WithResupplyAnimation:
|
||||||
RequiresCondition: !build-incomplete
|
RequiresCondition: !build-incomplete
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
ProductionQueue@GDI:
|
ProductionQueue@GDI:
|
||||||
Type: Aircraft.GDI
|
Type: Aircraft.GDI
|
||||||
DisplayOrder: 4
|
DisplayOrder: 4
|
||||||
@@ -731,6 +741,8 @@ FIX:
|
|||||||
StartRepairingNotification: Repairing
|
StartRepairingNotification: Repairing
|
||||||
StartRepairingTextNotification: Repairing.
|
StartRepairingTextNotification: Repairing.
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Power:
|
Power:
|
||||||
Amount: -20
|
Amount: -20
|
||||||
ProvidesPrerequisite@buildingname:
|
ProvidesPrerequisite@buildingname:
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
DisableKeyRepeat: true
|
DisableKeyRepeat: true
|
||||||
DisableKeySound: true
|
DisableKeySound: true
|
||||||
TooltipText: Stop
|
TooltipText: Stop
|
||||||
TooltipDesc: Selected units will stop their current activity.\n\nActs immediately on selected units.
|
TooltipDesc: Selected units will stop their current activity.\nSelected buildings will reset their rally point.\n\nActs immediately on selected targets.
|
||||||
TooltipContainer: TOOLTIP_CONTAINER
|
TooltipContainer: TOOLTIP_CONTAINER
|
||||||
Children:
|
Children:
|
||||||
Image@ICON:
|
Image@ICON:
|
||||||
|
|||||||
@@ -204,6 +204,8 @@ barracks:
|
|||||||
Range: 3c768
|
Range: 3c768
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Infantry
|
ForceSetType: Infantry
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: 352,576,0
|
SpawnOffset: 352,576,0
|
||||||
ExitCell: 0,2
|
ExitCell: 0,2
|
||||||
@@ -424,6 +426,8 @@ light_factory:
|
|||||||
Sequence: production-welding
|
Sequence: production-welding
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Vehicle
|
ForceSetType: Vehicle
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: 544,-224,0
|
SpawnOffset: 544,-224,0
|
||||||
ExitCell: 2,1
|
ExitCell: 2,1
|
||||||
@@ -496,6 +500,8 @@ heavy_factory:
|
|||||||
Range: 4c768
|
Range: 4c768
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Armor
|
ForceSetType: Armor
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: 256,192,0
|
SpawnOffset: 256,192,0
|
||||||
ExitCell: 0,2
|
ExitCell: 0,2
|
||||||
@@ -641,6 +647,8 @@ starport:
|
|||||||
Range: 3c768
|
Range: 3c768
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Starport
|
ForceSetType: Starport
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: 0,-480,0
|
SpawnOffset: 0,-480,0
|
||||||
ExitCell: 2,2
|
ExitCell: 2,2
|
||||||
@@ -900,6 +908,8 @@ repair_pad:
|
|||||||
FinishRepairingTextNotification: Unit repaired.
|
FinishRepairingTextNotification: Unit repaired.
|
||||||
PlayerExperience: 15
|
PlayerExperience: 15
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
RenderSprites:
|
RenderSprites:
|
||||||
Image: repair_pad.ordos
|
Image: repair_pad.ordos
|
||||||
FactionImages:
|
FactionImages:
|
||||||
@@ -1076,6 +1086,8 @@ palace:
|
|||||||
Tooltip:
|
Tooltip:
|
||||||
Name: Palace
|
Name: Palace
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
D2kBuilding:
|
D2kBuilding:
|
||||||
Footprint: xx= xxx =xx
|
Footprint: xx= xxx =xx
|
||||||
Dimensions: 3,3
|
Dimensions: 3,3
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
DisableKeyRepeat: true
|
DisableKeyRepeat: true
|
||||||
DisableKeySound: true
|
DisableKeySound: true
|
||||||
TooltipText: Stop
|
TooltipText: Stop
|
||||||
TooltipDesc: Selected units will stop their current activity.\n\nActs immediately on selected units.
|
TooltipDesc: Selected units will stop their current activity.\nSelected buildings will reset their rally point.\n\nActs immediately on selected targets.
|
||||||
TooltipContainer: TOOLTIP_CONTAINER
|
TooltipContainer: TOOLTIP_CONTAINER
|
||||||
Children:
|
Children:
|
||||||
Image@ICON:
|
Image@ICON:
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ AFLD:
|
|||||||
ParatroopersPower@paratroopers:
|
ParatroopersPower@paratroopers:
|
||||||
Prerequisites: ~disabled
|
Prerequisites: ~disabled
|
||||||
-RallyPoint:
|
-RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: true
|
||||||
-Sellable:
|
-Sellable:
|
||||||
Demolishable:
|
Demolishable:
|
||||||
-Condition:
|
-Condition:
|
||||||
|
|||||||
@@ -217,6 +217,8 @@ SPEN:
|
|||||||
PlayerExperience: 15
|
PlayerExperience: 15
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Ship
|
ForceSetType: Ship
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
ProductionBar:
|
ProductionBar:
|
||||||
ProductionType: Ship
|
ProductionType: Ship
|
||||||
Power:
|
Power:
|
||||||
@@ -334,6 +336,8 @@ SYRD:
|
|||||||
PlayerExperience: 15
|
PlayerExperience: 15
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Ship
|
ForceSetType: Ship
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
ProductionBar:
|
ProductionBar:
|
||||||
ProductionType: Ship
|
ProductionType: Ship
|
||||||
Power:
|
Power:
|
||||||
@@ -1053,6 +1057,8 @@ WEAP:
|
|||||||
Sequence: build-top
|
Sequence: build-top
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Vehicle
|
ForceSetType: Vehicle
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
RequiresCondition: !being-captured
|
RequiresCondition: !being-captured
|
||||||
SpawnOffset: 213,-128,0
|
SpawnOffset: 213,-128,0
|
||||||
@@ -1412,6 +1418,8 @@ HPAD:
|
|||||||
Facing: 896
|
Facing: 896
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Helicopter
|
ForceSetType: Helicopter
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Production:
|
Production:
|
||||||
Produces: Aircraft, Helicopter
|
Produces: Aircraft, Helicopter
|
||||||
Reservable:
|
Reservable:
|
||||||
@@ -1494,6 +1502,8 @@ AFLD:
|
|||||||
Facing: 768
|
Facing: 768
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Plane
|
ForceSetType: Plane
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Production:
|
Production:
|
||||||
Produces: Aircraft, Plane
|
Produces: Aircraft, Plane
|
||||||
Reservable:
|
Reservable:
|
||||||
@@ -1765,6 +1775,8 @@ BARR:
|
|||||||
WithBuildingBib:
|
WithBuildingBib:
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Infantry
|
ForceSetType: Infantry
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
RequiresCondition: !being-captured
|
RequiresCondition: !being-captured
|
||||||
SpawnOffset: -170,810,0
|
SpawnOffset: -170,810,0
|
||||||
@@ -1841,6 +1853,8 @@ KENN:
|
|||||||
HasMinibib: True
|
HasMinibib: True
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Dog
|
ForceSetType: Dog
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@0:
|
Exit@0:
|
||||||
RequiresCondition: !being-captured
|
RequiresCondition: !being-captured
|
||||||
SpawnOffset: -280,400,0
|
SpawnOffset: -280,400,0
|
||||||
@@ -1928,6 +1942,8 @@ TENT:
|
|||||||
WithBuildingBib:
|
WithBuildingBib:
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
ForceSetType: Infantry
|
ForceSetType: Infantry
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
RequiresCondition: !being-captured
|
RequiresCondition: !being-captured
|
||||||
SpawnOffset: -42,810,0
|
SpawnOffset: -42,810,0
|
||||||
@@ -2014,6 +2030,8 @@ FIX:
|
|||||||
Range: 4c0
|
Range: 4c0
|
||||||
Reservable:
|
Reservable:
|
||||||
RallyPoint:
|
RallyPoint:
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
RepairsUnits:
|
RepairsUnits:
|
||||||
HpPerStep: 1000
|
HpPerStep: 1000
|
||||||
Interval: 7
|
Interval: 7
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ Container@PLAYER_WIDGETS:
|
|||||||
DisableKeyRepeat: true
|
DisableKeyRepeat: true
|
||||||
DisableKeySound: true
|
DisableKeySound: true
|
||||||
TooltipText: Stop
|
TooltipText: Stop
|
||||||
TooltipDesc: Selected units will stop their current activity.\n\nActs immediately on selected units.
|
TooltipDesc: Selected units will stop their current activity.\nSelected buildings will reset their rally point.\n\nActs immediately on selected targets.
|
||||||
TooltipContainer: TOOLTIP_CONTAINER
|
TooltipContainer: TOOLTIP_CONTAINER
|
||||||
Children:
|
Children:
|
||||||
Image@ICON:
|
Image@ICON:
|
||||||
|
|||||||
@@ -134,6 +134,8 @@ GAPILE:
|
|||||||
IsPlayerPalette: false
|
IsPlayerPalette: false
|
||||||
LineWidth: 2
|
LineWidth: 2
|
||||||
ForceSetType: Infantry
|
ForceSetType: Infantry
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: -512,768,0
|
SpawnOffset: -512,768,0
|
||||||
ExitCell: 1,2
|
ExitCell: 1,2
|
||||||
@@ -228,6 +230,8 @@ GAWEAP:
|
|||||||
IsPlayerPalette: false
|
IsPlayerPalette: false
|
||||||
LineWidth: 2
|
LineWidth: 2
|
||||||
ForceSetType: Vehicle
|
ForceSetType: Vehicle
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: -384,-384,0
|
SpawnOffset: -384,-384,0
|
||||||
ExitCell: 3,1
|
ExitCell: 3,1
|
||||||
@@ -303,6 +307,8 @@ GAHPAD:
|
|||||||
IsPlayerPalette: false
|
IsPlayerPalette: false
|
||||||
LineWidth: 2
|
LineWidth: 2
|
||||||
ForceSetType: Air
|
ForceSetType: Air
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Production:
|
Production:
|
||||||
Produces: Air
|
Produces: Air
|
||||||
PauseOnCondition: empdisable
|
PauseOnCondition: empdisable
|
||||||
@@ -369,6 +375,8 @@ GADEPT:
|
|||||||
Palette: mouse
|
Palette: mouse
|
||||||
IsPlayerPalette: false
|
IsPlayerPalette: false
|
||||||
LineWidth: 2
|
LineWidth: 2
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
WithIdleOverlay@LIGHT:
|
WithIdleOverlay@LIGHT:
|
||||||
RequiresCondition: !build-incomplete
|
RequiresCondition: !build-incomplete
|
||||||
Sequence: idle-light
|
Sequence: idle-light
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ NAHAND:
|
|||||||
IsPlayerPalette: false
|
IsPlayerPalette: false
|
||||||
LineWidth: 2
|
LineWidth: 2
|
||||||
ForceSetType: Infantry
|
ForceSetType: Infantry
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Production:
|
Production:
|
||||||
Produces: Infantry
|
Produces: Infantry
|
||||||
PauseOnCondition: empdisable
|
PauseOnCondition: empdisable
|
||||||
@@ -207,6 +209,8 @@ NAWEAP:
|
|||||||
IsPlayerPalette: false
|
IsPlayerPalette: false
|
||||||
LineWidth: 2
|
LineWidth: 2
|
||||||
ForceSetType: Vehicle
|
ForceSetType: Vehicle
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Exit@1:
|
Exit@1:
|
||||||
SpawnOffset: -384,-384,0
|
SpawnOffset: -384,-384,0
|
||||||
ExitCell: 3,1
|
ExitCell: 3,1
|
||||||
@@ -267,6 +271,8 @@ NAHPAD:
|
|||||||
IsPlayerPalette: false
|
IsPlayerPalette: false
|
||||||
LineWidth: 2
|
LineWidth: 2
|
||||||
ForceSetType: Air
|
ForceSetType: Air
|
||||||
|
CommandBarBlacklist:
|
||||||
|
DisableStop: false
|
||||||
Production:
|
Production:
|
||||||
Produces: Air
|
Produces: Air
|
||||||
PauseOnCondition: empdisable
|
PauseOnCondition: empdisable
|
||||||
|
|||||||
Reference in New Issue
Block a user