Files
HackerOoT/include/debug/menu.h
Yanis b65f664159 Started Debug Menu (#104)
* started basic debugger

* documentation and added rectangle configurator

* updated f3dex3 patches + made some for profiling stuff

* started profiler

* fix issues and moved profiler functions to gamestate/hide by default

* fix folders not being created properly

* started menu

* memory management

* fix english

* debug disp

* started collision view

* improvements

* basic collider view

* revert profiler changes

* improvements
2024-05-08 12:04:46 +02:00

42 lines
724 B
C

#ifndef HACKEROOT_MENU_H
#define HACKEROOT_MENU_H
#include "ultra64.h"
#include "config.h"
typedef u8 (*MenuFunc)(void*);
typedef enum MenuSelection {
MENU_MIN = -1,
MENU_COLVIEW,
MENU_HITVIEW,
MENU_MAX
} MenuSelection;
typedef struct MenuElement {
char* name;
u8 bToggle;
void* pStruct;
MenuFunc updateFunc;
MenuFunc drawFunc;
} MenuElement;
typedef struct Menu {
u8 bShow;
u8 bExecute;
u8 bBackgroundExecution;
u8 nTimer;
u8 bColViewEnabled;
u8 bHitboxViewEnabled;
MenuSelection eSelection;
Input* pInput;
} Menu;
void Menu_Init(Menu* this);
void Menu_Update(Menu* this);
void Menu_Draw(Menu* this);
u8 Menu_DrawCollisionView(Menu* this);
#endif