-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fs fixes, editor for main levels, delete artist, andaa fixes ya
- Loading branch information
Showing
8 changed files
with
226 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "_main.hpp" | ||
|
||
#include <Geode/modify/EditorPauseLayer.hpp> | ||
class $modify(EditorPauseLayerExt, EditorPauseLayer) { | ||
$override void saveLevel() { | ||
EditorPauseLayer::saveLevel(); | ||
if (not this->m_editorLayer->getChildByIDRecursive("IsMainLevelEditor")) return; | ||
mle_leveltools::updateLevelDataAndMetaFiles( | ||
this->m_editorLayer->getLevelString(), | ||
this->m_editorLayer->m_level | ||
); | ||
} | ||
$override bool init(LevelEditorLayer * p0) { | ||
auto rtn = EditorPauseLayer::init(p0); | ||
if (not p0->getChildByIDRecursive("IsMainLevelEditor")) return rtn; | ||
if (auto node = this->getChildByIDRecursive("save-and-play-button")) | ||
node->removeFromParent(); | ||
if (auto node = (CCMenu*)this->getChildByIDRecursive("resume-menu")) { | ||
node->addChild(TextArea::create( | ||
"<co>Main Level Editor</c>\n" | ||
"Actually <cg>saves level data</c> to file\n" | ||
"<cy>in user95401.mainlevelseditor config</c>.\n" | ||
"<cr>User coins</c> will be <cy>saved as Secret Coins</c>!\n" | ||
" " | ||
, "chatFont.fnt", 1.f, 600.f, { 0.5f, 0.5f }, 14.f, 0 | ||
), -1, 6302); | ||
node->updateLayout(); | ||
} | ||
return rtn; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters