diff options
author | Revo <projectrevotpp@hotmail.com> | 2021-05-22 19:33:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-22 19:33:17 -0400 |
commit | 121208bd6db271ae766a614da82fa00498bb7856 (patch) | |
tree | 7ab7010abde683379b2cb6e63ded0dbbf4ab4388 /include/list_menu_items.h | |
parent | 1e7dcfbf615f387c3b4a8a7577ff36dd57922f60 (diff) | |
parent | 0d0f5b70b03e271d05cd30ccacddd55d75c4e530 (diff) |
Merge pull request #382 from PikalaxALT/pikalax_work
list_menu_items
Diffstat (limited to 'include/list_menu_items.h')
-rw-r--r-- | include/list_menu_items.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/list_menu_items.h b/include/list_menu_items.h new file mode 100644 index 00000000..ec96d480 --- /dev/null +++ b/include/list_menu_items.h @@ -0,0 +1,21 @@ +#ifndef POKEDIAMOND_LIST_MENU_ITEMS_H +#define POKEDIAMOND_LIST_MENU_ITEMS_H + +#include "string16.h" +#include "msgdata.h" + +struct ListMenuItem +{ + struct String * text; + s32 value; +}; + +struct ListMenuItem * ListMenuItems_ctor(u32 count, u32 heap_id); +void ListMenuItems_dtor(struct ListMenuItem * items); +void ListMenuItems_AppendFromMsgData(struct ListMenuItem * items, struct MsgData * msgData, u32 msgNo, s32 value); +void ListMenuItems_AddItem(struct ListMenuItem * items, struct String * str, s32 value); +void ListMenuItems_CopyItem(struct ListMenuItem * items, struct ListMenuItem * src); +struct ListMenuItem * ListMenuItems_SeekEnd(struct ListMenuItem * items, u32 * heap_id_p); +void ListMenuItems_DestroyMenuStrings(struct ListMenuItem * items); + +#endif // POKEDIAMOND_LIST_MENU_ITEMS_H |