Skip to content

Commit 1d5aba2

Browse files
committed
Merge branch 'main' of https://github.com/geode-sdk/DevTools into main
2 parents 39fa4c3 + 4ff86f3 commit 1d5aba2

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

mod.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"geode": "v2.0.0",
33
"version": "v1.3.0",
4+
"gd": "*",
45
"id": "geode.devtools",
56
"name": "DevTools",
67
"developer": "Geode Team",

src/pages/Advanced.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void DevTools::drawModGraphNode(Mod* node) {
176176

177177
node->setMetadata(this->inputMetadata(node, node->getMetadata()));
178178

179-
ImGui::Text("supportsDisabling: %s", node->supportsDisabling() ? "true" : "false");
179+
ImGui::Text("isInternal: %s", node->isInternal() ? "true" : "false");
180180
ImGui::Text("early: %s", node->needsEarlyLoad() ? "true" : "false");
181181
ImGui::Text("hasUnresolvedDependencies: %s", node->hasUnresolvedDependencies() ? "true" : "false");
182182
ImGui::Text("hasUnresolvedIncompatibilities: %s", node->hasUnresolvedIncompatibilities() ? "true" : "false");

src/pages/Attributes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void DevTools::drawNodeAttributes(CCNode* node) {
140140
if (auto textureProtocol = typeinfo_cast<CCTextureProtocol*>(node)) {
141141
if (auto texture = textureProtocol->getTexture()) {
142142
auto* cachedTextures = CCTextureCache::sharedTextureCache()->m_pTextures;
143-
for (auto [key, obj] : CCDictionaryExt<std::string, CCTexture2D>(cachedTextures)) {
143+
for (auto [key, obj] : CCDictionaryExt<std::string, CCTexture2D*>(cachedTextures)) {
144144
if (obj == texture) {
145145
ImGui::TextWrapped("Texture name: %s", key.c_str());
146146
break;
@@ -150,7 +150,7 @@ void DevTools::drawNodeAttributes(CCNode* node) {
150150
if (auto spriteNode = typeinfo_cast<CCSprite*>(node)) {
151151
auto* cachedFrames = CCSpriteFrameCache::sharedSpriteFrameCache()->m_pSpriteFrames;
152152
const auto rect = spriteNode->getTextureRect();
153-
for (auto [key, frame] : CCDictionaryExt<std::string, CCSpriteFrame>(cachedFrames)) {
153+
for (auto [key, frame] : CCDictionaryExt<std::string, CCSpriteFrame*>(cachedFrames)) {
154154
if (frame->getTexture() == texture && frame->getRect() == rect) {
155155
ImGui::Text("Frame name: %s", key.c_str());
156156
break;

src/pages/GeometryDash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ void DevTools::drawHighlight(CCNode* node, HighlightMode mode) {
253253
void DevTools::drawLayoutHighlights(CCNode* node) {
254254
// TODO: undo later
255255
#if 0
256-
for (auto child : ranges::reverse(CCArrayExt<CCNode>(node->getChildren()))) {
256+
for (auto child : ranges::reverse(CCArrayExt<CCNode*>(node->getChildren()))) {
257257
if (!child->isVisible()) continue;
258258
if (child->getLayout()) {
259259
this->drawHighlight(child, HighlightMode::Layout);

0 commit comments

Comments
 (0)