19 lines
671 B
GDScript
19 lines
671 B
GDScript
class_name ABGM54ContractNavigation
|
|
extends Control
|
|
|
|
const UIFactory = preload("res://ui/shared/ui_factory.gd")
|
|
var back_text := "返回公会"
|
|
|
|
func configure(next_back_text: String) -> ABGM54ContractNavigation:
|
|
back_text = next_back_text
|
|
return self
|
|
|
|
func _ready() -> void:
|
|
# Page-level navigation owns the semantic label/hit region; the visible
|
|
# button is rendered by ContractActionDock so there is only one caption.
|
|
var label := UIFactory.label(back_text, "micro", 1.0, Color.TRANSPARENT)
|
|
label.name = "ContractNavigationLabel"
|
|
label.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
|
label.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
|
add_child(label)
|