33 lines
804 B
GDScript
33 lines
804 B
GDScript
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
|
|
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
|