Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ace9097
SimpleAxisLayout!
Alphalaneous Apr 28, 2025
8cd88ca
Forgor IDs for duplicates, fixed :3
Alphalaneous Apr 29, 2025
472dcf5
Use correct direction names
Alphalaneous Apr 29, 2025
30f4cba
Accidentally flipped them
Alphalaneous Apr 29, 2025
63a93bf
Actually not fuck it up this time
Alphalaneous Apr 29, 2025
9d6e05f
Remove layout button for convenience
Alphalaneous Apr 29, 2025
5fb72bd
Hide input if unchecked
Alphalaneous Apr 29, 2025
ab6410f
Layout Options and cleanup
Alphalaneous Apr 30, 2025
ef128ed
Add arrows
Alphalaneous Apr 30, 2025
bf719c8
Add adding and modifying AxisGap
Alphalaneous Apr 30, 2025
3f5523d
Separate Texture name and path, make copyable, rearrange
Alphalaneous May 1, 2025
90eb214
More cleanup on order, add gradient support
Alphalaneous May 1, 2025
71272e5
Add Flip X and Flip Y for CCSprite
Alphalaneous May 1, 2025
2e212c7
Add Cascade color and opacity
Alphalaneous May 1, 2025
4b630a8
Add CCMenuItemSpriteExtra attributes
Alphalaneous May 1, 2025
bcce0a1
Add copy class name and move getNodeName to utils
Alphalaneous May 1, 2025
3c84a26
Add copy symbol
Alphalaneous May 1, 2025
3570b84
Add changing tag
Alphalaneous May 1, 2025
e98c56a
Custom Theme Primary Color, why not?
Alphalaneous May 1, 2025
33953c1
Add setting texture rect
Alphalaneous May 1, 2025
2068de3
Fix resizing (cheating)
Alphalaneous May 1, 2025
8dfbd07
Show Mod Graph saves and moved to settings, fixes
Alphalaneous May 1, 2025
8705643
Add Rotate Rect checkbox for CCSprite
Alphalaneous May 1, 2025
f104911
Use delta time for Geode Team logo
Alphalaneous May 1, 2025
c44d64f
Add Gradient Vector
Alphalaneous May 1, 2025
892e4e6
Add Auto Grow Axis to AxisLayout attributes
Alphalaneous May 1, 2025
dedfdd7
Add Ignore Invisible Children checkbox
Alphalaneous May 1, 2025
8adf403
Merge branch 'main' into SimpleAxisLayout-support
Alphalaneous May 2, 2025
d449849
Fix mac
Alphalaneous May 2, 2025
efd9558
One more include to make mac happy
Alphalaneous May 2, 2025
ca12c88
Make resolution changing windows only
Alphalaneous May 2, 2025
4b576d0
I once again typoed
Alphalaneous May 2, 2025
92cadf4
Gah, I hate ifdefs cuz I am blindsighted by it building for me
Alphalaneous May 2, 2025
0cc7342
the #github channel will hate me, one more fix
Alphalaneous May 2, 2025
f84dda2
Mac Support back
Alphalaneous May 2, 2025
a7a6fde
This part is windows only though
Alphalaneous May 2, 2025
f74dade
Update mod.json
Alphalaneous May 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"geode": "4.3.1",
"geode": "4.4.0",
"version": "v1.8.0",
"gd": {
"win": "*",
Expand Down
15 changes: 13 additions & 2 deletions src/DevTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ struct matjson::Serialize<Settings> {
.orderChildren = value["order_children"].asBool().unwrapOr(std::move(defaults.orderChildren)),
.advancedSettings = value["advanced_settings"].asBool().unwrapOr(std::move(defaults.advancedSettings)),
.showMemoryViewer = value["show_memory_viewer"].asBool().unwrapOr(std::move(defaults.showMemoryViewer)),
.showModGraph = value["show_mod_graph"].asBool().unwrapOr(std::move(defaults.showModGraph)),
.theme = value["theme"].asString().unwrapOr(std::move(defaults.theme)),
.themeColor = value["theme_color"].as<ccColor4B>().isOk() ? value["theme_color"].as<ccColor4B>().unwrap() : std::move(defaults.themeColor)
});
}

Expand All @@ -38,7 +40,9 @@ struct matjson::Serialize<Settings> {
{ "order_children", settings.orderChildren },
{ "advanced_settings", settings.advancedSettings },
{ "show_memory_viewer", settings.showMemoryViewer },
{ "show_mod_graph", settings.showModGraph },
{ "theme", settings.theme },
{ "theme_color", settings.themeColor },
});
}
};
Expand All @@ -52,6 +56,7 @@ DevTools* DevTools::get() {

void DevTools::loadSettings() { m_settings = Mod::get()->getSavedValue<Settings>("settings"); }
void DevTools::saveSettings() { Mod::get()->setSavedValue("settings", m_settings); }
Settings DevTools::getSettings() { return m_settings; }

bool DevTools::shouldPopGame() const {
return m_visible && m_settings.GDInWindow;
Expand Down Expand Up @@ -126,12 +131,15 @@ void DevTools::drawPages() {
&DevTools::drawSettings
);

// if advanced ever has more than one option, add it back
#if 0
if (m_settings.advancedSettings) {
this->drawPage(
U8STR(FEATHER_SETTINGS " Advanced Settings###devtools/advanced/settings"),
&DevTools::drawAdvancedSettings
);
}
#endif

this->drawPage(
U8STR(FEATHER_TOOL " Attributes###devtools/attributes"),
Expand All @@ -146,15 +154,18 @@ void DevTools::drawPages() {
);
#endif

if (m_showModGraph) {
if (m_settings.showModGraph) {
this->drawPage(
U8STR(FEATHER_SHARE_2 " Mod Graph###devtools/advanced/mod-graph"),
&DevTools::drawModGraph
);
}

if (m_settings.showMemoryViewer) {
this->drawPage("Memory viewer", &DevTools::drawMemory);
this->drawPage(
U8STR(FEATHER_TERMINAL " Memory viewer"),
&DevTools::drawMemory
);
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/DevTools.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ struct Settings {
bool orderChildren = true;
bool advancedSettings = false;
bool showMemoryViewer = false;
bool showModGraph = false;
std::string theme = DARK_THEME;
ccColor4B themeColor = {2, 119, 189, 255};
};

class DevTools {
Expand Down Expand Up @@ -81,7 +83,7 @@ class DevTools {
static DevTools* get();
void loadSettings();
void saveSettings();

Settings getSettings();
bool shouldUseGDWindow() const;

bool shouldPopGame() const;
Expand Down
1 change: 0 additions & 1 deletion src/pages/Advanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ using namespace geode::prelude;

void DevTools::drawAdvancedSettings() {
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, { 1.f, 1.f });
ImGui::Checkbox("Show Mod Graph", &m_showModGraph);
ImGui::PopStyleVar();
}

Expand Down
Loading