diff --git a/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorSelectorLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorSelectorLogic.cs index 86f36e6d07..266f7464b3 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorSelectorLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorSelectorLogic.cs @@ -137,7 +137,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic item.IsVisible = () => true; var tooltip = actor.TraitInfoOrDefault(); - item.GetTooltipText = () => tooltip == null ? actor.Name : tooltip.Name + " (" + actor.Name + ")"; + item.GetTooltipText = () => (tooltip == null ? "\nType: " : tooltip.Name + "\nType: ") + actor.Name; panel.AddChild(item); } diff --git a/mods/cnc/chrome/editor.yaml b/mods/cnc/chrome/editor.yaml index f05ab8c091..f1ea147ec7 100644 --- a/mods/cnc/chrome/editor.yaml +++ b/mods/cnc/chrome/editor.yaml @@ -329,6 +329,7 @@ Container@EDITOR_WORLD_ROOT: Visible: false Width: PARENT_RIGHT - 35 TooltipContainer: TOOLTIP_CONTAINER + TooltipTemplate: TWO_LINE_TOOLTIP IgnoreChildMouseOver: true Children: ActorPreview@ACTOR_PREVIEW: diff --git a/mods/cnc/chrome/tooltips.yaml b/mods/cnc/chrome/tooltips.yaml index 4edecb9033..8d4d470f6a 100644 --- a/mods/cnc/chrome/tooltips.yaml +++ b/mods/cnc/chrome/tooltips.yaml @@ -8,6 +8,21 @@ Background@SIMPLE_TOOLTIP: Height: 23 Font: Bold +Background@TWO_LINE_TOOLTIP: + Logic: ButtonTooltipLogic + Background: panel-black + Height: 48 + Children: + Label@LABEL: + X: 5 + Height: 46 + Font: Bold + Label@HOTKEY: + Visible: false + TextColor: FFFF00 + Height: 23 + Font: Bold + Background@BUTTON_TOOLTIP: Logic: ButtonTooltipLogic Background: panel-black diff --git a/mods/d2k/chrome/tooltips.yaml b/mods/d2k/chrome/tooltips.yaml index 5d3843c90a..1417d3b3af 100644 --- a/mods/d2k/chrome/tooltips.yaml +++ b/mods/d2k/chrome/tooltips.yaml @@ -9,6 +9,23 @@ Background@SIMPLE_TOOLTIP: Height: 23 Font: Bold +Background@TWO_LINE_TOOLTIP: + Logic: ButtonTooltipLogic + Background: dialog3 + Height: 54 + Children: + Label@LABEL: + X: 5 + Y: 3 + Height: 46 + Font: Bold + Label@HOTKEY: + Visible: false + Y: 3 + Height: 23 + TextColor: FFFF00 + Font: Bold + Background@BUTTON_TOOLTIP: Logic: ButtonTooltipLogic Background: dialog3 diff --git a/mods/ra/chrome/editor.yaml b/mods/ra/chrome/editor.yaml index 27ba3622ba..d3a06af92f 100644 --- a/mods/ra/chrome/editor.yaml +++ b/mods/ra/chrome/editor.yaml @@ -307,6 +307,7 @@ Container@EDITOR_WORLD_ROOT: Visible: false Width: PARENT_RIGHT - 35 TooltipContainer: TOOLTIP_CONTAINER + TooltipTemplate: TWO_LINE_TOOLTIP IgnoreChildMouseOver: true Children: ActorPreview@ACTOR_PREVIEW: diff --git a/mods/ra/chrome/tooltips.yaml b/mods/ra/chrome/tooltips.yaml index 455a225bbe..ba039de479 100644 --- a/mods/ra/chrome/tooltips.yaml +++ b/mods/ra/chrome/tooltips.yaml @@ -9,6 +9,23 @@ Background@SIMPLE_TOOLTIP: Height: 23 Font: Bold +Background@TWO_LINE_TOOLTIP: + Logic: ButtonTooltipLogic + Background: dialog4 + Height: 52 + Children: + Label@LABEL: + X: 7 + Y: 2 + Height: 46 + Font: Bold + Label@HOTKEY: + Visible: false + Y: 2 + Height: 23 + TextColor: FFFF00 + Font: Bold + Background@BUTTON_TOOLTIP: Logic: ButtonTooltipLogic Background: dialog4