32 lines
620 B
GDScript
32 lines
620 B
GDScript
@tool
|
|
extends AnnounceObject
|
|
class_name AnnounceModel
|
|
|
|
const ORCHID_3D_SCENE = preload("res://entities/player_3d/resources/3d_orchid.blend")
|
|
|
|
@export var text : String
|
|
|
|
|
|
func _init(
|
|
_text := text
|
|
):
|
|
text = _text
|
|
|
|
func get_3d_object() -> Node3D:
|
|
return ORCHID_3D_SCENE.instantiate()
|
|
|
|
func get_title() -> String:
|
|
return "MODEL_HAS_BEEN_UPGRADED"
|
|
|
|
func get_text() -> String:
|
|
return text
|
|
|
|
func get_camera_z_pos() -> float:
|
|
return 5.
|
|
|
|
func get_card_info() -> CardInfo:
|
|
return null
|
|
|
|
func _on_dismiss():
|
|
pass
|
|
# GameInfo.game_data.player_data.tool_discovered.append(tool_item.get_item_name()) |