Try to make smalle fixes

This commit is contained in:
Sofia 2024-08-20 18:02:19 +03:00
parent fea4df8284
commit b43867b29d
3 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,7 @@ anchor_bottom = 1.0
offset_top = -134.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2
[node name="HoverText" type="Label" parent="CenterContainer2"]
layout_mode = 2

View File

@ -47,6 +47,8 @@ namespace Gmtk24 {
HoverText.Text = $"{FormButtonNames("interact")}: {interactible.InteractName}";
} else {
Hovered?.SetHovered(false);
Hovered = null;
HoverText.Text = "";
}
} else {

View File

@ -82,7 +82,8 @@ namespace Gmtk24 {
}
public void Interact(InputEvent _) {
Orbit.SetEnabled(true);
if (IsEnabled)
Orbit.SetEnabled(true);
}
public override void _Process(double delta) {