Merge branch 'main' of https://github.com/geode-sdk/geode
2
.github/workflows/build.yml
vendored
|
@ -143,7 +143,7 @@ jobs:
|
|||
- name: Zip Windows Artifacts
|
||||
uses: vimtor/action-zip@v1.1
|
||||
with:
|
||||
files: geode-win/XInput9_1_0.dll geode-win/Geode.dll geode-win/GeodeUpdater.exe geode-win/Geode.lib
|
||||
files: geode-win/XInput9_1_0.dll geode-win/Geode.dll geode-win/GeodeUpdater.exe geode-win/Geode.lib geode-win/Geode.pdb
|
||||
dest: geode-${{ steps.ref.outputs.hash }}-win.zip
|
||||
|
||||
# TODO change in 2.0.0
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
# Geode Changelog
|
||||
|
||||
## v1.1.1
|
||||
* Improve installation confirmation popup (9192769)
|
||||
* Remove unnecessary main thread queues for mod events (38cc38c)
|
||||
* Fix search and filter buttons being not clickable when over the view/restart button of a mod (ef1f1d1)
|
||||
* Improve tab textures (108f56a)
|
||||
* Properly align the borders
|
||||
* Make the selected and unselected tabs the same height
|
||||
|
||||
## v1.1.0
|
||||
* Fix json library not actually being dynamically exported/imported (5f65d97)
|
||||
* Update TulipHook, gets rid of keystone dependency and adds stdcall support (efcbf58, 7b90903)
|
||||
|
|
|
@ -7,6 +7,14 @@ class cocos2d::CCActionTween {
|
|||
|
||||
[[link(win)]]
|
||||
class cocos2d::CCActionManager {
|
||||
CCActionManager() {
|
||||
m_pTargets = nullptr;
|
||||
m_pCurrentTarget = nullptr;
|
||||
m_bCurrentTargetSalvaged = false;
|
||||
}
|
||||
~CCActionManager() {}
|
||||
|
||||
virtual auto update(float) = mac 0x10c9a0;
|
||||
auto addAction(cocos2d::CCAction*, cocos2d::CCNode*, bool) = mac 0x10bed0;
|
||||
auto pauseTarget(cocos2d::CCObject*) = mac 0x10bc50;
|
||||
auto resumeTargets(cocos2d::CCSet*) = mac 0x10be80;
|
||||
|
|
|
@ -2331,7 +2331,7 @@ class GJGameLevel : cocos2d::CCNode {
|
|||
int m_chk;
|
||||
bool m_isChkValid;
|
||||
bool m_isCompletionLegitimate;
|
||||
geode::SeedValueVRS m_normalPercent;
|
||||
geode::SeedValueVSR m_normalPercent;
|
||||
geode::SeedValueRSV m_orbCompletion;
|
||||
geode::SeedValueRSV m_newNormalPercent2;
|
||||
int m_practicePercent;
|
||||
|
@ -2598,6 +2598,7 @@ class GJScoreCell : TableViewCell {
|
|||
void loadFromScore(GJUserScore* score) = win 0x61440;
|
||||
void onViewProfile(cocos2d::CCObject* sender) = win 0x62380;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
GJScoreCell(char const* key, float width, float height) = win 0x613C0;
|
||||
}
|
||||
|
||||
class GJSearchObject : cocos2d::CCNode {
|
||||
|
@ -3762,6 +3763,7 @@ class LevelCell : TableViewCell {
|
|||
void loadCustomLevelCell() = mac 0x1183b0, win 0x5a020;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
void loadFromLevel(GJGameLevel* level) = win 0x59FD0;
|
||||
LevelCell(char const* key, float width, float height) = win 0x59F40;
|
||||
}
|
||||
|
||||
class LevelCommentDelegate {
|
||||
|
@ -4910,12 +4912,12 @@ class PlayerObject : GameObject, AnimatedSpriteDelegate {
|
|||
void saveToCheckpoint(PlayerCheckpoint*) = mac 0x22e2f0, win 0x1f9ee0;
|
||||
void setSecondColor(cocos2d::_ccColor3B const&) = mac 0x219610, win 0x1f7870;
|
||||
void setupStreak() = mac 0x218720, win 0x1e7e90;
|
||||
void spawnCircle() = mac 0x225480;
|
||||
void spawnCircle() = mac 0x2251b0;
|
||||
void spawnCircle2() = mac 0x2252a0;
|
||||
void spawnDualCircle() = mac 0x2255c0;
|
||||
void spawnFromPlayer(PlayerObject*) = mac 0x22dde0, win 0x1f9540;
|
||||
void spawnPortalCircle(cocos2d::_ccColor3B, float) = mac 0x225350, win 0x1ef680;
|
||||
void spawnScaleCircle() = mac 0x2251b0, win 0x1ef810;
|
||||
void spawnScaleCircle() = mac 0x225480, win 0x1ef810;
|
||||
void specialGroundHit() = mac 0x22dbf0;
|
||||
void speedDown() = mac 0x22e970;
|
||||
void speedUp() = mac 0x22e950;
|
||||
|
|
|
@ -250,7 +250,7 @@ if (APPLE)
|
|||
|
||||
add_subdirectory(launcher/mac)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR GEODE_TARGET_PLATFORM STREQUAL "iOS")
|
||||
if(GEODE_TARGET_PLATFORM STREQUAL "iOS")
|
||||
add_custom_command(TARGET geode-loader
|
||||
POST_BUILD COMMAND
|
||||
${CMAKE_INSTALL_NAME_TOOL} -id \"/Library/MobileSubstrate/DynamicLibraries/Geode.dylib\"
|
||||
|
|
|
@ -68,6 +68,8 @@ public:
|
|||
*/
|
||||
~CCActionManager(void);
|
||||
|
||||
GEODE_CUSTOM_CONSTRUCTOR_COCOS(CCActionManager, CCObject);
|
||||
|
||||
// actions
|
||||
|
||||
/** Adds an action with a target.
|
||||
|
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 5.7 KiB |
|
@ -750,34 +750,75 @@ void IndexItemInfoPopup::onInstallProgress(ModInstallEvent* event) {
|
|||
}
|
||||
|
||||
void IndexItemInfoPopup::onInstall(CCObject*) {
|
||||
createQuickPopup(
|
||||
"Confirm Install",
|
||||
"Installing this mod requires a few other mods to be installed. "
|
||||
"Would you like to continue with <cy>recommended settings</c> or "
|
||||
"<cb>customize</c> which mods to install?",
|
||||
"Customize", "Recommended", 320.f,
|
||||
[&](FLAlertLayer*, bool btn2) {
|
||||
if (btn2) {
|
||||
auto canInstall = Index::get()->canInstall(m_item);
|
||||
if (!canInstall) {
|
||||
FLAlertLayer::create(
|
||||
"Unable to Install",
|
||||
canInstall.unwrapErr(),
|
||||
"OK"
|
||||
)->show();
|
||||
return;
|
||||
}
|
||||
auto deps = m_item->getMetadata().getDependencies();
|
||||
enum class DepState {
|
||||
None,
|
||||
HasOnlyRequired,
|
||||
HasOptional
|
||||
} depState = DepState::None;
|
||||
for (auto const& item : deps) {
|
||||
// resolved means it's already installed, so
|
||||
// no need to ask the user whether they want to install it
|
||||
if (Loader::get()->isModLoaded(item.id))
|
||||
continue;
|
||||
if (item.importance != ModMetadata::Dependency::Importance::Required) {
|
||||
depState = DepState::HasOptional;
|
||||
break;
|
||||
}
|
||||
depState = DepState::HasOnlyRequired;
|
||||
}
|
||||
|
||||
std::string content;
|
||||
char const* btn1;
|
||||
char const* btn2;
|
||||
switch (depState) {
|
||||
case DepState::None:
|
||||
content = fmt::format(
|
||||
"Are you sure you want to install <cg>{}</c>?",
|
||||
m_item->getMetadata().getName()
|
||||
);
|
||||
btn1 = "Info";
|
||||
btn2 = "Install";
|
||||
break;
|
||||
case DepState::HasOnlyRequired:
|
||||
content =
|
||||
"Installing this mod requires other mods to be installed. "
|
||||
"Would you like to <cy>proceed</c> with the installation or "
|
||||
"<cb>view</c> which mods are going to be installed?";
|
||||
btn1 = "View";
|
||||
btn2 = "Proceed";
|
||||
break;
|
||||
case DepState::HasOptional:
|
||||
content =
|
||||
"This mod recommends installing other mods alongside it. "
|
||||
"Would you like to continue with <cy>recommended settings</c> or "
|
||||
"<cb>customize</c> which mods to install?";
|
||||
btn1 = "Customize";
|
||||
btn2 = "Recommended";
|
||||
break;
|
||||
}
|
||||
|
||||
createQuickPopup("Confirm Install", content, btn1, btn2, 320.f, [&](FLAlertLayer*, bool btn2) {
|
||||
if (btn2) {
|
||||
auto canInstall = Index::get()->canInstall(m_item);
|
||||
if (!canInstall) {
|
||||
FLAlertLayer::create(
|
||||
"Unable to Install",
|
||||
canInstall.unwrapErr(),
|
||||
"OK"
|
||||
)->show();
|
||||
return;
|
||||
}
|
||||
this->preInstall();
|
||||
Index::get()->install(m_item);
|
||||
}
|
||||
else {
|
||||
InstallListPopup::create(m_item, [&](IndexInstallList const& list) {
|
||||
this->preInstall();
|
||||
Index::get()->install(m_item);
|
||||
}
|
||||
else {
|
||||
InstallListPopup::create(m_item, [&](IndexInstallList const& list) {
|
||||
this->preInstall();
|
||||
Index::get()->install(list);
|
||||
})->show();
|
||||
}
|
||||
}, true, true
|
||||
);
|
||||
Index::get()->install(list);
|
||||
})->show();
|
||||
}
|
||||
}, true, true);
|
||||
}
|
||||
|
||||
void IndexItemInfoPopup::preInstall() {
|
||||
|
|
|
@ -428,6 +428,9 @@ void ModListLayer::createSearchControl() {
|
|||
inputBG->setScale(.5f);
|
||||
m_searchBG->addChild(inputBG);
|
||||
|
||||
if (m_searchInput)
|
||||
return;
|
||||
|
||||
m_searchInput =
|
||||
CCTextInputNode::create(310.f - buttonSpace, 20.f, "Search Mods...", "bigFont.fnt");
|
||||
m_searchInput->setLabelPlaceholderColor({ 150, 150, 150 });
|
||||
|
@ -457,10 +460,7 @@ void ModListLayer::reloadList(std::optional<ModListQuery> const& query) {
|
|||
std::nullopt;
|
||||
|
||||
// remove old list
|
||||
if (m_list) {
|
||||
if (m_searchBG) m_searchBG->retain();
|
||||
m_list->removeFromParent();
|
||||
}
|
||||
if (m_list) m_list->removeFromParent();
|
||||
|
||||
auto items = this->createModCells(g_tab, m_query);
|
||||
|
||||
|
@ -522,13 +522,7 @@ void ModListLayer::reloadList(std::optional<ModListQuery> const& query) {
|
|||
m_tabsGradientSprite->setPosition(m_list->getPosition() + CCPoint{179.f, 235.f});
|
||||
|
||||
// add search input to list
|
||||
if (!m_searchInput) {
|
||||
this->createSearchControl();
|
||||
}
|
||||
else {
|
||||
m_list->addChild(m_searchBG);
|
||||
m_searchBG->release();
|
||||
}
|
||||
this->createSearchControl();
|
||||
|
||||
// enable filter button
|
||||
m_filterBtn->setEnabled(g_tab != ModListType::Installed);
|
||||
|
|