#include <trx/game/ui/dialogs/sound_settings.h>

#include <trx/game/ui/dialogs/settings_rows.h>
#include <trx/game/ui/dialogs/settings_tabs.h>

UI_SETTINGS_DIALOG_STATE *UI_SoundSettings_Init(void)
{
    const UI_SETTINGS_TAB tabs[] = {
        UI_SettingsTab_MakeEditor(
            GS_ID("general/settings/sound/tabs/volume"),
            CONFIG_TAB_SOUND_VOLUME),
        UI_SettingsTab_MakeEditor(
            GS_ID("general/settings/sound/tabs/misc"), CONFIG_TAB_SOUND_MISC),
    };

    return UI_SettingsDialog_Init(
        GS_ID("general/settings/sound/title"), ARRAY_SIZE(tabs), tabs);
}

void UI_SoundSettings_Free(UI_SETTINGS_DIALOG_STATE *const s)
{
    UI_SettingsDialog_Free(s);
}

bool UI_SoundSettings_Control(UI_SETTINGS_DIALOG_STATE *const s)
{
    return UI_SettingsDialog_Control(s);
}

void UI_SoundSettings(UI_SETTINGS_DIALOG_STATE *const s)
{
    UI_SettingsDialog(s);
}
