mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
new tabs idea
This commit is contained in:
parent
78fe601066
commit
5e8306ac65
3 changed files with 8 additions and 2 deletions
|
@ -204,6 +204,11 @@ ModListSource* ModListSource::get(ModListSourceType type) {
|
|||
return inst;
|
||||
} break;
|
||||
|
||||
case ModListSourceType::Updates: {
|
||||
static auto inst = Ref(ModListSource::create({}));
|
||||
return inst;
|
||||
} break;
|
||||
|
||||
case ModListSourceType::Featured: {
|
||||
static auto inst = Ref(ModListSource::create({
|
||||
.get = +[](server::ModsQuery&& query) {
|
||||
|
|
|
@ -9,6 +9,7 @@ using namespace geode::prelude;
|
|||
|
||||
enum class ModListSourceType {
|
||||
Installed,
|
||||
Updates,
|
||||
Featured,
|
||||
Trending,
|
||||
ModPacks,
|
||||
|
|
|
@ -87,10 +87,10 @@ bool ModsLayer::init() {
|
|||
|
||||
for (auto item : std::initializer_list<std::tuple<const char*, const char*, ModListSourceType>> {
|
||||
{ "download.png"_spr, "Installed", ModListSourceType::Installed },
|
||||
{ "GJ_bigStar_noShadow_001.png", "Featured", ModListSourceType::Featured },
|
||||
{ "GJ_timeIcon_001.png", "Updates", ModListSourceType::Updates },
|
||||
{ "globe.png"_spr, "Download", ModListSourceType::All },
|
||||
{ "GJ_sTrendingIcon_001.png", "Trending", ModListSourceType::Trending },
|
||||
{ "gj_folderBtn_001.png", "Mod Packs", ModListSourceType::ModPacks },
|
||||
{ "globe.png"_spr, "All Mods", ModListSourceType::All },
|
||||
}) {
|
||||
const CCSize itemSize { 100, 35 };
|
||||
const CCSize iconSize { 18, 18 };
|
||||
|
|
Loading…
Reference in a new issue