diff --git a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj index d188a035c1..4fc02caee2 100644 --- a/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj +++ b/OpenRA.Mods.RA/OpenRA.Mods.RA.csproj @@ -465,6 +465,7 @@ + diff --git a/OpenRA.Mods.RA/Tooltip.cs b/OpenRA.Mods.RA/Tooltip.cs new file mode 100644 index 0000000000..c7f5788e69 --- /dev/null +++ b/OpenRA.Mods.RA/Tooltip.cs @@ -0,0 +1,41 @@ +#region Copyright & License Information +/* + * Copyright 2007-2013 The OpenRA Developers (see AUTHORS) + * This file is part of OpenRA, which is free software. It is made + * available to you under the terms of the GNU General Public License + * as published by the Free Software Foundation. For more information, + * see COPYING. + */ +#endregion + +using OpenRA.FileFormats; +using OpenRA.Traits; + +namespace OpenRA.Mods.RA +{ + [Desc("Shown in the build palette widget.")] + public class TooltipInfo : ITraitInfo + { + public readonly string Description = ""; + public readonly string Name = ""; + [Desc("Defaults to actor name + icon suffix.")] + public readonly string Icon = null; + + public virtual object Create(ActorInitializer init) { return new Tooltip(init.self, this); } + } + + public class Tooltip : IToolTip + { + Actor self; + TooltipInfo Info; + + public string Name() { return Info.Name; } + public Player Owner() { return self.Owner; } + + public Tooltip(Actor self, TooltipInfo info) + { + this.self = self; + Info = info; + } + } +} \ No newline at end of file diff --git a/OpenRA.Mods.RA/Valued.cs b/OpenRA.Mods.RA/Valued.cs index 483c6cc23b..50fab488d9 100755 --- a/OpenRA.Mods.RA/Valued.cs +++ b/OpenRA.Mods.RA/Valued.cs @@ -21,30 +21,4 @@ namespace OpenRA.Mods.RA } public class Valued { } - - [Desc("Shown in the build palette widget.")] - public class TooltipInfo : ITraitInfo - { - public readonly string Description = ""; - public readonly string Name = ""; - [Desc("Defaults to actor name + icon suffix.")] - public readonly string Icon = null; - - public virtual object Create(ActorInitializer init) { return new Tooltip(init.self, this); } - } - - public class Tooltip : IToolTip - { - Actor self; - TooltipInfo Info; - - public string Name() { return Info.Name; } - public Player Owner() { return self.Owner; } - - public Tooltip(Actor self, TooltipInfo info) - { - this.self = self; - Info = info; - } - } }