geode/loader/include/Geode/ui/GeodeUI.hpp

53 lines
1.3 KiB
C++
Raw Normal View History

#pragma once
#include "../loader/Mod.hpp"
#include "../loader/Index.hpp"
namespace geode {
/**
* Open the Geode mods list
*/
GEODE_DLL void openModsList();
/**
* Open the info popup for a mod
*/
GEODE_DLL void openInfoPopup(Mod* mod);
/**
* 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);
/**
* 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
*/
GEODE_DLL void openSettingsPopup(Mod* mod);
/**
* Create a default logo sprite
* @param size Size of the sprite
*/
GEODE_DLL cocos2d::CCNode* createDefaultLogo(
cocos2d::CCSize const& size
);
/**
* Create a logo sprite for a mod
* @param size Size of the sprite
*/
GEODE_DLL cocos2d::CCNode* createModLogo(
Mod* mod, cocos2d::CCSize const& size
);
/**
* Create a logo sprite for an index item
* @param size Size of the sprite
*/
GEODE_DLL cocos2d::CCNode* createIndexItemLogo(
IndexItemHandle item, cocos2d::CCSize const& size
);
}