rough mouse-cursor for infantry-only areas
blue move cursor for d2k rally points
This commit is contained in:
Matthias Mailänder
2012-06-30 11:48:14 +02:00
committed by Chris Forbes
parent 11da96fe22
commit 579ff04f68
4 changed files with 19 additions and 2 deletions

View File

@@ -456,6 +456,8 @@ namespace OpenRA.Mods.RA.Move
{
IsQueued = forceQueued;
cursor = "move";
if (self.World.LocalPlayer.Shroud.IsExplored(location) && self.World.GetTerrainType(location) == "Rough")
cursor = "move-rough";
if (!self.World.Map.IsInMap(location) || (self.World.LocalPlayer.Shroud.IsExplored(location) &&
unitType.MovementCostForCell(self.World, location) == int.MaxValue))
cursor = "move-blocked";

View File

@@ -197,6 +197,11 @@ Cursors:
length:4
x:12
y:12
move-rough:
start:0
length: 8
x: 12
y: 12
attackmove:cursor
attackmove:

View File

@@ -180,12 +180,12 @@ Cursors:
x: 12
y: 12
ability:
start:96
start:72
length: 8
x: 12
y: 12
ability-minimap:
start:96
start:72
length: 8
x: 12
y: 12
@@ -237,6 +237,11 @@ Cursors:
length: 1
x: 12
y: 12
move-rough:
start:256
length: 8
x: 12
y: 12
nopower: cursor
powerdown-blocked:

View File

@@ -91,6 +91,11 @@ Cursors:
length: 4
x: 12
y: 12
move-rough:
start:10
length: 4
x: 12
y: 12
move-blocked:
start:14
x: 12