buckshotroulette-decomp/ColorblindManager.gd
Lyssa a86f69ecf1
reverse v1.2.1 changes
goddammit bob
2024-04-10 22:19:04 +04:00

10 lines
472 B
GDScript

class_name Colorblind extends Node
@export var mat_live : StandardMaterial3D
@export var mat_blank : StandardMaterial3D
@export var mat_emission : StandardMaterial3D
func _ready():
if (GlobalVariables.colorblind): mat_live.albedo_color = GlobalVariables.colorblind_color_live; mat_blank.albedo_color = GlobalVariables.colorblind_color_blank
else: mat_live.albedo_color = GlobalVariables.default_color_live; mat_blank.albedo_color = GlobalVariables.default_color_blank