2026-08-01 11:16:21 -04:00
|
|
|
class_name EmoteRadialMenu
|
2026-08-16 19:57:38 -04:00
|
|
|
extends RadialActionMenu
|
2026-08-01 11:16:21 -04:00
|
|
|
|
|
|
|
|
signal emote_selected(emote_id: StringName)
|
|
|
|
|
|
|
|
|
|
const SECTOR_COUNT: int = 8
|
|
|
|
|
const SIT_SECTOR: int = 0
|
|
|
|
|
|
2026-08-03 20:49:19 -04:00
|
|
|
|
2026-08-16 19:57:38 -04:00
|
|
|
func _input_action_name() -> StringName:
|
|
|
|
|
return &"open_emotes"
|
2026-08-03 20:49:19 -04:00
|
|
|
|
2026-08-01 11:16:21 -04:00
|
|
|
|
2026-08-16 19:57:38 -04:00
|
|
|
func _sector_count() -> int:
|
|
|
|
|
return SECTOR_COUNT
|
2026-08-01 11:16:21 -04:00
|
|
|
|
|
|
|
|
|
2026-08-16 19:57:38 -04:00
|
|
|
func _initial_sector() -> int:
|
|
|
|
|
return SIT_SECTOR
|
2026-08-01 11:16:21 -04:00
|
|
|
|
|
|
|
|
|
2026-08-16 19:57:38 -04:00
|
|
|
func _label_for_sector(sector: int) -> String:
|
|
|
|
|
return "Sit" if sector == SIT_SECTOR else ""
|
2026-08-01 11:16:21 -04:00
|
|
|
|
|
|
|
|
|
2026-08-16 19:57:38 -04:00
|
|
|
func _emit_selected_sector(sector: int) -> void:
|
|
|
|
|
if sector == SIT_SECTOR:
|
|
|
|
|
emote_selected.emit(&"sit")
|