mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-01-19 19:44:46 +00:00
🔥 drop iff depth_test var
This commit is contained in:
parent
696c349b67
commit
81c4212c2e
|
|
@ -18,7 +18,6 @@ center_offset = Vector3(0, 0.09, 0)
|
|||
script = ExtResource("1_g6kgb")
|
||||
border = 0.4
|
||||
billboard = 1
|
||||
depth_test = true
|
||||
|
||||
[node name="Username" type="Label3D" parent="."]
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ signal background_changed(color : Color)
|
|||
signal billboard_changed(new_billboard : int)
|
||||
signal username_changed(new_username : String)
|
||||
signal border_changed(new_border : float)
|
||||
signal depth_test_changed(new_depth_test : bool)
|
||||
|
||||
# If `true`, the waypoint fades as the camera get closer.
|
||||
#@export var fade : bool = true
|
||||
|
|
@ -62,11 +61,6 @@ signal depth_test_changed(new_depth_test : bool)
|
|||
billboard = new_billboard
|
||||
billboard_changed.emit(billboard)
|
||||
|
||||
@export var depth_test : bool = false:
|
||||
set(new_depth_test):
|
||||
depth_test = new_depth_test
|
||||
depth_test_changed.emit(new_depth_test)
|
||||
|
||||
@onready var label : Label3D = $Username
|
||||
@onready var chevron : Sprite3D = $Chevron
|
||||
@onready var hbar : ProgressBar3D = $HealthBar
|
||||
|
|
@ -95,11 +89,6 @@ func _on_fill_changed(color : Color) -> void:
|
|||
|
||||
func _on_health_changed(new_value : float) -> void:
|
||||
hbar.value = new_value
|
||||
|
||||
func _on_depth_test_changed(new_depth_test : bool) -> void:
|
||||
label.no_depth_test = !new_depth_test
|
||||
#hbar.no_depth_test = !new_depth_test
|
||||
chevron.no_depth_test = !new_depth_test
|
||||
|
||||
func _enter_tree() -> void:
|
||||
if not username_changed.is_connected(_on_username_changed):
|
||||
|
|
@ -114,5 +103,3 @@ func _enter_tree() -> void:
|
|||
border_changed.connect(_on_border_changed)
|
||||
if not billboard_changed.is_connected(_on_billboard_changed):
|
||||
billboard_changed.connect(_on_billboard_changed)
|
||||
if not depth_test_changed.is_connected(_on_depth_test_changed):
|
||||
depth_test_changed.connect(_on_depth_test_changed)
|
||||
|
|
|
|||
Loading…
Reference in a new issue