iuno
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
script = ExtResource("1_acaen")
|
||||
actionBox = NodePath("UI/ActionBox")
|
||||
battleFighterScenes = NodePath("Fighters")
|
||||
cursorScenes = NodePath("")
|
||||
cursorScenes = NodePath("UI/Cursors")
|
||||
metadata/_custom_type_script = "uid://dihfp05x6pktn"
|
||||
|
||||
[node name="UI" type="Control" parent="."]
|
||||
|
||||
@@ -13,4 +13,4 @@ func getPriority() -> float:
|
||||
return 1.0
|
||||
|
||||
func execute(cutscene:Cutscene) -> void:
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -34,7 +34,7 @@ func _process(delta: float) -> void:
|
||||
func _updatePosition() -> void:
|
||||
# Walk up the tree until BattleScene is found.
|
||||
var battleScene:BattleScene = null
|
||||
var currentNode:Node = self
|
||||
var currentNode:Node = self.get_parent()
|
||||
while currentNode != null:
|
||||
if currentNode is BattleScene:
|
||||
battleScene = currentNode
|
||||
@@ -42,7 +42,7 @@ func _updatePosition() -> void:
|
||||
currentNode = currentNode.get_parent()
|
||||
|
||||
if battleScene == null:
|
||||
push_error("BattleCursorIcon could not find BattleScene in parent nodes.")
|
||||
#push_error("BattleCursorIcon could not find BattleScene in parent nodes.")
|
||||
return
|
||||
|
||||
var targetFighter:BattleFighterScene = battleScene.getFighterSceneAtPosition(battlePosition)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="Script" uid="uid://c2lye3hasxnkj" path="res://battle/ui/action/BattleCursorIcon.gd" id="1_cpfvx"]
|
||||
|
||||
[node name="Control" type="ColorRect"]
|
||||
anchors_preset = -1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
|
||||
Reference in New Issue
Block a user