Interactable interface

This commit is contained in:
MaddoScientisto 2025-03-09 21:58:25 +01:00
commit 54d9824581
27 changed files with 102 additions and 61 deletions

View file

@ -5,8 +5,9 @@ using Cirno.Scripts;
public partial class Activable : Area2D, IActivable
{
public virtual void Activate(ActivationType activationType = ActivationType.Toggle)
public virtual bool Activate(ActivationType activationType = ActivationType.Toggle)
{
//Debug.WriteLine("Activated");
return true;
}
}

View file

@ -1124,31 +1124,36 @@ stretch_mode = 5
[node name="l1_forest" type="TextureRect" parent="MarginContainer/ImagesContainer/Intro1"]
layout_mode = 0
offset_right = 256.0
offset_left = -13.915
offset_right = 242.085
offset_bottom = 100.0
texture = ExtResource("20_jmnog")
[node name="l2_forest" type="TextureRect" parent="MarginContainer/ImagesContainer/Intro1"]
layout_mode = 0
offset_right = 256.0
offset_left = -37.65
offset_right = 218.35
offset_bottom = 100.0
texture = ExtResource("21_kvayf")
[node name="l3_forest" type="TextureRect" parent="MarginContainer/ImagesContainer/Intro1"]
layout_mode = 0
offset_right = 256.0
offset_left = -80.0
offset_right = 176.0
offset_bottom = 100.0
texture = ExtResource("22_ypu2s")
[node name="l4_forest" type="TextureRect" parent="MarginContainer/ImagesContainer/Intro1"]
layout_mode = 0
offset_right = 256.0
offset_left = -100.0
offset_right = 156.0
offset_bottom = 100.0
texture = ExtResource("23_1hkdx")
[node name="l5_forest" type="TextureRect" parent="MarginContainer/ImagesContainer/Intro1"]
layout_mode = 0
offset_right = 256.0
offset_left = -120.0
offset_right = 136.0
offset_bottom = 100.0
texture = ExtResource("24_mqbwl")
@ -1312,10 +1317,9 @@ stretch_mode = 5
[node name="Intro11-Crystal" type="TextureRect" parent="MarginContainer/ImagesContainer/Intro11"]
layout_mode = 2
offset_left = 41.0
offset_top = 34.0
offset_right = 89.0
offset_bottom = 66.0
offset_left = 150.0
offset_right = 198.0
offset_bottom = 32.0
texture = ExtResource("19_paaiq")
stretch_mode = 5

View file

@ -44,7 +44,7 @@ public partial class Interactable : Area2D, IInteractable
return true;
}
public virtual bool Activate()
public virtual bool Activate(ActivationType activationType = ActivationType.Toggle)
{
return true;
}

File diff suppressed because one or more lines are too long