2022-10-11 09:45:56 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../loader/Mod.hpp"
|
2022-12-06 14:22:03 -05:00
|
|
|
#include "../loader/Index.hpp"
|
2022-10-11 09:45:56 -04:00
|
|
|
|
|
|
|
namespace geode {
|
|
|
|
/**
|
|
|
|
* Open the Geode mods list
|
|
|
|
*/
|
|
|
|
GEODE_DLL void openModsList();
|
|
|
|
/**
|
|
|
|
* Open the info popup for a mod
|
|
|
|
*/
|
|
|
|
GEODE_DLL void openInfoPopup(Mod* mod);
|
2022-12-06 14:22:03 -05:00
|
|
|
/**
|
|
|
|
* Open the issue report popup for a mod
|
|
|
|
*/
|
|
|
|
GEODE_DLL void openIssueReportPopup(Mod* mod);
|
2024-02-10 14:11:59 -05:00
|
|
|
/**
|
|
|
|
* Open the support popup for a mod
|
|
|
|
*/
|
|
|
|
GEODE_DLL void openSupportPopup(Mod* mod);
|
2022-10-11 09:45:56 -04:00
|
|
|
/**
|
|
|
|
* Open the store page for a mod (if it exists)
|
|
|
|
*/
|
|
|
|
GEODE_DLL void openIndexPopup(Mod* mod);
|
|
|
|
/**
|
|
|
|
* Open the settings popup for a mod (if it has any settings)
|
2022-10-30 14:59:20 -04:00
|
|
|
*/
|
2022-10-11 09:45:56 -04:00
|
|
|
GEODE_DLL void openSettingsPopup(Mod* mod);
|
2022-12-06 14:22:03 -05:00
|
|
|
/**
|
|
|
|
* Create a default logo sprite
|
|
|
|
*/
|
2024-02-21 19:04:38 -05:00
|
|
|
GEODE_DLL cocos2d::CCNode* createDefaultLogo();
|
2022-12-06 14:22:03 -05:00
|
|
|
/**
|
|
|
|
* Create a logo sprite for a mod
|
|
|
|
*/
|
2024-02-21 19:04:38 -05:00
|
|
|
GEODE_DLL cocos2d::CCNode* createModLogo(Mod* mod);
|
2022-12-06 14:22:03 -05:00
|
|
|
/**
|
|
|
|
* Create a logo sprite for an index item
|
|
|
|
*/
|
2024-02-21 19:04:38 -05:00
|
|
|
GEODE_DLL cocos2d::CCNode* createIndexItemLogo(IndexItemHandle item);
|
2022-10-11 09:45:56 -04:00
|
|
|
}
|