Skip to content

Commit

Permalink
Update UIModding.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Sep 7, 2024
1 parent fa73109 commit f82b890
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/UIModding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,15 @@ std::optional<ColorData> UIModding::getColors(std::string name){

void UIModding::recursiveModify(CCNode* node, matjson::Object elements){

for (CCNode* node : CCArrayExt<CCNode*>(node->getChildren())) {
CCArray* children = node->getChildren();
log::info("ch count: {} {}", node->getID(), children->count());
if (CCArray* pageChildren = typeinfo_cast<CCArray*>(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<CCNode*>(children)) {

std::string id = node->getID();

Expand Down

0 comments on commit f82b890

Please sign in to comment.