bright-gpu-74537
07/06/2021, 4:17 AMbright-gpu-74537
07/06/2021, 4:17 AMbright-gpu-74537
07/06/2021, 4:58 AMhaxe
class Main {
public static function main() {
var app = new HaxeUIApp();
app.ready(function() {
app.addComponent(new MainView());
Lib.current.stage.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
Lib.current.stage.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
Lib.current.stage.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
Lib.current.stage.addEventListener(TouchEvent.TOUCH_OUT, onTouchOut);
app.start();
});
}
private static function onTouchMove(event:TouchEvent) {
trace("onTouchMove");
}
private static function onTouchBegin(event:TouchEvent) {
trace("onTouchBegin");
}
private static function onTouchEnd(event:TouchEvent) {
trace("onTouchEnd");
}
private static function onTouchOut(event:TouchEvent) {
trace("onTouchOut");
}
}
And it seemed to work fine on both windows and android (ie, the 3 buttons there onscreen from the xml work fine)bright-gpu-74537
07/06/2021, 4:58 AMmost-caravan-45834
07/06/2021, 1:00 PMbulky-exabyte-6537
07/06/2021, 2:44 PMListView to get the selectedItem in viewbulky-exabyte-6537
07/06/2021, 2:45 PMselectedIndex from codebulky-exabyte-6537
07/06/2021, 2:48 PMbulky-exabyte-6537
07/06/2021, 2:49 PMListView.itemHeight is -1bulky-exabyte-6537
07/06/2021, 2:50 PMhaxe
private function ensureVisible(itemToEnsure:ItemRenderer) {
if (itemToEnsure != null && _listview.virtual == false) { // TODO: virtual scroll into viewbulky-exabyte-6537
07/06/2021, 3:00 PMbulky-exabyte-6537
07/06/2021, 3:01 PMselectedIndex*26 is a good vscrollPosbright-gpu-74537
07/06/2021, 3:59 PMmost-caravan-45834
07/06/2021, 5:34 PMbright-gpu-74537
07/06/2021, 5:55 PMbulky-exabyte-6537
07/06/2021, 6:01 PMbright-gpu-74537
07/06/2021, 6:04 PMbulky-exabyte-6537
07/06/2021, 6:07 PMbright-gpu-74537
07/06/2021, 6:07 PMbright-gpu-74537
07/06/2021, 6:08 PMmost-caravan-45834
07/06/2021, 7:30 PMbright-gpu-74537
07/06/2021, 7:55 PMbright-gpu-74537
07/06/2021, 7:55 PMuser
07/06/2021, 8:28 PMComponentMacro more friendly with the vscode haxe extension?user
07/06/2021, 8:28 PMuser
07/06/2021, 8:29 PMbright-gpu-74537
07/06/2021, 8:29 PMbright-gpu-74537
07/06/2021, 8:30 PMuser
07/06/2021, 8:31 PMbright-gpu-74537
07/06/2021, 8:31 PM