-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Spoiler Test (#72) Testing Spoiler Menu * Major update to menus. Put things where they're supposed to go. * More adjustments to gfx * Compiles! * Add awake callback. * Formatting fixes. * Update code info space and gfx hooks. * Inputs are now working as intended. * Menu now shows * Added debug statement to show menu is opening but not drawing. * Minor adjustments to input and newcodeinfo. * Update exheader to support larger section_data size. This should allow for a larger patch on the 3ds. * Formatting. Fix menu not showing with buffer issues. * Update gfx.cpp (#73) testing * Remove unused header file. * Fix improper memory allocation for custom messages (#74) * Spoiler-Menu Update #1 (#75) Reorganized in-game spoiler menu to make more sense. half implemented function to reveal checks on obtain * Fix warning in spoiler menu. Remove magic barrier from being used without magic. Currently the old zora swim system will be used until I can find a way to patch it back. * Basecode update. * Basecode change. * Change which IPS patch is actually brought in. * Update small keys for custom text. * Finish custom text for dungeon items. * Clang formatting. * Update asm for banker reward. * Include icons in spoiler menus. * Adjust item effects to hopefully resolve the small key issue. * Include fixes for tingle map overrides and custom text. Tingle will now show what he actually sells! * Use select as default for opening spoiler menu. Have checks on start/select if a user has the spoiler menu assigned to do no action. * Clang formatting. * Remove giving sword back on time reset. * Remove debug statement --------- Co-authored-by: Tacoman369 <90735287+Tacoman369@users.noreply.github.com> Co-authored-by: Nessy <robert@nesfield.co.uk>
- Loading branch information
1 parent
7530dac
commit a9922cb
Showing
29 changed files
with
2,169 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#ifndef _RND_DUNGEON_H | ||
#define _RND_DUNGEON_H | ||
|
||
#include <string.h> | ||
#include "rnd/savefile.h" | ||
#include "rnd/settings.h" | ||
#include "rnd/spoiler_data.h" | ||
//#include "rnd/draw.h" | ||
extern "C" { | ||
#include <3ds/svc.h> | ||
} | ||
|
||
#define WOODFALL_KEY_COUNT 1 | ||
#define SNOWHEAD_KEY_COUNT 3 | ||
#define GREAT_KEY_COUNT 1 | ||
#define STONE_KEY_COUNT 4 | ||
|
||
namespace rnd { | ||
|
||
typedef struct { | ||
u16 spoilerIndex; | ||
u8 keyAmount; | ||
} KeyData; | ||
|
||
typedef enum { | ||
DUNGEON_WOODFALL = 0, | ||
DUNGEON_SNOWHEAD, | ||
DUNGEON_GREAT_BAY, | ||
DUNGEON_STONE_TOWER, | ||
DUNGEON_PIRATE_FORTRESS, | ||
DUNGEON_BENEATH_THE_WELL, | ||
DUNGEON_IKANA_CASTLE, | ||
DUNGEON_SECRET_SHRINE, | ||
DUNGEON_THE_MOON, | ||
DUNGEON_SWAMP_SKULLTULA_HOUSE, | ||
DUNGEON_OCEAN_SKULLTULA_HOUSE, | ||
} DungeonId; | ||
|
||
extern const char DungeonNames[][25]; | ||
|
||
static const char* const smallKeyStringWoodfall = "Woodfall Temple Small Key"; | ||
static const char* const smallKeyStringSnowhead = "Snowhead Temple Small Key"; | ||
static const char* const smallKeyStringGreatBay = "Great Bay Temple Small Key"; | ||
static const char* const smallKeyStringStone = "Stone Tower Temple Small Key"; | ||
|
||
static const char* const keyRingStringWoodfall = "Woodfall Temple Key Ring"; | ||
static const char* const keyRingStringSnowhead = "Snowhead Temple Key Ring"; | ||
static const char* const keyRingStringGreatBay = "Great Bay Temple Key Ring"; | ||
static const char* const keyRingStringStone = "Stone Tower Temple Key Ring"; | ||
|
||
u8 Dungeon_KeyAmount(u32); | ||
u8 Dungeon_FoundSmallKeys(u32); | ||
|
||
} // namespace rnd | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#ifndef _RND_GFX_H_ | ||
#define _RND_GFX_H_ | ||
|
||
#include "common/types.h" | ||
#include "hid.h" | ||
#include "rnd/custom_models.h" | ||
#include "rnd/draw.h" | ||
#include "rnd/dungeon.h" | ||
#include "rnd/input.h" | ||
#include "rnd/rheap.h" | ||
#include "rnd/savefile.h" | ||
#include "rnd/settings.h" | ||
#include "rnd/spoiler_data.h" | ||
#include "rnd/title_screen.h" | ||
extern "C" { | ||
#include <3ds/svc.h> | ||
} | ||
|
||
namespace rnd { | ||
#define TICKS_PER_SEC 268123480 | ||
#define MAX_TICK_DELTA (TICKS_PER_SEC * 3) | ||
|
||
#define UP_ARROW_CHR 24 | ||
#define DOWN_ARROW_CHR 25 | ||
#define LEFT_ARROW_CHR 27 | ||
#define RIGHT_ARROW_CHR 26 | ||
#define H_DOUBLE_ARROW_CHR 29 | ||
#define UP_SOLID_ARROW_CHR 30 | ||
#define DOWN_SOLID_ARROW_CHR 31 | ||
|
||
#define MAX_ENTRY_LINES 9 | ||
#define SCROLL_BAR_THICKNESS 2 | ||
#define SCROLL_BAR_MIN_THUMB_SIZE 4 | ||
#define COLOR_WARN RGB8(0xD1, 0xDF, 0x3C) | ||
#define COLOR_SCROLL_BAR_BG RGB8(0x58, 0x58, 0x58) | ||
|
||
#define COLOR_ICON_BOSS_KEY RGB8(0x20, 0xF9, 0x25) | ||
#define COLOR_ICON_MAP RGB8(0xF9, 0x97, 0xFF) | ||
#define COLOR_ICON_COMPASS RGB8(0x20, 0x3A, 0xF9) | ||
#define COLOR_ICON_WOTH RGB8(0xFF, 0xF8, 0x2D) | ||
#define COLOR_ICON_FOOL RGB8(0xFF, 0x2D, 0x4B) | ||
|
||
#define COLOR_BUTTON_A RGB8(0xFF, 0x49, 0x3E) | ||
#define COLOR_BUTTON_B RGB8(0xFD, 0xDD, 0x68) | ||
#define COLOR_BUTTON_X RGB8(0x32, 0x7D, 0xFE) | ||
#define COLOR_BUTTON_Y RGB8(0x00, 0xD0, 0x98) | ||
|
||
typedef enum { | ||
PAGE_SEEDHASH, | ||
PAGE_DUNGEONITEMS, | ||
PAGE_SPHERES, | ||
PAGE_ITEMTRACKER_ALL, | ||
PAGE_ITEMTRACKER_GROUPS, | ||
PAGE_ENTRANCETRACKER_ALL, | ||
PAGE_ENTRANCETRACKER_GROUPS, | ||
PAGE_OPTIONS, | ||
} GfxPage; | ||
|
||
void Gfx_Init(void); | ||
static u8 openingButton(); | ||
extern "C" void Gfx_Update(); | ||
extern "C" void Gfx_SleepQueryCallback(); | ||
extern "C" void Gfx_AwakeCallback(); | ||
|
||
} // namespace rnd | ||
|
||
#endif //_RND_GFX_H_ |
Oops, something went wrong.