diary/system/users/user.gd
mono 7d285bd607 - reworked Chat Panel system
- added user switching
- added Topic Panel functionality (features are missing)
- some basic refactoring
2022-05-14 20:51:48 +02:00

32 lines
763 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
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