-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
673 additions
and
421 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
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,5 @@ | ||
file(GLOB_RECURSE srcs CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") | ||
file(GLOB_RECURSE asms CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.s") | ||
list(APPEND srcs ${asms}) | ||
get_filename_component(rel_name ${CMAKE_CURRENT_SOURCE_DIR} NAME) | ||
tpgz_add_module(${rel_name} "${srcs}" "${CMAKE_CURRENT_SOURCE_DIR}/include") |
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,45 @@ | ||
#include "menus/menu.h" | ||
|
||
struct EquipmentData { | ||
uint8_t l_ordonSword_idx; | ||
uint8_t l_masterSword_idx; | ||
uint8_t l_woodShield_idx; | ||
uint8_t l_hyShield_idx; | ||
uint8_t l_tunic_idx; | ||
uint8_t l_zoraArmor_idx; | ||
uint8_t l_magicArmor_idx; | ||
uint8_t l_bombCap_idx; | ||
uint8_t l_wallet_idx; | ||
uint8_t l_arrowCap_idx; | ||
}; | ||
|
||
enum EquipmentIndex { | ||
ORDON_SWORD_INDEX, | ||
MASTER_SWORD_INDEX, | ||
WOOD_SHIELD_INDEX, | ||
HYLIAN_SHIELD_INDEX, | ||
HERO_TUNIC_INDEX, | ||
ZORA_ARMOR_INDEX, | ||
MAGIC_ARMOR_INDEX, | ||
BOMB_CAPACITY_INDEX, | ||
WALLET_INDEX, | ||
ARROW_CAPACITY_INDEX, | ||
|
||
EQUIPMENT_INDEX_COUNT | ||
}; | ||
|
||
extern EquipmentData* equipmentData; | ||
|
||
class EquipmentMenu : public Menu { | ||
public: | ||
EquipmentMenu(Cursor&); | ||
virtual ~EquipmentMenu(); | ||
virtual void draw(); | ||
|
||
private: | ||
Line lines[EQUIPMENT_INDEX_COUNT]; | ||
|
||
void resetIndex(); | ||
void getEquipment(); | ||
void setEquipment(); | ||
}; |
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,6 @@ | ||
#pragma once | ||
|
||
namespace tpgz::modules { | ||
void main(); | ||
void exit(); | ||
} // namespace tpgz::modules |
Oops, something went wrong.