From f82b890cda12720d170842c1ffa040b94804b1b1 Mon Sep 17 00:00:00 2001 From: Alphalaneous <38200084+Alphalaneous@users.noreply.github.com> Date: Sat, 7 Sep 2024 18:52:17 -0400 Subject: [PATCH] Update UIModding.cpp --- src/UIModding.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/UIModding.cpp b/src/UIModding.cpp index 565a7a1..9a92edc 100644 --- a/src/UIModding.cpp +++ b/src/UIModding.cpp @@ -97,7 +97,15 @@ std::optional UIModding::getColors(std::string name){ void UIModding::recursiveModify(CCNode* node, matjson::Object elements){ - for (CCNode* node : CCArrayExt(node->getChildren())) { + CCArray* children = node->getChildren(); + log::info("ch count: {} {}", node->getID(), children->count()); + if (CCArray* pageChildren = typeinfo_cast(node->getUserObject("alphalaneous.pages_api/page-children"))){ + log::info("here"); + children = pageChildren; + log::info("ch count 2: {} {}", node->getID(), children->count()); + } + + for (CCNode* node : CCArrayExt(children)) { std::string id = node->getID();