Added new release, updated nodes to contain tooltip text.
This commit is contained in:
@@ -103,7 +103,7 @@ public partial class CodingWindow : PanelContainer
|
||||
};
|
||||
nodeListButton.MouseEntered += () =>
|
||||
{
|
||||
nodeTooltip.ShowTooltip(nodeTemplate.DisplayText, nodeTemplate.DisplayText, nodeListButton);
|
||||
nodeTooltip.ShowTooltip(nodeTemplate.DisplayText, nodeTemplate.TooltipText, nodeListButton);
|
||||
};
|
||||
nodeListButton.MouseExited += () =>
|
||||
{
|
||||
|
||||
@@ -10,10 +10,10 @@ public partial class NodeTooltip : PanelContainer
|
||||
|
||||
public void ShowTooltip(string titleText, string descriptionText, Button button)
|
||||
{
|
||||
Show();
|
||||
title.Text = titleText;
|
||||
image.Texture = ResourceLoader.LoadDSLTooltip(titleText);
|
||||
description.Text = descriptionText;
|
||||
Show();
|
||||
Position = button.GlobalPosition - spacing - new Vector2(Size.X, Size.Y/2);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public partial class TutorialBubble : PanelContainer
|
||||
"You do not walk through the ruin yourself. Your robots explore, harvest, craft and carry progress for you.",
|
||||
"The top bar shows survival pressure: energy, water and food. If those run out, the expedition ends.",
|
||||
"The necessary resources will be auto-consumed during your time here.",
|
||||
"For energy: steam, battery v1 and battery v2. For thirst: water. For food: mushrooms.",
|
||||
"For energy: coal, steam, battery v1 and battery v2. For thirst: water. For food: mushrooms.",
|
||||
"Try to keep a stock of those items to avoid dying in this ruin.",
|
||||
"Open the robot panel (Default: [R]) to inspect your robots. A robot can overheat, lose maintenance and slow down if ignored.",
|
||||
"An overheated robot has to cool down for a while and cannot execute scripts.",
|
||||
|
||||
Reference in New Issue
Block a user