| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef POKEMON_APP_H
- #define POKEMON_APP_H
- #pragma once
- #include <gui/scene_manager.h>
- #include <gui/view.h>
- #include <gui/view_dispatcher.h>
- #include <gui/icon.h>
- #include <gui/modules/dialog_ex.h>
- #include <gui/modules/submenu.h>
- #include <gui/modules/text_input.h>
- #include <gui/modules/variable_item_list.h>
- #include <gblink.h>
- #include "pokemon_data.h"
- #define TAG "Pokemon"
- struct pokemon_fap {
- /* Various anonymous pointers for flipper UI/navigation */
- ViewDispatcher* view_dispatcher;
- SceneManager* scene_manager;
- void* select;
- void* trade;
- Submenu* submenu;
- TextInput* text_input;
- VariableItemList* variable_item_list;
- DialogEx* dialog_ex;
- /* Struct for holding trade data */
- /* NOTE: There may be some runtime memory savings by adding more intelligence
- * to views/trade and slimming down this struct to only contain the single
- * pokemon data rather than the full 6 member party data.
- */
- PokemonData* pdata;
- /* Pin definition to actual Game Link Cable interface */
- struct gblink_pins pins;
- };
- typedef struct pokemon_fap PokemonFap;
- typedef enum {
- AppViewMainMenu,
- AppViewOpts, // Generic view ID meant for module re-use
- AppViewSelectPokemon,
- AppViewTrade,
- AppViewExitConfirm,
- } AppView;
- #endif /* POKEMON_APP_H */
|