Skip to content

Commit

Permalink
some additions
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyAdd committed Nov 29, 2024
1 parent d71d9a9 commit d39d3f4
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
32 changes: 32 additions & 0 deletions src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,38 @@ void Gui::Render() {
}
ImGui::EndChild();
}
else if (windowName == "Shortcuts") {
if (ImGui::Button("Options", {ImGui::GetContentRegionAvail().x, NULL})) {

}
if (ImGui::Button("Reset Level", {ImGui::GetContentRegionAvail().x, NULL})) {
auto* pl = PlayLayer::get();
if (pl)
pl->resetLevel();
}
if (ImGui::Button("Practice Mode", {ImGui::GetContentRegionAvail().x, NULL})) {
auto* pl = PlayLayer::get();
if (pl)
pl->togglePracticeMode(!pl->m_isPracticeMode);
}
if (ImGui::Button("Reset Volume", {ImGui::GetContentRegionAvail().x, NULL})) {

}
if (ImGui::Button("Uncomplete Level", {ImGui::GetContentRegionAvail().x, NULL})) {

}
if (ImGui::Button("Inject DLL", {ImGui::GetContentRegionAvail().x, NULL})) {

}

if (ImGui::Button("Resources", {ImGui::GetContentRegionAvail().x/2, NULL})) {

}
ImGui::SameLine();
if (ImGui::Button("AppData", {ImGui::GetContentRegionAvail().x, NULL})) {

}
}
else {
for (auto& hck : win.hacks) {
bool enabled = config.get(hck.config, false);
Expand Down
5 changes: 3 additions & 2 deletions src/hacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void Hacks::Init() {
{"Copy Hack", "Copy any online level without a password", "copy_hack"}, // +
{"Custom Object Bypass", "Removes the limit restricted to 1000 objects", "custom_object_bypass"},
{"Default Song Bypass", "Removes restrictions on secret official songs", "default_song_bypass"}, // +
{"Editor Extension", "", "editor_extension"},
{"Editor Extension", "Increases the editor length by a factor of 128", "editor_extension"}, // +
{"Verify Hack", "Publish a level without verification", "verify_hack"}, // +
{"Smooth Editor Trail", "Makes the wave smoother in the editor", "smooth_editor_trail"}, // +
{"Level Edit", "Edit any online level", "level_edit"}, // +
Expand All @@ -100,7 +100,8 @@ void Hacks::Init() {
{"GDH Settings", 450, 410, 220, 130},
{"Replay Engine", 680, 10, 300, 200},
{"Labels", 680, 230, 300, 320},
{"Variables", 10, 510, 200, 160}
{"Variables", 10, 510, 200, 160},
{"Shortcuts", 990, 10, 200, 240}
};

auto &config = Config::get();
Expand Down
14 changes: 14 additions & 0 deletions src/hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,20 @@ class $modify(PlayLayer) {
void postUpdate(float dt) {
PlayLayer::postUpdate(dt);

m_isTestMode;
m_player1->m_position.x;
m_player1->m_position.y;
m_player1->getRotation();
m_player1->m_yVelocity;
m_player1->m_isUpsideDown; //gravity navernoe
m_player1->m_isDead;
getCurrentPercent();
m_level->m_levelID;
m_level->m_levelName;
m_level->m_creatorName;
m_level->m_attempts;
m_level->m_jumps;

if (!(m_fields->labels_top_left &&
m_fields->labels_top_right &&
m_fields->labels_bottom_left &&
Expand Down

0 comments on commit d39d3f4

Please sign in to comment.