|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
Go to the source code of this file.
Functions | |
| static sds | config_path_from_args (int argc, char **argv) |
| static bool | confirm_discard_changes (const DTTR_ImGuiDialogContext *ctx, const config_ui_state *state, const char *action) |
| static void | draw_toolbar (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state) |
| static void | handle_shortcuts (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state) |
| static bool | env_flag_enabled (const char *name) |
| static void | draw_shortcut_debug_row (const char *label, ImGuiKeyChord chord) |
| static void | draw_shortcut_debug_window (const config_ui_state *state) |
| static bool | init_state_from_args (config_ui_state *state, int argc, char **argv) |
| static void | draw_ui (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state) |
| static void | process_events (const DTTR_ImGuiDialogContext *ctx, config_ui_state *state, bool *running) |
| int | dttr_config_main (int argc, char **argv) |
Variables | |
| static const char *const | CONFIG_WINDOW_TITLE = "DttR Configuration" |
| static const char *const | CONFIG_DEBUG_SHORTCUTS_ENV = "DTTR_CONFIG_DEBUG_SHORTCUTS" |
|
static |
Definition at line 8 of file gui.c.
References DTTR_CONFIG_FILENAME, DTTR_Path_ModuleSibling(), and NULL.
Referenced by init_state_from_args().
|
static |
Definition at line 16 of file gui.c.
References config_has_unsaved_changes(), ctx, DTTR_SDL_ShowMessageBox(), NULL, and state.
Referenced by draw_toolbar(), handle_shortcuts(), and process_events().
|
static |
|
static |
|
static |
Definition at line 52 of file gui.c.
References confirm_discard_changes(), ctx, load_config(), NULL, request_reset_defaults(), save_config(), and state.
Referenced by draw_ui().
|
static |
Definition at line 176 of file gui.c.
References add_scaled_vertical_spacing(), begin_config_content_region(), begin_padded_panel(), CONFIG_WINDOW_TITLE, ctx, draw_footer_text(), draw_shortcut_debug_window(), draw_tabs(), draw_toolbar(), DTTR_CONFIG_UI_HEADER_TOP_SPACING, DTTR_ImGuiDialog_DrawHeader(), DTTR_VERSION, end_config_content_region(), end_padded_panel(), handle_shortcuts(), pop_config_theme(), push_config_theme(), and state.
Referenced by dttr_config_main().
| int dttr_config_main | ( | int | argc, |
| char ** | argv ) |
Definition at line 231 of file gui.c.
References CONFIG_WINDOW_TITLE, config_window_width(), ctx, draw_ui(), DTTR_CONFIG_UI_WINDOW_H, DTTR_ImGuiDialog_Begin(), DTTR_ImGuiDialog_BeginRoot(), DTTR_ImGuiDialog_End(), DTTR_ImGuiDialog_EndRoot(), DTTR_ImGuiDialog_NewFrame(), DTTR_ImGuiDialog_RefreshScale(), DTTR_ImGuiDialog_Render(), DTTR_ImGuiDialog_Shutdown(), init_state_from_args(), process_events(), set_status(), and state.
|
static |
Definition at line 84 of file gui.c.
Referenced by init_state_from_args().
|
static |
Definition at line 73 of file gui.c.
References confirm_discard_changes(), ctx, load_config(), save_config(), and state.
Referenced by draw_ui().
|
static |
Definition at line 151 of file gui.c.
References CONFIG_DEBUG_SHORTCUTS_ENV, config_path_from_args(), CONFIG_WINDOW_TITLE, DTTR_Config_SetDefaults(), DTTR_Path_CopySds(), DTTR_SDL_ShowSimpleMessageBox(), env_flag_enabled(), load_config(), NULL, set_mods_dir_from_config_path(), state, and sync_rows_from_config().
Referenced by dttr_config_main().
|
static |
Definition at line 202 of file gui.c.
References cancel_binding(), capture_source(), confirm_discard_changes(), ctx, DTTR_ImGuiDialog_ProcessEvent(), event, event_cancels_binding(), source, source_from_event(), and state.
Referenced by dttr_config_main().
|
static |
Definition at line 6 of file gui.c.
Referenced by init_state_from_args().
|
static |
Definition at line 5 of file gui.c.
Referenced by draw_ui(), dttr_config_main(), and init_state_from_args().