melodic-advantage-23638
01/25/2023, 10:32 PMambitious-knife-25690
01/25/2023, 10:33 PMambitious-knife-25690
01/25/2023, 10:33 PMelegant-twilight-61392
01/25/2023, 10:36 PMlate-engine-8731
01/25/2023, 10:36 PMlate-engine-8731
01/25/2023, 10:36 PMelegant-twilight-61392
01/25/2023, 10:37 PMHaxeUIApp
, then what is the intended way of creating components without it?elegant-twilight-61392
01/25/2023, 10:37 PMambitious-knife-25690
01/25/2023, 10:41 PMambitious-knife-25690
01/25/2023, 10:41 PMambitious-knife-25690
01/25/2023, 10:41 PMrenderTo
function in thereelegant-twilight-61392
01/25/2023, 10:42 PMCanvasItem
. but i cant just create one and draw on it and have it show up. i have to add that CanvasItem to godots scene tree for it to show upambitious-knife-25690
01/25/2023, 10:43 PMelegant-twilight-61392
01/25/2023, 10:43 PMambitious-knife-25690
01/25/2023, 10:43 PMrenderTo
function on the screen
instance which looks pretty simpleambitious-knife-25690
01/25/2023, 10:43 PMhx
public function renderTo(g:Graphics) {
var oldColor = g.color;
g.color = Color.White;
for (c in rootComponents) {
c.renderTo(g);
}
updateFPS(g);
g.color = oldColor;
}
ambitious-knife-25690
01/25/2023, 10:44 PMrenderTo
function and pass the graphics context to themambitious-knife-25690
01/25/2023, 10:44 PMScreen.render(canvasItem)
as part of your apps initlate-engine-8731
01/25/2023, 10:46 PMlate-engine-8731
01/25/2023, 10:46 PMambitious-knife-25690
01/25/2023, 10:46 PMlate-engine-8731
01/25/2023, 10:46 PMlate-engine-8731
01/25/2023, 10:47 PMambitious-knife-25690
01/25/2023, 10:47 PMambitious-knife-25690
01/25/2023, 10:48 PMelegant-twilight-61392
01/25/2023, 10:49 PMclass SomeNodeThatCreatesHaxeUIStuff extends Node
and then do whatever haxeui stuff in thereelegant-twilight-61392
01/25/2023, 10:49 PMelegant-twilight-61392
01/25/2023, 10:50 PMelegant-twilight-61392
01/25/2023, 10:51 PMHaxeUIRoot
to a sceneelegant-twilight-61392
01/25/2023, 10:55 PMHaxeUIApp
, you can just create components. but how do i give the component a way to access the scene tree?