diary/system/users/user.gd

33 lines
804 B
GDScript3
Raw Normal View History

2022-04-19 14:24:57 +02:00
extends Resource
class_name User
export(String) var username
export(Texture) var profile_image
export(Color) var background_color
export(Color) var panel_color # Color of PanelContainers
export(Color) var popup_menu_color
export(Color) var own_message_color
export(Color) var others_message_color
export(Color) var scroll_bar_color
export(Color) var scroll_bar_highlight_color
export(Color) var scroll_bar_pressed_color
export(Color) var casual_topic_color
export(Color) var daily_topic_color
export(Color) var urgent_topic_color
2022-05-21 14:56:02 +02:00
export(Color) var add_topic_button_color
var message_box_content: String = ""
func is_primary() -> bool:
return self == Users._primary_user
func is_helper() -> bool:
return self == Users._helper_user
func is_current() -> bool:
return self == Users._current_user