challenge-editor/scene/auction_center_mask.gd
2024-10-08 17:01:28 +08:00

15 lines
411 B
GDScript

extends Control
var data:Dictionary={}
const BAG_SIDE_CARD_INTRODUCTION = preload("res://scene/bag_side_card_introduction.tscn")
func _get_tooltip(at_position: Vector2) -> String:
return JSON.stringify(owner.get_now_item())
pass
func _make_custom_tooltip(for_text: String) -> Object:
var new_card=BAG_SIDE_CARD_INTRODUCTION.instantiate()
new_card.data=JSON.parse_string(for_text)
return new_card
pass