Skip to content

Commit ce4865b

Browse files
committed
Bug fix
1 parent 80c3f95 commit ce4865b

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.9.4
2+
- Fix a bug with sprite frames not being able to be set
3+
14
## 1.9.3
25
**NOTICE! Modifying nodes by ID will soon be depreciated. Once the next GD update comes out, I will be removing that feature in favor of modiifying nodes by their class name. This is the name BEFORE the one in quotes in DevTools. For example `ui/cvolton.betterinfo$ExtendedLevelInfo.json` will become `ui/ExtendedLevelInfo.json` and anything in the nodes folder will no longer work and should be placed in the UI folder.**
36
- Fixed crash when pressing space on main menu for mac

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"android": "2.2074",
66
"mac": "2.2074"
77
},
8-
"version": "v1.9.3",
8+
"version": "v1.9.4",
99
"id": "alphalaneous.happy_textures",
1010
"name": "Happy Textures :3",
1111
"developer": "Alphalaneous",

src/UIModding.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,11 +965,13 @@ void UIModding::setSprite(CCNode* node, matjson::Value attributes) {
965965
spriteName = randomSprites[id];
966966
}
967967
spr = Utils::getValidSprite(spriteName.c_str());
968+
if (!spr) spr = Utils::getValidSpriteFrame(spriteName.c_str());
968969
if (!spr) return;
969970
}
970971
if (sprite.isString()) {
971972
spriteName = sprite.asString().unwrapOr("");
972973
spr = Utils::getValidSprite(spriteName.c_str());
974+
if (!spr) spr = Utils::getValidSpriteFrame(spriteName.c_str());
973975
if (!spr) return;
974976
}
975977

0 commit comments

Comments
 (0)