feat: Option to add child at First position to ViewComponent#1362
feat: Option to add child at First position to ViewComponent#1362DeathPhoenix22 wants to merge 1 commit intoAlmasB:devfrom
Conversation
| } | ||
|
|
||
| group.children += child | ||
| if(addLast) { |
There was a problem hiding this comment.
addLast is currently being used to add groups to parent -- in-game groups go first, developer groups go last, so we cannot use it to manage group children.
Perhaps we can generalise this to something like addChild(index: Int, node: Node, isTransformApplied: Boolean) with the default implementation being just addChild(node: Node, isTransformApplied: Boolean) which adds it last.
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #1362 +/- ##
============================================
- Coverage 59.63% 59.57% -0.06%
- Complexity 2975 3026 +51
============================================
Files 310 320 +10
Lines 15310 15468 +158
Branches 1562 1583 +21
============================================
+ Hits 9130 9215 +85
- Misses 5657 5730 +73
Partials 523 523 ☔ View full report in Codecov by Sentry. |
Hi @AlmasB,
Add the possibility to add child to ViewComponent Last vs First.
No change to default behavior.
Reference: #1361