Change default preview facing to 96

92 is not a multiple of 8, and all sprite actors
in the official mods have at most 32 facings.
This commit is contained in:
reaperrr
2019-07-06 01:57:55 +02:00
committed by reaperrr
parent 2b4ad71151
commit 07de3ba5e0
5 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Widgets
readonly PlayerReference owner; readonly PlayerReference owner;
readonly CVec[] footprint; readonly CVec[] footprint;
int facing = 92; int facing = 96;
public EditorActorBrush(EditorViewportControllerWidget editorWidget, ActorInfo actor, PlayerReference owner, WorldRenderer wr) public EditorActorBrush(EditorViewportControllerWidget editorWidget, ActorInfo actor, PlayerReference owner, WorldRenderer wr)
{ {

View File

@@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly int NumberOfTicksToVerifyAvailableAirport = 150; public readonly int NumberOfTicksToVerifyAvailableAirport = 150;
[Desc("Facing to use for actor previews (map editor, color picker, etc)")] [Desc("Facing to use for actor previews (map editor, color picker, etc)")]
public readonly int PreviewFacing = 92; public readonly int PreviewFacing = 96;
[Desc("Display order for the facing slider in the map editor")] [Desc("Display order for the facing slider in the map editor")]
public readonly int EditorFacingDisplayOrder = 3; public readonly int EditorFacingDisplayOrder = 3;

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly HashSet<string> AllowedTerrain = new HashSet<string>(); public readonly HashSet<string> AllowedTerrain = new HashSet<string>();
[Desc("Facing to use for actor previews (map editor, color picker, etc)")] [Desc("Facing to use for actor previews (map editor, color picker, etc)")]
public readonly int PreviewFacing = 92; public readonly int PreviewFacing = 96;
IEnumerable<object> IActorPreviewInitInfo.ActorPreviewInits(ActorInfo ai, ActorPreviewType type) IEnumerable<object> IActorPreviewInitInfo.ActorPreviewInits(ActorInfo ai, ActorPreviewType type)
{ {

View File

@@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string Voice = "Action"; public readonly string Voice = "Action";
[Desc("Facing to use for actor previews (map editor, color picker, etc)")] [Desc("Facing to use for actor previews (map editor, color picker, etc)")]
public readonly int PreviewFacing = 92; public readonly int PreviewFacing = 96;
[Desc("Display order for the facing slider in the map editor")] [Desc("Display order for the facing slider in the map editor")]
public readonly int EditorFacingDisplayOrder = 3; public readonly int EditorFacingDisplayOrder = 3;

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly WVec Offset = WVec.Zero; public readonly WVec Offset = WVec.Zero;
[Desc("Facing to use for actor previews (map editor, color picker, etc)")] [Desc("Facing to use for actor previews (map editor, color picker, etc)")]
public readonly int PreviewFacing = 92; public readonly int PreviewFacing = 96;
[Desc("Display order for the turret facing slider in the map editor")] [Desc("Display order for the turret facing slider in the map editor")]
public readonly int EditorTurretFacingDisplayOrder = 4; public readonly int EditorTurretFacingDisplayOrder = 4;