Dark mode
This commit is contained in:
parent
7786130eca
commit
b6d28329c0
4 changed files with 20 additions and 0 deletions
|
@ -47,3 +47,17 @@ transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -25.89
|
|||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -12.0958, 3.68495, -48.2933)
|
||||
|
||||
[node name="eye_left" type="OmniLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -11.7097, 6.76656, -40.1296)
|
||||
visible = false
|
||||
light_color = Color(1, 0, 0, 1)
|
||||
light_energy = 16.0
|
||||
omni_range = 0.122
|
||||
|
||||
[node name="eye_right" type="OmniLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12.5191, 6.76656, -40.1296)
|
||||
visible = false
|
||||
light_color = Color(1, 0, 0, 1)
|
||||
light_energy = 16.0
|
||||
omni_range = 0.122
|
||||
|
|
|
@ -144,6 +144,7 @@ flat = true
|
|||
|
||||
[node name="musicPanel" type="Panel" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 9.0
|
||||
offset_top = 327.0
|
||||
offset_right = 266.0
|
||||
|
|
|
@ -30,11 +30,15 @@ func _process(delta):
|
|||
environment.background_energy_multiplier = 1
|
||||
environment.ambient_light_sky_contribution = 1
|
||||
$DirectionalLight3D.light_energy = 1
|
||||
$eye_left.visible = false
|
||||
$eye_right.visible = false
|
||||
elif switchOn == true:
|
||||
switchOn = false
|
||||
environment.background_energy_multiplier = 0
|
||||
environment.ambient_light_sky_contribution = 0
|
||||
$DirectionalLight3D.light_energy = 0.1
|
||||
$eye_left.visible = true
|
||||
$eye_right.visible = true
|
||||
|
||||
func walk_right_teddy3(delta, time):
|
||||
ran1 = true
|
||||
|
|
|
@ -14,6 +14,7 @@ func _ready():
|
|||
$AudioStreamPlayer.playing = false
|
||||
if Global.playingGame == false:
|
||||
Global.connectedPlayers = []
|
||||
Networking.connected_peers = []
|
||||
$musicPanel.visible = true
|
||||
$musicPanel/playingLabel.text = musicName
|
||||
$musicPanel/authorLabel.text = musicAuthor
|
||||
|
|
Loading…
Reference in a new issue