hard-coded TooltipTemplate to YAML

This commit is contained in:
Matthias Mailänder
2014-03-29 20:02:52 +01:00
parent d514689ec7
commit 64b4f62af0
4 changed files with 5 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.RA.Widgets
public enum ResourceBarStyle { Flat, Bevelled }
public class ResourceBarWidget : Widget
{
public readonly string TooltipTemplate = "SIMPLE_TOOLTIP";
public readonly string TooltipTemplate;
public readonly string TooltipContainer;
Lazy<TooltipContainerWidget> tooltipContainer;

View File

@@ -276,6 +276,7 @@ Container@PLAYER_WIDGETS:
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
TooltipTemplate:SIMPLE_TOOLTIP
IndicatorImage:indicator-left
Background@SILOBAR_PANEL:
X:180
@@ -290,6 +291,7 @@ Container@PLAYER_WIDGETS:
Width:PARENT_RIGHT-2
Height:PARENT_BOTTOM-2
TooltipContainer:TOOLTIP_CONTAINER
TooltipTemplate:SIMPLE_TOOLTIP
IndicatorImage:indicator-right
Label@CASH:
Y:170

View File

@@ -49,6 +49,7 @@ Container@PLAYER_WIDGETS:
Width:138
Height:5
TooltipContainer:TOOLTIP_CONTAINER
TooltipTemplate:SIMPLE_TOOLTIP
IndicatorImage:power-indicator
Orientation:Horizontal
Style:Bevelled

View File

@@ -49,6 +49,7 @@ Container@PLAYER_WIDGETS:
Width:138
Height:5
TooltipContainer:TOOLTIP_CONTAINER
TooltipTemplate:SIMPLE_TOOLTIP
IndicatorImage:power-indicator
Orientation:Horizontal
Style:Bevelled