Commit graph

68 commits

Author SHA1 Message Date
Justin
f65336d4ba
geode::cocos::isSpriteName and geode::cocos::getChildBySpriteName (#725)
* isSpriteName and getChildBySpriteName (Code)

* isSpriteName and getChildBySpriteName (Headers)
2024-04-28 17:44:20 -03:00
NyteLyte
a795487634
getChildOfType negative indices: size_t is unsigned (#656)
* size_t is unsigned

`i` is always >= 0 because it is unsigned. This causes crashes if no children are found before reaching 0.

* oops

`node->getChildrenCount() - 1` in the 2nd part of the for loop underflows as well if the children count is 0
2024-04-11 20:30:35 +03:00
matcool
a5475bda11 add missing GEODE_DLL 2024-02-26 11:58:40 -03:00
altalk23
eea35568fe isSpriteFrameName 2024-02-16 23:58:40 +03:00
altalk23
e10621d40d actually move it to source 2024-02-16 21:37:10 +03:00
altalk23
85f8a206cd add getChildBySpriteFrameName to cocos utils 2024-02-16 21:28:49 +03:00
HJfod
b241c1ccda add platform-specific settings + update changelog and bump version 2024-02-10 13:36:11 +02:00
HJfod
9c8fcf15a9 add support for platform-specific setting values
also improves ccColor3B and ccColor4B hex string parsing (API break) and JsonMaybeValue::is (no break because templated)
2024-02-10 13:02:31 +02:00
alk
73707610db
Merge pull request #447 from geode-sdk/prio-revert
Revert priority changes hook
2024-01-24 20:14:29 +03:00
altalk23
4cd08e1ca9 remove try blocks 2024-01-24 17:17:42 +03:00
altalk23
44976b4348 Make the force a param instead 2024-01-24 13:39:07 +03:00
altalk23
e3d0b30d70 force touch priority for overwriting priorities 2024-01-24 13:37:10 +03:00
altalk23
303d7cede4 force prio hook no more 2024-01-24 11:57:10 +03:00
altalk23
709e3cab48 first impl of revert 2024-01-24 11:30:38 +03:00
matcool
947dcf7f26 add concepts to validate the types for the ext classes 2024-01-09 10:47:23 -03:00
matcool
32cd4c40f1 fix ccdictionaryext yet again 2024-01-09 09:41:22 -03:00
matcool
aecd7cc186 oops missed this one 2024-01-09 02:20:10 -03:00
matcool
e1b7b1f4be change ccdictionaryext api sorry 2024-01-09 02:13:44 -03:00
mat
b9a09f73d5 update json library, changes namespace to matjson
very breaking change! though not annoying to upgrade. this change was
done because matjson is not really meant to be a "do everything" json
library, so taking up the very common `json` identifier was troublesome.
2024-01-03 18:04:43 -03:00
ConfiG
07c6278253
fix CCArrayExt::operator[] return type 2023-09-18 10:09:53 +03:00
HJfod
cf69fa3b2f fix WeakRef 2023-04-07 20:07:16 +03:00
HJfod
e92541a655 add WeakRef 2023-03-30 22:07:57 +03:00
HJfod
a5e33668aa add filter to EventListenerNode 2023-03-23 19:14:09 +02:00
HJfod
11299df20c remove uses of RT_ADD + more bindings 2023-03-22 21:49:29 +02:00
HJfod
09341840f8 more bindings 2023-03-15 22:36:13 +02:00
matcool
306fde70d0
add util geode::cocos::getMousePos 2023-03-11 11:40:03 -03:00
mat
174136ce0b
Make CCDictionaryExt::operator= return type not const 2023-03-10 09:22:48 -03:00
dogotrigger
8310485fc0 Fix CCDictionary's = operator
that was easy and working fix
2023-03-10 09:19:24 -03:00
hjfod
ebfa7b2af4 fix loader min mod version 2023-03-07 08:50:20 +02:00
HJfod
ffd50eb0f1 fix ranges::reverse + add break line option to AxisLayoutOptions
also EditorPauseLayer ids but didn't finish the layouts yet
2023-02-14 21:54:45 +02:00
HJfod
cb1a6f15ee update a lot of ids 2023-02-12 13:01:12 +02:00
altalk23
04dd151f0e minifunction replacing compiles 2023-02-08 18:25:07 +03:00
matcool
deab672bc2 json rewrite, use custom lib instead of nlohmann::json
This is in attempt to make compile times better, as the old json library
was quite slow to compile due to many template instantiations and such a
large header.

macOS tests have shown build times from 610s to ~390s, about a 1.5x
speedup

Co-authored-by: camila314 <47485054+camila314@users.noreply.github.com>
2023-01-27 21:14:26 -03:00
HJfod
befcf8ecfd add icon for docs 2023-01-24 21:50:40 +02:00
HJfod
c8e627d921 Merge branch 'main' into tulip-hook 2023-01-21 14:17:58 +02:00
HJfod
f8737dde43 docs stuff i think 2023-01-21 14:17:33 +02:00
altalk23
a1c7139e53 I only changed the headers and not the sources to improve compile times a bit 2023-01-15 00:45:58 +03:00
HJfod
9ffb15b616 rework settings
- Settings no longer abuse templates
 - Custom settings are now supported (finally)
 - Bumped version to v1.0.0-alpha
2022-12-13 22:39:45 +02:00
HJfod
ef55605b5b remove SafeCreate for being pointless 2022-12-12 14:11:14 +02:00
altalk23
3a31efe113 implement pimpl for loader 2022-12-10 19:30:14 +03:00
HJfod
e0d7dbf15b index is now download correctly + that is reported in the UI 2022-12-07 21:21:50 +02:00
HJfod
996acf15aa Merge branch 'main' of https://github.com/geode-sdk/geode into main 2022-12-07 12:37:10 +02:00
altalk23
20a2dc9f07 fix events and cleanup 2022-12-04 19:39:40 +03:00
HJfod
66d12395e1 work on new index
- add PlatformID::from string
2022-12-01 22:42:49 +02:00
HJfod
516393ae99 merge utils to be in fewer better-named files 2022-11-28 19:09:39 +02:00
HJfod
182ced8e17 Merge branch 'main' into layout 2022-11-22 17:24:03 +02:00
camila314
5e3ec38359 tee-hee forgot something again 2022-11-18 23:19:23 -06:00
camila314
c12fde309e oops silly me forgot something 2022-11-18 23:18:37 -06:00
camila314
4ff33d0985 fix bad impl 2022-11-18 23:15:01 -06:00
camila314
06d69b1db5 findFirstChildRecursive put inside utils because its very useful 2022-11-18 23:04:14 -06:00