#ifndef UI_PSPMENU_H_ #define UI_PSPMENU_H_ #include "Base/Types.h" #include #include // User Interface Variables // 720p is 1.5x multipler // 1440 is 5.3x multilier #ifdef DAEDALUS_PSP const s16 SCREEN_WIDTH {480}; const s16 SCREEN_HEIGHT {272}; constexpr s16 multipler = 1; #else const s16 SCREEN_WIDTH {1920}; // 4 x PSP Resolution const s16 SCREEN_HEIGHT {1080}; // 7 x PSP Resolution constexpr s16 multipler = 4; #endif // to do adjust values to suit multiple screens const s16 MENU_TOP {10 * multipler}; const s16 TITLE_HEADER {20 * multipler}; #ifdef DAEDALUS_PSP const s16 BELOW_MENU_MIN {33}; // Rename this as it's confusing const s16 LIST_TEXT_HEIGHT {216 * multipler}; // This affects Category and Romlist height.. Probably need to separate const s16 LIST_TEXT_TOP = 30; #else const s16 BELOW_MENU_MIN {80}; // Rename this as it's confusing const s16 LIST_TEXT_HEIGHT {210 * multipler}; // This affects Category and Romlist height.. Probably need to separate const s16 LIST_TEXT_TOP = {80}; #endif const s16 ROM_LIST_TOP {LIST_TEXT_TOP * multipler}; const s16 LIST_TEXT_LEFT {13 * multipler}; const s16 LIST_TEXT_WIDTH {(SCREEN_WIDTH - LIST_TEXT_LEFT)}; const s16 PREVIEW_IMAGE_LEFT {309 * multipler}; const s16 PREVIEW_IMAGE_BOTTOM {140 * multipler}; const s16 PREVIEW_IMAGE_RIGHT {464 * multipler}; const s16 PREVIEW_IMAGE_WIDTH {PREVIEW_IMAGE_RIGHT - PREVIEW_IMAGE_LEFT}; const s16 PREVIEW_IMAGE_HEIGHT {PREVIEW_IMAGE_BOTTOM - BELOW_MENU_MIN}; const s16 DESCRIPTION_AREA_TOP {LIST_TEXT_TOP}; const s16 DESCRIPTION_AREA_LEFT {16 * multipler}; const s16 DESCRIPTION_AREA_RIGHT {SCREEN_WIDTH - 16}; const s16 DESCRIPTION_AREA_BOTTOM {SCREEN_HEIGHT - 10}; const s16 ROM_INFO_TEXT_X {318 * multipler}; const s16 ROM_INFO_TEXT_Y {154 * multipler}; const s16 BATTERY_INFO {200 * multipler}; #ifdef DAEDALUS_PSP const s16 CATEGORY_TEXT_TOP {BELOW_MENU_MIN + LIST_TEXT_HEIGHT + 5 * multipler}; #else const s16 CATEGORY_TEXT_TOP {BELOW_MENU_MIN + LIST_TEXT_HEIGHT + 10 * multipler}; #endif const s16 CATEGORY_TEXT_LEFT {1 * multipler}; const char gCategoryLetters[] = "#abcdefghijklmnopqrstuvwxyz?"; enum ECategory { C_NUMBERS = 0, C_A, C_B, C_C, C_D, C_E, C_F, C_G, C_H, C_I, C_J, C_K, C_L, C_M, C_N, C_O, C_P, C_Q, C_R, C_S, C_T, C_U, C_V, C_W, C_X, C_Y, C_Z, C_UNK, NUM_CATEGORIES, }; // Splash Screen const float MAX_TIME {0.8f}; // Rename to something more sane const char * const LOGO_FILENAME { "Resources/logo.png"}; const s16 NUM_SAVESTATE_SLOTS {15}; const char * const SAVING_STATUS_TEXT = "Saving..."; const char * const LOADING_STATUS_TEXT = "Loading..."; const u32 INVALID_SLOT = s16( -1 ); const char * const SAVING_TITLE_TEXT = "Select a Slot to Save To"; const char * const LOADING_TITLE_TEXT = "Select a Slot to Load From"; // About components #define MAX_PSP_MODEL 11 const std::string DAEDALUS_VERSION_TEXT = "DaedalusX64"; const std::string DATE_TEXT = "Built "; const char * const URL_TEXT_1 = "https://github.com/daedalusx64/daedalus/"; const char * const URL_TEXT_2 = "https://discord.gg/uxQ3JsEs9w"; const char * const INFO_TEXT[] = { "Copyright (C) 2008-2024 DaedalusX64 Team", "Copyright (C) 2001-2009 StrmnNrmn", "Audio HLE code by Azimer", "", "For news and updates visit:", }; // Adjust Dead Zone Screen const char * const INSTRUCTIONS_TEXT = "Adjust the minimum and maximum deadzone regions. Up/Down: Increase or decrease the deadzone. Left/Right: Select minimum or maximum deadzone for adjusting. Triangle: Reset to defaults. Start/X: Confirm. Select/Circle: Cancel"; const char * const TITLE_TEXT = "Adjust Stick Deadzone"; // Make more sane const u32 TITLE_Y = 10 * multipler; const u32 HALF_WIDTH = SCREEN_WIDTH / 2; const u32 CENTRE_X = SCREEN_WIDTH / 2 ; const u32 DISPLAY_WIDTH = 128 * multipler; const u32 DISPLAY_RADIUS = DISPLAY_WIDTH / 2; const u32 PSP_CIRCLE_X = DISPLAY_RADIUS + ((HALF_WIDTH - DISPLAY_WIDTH) / 2); const u32 PSP_CIRCLE_Y = 120; const u32 N64_CIRCLE_X = CENTRE_X + DISPLAY_RADIUS + ((HALF_WIDTH - DISPLAY_WIDTH) / 2); const u32 N64_CIRCLE_Y = 120; const u32 PSP_TITLE_X = PSP_CIRCLE_X - DISPLAY_RADIUS; const u32 PSP_TITLE_Y = PSP_CIRCLE_Y - DISPLAY_RADIUS - 16; const u32 N64_TITLE_X = N64_CIRCLE_X - DISPLAY_RADIUS; const u32 N64_TITLE_Y = N64_CIRCLE_Y - DISPLAY_RADIUS - 16; const f32 DEADZONE_INCREMENT = 0.01f; const f32 DEFAULT_MIN_DEADZONE = 0.28f; // Kind of gross - share somehow with IInputManager? const f32 DEFAULT_MAX_DEADZONE = 1.0f; // Rom Selector component const char * const gRomsDirectories[] = { "Roms/" , #ifdef DAEDALUS_PSP #ifndef DAEDALUS_SILENT // For ease of developing with multiple source trees, common folder for roms can be placed at host1: in usbhostfs "host1:/", #endif "ms0:/n64/", #endif }; const std::string gNoRomsText[] = { "Daedalus could not find any roms to load.", "You can add roms to the Roms Folder within the DaedalusX64 Folder" "Daedalus recognises a number of different filetypes,", "including .zip, .z64, .v64, .rom, .bin, .pal, .usa and .jap.", }; ; const f32 PREVIEW_SCROLL_WAIT = 0.500f; // seconds to wait for scrolling to stop before loading preview (prevent thrashing) const f32 PREVIEW_FADE_TIME = 0.50f; // seconds #endif //UI_PSPMENU_H_