happy-agent-4114
01/19/2023, 4:28 PMhappy-agent-4114
01/19/2023, 4:46 PMbright-gpu-74537
01/19/2023, 5:00 PMhappy-agent-4114
01/19/2023, 5:14 PMhappy-agent-4114
01/19/2023, 5:14 PMbright-gpu-74537
01/19/2023, 5:16 PMhappy-agent-4114
01/19/2023, 5:16 PMbright-gpu-74537
01/19/2023, 5:17 PMhappy-agent-4114
01/19/2023, 5:18 PMbright-gpu-74537
01/19/2023, 5:18 PMbright-gpu-74537
01/19/2023, 5:19 PMhaxe
unitSelector.registerEvent(ItemEvent.COMPONENT_EVENT, (event:ItemEvent) -> {
trace(event.source.text);
});
happy-agent-4114
01/19/2023, 5:19 PMhappy-agent-4114
01/19/2023, 5:19 PMbright-gpu-74537
01/19/2023, 5:20 PMhappy-agent-4114
01/19/2023, 5:22 PMhx
var node = coolTree.addNode({text:unitNames[EnumValueTools.getIndex(unit)], checked:(unit==A1)});
node.onClick = (_:UIEvent) -> {
if (node.data.checked) {
gp.units.push(unit);
}
else {
gp.units.remove(unit);
}
trace(node.data);
}
happy-agent-4114
01/19/2023, 5:23 PMhappy-agent-4114
01/19/2023, 5:24 PMbright-gpu-74537
01/19/2023, 5:25 PMbright-gpu-74537
01/19/2023, 5:25 PMhappy-agent-4114
01/19/2023, 5:25 PMhappy-agent-4114
01/19/2023, 5:25 PMbright-gpu-74537
01/19/2023, 5:26 PMhappy-agent-4114
01/19/2023, 5:28 PMbright-gpu-74537
01/19/2023, 5:53 PMbright-gpu-74537
01/19/2023, 5:54 PMhappy-agent-4114
01/19/2023, 5:55 PMhappy-agent-4114
01/19/2023, 5:55 PMbright-gpu-74537
01/19/2023, 5:56 PMhappy-agent-4114
01/19/2023, 5:58 PMhappy-agent-4114
01/19/2023, 5:58 PM