fixed positioning of post it on the card
This commit is contained in:
parent
64e479b1a5
commit
d99b9edfdf
|
|
@ -187,7 +187,8 @@ func attach_postit_to_card(postit: Area2D, card: Area2D, update_dict = false):
|
|||
_return_postit_to_panels(postit) # don't attach if card has already a post-it attached
|
||||
return
|
||||
|
||||
postit.reparent(card)
|
||||
postit.reparent(card.get_child(3, true))
|
||||
postit.position = Vector2(0,0)
|
||||
postit.on_board = false
|
||||
postit.set_owner(self)
|
||||
postit.position = card.get_child(3).position
|
||||
|
|
@ -243,6 +244,7 @@ func _input(event):
|
|||
|
||||
if event.is_action_pressed("ui_cancel"):
|
||||
State.leave_stage(self)
|
||||
|
||||
# Return, if the input is a mouse event (mouse events are handled separately)
|
||||
if event is InputEventMouse or !has_stage or not is_instance_valid(currently_selected_node): return
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ theme_type_variation = &"card_text"
|
|||
autowrap_mode = 3
|
||||
|
||||
[node name="postit anchor" type="Node2D" parent="."]
|
||||
position = Vector2(-65.6478, 60.3852)
|
||||
position = Vector2(0, 21)
|
||||
|
||||
[connection signal="input_event" from="." to="." method="_on_input_event"]
|
||||
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue