extends Button var show_mes:String="测试消息测试消息测试消息测试消息测试消息测试消息测试消息测试消息测试消息测试消息" enum dir{ left_top=0, left_bottom=1, right_top=2, right_bottom=3 } # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: pass func _on_button_down() -> void: modulate=Color(0.5,0.5,0.5,1) pass # Replace with function body. func _on_button_up() -> void: modulate=Color(1,1,1,1) pass # Replace with function body. func _on_pressed() -> void: var pos=get_global_mouse_position() var label_settings=LabelSettings.new() label_settings.font_size=22 PopUpWindow.pop_up_text(show_mes,pos,200,label_settings) pass # Replace with function body.