mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 11:17:08 -05:00
956ad1d6d5
- events now follow a public const member pattern instead of getters - more file utils - ModInfoLayer split into LocalModInfoPopup and IndexItemInfoPopup to reduce uses of ugly variant - same with ModCell - lots of restructuring related to UI anyway - Index also got tons of redesigning - much more i've forgotten - this commit compiles, surprisingly enough, but it's not usable as installing mods through index was removed - remove duplicate LevelSearchLayer ids
48 lines
1.2 KiB
C++
48 lines
1.2 KiB
C++
#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);
|
|
/**
|
|
* 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)
|
|
*/
|
|
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
|
|
);
|
|
}
|