rename ChoosePaletteOnSelect

This commit is contained in:
Chris Forbes
2010-08-23 17:47:46 +12:00
parent 952da4efec
commit ccb77dee12
5 changed files with 9 additions and 8 deletions

View File

@@ -29,6 +29,7 @@ namespace OpenRA
{ {
return actors.AsEnumerable().Contains(a); return actors.AsEnumerable().Contains(a);
} }
public void Combine(World world, IEnumerable<Actor> newSelection, bool isCombine, bool isClick) public void Combine(World world, IEnumerable<Actor> newSelection, bool isCombine, bool isClick)
{ {
var oldSelection = actors.AsEnumerable(); var oldSelection = actors.AsEnumerable();

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -226,7 +226,7 @@
<Compile Include="Cloak.cs" /> <Compile Include="Cloak.cs" />
<Compile Include="Modifiers\FrozenUnderFog.cs" /> <Compile Include="Modifiers\FrozenUnderFog.cs" />
<Compile Include="Modifiers\HiddenUnderFog.cs" /> <Compile Include="Modifiers\HiddenUnderFog.cs" />
<Compile Include="World\ChoosePaletteOnSelect.cs" /> <Compile Include="World\ChooseBuildTabOnSelect.cs" />
<Compile Include="Transforms.cs" /> <Compile Include="Transforms.cs" />
<Compile Include="Activities\Transform.cs" /> <Compile Include="Activities\Transform.cs" />
<Compile Include="ActorLostNotification.cs" /> <Compile Include="ActorLostNotification.cs" />

View File

@@ -14,16 +14,16 @@ using OpenRA.Widgets;
namespace OpenRA.Mods.RA.Widgets namespace OpenRA.Mods.RA.Widgets
{ {
class ChoosePaletteOnSelectInfo : ITraitInfo class ChooseBuildTabOnSelectInfo : ITraitInfo
{ {
public object Create( ActorInitializer init ) { return new ChoosePaletteOnSelect( init ); } public object Create( ActorInitializer init ) { return new ChooseBuildTabOnSelect( init ); }
} }
class ChoosePaletteOnSelect : INotifySelection class ChooseBuildTabOnSelect : INotifySelection
{ {
readonly World world; readonly World world;
public ChoosePaletteOnSelect( ActorInitializer init ) public ChooseBuildTabOnSelect( ActorInitializer init )
{ {
world = init.world; world = init.world;
} }

View File

@@ -98,7 +98,7 @@ World:
Country@nod: Country@nod:
Name: Nod Name: Nod
Race: nod Race: nod
ChoosePaletteOnSelect: ChooseBuildTabOnSelect:
BibLayer: BibLayer:
ResourceLayer: ResourceLayer:
ResourceType@green-tib: ResourceType@green-tib:

View File

@@ -94,7 +94,7 @@ World:
LightPaletteRotator: LightPaletteRotator:
BuildingInfluence: BuildingInfluence:
UnitInfluence: UnitInfluence:
ChoosePaletteOnSelect: ChooseBuildTabOnSelect:
BridgeLayer: BridgeLayer:
Bridges: bridge1, bridge2, br1, br2, br3 Bridges: bridge1, bridge2, br1, br2, br3
CrateDrop: CrateDrop: