-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TM] Update Intercom #1767
base: master
Are you sure you want to change the base?
[TM] Update Intercom #1767
Conversation
Reviewer's Guide by SourceryThis pull request updates the intercom sprite, adds a microphone auto-off timer, and allows the intercom's range to be configured in its UI. Sequence diagram for intercom microphone auto-off behaviorsequenceDiagram
actor User
participant I as Intercom
participant T as Timer
User->>I: Toggle broadcast on
I->>T: Start mic timer
Note over I,T: Timer set for 20 seconds
alt User speaks
User->>I: Talk into intercom
I->>T: Reset timer
else Timer expires
T->>I: Disable mic
I->>I: Set broadcasting = false
I->>I: Update icon
end
Class diagram for updated Radio and Intercom classesclassDiagram
class Radio {
+max_hear_range: number
+has_fixed_hear_range: bool
+overlay_speaker_idle: string
+overlay_speaker_active: string
+overlay_mic_idle: string
+overlay_mic_active: string
+Initialize()
+ToggleReception(user)
+ToggleBroadcast(user)
+update_overlays()
}
class Intercom {
+icon_frame: string
+icon_postfix_open: string
+icon_postfix_off: string
+mic_timeout: number
+start_mic_timer()
+disable_mic()
+update_icon_state()
}
Radio <|-- Intercom
note for Radio "Added new overlay and range controls"
note for Intercom "Added auto-off timer for microphone"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Тестовы коммент |
Мне как игроку на ИИ не очень нравится, что микрофон будет выключатся сам. Иногда оставляю его в нужном мне режиме в интересных местах. И ты вроде что-то ещё говорил про уменьшение радиуса, хотя там и так не всегда было слышно. |
Это сделано, чтобы сократить количество случайного шума в канале. Когда интерком с большим радиусом всегда включен, он захватывает много ненужных разговоров. В целом силиконам могу сделать включение без таймаута, а в интерфейс интеркома добавить слайдер для выбора радиуса |
Меня бы это решение полностью устроило бы. Главное, чтобы можно было слушать разговоры людей в комнате нормально. |
Для ревью интерфейса приглашается депутат партии ТГУИ |
💀 |
Что этот PR делает
Портирует с ТГ спрайт интеркома.
Добавляет таймер, по которому микрофон интеркома отключается, если не используется (не применимо при использовании боргом или ИИ).
Позволяет настроить радиус работы интеркома в его интерфейсе.
Почему это хорошо для игры
Красивый спрайт с оверлеями, сокращение случайного спама в каналах.
Изображения изменений
Spoiler
Тестирование
Разобрал и собрал интерком - во всех состояниях норм спрайт.
Подергал микрофон, поговорил - отключился в нужное время.
Дальше ТМ.
Changelog
🆑 Maxiemar
add: Микрофон интеркома теперь автоматически отключается через скорое время, если в него не говорить.
tweak: Включение микрофона интеркома действиями робота или ИИ не приводят к его последующему отключению.
imageadd: Портирован спрайт интеркома с ТГ.
add: Радиус действия интеркома теперь может быть настроен в его интерфейсе.
/:cl:
Summary by Sourcery
Update the intercom sprite and add a microphone auto-off timer.
New Features:
Tests:
Summary by Sourcery
Update the intercom to use the new radio API, add a microphone auto-off timer, and allow range configuration.
New Features:
Tests: