|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include <dttr_imgui.h>#include <dttr_loader_ui.h>#include <dttr_sdl.h>#include <stdbool.h>#include <stdio.h>Go to the source code of this file.
Macros | |
| #define | DTTR_LOADER_UI_WINDOW_W 560 |
| #define | DTTR_LOADER_UI_WINDOW_H 190 |
| #define | DTTR_LOADER_UI_BUTTON_W 160.0f |
| #define | DTTR_LOADER_UI_BUTTON_H 28.0f |
| #define | DTTR_LOADER_UI_BUTTON_SPACING 8.0f |
| #define | DTTR_LOADER_UI_TEXT_PADDING_X 18.0f |
| #define | DTTR_LOADER_UI_TEXT_PADDING_Y 16.0f |
| #define | DTTR_VERSION "unknown" |
Variables | |
| static const char *const | WINDOW_TITLE = "DttR: Specify Game Files" |
| static const char *const | HEADER_TITLE = "102 Patches: Detours to the Rescue!" |
| static const char *const | GAME_SOURCE_MESSAGE |
| static const char *const | ERROR_TITLE = "DttR: Error" |
| #define DTTR_LOADER_UI_BUTTON_H 28.0f |
Definition at line 11 of file ui.c.
Referenced by button_size().
| #define DTTR_LOADER_UI_BUTTON_SPACING 8.0f |
Definition at line 12 of file ui.c.
Referenced by button_spacing().
| #define DTTR_LOADER_UI_BUTTON_W 160.0f |
Definition at line 10 of file ui.c.
Referenced by button_row_width(), and button_size().
| #define DTTR_LOADER_UI_TEXT_PADDING_X 18.0f |
Definition at line 13 of file ui.c.
Referenced by DTTR_LoaderUI_ChooseGameSource().
| #define DTTR_LOADER_UI_TEXT_PADDING_Y 16.0f |
Definition at line 14 of file ui.c.
Referenced by DTTR_LoaderUI_ChooseGameSource().
| #define DTTR_LOADER_UI_WINDOW_H 190 |
Definition at line 9 of file ui.c.
Referenced by DTTR_LoaderUI_ChooseGameSource().
| #define DTTR_LOADER_UI_WINDOW_W 560 |
Definition at line 8 of file ui.c.
Referenced by DTTR_LoaderUI_ChooseGameSource().
|
static |
Definition at line 56 of file ui.c.
References button_spacing(), ctx, DTTR_ImGuiDialog_ScaledFloat(), DTTR_LOADER_UI_BUTTON_W, and float.
Referenced by draw_source_buttons().
|
static |
Definition at line 66 of file ui.c.
References ctx, DTTR_ImGuiDialog_ScaledFloat(), DTTR_LOADER_UI_BUTTON_H, and DTTR_LOADER_UI_BUTTON_W.
Referenced by draw_source_button().
|
static |
Definition at line 52 of file ui.c.
References ctx, DTTR_ImGuiDialog_ScaledFloat(), and DTTR_LOADER_UI_BUTTON_SPACING.
Referenced by button_row_width(), and same_button_row().
|
static |
Definition at line 114 of file ui.c.
References DTTR_LOADER_UI_MAX_DISC_CANDIDATES.
Referenced by DTTR_LoaderUI_ChooseGameSource().
|
static |
Definition at line 122 of file ui.c.
References ctx, draw_source_button(), DTTR_LOADER_UI_CHOICE_BROWSE_FOLDER, DTTR_LOADER_UI_CHOICE_BROWSE_ISO, and same_button_row().
Referenced by draw_source_buttons().
|
static |
Definition at line 90 of file ui.c.
References ctx, draw_source_button(), and DTTR_LoaderUI_DiscChoiceForIndex().
Referenced by draw_source_buttons().
|
static |
Definition at line 73 of file ui.c.
References button_size(), ctx, and DTTR_ImGuiDialog_Button().
Referenced by draw_browse_buttons(), and draw_disc_button().
|
static |
Definition at line 149 of file ui.c.
References button_row_width(), ctx, draw_browse_buttons(), draw_disc_button(), DTTR_ImGuiDialog_CenterNextItem(), and same_button_row().
Referenced by DTTR_LoaderUI_ChooseGameSource().
| DTTR_LoaderUIChoice DTTR_LoaderUI_ChooseGameSource | ( | const DTTR_LoaderUIDiscCandidate * | disc_candidates, |
| size_t | disc_candidate_count ) |
Definition at line 182 of file ui.c.
References clamp_disc_candidate_count(), ctx, draw_source_buttons(), DTTR_ImGuiDialog_Begin(), DTTR_ImGuiDialog_BeginRoot(), DTTR_ImGuiDialog_DrawHeader(), DTTR_ImGuiDialog_DrawPaddedText(), DTTR_ImGuiDialog_End(), DTTR_ImGuiDialog_EndRoot(), DTTR_ImGuiDialog_FitWindowToContent(), DTTR_ImGuiDialog_NewFrame(), DTTR_ImGuiDialog_ProcessEvents(), DTTR_ImGuiDialog_RefreshScale(), DTTR_ImGuiDialog_Render(), DTTR_LOADER_UI_CHOICE_EXIT, DTTR_LOADER_UI_TEXT_PADDING_X, DTTR_LOADER_UI_TEXT_PADDING_Y, DTTR_LOADER_UI_WINDOW_H, DTTR_LOADER_UI_WINDOW_W, DTTR_VERSION, GAME_SOURCE_MESSAGE, HEADER_TITLE, native_choose_game_source(), and WINDOW_TITLE.
Referenced by prompt_browse_for_path().
| void DTTR_LoaderUI_ShowError | ( | const char * | title, |
| const char * | message ) |
Definition at line 236 of file ui.c.
References DTTR_ImGui_ErrorShow(), DTTR_SDL_ShowSimpleMessageBox(), ERROR_TITLE, NULL, and window_title.
Referenced by dttr_launcher_main(), resolve_iso(), try_browsed_path(), and try_disc_candidate().
|
static |
Definition at line 27 of file ui.c.
References DTTR_LOADER_UI_CHOICE_BROWSE_FOLDER, DTTR_LOADER_UI_CHOICE_BROWSE_ISO, DTTR_LOADER_UI_CHOICE_EXIT, DTTR_LoaderUI_ChoiceFromID(), DTTR_SDL_ShowMessageBox(), GAME_SOURCE_MESSAGE, NULL, and WINDOW_TITLE.
Referenced by DTTR_LoaderUI_ChooseGameSource().
|
static |
Definition at line 110 of file ui.c.
References button_spacing(), and ctx.
Referenced by draw_browse_buttons(), and draw_source_buttons().
|
static |
Definition at line 22 of file ui.c.
Referenced by DTTR_LoaderUI_ChooseGameSource(), and native_choose_game_source().
|
static |
|
static |
Definition at line 20 of file ui.c.
Referenced by DTTR_LoaderUI_ChooseGameSource(), and native_choose_game_source().