|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include <dttr_config.h>#include <dttr_imgui.h>#include <dttr_path.h>#include <dttr_sdl.h>#include <SDL3/SDL.h>#include <stdbool.h>#include <stdio.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | config_ui_state |
Enumerations | |
| enum | config_label_state { CONFIG_LABEL_DEFAULT , CONFIG_LABEL_SAVED_CHANGED , CONFIG_LABEL_UNSAVED } |
| #define CONFIG_TABLE_FLAGS |
Definition at line 49 of file gui_internal.h.
Referenced by begin_config_table(), and begin_mod_table().
Definition at line 37 of file gui_internal.h.
Definition at line 32 of file gui_internal.h.
Referenced by config_label_text_color().
| #define DTTR_CONFIG_UI_COMBO_POPUP_PADDING_Y 0.0f |
Definition at line 29 of file gui_internal.h.
Referenced by choice_combo().
| #define DTTR_CONFIG_UI_GAMEPAD_BUTTON_W 58.0f |
Definition at line 21 of file gui_internal.h.
Referenced by begin_gamepad_button_table(), config_gamepad_content_width(), and draw_gamepad_button_row().
| #define DTTR_CONFIG_UI_GAMEPAD_SOURCE_W 135.0f |
Definition at line 20 of file gui_internal.h.
Referenced by begin_gamepad_button_table(), and config_gamepad_content_width().
| #define DTTR_CONFIG_UI_HEADER_TEXT_INSET_X 2.0f |
Definition at line 28 of file gui_internal.h.
Referenced by append_table_header_text().
| #define DTTR_CONFIG_UI_HEADER_TOP_SPACING 0.0f |
Definition at line 45 of file gui_internal.h.
Referenced by draw_ui().
Definition at line 42 of file gui_internal.h.
Referenced by draw_footer_text().
| #define DTTR_CONFIG_UI_INPUT_W 285.0f |
Definition at line 17 of file gui_internal.h.
Referenced by config_standard_input_width(), draw_audio_tab(), draw_gamepad_axes(), draw_graphics_tab(), draw_modding_tab(), labeled_checkbox(), labeled_choice_combo(), labeled_input_float(), labeled_input_int(), and labeled_input_text().
| #define DTTR_CONFIG_UI_ITEM_SPACING_X 8.0f |
Definition at line 24 of file gui_internal.h.
Referenced by begin_padded_panel().
| #define DTTR_CONFIG_UI_ITEM_SPACING_Y 6.0f |
Definition at line 25 of file gui_internal.h.
Referenced by begin_padded_panel().
Definition at line 31 of file gui_internal.h.
Referenced by config_label_text_color().
| #define DTTR_CONFIG_UI_LABEL_W 170.0f |
Definition at line 16 of file gui_internal.h.
Referenced by begin_tab_settings_table(), config_standard_content_width(), and draw_gamepad_axes().
| #define DTTR_CONFIG_UI_PANEL_PADDING_X 7.5f |
Definition at line 22 of file gui_internal.h.
Referenced by begin_padded_panel(), and config_window_width().
| #define DTTR_CONFIG_UI_PANEL_PADDING_Y 14.0f |
Definition at line 23 of file gui_internal.h.
Referenced by begin_padded_panel().
| #define DTTR_CONFIG_UI_PATH_BUTTON_SPACING 4.0f |
Definition at line 40 of file gui_internal.h.
Referenced by config_gamepad_content_width(), config_path_control_width(), path_text_input_width(), and same_path_button_row().
| #define DTTR_CONFIG_UI_PATH_BUTTON_W 70.0f |
Definition at line 19 of file gui_internal.h.
Referenced by config_path_control_width(), draw_path_picker_button(), and path_text_input_width().
| #define DTTR_CONFIG_UI_PATH_INPUT_W 160.0f |
Definition at line 18 of file gui_internal.h.
Referenced by config_path_control_width(), labeled_path_picker_with_dialog(), and path_text_input_width().
Definition at line 33 of file gui_internal.h.
Referenced by config_label_text_color().
| #define DTTR_CONFIG_UI_SECTION_SPACING 10.0f |
Definition at line 30 of file gui_internal.h.
Referenced by draw_gamepad_buttons(), and draw_mod_section_header().
| #define DTTR_CONFIG_UI_SELECTED_TAB_BG ((ImVec4_c){0.115f, 0.130f, 0.150f, 1.0f}) |
Definition at line 36 of file gui_internal.h.
| #define DTTR_CONFIG_UI_SEPARATOR_COLOR ((ImVec4_c){0.120f, 0.130f, 0.140f, 1.0f}) |
Definition at line 39 of file gui_internal.h.
Definition at line 41 of file gui_internal.h.
Referenced by draw_footer_text().
| #define DTTR_CONFIG_UI_STATUS_TIMEOUT_MS 5000 |
Definition at line 44 of file gui_internal.h.
Referenced by set_status().
Definition at line 38 of file gui_internal.h.
| #define DTTR_CONFIG_UI_TABLE_CELL_PADDING_X 8.0f |
Definition at line 26 of file gui_internal.h.
Referenced by begin_gamepad_button_table(), and begin_settings_table_with_width().
| #define DTTR_CONFIG_UI_TABLE_CELL_PADDING_Y 4.0f |
Definition at line 27 of file gui_internal.h.
Referenced by table_cell_padding().
Definition at line 35 of file gui_internal.h.
Referenced by draw_default_inline_text().
| #define DTTR_CONFIG_UI_TOOLTIP_PADDING_Y 4.0f |
Definition at line 46 of file gui_internal.h.
Referenced by show_tooltip().
| #define DTTR_CONFIG_UI_TOOLTIP_WRAP_W 360.0f |
Definition at line 47 of file gui_internal.h.
Referenced by show_tooltip().
Definition at line 43 of file gui_internal.h.
Referenced by draw_modding_tab().
| #define DTTR_CONFIG_UI_WINDOW_H 550 |
Definition at line 15 of file gui_internal.h.
Referenced by dttr_config_main().
| #define DTTR_VERSION "unknown" |
Definition at line 55 of file gui_internal.h.
| #define FIELD_DEFAULT_CHANGED | ( | state, | |
| field ) |
Definition at line 82 of file gui_internal.h.
| #define FIELD_DIFFERS | ( | state, | |
| base, | |||
| field ) |
Definition at line 78 of file gui_internal.h.
| #define FIELD_LABEL_STATE | ( | state, | |
| field ) |
Definition at line 88 of file gui_internal.h.
Referenced by draw_audio_tab(), draw_gamepad_axes(), draw_general_tab(), draw_graphics_tab(), and draw_modding_tab().
| #define FIELD_UNSAVED | ( | state, | |
| field ) |
Definition at line 81 of file gui_internal.h.
| #define PATH_FIELD_DEFAULT_CHANGED | ( | state, | |
| field ) |
Definition at line 86 of file gui_internal.h.
| #define PATH_FIELD_DIFFERS | ( | state, | |
| base, | |||
| field ) |
Definition at line 83 of file gui_internal.h.
| #define PATH_FIELD_LABEL_STATE | ( | state, | |
| field ) |
Definition at line 93 of file gui_internal.h.
Referenced by draw_general_tab().
| #define PATH_FIELD_UNSAVED | ( | state, | |
| field ) |
Definition at line 85 of file gui_internal.h.
| enum config_label_state |
| Enumerator | |
|---|---|
| CONFIG_LABEL_DEFAULT | |
| CONFIG_LABEL_SAVED_CHANGED | |
| CONFIG_LABEL_UNSAVED | |
Definition at line 58 of file gui_internal.h.
| void add_scaled_vertical_spacing | ( | const DTTR_ImGuiDialogContext * | ctx, |
| float | height ) |
Definition at line 12 of file gui_widgets.c.
References ctx, and DTTR_ImGuiDialog_ScaledFloat().
Referenced by draw_gamepad_buttons(), draw_mod_section_header(), draw_modding_tab(), and draw_ui().
| bool begin_config_content_region | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const config_ui_state * | state ) |
Definition at line 333 of file gui_widgets.c.
References config_footer_height(), ctx, and state.
Referenced by draw_ui().
| void begin_config_table_row | ( | ) |
Definition at line 575 of file gui_widgets.c.
Referenced by begin_setting_row(), draw_gamepad_button_row(), and draw_mod_toggle_row().
| bool begin_gamepad_button_table | ( | const DTTR_ImGuiDialogContext * | ctx | ) |
Definition at line 524 of file gui_widgets.c.
References append_table_header_text(), begin_config_table(), begin_table_header_row(), config_standard_input_width(), ctx, DTTR_CONFIG_UI_GAMEPAD_BUTTON_W, DTTR_CONFIG_UI_GAMEPAD_SOURCE_W, DTTR_CONFIG_UI_TABLE_CELL_PADDING_X, and setup_scaled_table_column().
Referenced by draw_gamepad_buttons().
| bool begin_padded_panel | ( | const DTTR_ImGuiDialogContext * | ctx | ) |
Definition at line 363 of file gui_widgets.c.
References ctx, DTTR_CONFIG_UI_ITEM_SPACING_X, DTTR_CONFIG_UI_ITEM_SPACING_Y, DTTR_CONFIG_UI_PANEL_PADDING_X, DTTR_CONFIG_UI_PANEL_PADDING_Y, and DTTR_ImGuiDialog_ScaledFloat().
Referenced by draw_ui().
| void begin_setting_row | ( | ) |
Definition at line 577 of file gui_widgets.c.
References begin_config_table_row().
Referenced by labeled_checkbox(), labeled_choice_combo(), labeled_input_float(), labeled_input_int(), labeled_input_text(), and labeled_path_picker_with_dialog().
| bool begin_settings_table | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | id, | ||
| float | label_width, | ||
| float | input_width ) |
Definition at line 510 of file gui_widgets.c.
References begin_settings_table_with_width(), and ctx.
Referenced by begin_tab_settings_table(), and draw_gamepad_axes().
| bool begin_settings_table_with_width | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | id, | ||
| float | label_width, | ||
| float | input_width, | ||
| float | table_width ) |
Definition at line 493 of file gui_widgets.c.
References begin_settings_table_with_cell_padding(), ctx, and DTTR_CONFIG_UI_TABLE_CELL_PADDING_X.
Referenced by begin_settings_table().
| bool begin_tab_settings_table | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | id, | ||
| float | input_width ) |
Definition at line 13 of file gui_tabs.c.
References begin_settings_table(), ctx, and DTTR_CONFIG_UI_LABEL_W.
Referenced by draw_audio_tab(), draw_general_tab(), draw_graphics_tab(), and draw_modding_tab().
| void cancel_binding | ( | config_ui_state * | state | ) |
Definition at line 140 of file gui_state.c.
References set_status(), and state.
Referenced by process_events().
| void capture_source | ( | config_ui_state * | state, |
| int | new_source ) |
Definition at line 149 of file gui_state.c.
References button_source_in_range(), gamepad_button_row_count(), set_status(), and state.
Referenced by process_events().
| bool choice_combo | ( | const char * | label, |
| int * | value, | ||
| DTTR_ConfigChoiceList | choices, | ||
| const char *const * | tooltips ) |
Definition at line 68 of file gui_widgets.c.
References choice_index(), DTTR_Config_Choices(), DTTR_CONFIG_UI_COMBO_POPUP_PADDING_Y, DTTR_ConfigChoice::label, NULL, show_tooltip(), and DTTR_ConfigChoice::value.
Referenced by labeled_choice_combo().
| float config_footer_height | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const config_ui_state * | state ) |
Definition at line 318 of file gui_widgets.c.
References ctx, format_status_text(), state, and status_text_height().
Referenced by begin_config_content_region().
| bool config_has_unsaved_changes | ( | const config_ui_state * | state | ) |
Definition at line 286 of file gui_state.c.
References DTTR_Config_DisabledModsChanged(), DTTR_Config_SchemaChanged(), gamepad_button_rows_have_unsaved_changes(), and state.
Referenced by confirm_discard_changes(), and format_status_text().
| float config_standard_input_width | ( | ) |
Definition at line 36 of file gui_widgets.c.
References config_path_control_width(), and DTTR_CONFIG_UI_INPUT_W.
Referenced by begin_gamepad_button_table(), config_gamepad_content_width(), config_standard_content_width(), and draw_general_tab().
| int config_window_width | ( | ) |
Definition at line 50 of file gui_widgets.c.
References config_gamepad_content_width(), config_standard_content_width(), and DTTR_CONFIG_UI_PANEL_PADDING_X.
Referenced by dttr_config_main().
| void draw_audio_tab | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 7 of file gui_tab_audio.c.
References begin_tab_settings_table(), ctx, DTTR_CONFIG_UI_INPUT_W, end_settings_table(), FIELD_LABEL_STATE, labeled_input_float(), state, TOOLTIP_MSS_SAMPLE_GAIN, and TOOLTIP_MSS_SAMPLE_PREEMPHASIS.
| void draw_config_label | ( | const char * | label, |
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 612 of file gui_widgets.c.
References config_label_text_color(), CONFIG_LABEL_UNSAVED, and show_tooltip().
Referenced by begin_labeled_control(), and draw_gamepad_button_row().
| void draw_footer_text | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const config_ui_state * | state ) |
Definition at line 350 of file gui_widgets.c.
References ctx, DTTR_CONFIG_UI_HINT_TEXT_COLOR, DTTR_CONFIG_UI_STATUS_TEXT_COLOR, FOOTER_HINT_TEXT, format_status_text(), and state.
Referenced by draw_ui().
| void draw_gamepad_tab | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 311 of file gui_tab_gamepad.c.
References ctx, draw_gamepad_axes(), draw_gamepad_buttons(), and state.
| void draw_general_tab | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 34 of file gui_tab_general.c.
References begin_tab_settings_table(), config_standard_input_width(), ctx, DTTR_CONFIG_CHOICES_LOG_LEVEL, DTTR_CONFIG_CHOICES_MINIDUMP_TYPE, end_settings_table(), FIELD_LABEL_STATE, labeled_checkbox(), labeled_choice_combo(), labeled_input_text(), labeled_log_path_picker(), labeled_path_picker(), LOG_LEVEL_TOOLTIPS, minidump_type(), MINIDUMP_TYPE_TOOLTIPS, PATH_FIELD_LABEL_STATE, state, TOOLTIP_LOG_FILE_PATH, TOOLTIP_LOG_LEVEL, TOOLTIP_MINIDUMP_TYPE, TOOLTIP_PCDOGS_PATH, TOOLTIP_SAVES_PATH, TOOLTIP_SHOW_CRASH_POPUP, and TOOLTIP_SKIP_INTRO_MOVIES.
| void draw_graphics_tab | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 57 of file gui_tab_graphics.c.
References begin_tab_settings_table(), ctx, DTTR_CONFIG_CHOICES_GRAPHICS_API, DTTR_CONFIG_CHOICES_PRESENT_FILTER, DTTR_CONFIG_CHOICES_SCALING_FIT, DTTR_CONFIG_CHOICES_SCALING_METHOD, DTTR_CONFIG_CHOICES_VERTEX_PRECISION, DTTR_CONFIG_UI_INPUT_W, end_settings_table(), FIELD_LABEL_STATE, GRAPHICS_API_TOOLTIPS, labeled_checkbox(), labeled_choice_combo(), labeled_input_int(), PRESENT_FILTER_TOOLTIPS, SCALING_FIT_TOOLTIPS, SCALING_METHOD_TOOLTIPS, state, TOOLTIP_FULLSCREEN, TOOLTIP_GENERATE_TEXTURE_MIPMAPS, TOOLTIP_GRAPHICS_API, TOOLTIP_MSAA_SAMPLES, TOOLTIP_PRESENT_FILTER, TOOLTIP_SCALING_FIT, TOOLTIP_SCALING_METHOD, TOOLTIP_SPRITE_SMOOTH, TOOLTIP_TEXTURE_UPLOAD_SYNC, TOOLTIP_VERTEX_PRECISION, TOOLTIP_WINDOW_HEIGHT, TOOLTIP_WINDOW_WIDTH, and VERTEX_PRECISION_TOOLTIPS.
| void draw_modding_tab | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 125 of file gui_tab_modding.c.
References add_scaled_vertical_spacing(), begin_mod_table(), begin_tab_settings_table(), config_mod_dll_list::count, ctx, draw_mod_section_header(), draw_mod_toggle_row(), DTTR_CONFIG_UI_INPUT_W, DTTR_CONFIG_UI_WARNING_TEXT_COLOR, end_settings_table(), FIELD_LABEL_STATE, labeled_checkbox(), MODDING_WARNING_TEXT, config_mod_dll_list::names, scan_mod_dlls(), state, and TOOLTIP_HOT_RELOAD.
| void draw_tabs | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 31 of file gui_tabs.c.
References CONFIG_TABS, ctx, config_tab_spec::draw, config_tab_spec::label, NULL, and state.
Referenced by draw_ui().
| void end_config_content_region | ( | ) |
Definition at line 348 of file gui_widgets.c.
Referenced by draw_ui().
| void end_padded_panel | ( | ) |
Definition at line 386 of file gui_widgets.c.
Referenced by draw_ui().
| void end_settings_table | ( | ) |
Definition at line 519 of file gui_widgets.c.
Referenced by draw_audio_tab(), draw_gamepad_axes(), draw_gamepad_buttons(), draw_general_tab(), draw_graphics_tab(), and draw_modding_tab().
| bool event_cancels_binding | ( | const SDL_Event * | event | ) |
| const char * game_action_tooltip | ( | int | action | ) |
Definition at line 26 of file gui_state.c.
References DTTR_GAMEPAD_MAPPING_NONE, and GAME_ACTION_TOOLTIPS.
Referenced by draw_gamepad_button_row().
| config_label_state gamepad_button_label_state | ( | const config_ui_state * | state, |
| int | source, | ||
| int | action ) |
Definition at line 269 of file gui_state.c.
References make_config_label_state(), source, source_for_action(), and state.
Referenced by draw_gamepad_button_row().
| int gamepad_button_row_action | ( | int | row | ) |
Definition at line 78 of file gui_state.c.
References DTTR_GAMEPAD_MAPPING_NONE, gamepad_button_row_choice(), and DTTR_ConfigChoice::value.
Referenced by sync_rows_from_config().
| int gamepad_button_row_count | ( | ) |
Definition at line 65 of file gui_state.c.
References DTTR_Config_ChoiceCount(), and DTTR_CONFIG_CHOICES_GAME_ACTION.
Referenced by capture_source(), draw_gamepad_buttons(), gamepad_button_row_choice(), gamepad_button_rows_have_unsaved_changes(), sync_config_from_rows(), and sync_rows_from_config().
| const char * gamepad_button_row_label | ( | int | row | ) |
Definition at line 83 of file gui_state.c.
References gamepad_button_row_choice(), and DTTR_ConfigChoice::label.
Referenced by draw_gamepad_button_row(), and draw_gamepad_buttons().
| bool gamepad_button_rows_have_unsaved_changes | ( | const config_ui_state * | state | ) |
Definition at line 254 of file gui_state.c.
References gamepad_button_row_count(), source_for_action(), and state.
Referenced by config_has_unsaved_changes().
| int gamepad_default_source_for_action | ( | const config_ui_state * | state, |
| int | action ) |
Definition at line 88 of file gui_state.c.
References DTTR_GAMEPAD_MAPPING_NONE, source_for_action(), and state.
Referenced by draw_gamepad_button_row().
| bool labeled_checkbox | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | label, | ||
| const char * | id, | ||
| bool * | value, | ||
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 840 of file gui_widgets.c.
References begin_labeled_control(), begin_setting_row(), ctx, DTTR_CONFIG_UI_INPUT_W, and show_tooltip().
Referenced by draw_gamepad_axes(), draw_general_tab(), draw_graphics_tab(), and draw_modding_tab().
| bool labeled_choice_combo | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | label, | ||
| const char * | id, | ||
| int * | value, | ||
| DTTR_ConfigChoiceList | choices, | ||
| const char *const * | tooltips, | ||
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 855 of file gui_widgets.c.
References begin_labeled_control(), begin_setting_row(), choice_combo(), ctx, DTTR_CONFIG_UI_INPUT_W, and show_tooltip().
Referenced by draw_gamepad_axis_choice(), draw_general_tab(), and draw_graphics_tab().
| bool labeled_input_float | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | label, | ||
| const char * | id, | ||
| float * | value, | ||
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 818 of file gui_widgets.c.
References begin_labeled_control(), begin_setting_row(), ctx, DTTR_CONFIG_UI_INPUT_W, and show_tooltip().
Referenced by draw_audio_tab().
| bool labeled_input_int | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | label, | ||
| const char * | id, | ||
| int * | value, | ||
| int | step, | ||
| int | step_fast, | ||
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 801 of file gui_widgets.c.
References begin_labeled_control(), begin_setting_row(), ctx, DTTR_CONFIG_UI_INPUT_W, and show_tooltip().
Referenced by draw_gamepad_axes(), draw_gamepad_deadzone_input(), and draw_graphics_tab().
| bool labeled_input_text | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | label, | ||
| const char * | id, | ||
| char * | buf, | ||
| size_t | buf_size, | ||
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 706 of file gui_widgets.c.
References begin_labeled_control(), begin_setting_row(), ctx, DTTR_CONFIG_UI_INPUT_W, NULL, and show_tooltip().
Referenced by draw_general_tab().
| bool labeled_log_path_picker | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state, | ||
| const char * | label, | ||
| const char * | id, | ||
| char * | buf, | ||
| size_t | buf_size, | ||
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 768 of file gui_widgets.c.
References ctx, labeled_path_picker_with_dialog(), open_log_file_dialog(), and state.
Referenced by draw_general_tab().
| bool labeled_path_picker | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state, | ||
| const char * | label, | ||
| const char * | id, | ||
| char * | buf, | ||
| size_t | buf_size, | ||
| const char * | tooltip, | ||
| config_label_state | label_state ) |
Definition at line 729 of file gui_widgets.c.
References ctx, labeled_path_picker_with_dialog(), open_pcdogs_dir_dialog(), open_pcdogs_iso_dialog(), and state.
Referenced by draw_general_tab().
| void load_config | ( | config_ui_state * | state | ) |
Definition at line 185 of file gui_state.c.
References dttr_config, DTTR_Config_LastError(), DTTR_Config_Load(), refresh_button_rows(), set_status(), and state.
Referenced by draw_toolbar(), handle_shortcuts(), and init_state_from_args().
| config_label_state make_config_label_state | ( | bool | unsaved_changed, |
| bool | default_changed ) |
Definition at line 246 of file gui_state.c.
References CONFIG_LABEL_DEFAULT, CONFIG_LABEL_SAVED_CHANGED, and CONFIG_LABEL_UNSAVED.
Referenced by gamepad_axis_label_state(), gamepad_button_label_state(), and gamepad_deadzone_label_state().
| void open_log_file_dialog | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 121 of file gui_dialogs.c.
References ctx, LOG_FILE_FILTERS, log_file_path_dialog_callback(), NULL, open_file_dialog(), optional_path(), and state.
Referenced by labeled_log_path_picker().
| void open_pcdogs_dir_dialog | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 85 of file gui_dialogs.c.
References ctx, dialog_parent_window(), DTTR_SDL_ShowOpenFolderDialog(), NULL, optional_path(), pcdogs_path_dialog_callback(), and state.
Referenced by labeled_path_picker().
| void open_pcdogs_iso_dialog | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 96 of file gui_dialogs.c.
References ctx, ISO_FILE_FILTERS, NULL, open_file_dialog(), optional_path(), pcdogs_path_dialog_callback(), and state.
Referenced by labeled_path_picker().
| float path_text_input_width | ( | const DTTR_ImGuiDialogContext * | ctx, |
| int | button_count ) |
Definition at line 587 of file gui_widgets.c.
References ctx, DTTR_CONFIG_UI_PATH_BUTTON_SPACING, DTTR_CONFIG_UI_PATH_BUTTON_W, DTTR_CONFIG_UI_PATH_INPUT_W, DTTR_ImGuiDialog_ScaledFloat(), and table_input_width().
Referenced by labeled_path_picker_with_dialog().
| void pop_config_theme | ( | ) |
Definition at line 271 of file gui_widgets.c.
References CONFIG_THEME_COLORS.
Referenced by draw_ui().
| void push_config_theme | ( | ) |
Definition at line 265 of file gui_widgets.c.
References color, CONFIG_THEME_COLORS, and target.
Referenced by draw_ui().
| void request_reset_defaults | ( | const DTTR_ImGuiDialogContext * | ctx, |
| config_ui_state * | state ) |
Definition at line 223 of file gui_state.c.
References ctx, DTTR_SDL_ShowMessageBox(), NULL, reset_defaults(), and state.
Referenced by draw_toolbar().
| void reset_defaults | ( | config_ui_state * | state | ) |
Definition at line 217 of file gui_state.c.
References DTTR_Config_SetDefaults(), refresh_button_rows(), set_status(), and state.
Referenced by request_reset_defaults().
| void same_path_button_row | ( | const DTTR_ImGuiDialogContext * | ctx | ) |
Definition at line 5 of file gui_widgets.c.
References ctx, DTTR_CONFIG_UI_PATH_BUTTON_SPACING, and DTTR_ImGuiDialog_ScaledFloat().
Referenced by draw_path_picker_button().
| void save_config | ( | config_ui_state * | state | ) |
Definition at line 205 of file gui_state.c.
References DTTR_Config_Save(), set_status(), state, and sync_config_from_rows().
Referenced by draw_toolbar(), and handle_shortcuts().
| void set_mods_dir_from_config_path | ( | config_ui_state * | state | ) |
Definition at line 101 of file gui_state.c.
References clear_mods_dir(), DTTR_Path_AppendSegment(), DTTR_Path_CopySds(), DTTR_Path_ModuleDir(), DTTR_PATH_NATIVE_SEPARATOR, NULL, and state.
Referenced by init_state_from_args().
| void set_status | ( | config_ui_state * | state, |
| const char * | status ) |
Definition at line 96 of file gui_state.c.
References DTTR_CONFIG_UI_STATUS_TIMEOUT_MS, and state.
Referenced by apply_dialog_selection(), cancel_binding(), capture_source(), draw_gamepad_button_row(), draw_mod_toggle_row(), dttr_config_main(), load_config(), reset_defaults(), and save_config().
| void show_tooltip | ( | const char * | text | ) |
Definition at line 166 of file gui_widgets.c.
References draw_default_tooltip_value(), draw_wrapped_tooltip_segment(), DTTR_CONFIG_UI_TOOLTIP_PADDING_Y, DTTR_CONFIG_UI_TOOLTIP_WRAP_W, and NULL.
Referenced by choice_combo(), draw_config_label(), draw_gamepad_button_row(), draw_gamepad_buttons(), draw_mod_section_header(), draw_mod_toggle_row(), draw_path_picker_button(), labeled_checkbox(), labeled_choice_combo(), labeled_input_float(), labeled_input_int(), labeled_input_text(), and labeled_path_picker_with_dialog().
| int source_from_event | ( | const SDL_Event * | event | ) |
Definition at line 158 of file gui_tab_gamepad.c.
References DTTR_GAMEPAD_SOURCE_TRIGGER_LEFT, DTTR_GAMEPAD_SOURCE_TRIGGER_RIGHT, DTTR_GAMEPAD_TRIGGER_THRESHOLD, and event.
Referenced by process_events().
| const char * source_label | ( | int | source | ) |
Definition at line 123 of file gui_tab_gamepad.c.
References DTTR_GAMEPAD_MAPPING_NONE, DTTR_GAMEPAD_SOURCE_TRIGGER_LEFT, DTTR_GAMEPAD_SOURCE_TRIGGER_RIGHT, GAMEPAD_SOURCE_UNKNOWN, and source.
Referenced by draw_gamepad_button_row().
| const char * source_tooltip | ( | int | source | ) |
Definition at line 143 of file gui_tab_gamepad.c.
References DTTR_GAMEPAD_MAPPING_NONE, source, TOOLTIP_GAMEPAD_BUTTONS, TOOLTIP_GAMEPAD_EAST, TOOLTIP_GAMEPAD_SOUTH, and TOOLTIP_GAMEPAD_START.
Referenced by draw_gamepad_button_row().
| void sync_config_from_rows | ( | config_ui_state * | state | ) |
Definition at line 172 of file gui_state.c.
References button_source_in_range(), DTTR_Config_ClearGamepadButtonMap(), gamepad_button_row_count(), source, and state.
Referenced by save_config().
| void sync_rows_from_config | ( | config_ui_state * | state | ) |
Definition at line 117 of file gui_state.c.
References DTTR_GAMEPAD_MAPPING_NONE, DTTR_GAMEPAD_SOURCE_COUNT, gamepad_button_row_action(), gamepad_button_row_count(), source_for_action(), and state.
Referenced by init_state_from_args(), and refresh_button_rows().
| float table_input_width | ( | const DTTR_ImGuiDialogContext * | ctx, |
| float | input_width ) |
Definition at line 582 of file gui_widgets.c.
References ctx, and DTTR_ImGuiDialog_ScaledFloat().
Referenced by begin_labeled_control(), and path_text_input_width().
| bool themed_row_button | ( | const DTTR_ImGuiDialogContext * | ctx, |
| const char * | id, | ||
| const char * | label, | ||
| float | width ) |
Definition at line 221 of file gui_widgets.c.
References ctx, DTTR_ImGuiDialog_Button(), DTTR_ImGuiDialog_ScaledFloat(), and size.
Referenced by draw_gamepad_button_row(), and draw_path_picker_button().