// Generated by Haxe 3.4.3 (function ($hx_exports, $global) { "use strict"; $hx_exports["lime"] = $hx_exports["lime"] || {}; var $hxClasses = {},$estr = function() { return js_Boot.__string_rec(this,''); }; function $extend(from, fields) { function Inherit() {} Inherit.prototype = from; var proto = new Inherit(); for (var name in fields) proto[name] = fields[name]; if( fields.toString !== Object.prototype.toString ) proto.toString = fields.toString; return proto; } var lime_app_IModule = function() { }; $hxClasses["lime.app.IModule"] = lime_app_IModule; lime_app_IModule.__name__ = ["lime","app","IModule"]; lime_app_IModule.prototype = { addRenderer: null ,addWindow: null ,registerModule: null ,removeRenderer: null ,removeWindow: null ,setPreloader: null ,unregisterModule: null ,__class__: lime_app_IModule }; var lime_app_Module = function() { this.onExit = new lime_app__$Event_$Int_$Void(); this.__renderers = []; this.__windows = []; }; $hxClasses["lime.app.Module"] = lime_app_Module; lime_app_Module.__name__ = ["lime","app","Module"]; lime_app_Module.__interfaces__ = [lime_app_IModule]; lime_app_Module.prototype = { onExit: null ,__application: null ,__preloader: null ,__renderers: null ,__windows: null ,addRenderer: function(renderer) { var f = $bind(this,this.render); var a1 = renderer; var tmp = function() { f(a1); }; renderer.onRender.add(tmp); var f1 = $bind(this,this.onRenderContextLost); var a11 = renderer; var tmp1 = function() { f1(a11); }; renderer.onContextLost.add(tmp1); var f2 = $bind(this,this.onRenderContextRestored); var a12 = renderer; var tmp2 = function(a2) { f2(a12,a2); }; renderer.onContextRestored.add(tmp2); this.__renderers.push(renderer); } ,addWindow: function(window) { var f = $bind(this,this.onWindowActivate); var a1 = window; var tmp = function() { f(a1); }; window.onActivate.add(tmp); var f1 = $bind(this,this.__onWindowClose); var a11 = window; var tmp1 = function() { f1(a11); }; window.onClose.add(tmp1,false,-10000); var f2 = $bind(this,this.onWindowCreate); var a12 = window; var tmp2 = function() { f2(a12); }; window.onCreate.add(tmp2); var f3 = $bind(this,this.onWindowDeactivate); var a13 = window; var tmp3 = function() { f3(a13); }; window.onDeactivate.add(tmp3); var f4 = $bind(this,this.onWindowDropFile); var a14 = window; var tmp4 = function(a2) { f4(a14,a2); }; window.onDropFile.add(tmp4); var f5 = $bind(this,this.onWindowEnter); var a15 = window; var tmp5 = function() { f5(a15); }; window.onEnter.add(tmp5); var f6 = $bind(this,this.onWindowFocusIn); var a16 = window; var tmp6 = function() { f6(a16); }; window.onFocusIn.add(tmp6); var f7 = $bind(this,this.onWindowFocusOut); var a17 = window; var tmp7 = function() { f7(a17); }; window.onFocusOut.add(tmp7); var f8 = $bind(this,this.onWindowFullscreen); var a18 = window; var tmp8 = function() { f8(a18); }; window.onFullscreen.add(tmp8); var f9 = $bind(this,this.onKeyDown); var a19 = window; var tmp9 = function(a21,a3) { f9(a19,a21,a3); }; window.onKeyDown.add(tmp9); var f10 = $bind(this,this.onKeyUp); var a110 = window; var tmp10 = function(a22,a31) { f10(a110,a22,a31); }; window.onKeyUp.add(tmp10); var f11 = $bind(this,this.onWindowLeave); var a111 = window; var tmp11 = function() { f11(a111); }; window.onLeave.add(tmp11); var f12 = $bind(this,this.onWindowMinimize); var a112 = window; var tmp12 = function() { f12(a112); }; window.onMinimize.add(tmp12); var f13 = $bind(this,this.onMouseDown); var a113 = window; var tmp13 = function(x,y,a23) { f13(a113,x,y,a23); }; window.onMouseDown.add(tmp13); var f14 = $bind(this,this.onMouseMove); var a114 = window; var tmp14 = function(x1,y1) { f14(a114,x1,y1); }; window.onMouseMove.add(tmp14); var f15 = $bind(this,this.onMouseMoveRelative); var a115 = window; var tmp15 = function(x2,y2) { f15(a115,x2,y2); }; window.onMouseMoveRelative.add(tmp15); var f16 = $bind(this,this.onMouseUp); var a116 = window; var tmp16 = function(x3,y3,a24) { f16(a116,x3,y3,a24); }; window.onMouseUp.add(tmp16); var f17 = $bind(this,this.onMouseWheel); var a117 = window; var tmp17 = function(a25,a32) { f17(a117,a25,a32); }; window.onMouseWheel.add(tmp17); var f18 = $bind(this,this.onWindowMove); var a118 = window; var tmp18 = function(x4,y4) { f18(a118,x4,y4); }; window.onMove.add(tmp18); var f19 = $bind(this,this.onWindowResize); var a119 = window; var tmp19 = function(a26,a33) { f19(a119,a26,a33); }; window.onResize.add(tmp19); var f20 = $bind(this,this.onWindowRestore); var a120 = window; var tmp20 = function() { f20(a120); }; window.onRestore.add(tmp20); var f21 = $bind(this,this.onTextEdit); var a121 = window; var tmp21 = function(a27,a34,a4) { f21(a121,a27,a34,a4); }; window.onTextEdit.add(tmp21); var f22 = $bind(this,this.onTextInput); var a122 = window; var tmp22 = function(a28) { f22(a122,a28); }; window.onTextInput.add(tmp22); if(window.id > -1) { this.onWindowCreate(window); } this.__windows.push(window); } ,registerModule: function(application) { this.__application = application; application.onExit.add($bind(this,this.onModuleExit),false,0); application.onUpdate.add($bind(this,this.update)); var gamepad = lime_ui_Gamepad.devices.iterator(); while(gamepad.hasNext()) { var gamepad1 = gamepad.next(); this.__onGamepadConnect(gamepad1); } lime_ui_Gamepad.onConnect.add($bind(this,this.__onGamepadConnect)); var joystick = lime_ui_Joystick.devices.iterator(); while(joystick.hasNext()) { var joystick1 = joystick.next(); this.__onJoystickConnect(joystick1); } lime_ui_Joystick.onConnect.add($bind(this,this.__onJoystickConnect)); lime_ui_Touch.onStart.add($bind(this,this.onTouchStart)); lime_ui_Touch.onMove.add($bind(this,this.onTouchMove)); lime_ui_Touch.onEnd.add($bind(this,this.onTouchEnd)); } ,removeRenderer: function(renderer) { if(renderer != null && this.__renderers.indexOf(renderer) > -1) { HxOverrides.remove(this.__renderers,renderer); } } ,removeWindow: function(window) { if(window != null && this.__windows.indexOf(window) > -1) { HxOverrides.remove(this.__windows,window); } } ,setPreloader: function(preloader) { if(this.__preloader != null) { this.__preloader.onProgress.remove($bind(this,this.onPreloadProgress)); this.__preloader.onComplete.remove($bind(this,this.onPreloadComplete)); } this.__preloader = preloader; if(preloader == null || preloader.complete) { this.onPreloadComplete(); } else { preloader.onProgress.add($bind(this,this.onPreloadProgress)); preloader.onComplete.add($bind(this,this.onPreloadComplete)); } } ,unregisterModule: function(application) { this.__application.onExit.remove($bind(this,this.onModuleExit)); this.__application.onUpdate.remove($bind(this,this.update)); lime_ui_Gamepad.onConnect.remove($bind(this,this.__onGamepadConnect)); lime_ui_Joystick.onConnect.remove($bind(this,this.__onJoystickConnect)); lime_ui_Touch.onStart.remove($bind(this,this.onTouchStart)); lime_ui_Touch.onMove.remove($bind(this,this.onTouchMove)); lime_ui_Touch.onEnd.remove($bind(this,this.onTouchEnd)); this.onModuleExit(0); } ,onGamepadAxisMove: function(gamepad,axis,value) { } ,onGamepadButtonDown: function(gamepad,button) { } ,onGamepadButtonUp: function(gamepad,button) { } ,onGamepadConnect: function(gamepad) { } ,onGamepadDisconnect: function(gamepad) { } ,onJoystickAxisMove: function(joystick,axis,value) { } ,onJoystickButtonDown: function(joystick,button) { } ,onJoystickButtonUp: function(joystick,button) { } ,onJoystickConnect: function(joystick) { } ,onJoystickDisconnect: function(joystick) { } ,onJoystickHatMove: function(joystick,hat,position) { } ,onJoystickTrackballMove: function(joystick,trackball,x,y) { } ,onKeyDown: function(window,keyCode,modifier) { } ,onKeyUp: function(window,keyCode,modifier) { } ,onModuleExit: function(code) { } ,onMouseDown: function(window,x,y,button) { } ,onMouseMove: function(window,x,y) { } ,onMouseMoveRelative: function(window,x,y) { } ,onMouseUp: function(window,x,y,button) { } ,onMouseWheel: function(window,deltaX,deltaY) { } ,onPreloadComplete: function() { } ,onPreloadProgress: function(loaded,total) { } ,onRenderContextLost: function(renderer) { } ,onRenderContextRestored: function(renderer,context) { } ,onTextEdit: function(window,text,start,length) { } ,onTextInput: function(window,text) { } ,onTouchEnd: function(touch) { } ,onTouchMove: function(touch) { } ,onTouchStart: function(touch) { } ,onWindowActivate: function(window) { } ,onWindowClose: function(window) { } ,onWindowCreate: function(window) { } ,onWindowDeactivate: function(window) { } ,onWindowDropFile: function(window,file) { } ,onWindowEnter: function(window) { } ,onWindowFocusIn: function(window) { } ,onWindowFocusOut: function(window) { } ,onWindowFullscreen: function(window) { } ,onWindowLeave: function(window) { } ,onWindowMove: function(window,x,y) { } ,onWindowMinimize: function(window) { } ,onWindowResize: function(window,width,height) { } ,onWindowRestore: function(window) { } ,render: function(renderer) { } ,update: function(deltaTime) { } ,__onGamepadConnect: function(gamepad) { this.onGamepadConnect(gamepad); var f = $bind(this,this.onGamepadAxisMove); var a1 = gamepad; var tmp = function(a2,a3) { f(a1,a2,a3); }; gamepad.onAxisMove.add(tmp); var f1 = $bind(this,this.onGamepadButtonDown); var a11 = gamepad; var tmp1 = function(a21) { f1(a11,a21); }; gamepad.onButtonDown.add(tmp1); var f2 = $bind(this,this.onGamepadButtonUp); var a12 = gamepad; var tmp2 = function(a22) { f2(a12,a22); }; gamepad.onButtonUp.add(tmp2); var f3 = $bind(this,this.onGamepadDisconnect); var a13 = gamepad; var tmp3 = function() { f3(a13); }; gamepad.onDisconnect.add(tmp3); } ,__onJoystickConnect: function(joystick) { this.onJoystickConnect(joystick); var f = $bind(this,this.onJoystickAxisMove); var a1 = joystick; var tmp = function(a2,a3) { f(a1,a2,a3); }; joystick.onAxisMove.add(tmp); var f1 = $bind(this,this.onJoystickButtonDown); var a11 = joystick; var tmp1 = function(a21) { f1(a11,a21); }; joystick.onButtonDown.add(tmp1); var f2 = $bind(this,this.onJoystickButtonUp); var a12 = joystick; var tmp2 = function(a22) { f2(a12,a22); }; joystick.onButtonUp.add(tmp2); var f3 = $bind(this,this.onJoystickDisconnect); var a13 = joystick; var tmp3 = function() { f3(a13); }; joystick.onDisconnect.add(tmp3); var f4 = $bind(this,this.onJoystickHatMove); var a14 = joystick; var tmp4 = function(a23,a31) { f4(a14,a23,a31); }; joystick.onHatMove.add(tmp4); var f5 = $bind(this,this.onJoystickTrackballMove); var a15 = joystick; var tmp5 = function(a24,x,y) { f5(a15,a24,x,y); }; joystick.onTrackballMove.add(tmp5); } ,__onWindowClose: function(window) { this.onWindowClose(window); HxOverrides.remove(this.__windows,window); } ,__class__: lime_app_Module }; var lime__$backend_html5_HTML5Application = function(parent) { this.gameDeviceCache = new haxe_ds_IntMap(); this.parent = parent; this.currentUpdate = 0; this.lastUpdate = 0; this.nextUpdate = 0; this.framePeriod = -1; lime_media_AudioManager.init(); }; $hxClasses["lime._backend.html5.HTML5Application"] = lime__$backend_html5_HTML5Application; lime__$backend_html5_HTML5Application.__name__ = ["lime","_backend","html5","HTML5Application"]; lime__$backend_html5_HTML5Application.prototype = { gameDeviceCache: null ,currentUpdate: null ,deltaTime: null ,framePeriod: null ,lastUpdate: null ,nextUpdate: null ,parent: null ,convertKeyCode: function(keyCode) { if(keyCode >= 65 && keyCode <= 90) { return keyCode + 32; } switch(keyCode) { case 16: return 1073742049; case 17: return 1073742048; case 18: return 1073742050; case 20: return 1073741881; case 33: return 1073741899; case 34: return 1073741902; case 35: return 1073741901; case 36: return 1073741898; case 37: return 1073741904; case 38: return 1073741906; case 39: return 1073741903; case 40: return 1073741905; case 45: return 1073741897; case 46: return 127; case 96: return 1073741922; case 97: return 1073741913; case 98: return 1073741914; case 99: return 1073741915; case 100: return 1073741916; case 101: return 1073741917; case 102: return 1073741918; case 103: return 1073741919; case 104: return 1073741920; case 105: return 1073741921; case 106: return 1073741909; case 107: return 1073741911; case 109: return 1073741910; case 110: return 1073741923; case 111: return 1073741908; case 112: return 1073741882; case 113: return 1073741883; case 114: return 1073741884; case 115: return 1073741885; case 116: return 1073741886; case 117: return 1073741887; case 118: return 1073741888; case 119: return 1073741889; case 120: return 1073741890; case 121: return 1073741891; case 122: return 1073741892; case 123: return 1073741893; case 124: return 1073741928; case 125: return 1073741929; case 126: return 1073741930; case 144: return 1073741907; case 186: return 59; case 187: return 61; case 188: return 44; case 189: return 45; case 190: return 46; case 191: return 47; case 192: return 96; case 219: return 91; case 220: return 92; case 221: return 93; case 222: return 39; } return keyCode; } ,create: function(config) { } ,exec: function() { window.addEventListener("keydown",$bind(this,this.handleKeyEvent),false); window.addEventListener("keyup",$bind(this,this.handleKeyEvent),false); window.addEventListener("focus",$bind(this,this.handleWindowEvent),false); window.addEventListener("blur",$bind(this,this.handleWindowEvent),false); window.addEventListener("resize",$bind(this,this.handleWindowEvent),false); window.addEventListener("beforeunload",$bind(this,this.handleWindowEvent),false); if (!CanvasRenderingContext2D.prototype.isPointInStroke) { CanvasRenderingContext2D.prototype.isPointInStroke = function (path, x, y) { return false; }; } if (!CanvasRenderingContext2D.prototype.isPointInPath) { CanvasRenderingContext2D.prototype.isPointInPath = function (path, x, y) { return false; }; } if ('performance' in window == false) { window.performance = {}; } if ('now' in window.performance == false) { var offset = Date.now(); if (performance.timing && performance.timing.navigationStart) { offset = performance.timing.navigationStart } window.performance.now = function now() { return Date.now() - offset; } } var lastTime = 0; var vendors = ['ms', 'moz', 'webkit', 'o']; for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame']; window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] || window[vendors[x]+'CancelRequestAnimationFrame']; } if (!window.requestAnimationFrame) window.requestAnimationFrame = function(callback, element) { var currTime = new Date().getTime(); var timeToCall = Math.max(0, 16 - (currTime - lastTime)); var id = window.setTimeout(function() { callback(currTime + timeToCall); }, timeToCall); lastTime = currTime + timeToCall; return id; }; if (!window.cancelAnimationFrame) window.cancelAnimationFrame = function(id) { clearTimeout(id); }; window.requestAnimFrame = window.requestAnimationFrame; ; this.lastUpdate = new Date().getTime(); this.handleApplicationEvent(); return 0; } ,exit: function() { } ,getFrameRate: function() { if(this.framePeriod < 0) { return 60; } else if(this.framePeriod == 1000) { return 0; } else { return 1000 / this.framePeriod; } } ,handleApplicationEvent: function(__) { if(this.parent.__windows[0] != null) { this.parent.__windows[0].backend.updateSize(); } this.updateGameDevices(); this.currentUpdate = new Date().getTime(); if(this.currentUpdate >= this.nextUpdate) { this.deltaTime = this.currentUpdate - this.lastUpdate; this.parent.onUpdate.dispatch(this.deltaTime | 0); if(this.parent.__renderers[0] != null && this.parent.__renderers[0].context != null) { this.parent.__renderers[0].render(); this.parent.__renderers[0].onRender.dispatch(); if(!this.parent.__renderers[0].onRender.canceled) { this.parent.__renderers[0].flip(); } } if(this.framePeriod < 0) { this.nextUpdate = this.currentUpdate; this.nextUpdate = this.currentUpdate; } else { this.nextUpdate = this.currentUpdate + this.framePeriod; } this.lastUpdate = this.currentUpdate; } window.requestAnimationFrame($bind(this,this.handleApplicationEvent)); } ,handleKeyEvent: function(event) { if(this.parent.__windows[0] != null) { var keyCode = this.convertKeyCode(event.keyCode != null ? event.keyCode : event.which); var modifier = (event.shiftKey ? 3 : 0) | (event.ctrlKey ? 192 : 0) | (event.altKey ? 768 : 0) | (event.metaKey ? 3072 : 0); if(event.type == "keydown") { this.parent.__windows[0].onKeyDown.dispatch(keyCode,modifier); if(this.parent.__windows[0].onKeyDown.canceled) { event.preventDefault(); } } else { this.parent.__windows[0].onKeyUp.dispatch(keyCode,modifier); if(this.parent.__windows[0].onKeyUp.canceled) { event.preventDefault(); } } } } ,handleWindowEvent: function(event) { if(this.parent.__windows[0] != null) { var _g = event.type; switch(_g) { case "beforeunload": this.parent.__windows[0].onClose.dispatch(); break; case "blur": this.parent.__windows[0].onFocusOut.dispatch(); this.parent.__windows[0].onDeactivate.dispatch(); break; case "focus": this.parent.__windows[0].onFocusIn.dispatch(); this.parent.__windows[0].onActivate.dispatch(); break; case "resize": this.parent.__windows[0].backend.handleResizeEvent(event); break; } } } ,setFrameRate: function(value) { if(value >= 60) { this.framePeriod = -1; } else if(value > 0) { this.framePeriod = 1000 / value; } else { this.framePeriod = 1000; } return value; } ,updateGameDevices: function() { var devices = lime_ui_Joystick.__getDeviceData(); if(devices == null) { return; } var id; var gamepad; var joystick; var data; var cache; var _g1 = 0; var _g = devices.length; while(_g1 < _g) { var i = _g1++; id = i; data = devices[id]; if(data == null) { continue; } if(!this.gameDeviceCache.h.hasOwnProperty(id)) { cache = new lime__$backend_html5_GameDeviceData(); cache.id = id; cache.connected = data.connected; var _g3 = 0; var _g2 = data.buttons.length; while(_g3 < _g2) { var i1 = _g3++; cache.buttons.push(data.buttons[i1].value); } var _g31 = 0; var _g21 = data.axes.length; while(_g31 < _g21) { var i2 = _g31++; cache.axes.push(data.axes[i2]); } if(data.mapping == "standard") { cache.isGamepad = true; } this.gameDeviceCache.h[id] = cache; if(data.connected) { lime_ui_Joystick.__connect(id); if(cache.isGamepad) { lime_ui_Gamepad.__connect(id); } } } cache = this.gameDeviceCache.h[id]; joystick = lime_ui_Joystick.devices.h[id]; gamepad = lime_ui_Gamepad.devices.h[id]; if(data.connected) { var button; var value; var _g32 = 0; var _g22 = data.buttons.length; while(_g32 < _g22) { var i3 = _g32++; value = data.buttons[i3].value; if(value != cache.buttons[i3]) { if(i3 == 6) { joystick.onAxisMove.dispatch(data.axes.length,value); if(gamepad != null) { gamepad.onAxisMove.dispatch(4,value); } } else if(i3 == 7) { joystick.onAxisMove.dispatch(data.axes.length + 1,value); if(gamepad != null) { gamepad.onAxisMove.dispatch(5,value); } } else { if(value > 0) { joystick.onButtonDown.dispatch(i3); } else { joystick.onButtonUp.dispatch(i3); } if(gamepad != null) { switch(i3) { case 0: button = 0; break; case 1: button = 1; break; case 2: button = 2; break; case 3: button = 3; break; case 4: button = 9; break; case 5: button = 10; break; case 8: button = 4; break; case 9: button = 6; break; case 10: button = 7; break; case 11: button = 8; break; case 12: button = 11; break; case 13: button = 12; break; case 14: button = 13; break; case 15: button = 14; break; case 16: button = 5; break; default: continue; } if(value > 0) { gamepad.onButtonDown.dispatch(button); } else { gamepad.onButtonUp.dispatch(button); } } } cache.buttons[i3] = value; } } var _g33 = 0; var _g23 = data.axes.length; while(_g33 < _g23) { var i4 = _g33++; if(data.axes[i4] != cache.axes[i4]) { joystick.onAxisMove.dispatch(i4,data.axes[i4]); if(gamepad != null) { gamepad.onAxisMove.dispatch(i4,data.axes[i4]); } cache.axes[i4] = data.axes[i4]; } } } else if(cache.connected) { cache.connected = false; lime_ui_Joystick.__disconnect(id); lime_ui_Gamepad.__disconnect(id); } } } ,__class__: lime__$backend_html5_HTML5Application }; var lime_app_Application = function() { this.onUpdate = new lime_app__$Event_$Int_$Void(); lime_app_Module.call(this); if(lime_app_Application.current == null) { lime_app_Application.current = this; } this.modules = []; this.windowByID = new haxe_ds_IntMap(); this.backend = new lime__$backend_html5_HTML5Application(this); this.registerModule(this); }; $hxClasses["lime.app.Application"] = lime_app_Application; lime_app_Application.__name__ = ["lime","app","Application"]; lime_app_Application.__super__ = lime_app_Module; lime_app_Application.prototype = $extend(lime_app_Module.prototype,{ config: null ,modules: null ,preloader: null ,onUpdate: null ,renderer: null ,renderers: null ,window: null ,windows: null ,backend: null ,windowByID: null ,addModule: function(module) { module.registerModule(this); this.modules.push(module); if(this.__renderers.length > 0) { var _g = 0; var _g1 = this.__renderers; while(_g < _g1.length) { var renderer = _g1[_g]; ++_g; module.addRenderer(renderer); } } if(this.__windows.length > 0) { var _g2 = 0; var _g11 = this.__windows; while(_g2 < _g11.length) { var $window = _g11[_g2]; ++_g2; module.addWindow($window); } } module.setPreloader(this.__preloader); } ,addRenderer: function(renderer) { lime_app_Module.prototype.addRenderer.call(this,renderer); var _g = 0; var _g1 = this.modules; while(_g < _g1.length) { var module = _g1[_g]; ++_g; module.addRenderer(renderer); } } ,create: function(config) { this.config = config; this.backend.create(config); if(config != null) { if(Object.prototype.hasOwnProperty.call(config,"fps")) { this.backend.setFrameRate(config.fps); } if(Object.prototype.hasOwnProperty.call(config,"windows")) { var _g = 0; var _g1 = config.windows; while(_g < _g1.length) { var windowConfig = _g1[_g]; ++_g; var $window = new lime_ui_Window(windowConfig); this.createWindow($window); break; } } if(this.__preloader == null || this.__preloader.complete) { this.setPreloader(this.__preloader); var _g2 = 0; var _g11 = this.modules; while(_g2 < _g11.length) { var module = _g11[_g2]; ++_g2; this.setPreloader(this.__preloader); } } } } ,createWindow: function(window) { lime_app_Module.prototype.addWindow.call(this,window); var _g = 0; var _g1 = this.modules; while(_g < _g1.length) { var module = _g1[_g]; ++_g; module.addWindow(window); } if(window.renderer == null) { var renderer = new lime_graphics_Renderer(window); this.addRenderer(renderer); } window.create(this); this.windowByID.h[window.id] = window; window.onCreate.dispatch(); } ,exec: function() { lime_app_Application.current = this; return this.backend.exec(); } ,onModuleExit: function(code) { this.backend.exit(); } ,onWindowClose: function(window) { this.removeWindow(window); } ,removeModule: function(module) { if(module != null) { module.unregisterModule(this); HxOverrides.remove(this.modules,module); } } ,removeWindow: function(window) { if(window != null && this.windowByID.h.hasOwnProperty(window.id)) { HxOverrides.remove(this.__windows,window); this.windowByID.remove(window.id); window.close(); if(window.renderer != null) { this.removeRenderer(window.renderer); } if(this.__windows[0] == window) { this.window = null; } if(this.__windows.length == 0) { lime_system_System.exit(0); } } } ,setPreloader: function(preloader) { lime_app_Module.prototype.setPreloader.call(this,preloader); var _g = 0; var _g1 = this.modules; while(_g < _g1.length) { var module = _g1[_g]; ++_g; module.setPreloader(preloader); } } ,get_frameRate: function() { return this.backend.getFrameRate(); } ,set_frameRate: function(value) { return this.backend.setFrameRate(value); } ,get_preloader: function() { return this.__preloader; } ,get_renderer: function() { return this.__renderers[0]; } ,get_renderers: function() { return this.__renderers; } ,get_window: function() { return this.__windows[0]; } ,get_windows: function() { return this.__windows; } ,__class__: lime_app_Application ,__properties__: {get_windows:"get_windows",get_window:"get_window",get_renderers:"get_renderers",get_renderer:"get_renderer",get_preloader:"get_preloader",set_frameRate:"set_frameRate",get_frameRate:"get_frameRate"} }); var ApplicationMain = function() { }; $hxClasses["ApplicationMain"] = ApplicationMain; ApplicationMain.__name__ = ["ApplicationMain"]; ApplicationMain.main = function() { var projectName = "acadia"; var config = { build : "336", company : "", file : "acadia", fps : 30, name : "acadia", orientation : "landscape", packageName : "acadia", version : "1.0.1", windows : [{ allowHighDPI : false, alwaysOnTop : false, antialiasing : 0, background : 0, borderless : false, depthBuffer : false, display : 0, fullscreen : false, hardware : true, height : 1024, hidden : false, maximized : false, minimized : false, parameters : { }, resizable : true, stencilBuffer : true, title : "acadia", vsync : false, width : 1820, x : null, y : null}]}; lime_system_System.__registerEntryPoint(projectName,ApplicationMain.create,config); }; ApplicationMain.create = function(config) { var app = new openfl_display_Application(); app.create(config); ManifestResources.init(config); var preloader = new openfl_display_Preloader(new openfl_display_DefaultPreloader()); app.setPreloader(preloader); preloader.create(config); var a1 = app.__windows[0].stage; var tmp = function() { ApplicationMain.start(a1); }; preloader.onComplete.add(tmp); var _g = 0; var _g1 = ManifestResources.preloadLibraries; while(_g < _g1.length) { var library = _g1[_g]; ++_g; preloader.addLibrary(library); } var _g2 = 0; var _g11 = ManifestResources.preloadLibraryNames; while(_g2 < _g11.length) { var name = _g11[_g2]; ++_g2; preloader.addLibraryName(name); } preloader.load(); var result = app.exec(); }; ApplicationMain.start = function(stage) { try { var current = stage.getChildAt(0); if(current == null || !js_Boot.__instanceof(current,openfl_display_DisplayObjectContainer)) { current = new openfl_display_MovieClip(); stage.addChild(current); } new DocumentClass(current); stage.dispatchEvent(new openfl_events_Event("resize",false,false)); if(stage.window.__fullscreen) { stage.dispatchEvent(new openfl_events_FullScreenEvent("fullScreen",false,false,true,true)); } } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; stage.__handleError(e); } }; var openfl_events_IEventDispatcher = function() { }; $hxClasses["openfl.events.IEventDispatcher"] = openfl_events_IEventDispatcher; openfl_events_IEventDispatcher.__name__ = ["openfl","events","IEventDispatcher"]; openfl_events_IEventDispatcher.prototype = { addEventListener: null ,dispatchEvent: null ,hasEventListener: null ,removeEventListener: null ,willTrigger: null ,__class__: openfl_events_IEventDispatcher }; var openfl_events_EventDispatcher = function(target) { if(target != null) { this.__targetDispatcher = target; } }; $hxClasses["openfl.events.EventDispatcher"] = openfl_events_EventDispatcher; openfl_events_EventDispatcher.__name__ = ["openfl","events","EventDispatcher"]; openfl_events_EventDispatcher.__interfaces__ = [openfl_events_IEventDispatcher]; openfl_events_EventDispatcher.prototype = { __eventMap: null ,__iterators: null ,__targetDispatcher: null ,addEventListener: function(type,listener,useCapture,priority,useWeakReference) { if(useWeakReference == null) { useWeakReference = false; } if(priority == null) { priority = 0; } if(useCapture == null) { useCapture = false; } if(listener == null) { return; } if(this.__eventMap == null) { this.__eventMap = new haxe_ds_StringMap(); this.__iterators = new haxe_ds_StringMap(); } var _this = this.__eventMap; if(!(__map_reserved[type] != null ? _this.existsReserved(type) : _this.h.hasOwnProperty(type))) { var list = []; list.push(new openfl_events__$EventDispatcher_Listener(listener,useCapture,priority)); var iterator = new openfl_events__$EventDispatcher_DispatchIterator(list); var _this1 = this.__eventMap; if(__map_reserved[type] != null) { _this1.setReserved(type,list); } else { _this1.h[type] = list; } var _this2 = this.__iterators; var value = [iterator]; if(__map_reserved[type] != null) { _this2.setReserved(type,value); } else { _this2.h[type] = value; } } else { var _this3 = this.__eventMap; var list1 = __map_reserved[type] != null ? _this3.getReserved(type) : _this3.h[type]; var _g1 = 0; var _g = list1.length; while(_g1 < _g) { var i = _g1++; if(list1[i].match(listener,useCapture)) { return; } } var _this4 = this.__iterators; var iterators = __map_reserved[type] != null ? _this4.getReserved(type) : _this4.h[type]; var _g2 = 0; while(_g2 < iterators.length) { var iterator1 = iterators[_g2]; ++_g2; if(iterator1.active) { iterator1.copy(); } } this.__addListenerByPriority(list1,new openfl_events__$EventDispatcher_Listener(listener,useCapture,priority)); } } ,dispatchEvent: function(event) { if(this.__targetDispatcher != null) { event.target = this.__targetDispatcher; } else { event.target = this; } return this.__dispatchEvent(event); } ,hasEventListener: function(type) { if(this.__eventMap == null) { return false; } var _this = this.__eventMap; if(__map_reserved[type] != null) { return _this.existsReserved(type); } else { return _this.h.hasOwnProperty(type); } } ,removeEventListener: function(type,listener,useCapture) { if(useCapture == null) { useCapture = false; } if(this.__eventMap == null || listener == null) { return; } var _this = this.__eventMap; var list = __map_reserved[type] != null ? _this.getReserved(type) : _this.h[type]; if(list == null) { return; } var _this1 = this.__iterators; var iterators = __map_reserved[type] != null ? _this1.getReserved(type) : _this1.h[type]; var _g1 = 0; var _g = list.length; while(_g1 < _g) { var i = _g1++; if(list[i].match(listener,useCapture)) { var _g2 = 0; while(_g2 < iterators.length) { var iterator = iterators[_g2]; ++_g2; iterator.remove(list[i],i); } list.splice(i,1); break; } } if(list.length == 0) { this.__eventMap.remove(type); this.__iterators.remove(type); } var _this2 = this.__eventMap; if(!new haxe_ds__$StringMap_StringMapIterator(_this2,_this2.arrayKeys()).hasNext()) { this.__eventMap = null; this.__iterators = null; } } ,toString: function() { var full = Type.getClassName(js_Boot.getClass(this)); var $short = full.split(".").pop(); return "[object " + $short + "]"; } ,willTrigger: function(type) { return this.hasEventListener(type); } ,__dispatchEvent: function(event) { if(this.__eventMap == null || event == null) { return true; } var type = event.type; var _this = this.__eventMap; var list = __map_reserved[type] != null ? _this.getReserved(type) : _this.h[type]; if(list == null) { return true; } if(event.target == null) { if(this.__targetDispatcher != null) { event.target = this.__targetDispatcher; } else { event.target = this; } } event.currentTarget = this; var capture = event.eventPhase == 1; var index = 0; var _this1 = this.__iterators; var iterators = __map_reserved[type] != null ? _this1.getReserved(type) : _this1.h[type]; var iterator = iterators[0]; if(iterator.active) { iterator = new openfl_events__$EventDispatcher_DispatchIterator(list); iterators.push(iterator); } iterator.reset(list); var listener = iterator; while(listener.hasNext()) { var listener1 = listener.next(); if(listener1 == null) { continue; } if(listener1.useCapture == capture) { listener1.callback(event); if(event.__isCanceledNow) { break; } } } if(iterator != iterators[0]) { HxOverrides.remove(iterators,iterator); } return true; } ,__removeAllListeners: function() { this.__eventMap = null; this.__iterators = null; } ,__addListenerByPriority: function(list,listener) { var numElements = list.length; var addAtPosition = numElements; var _g1 = 0; var _g = numElements; while(_g1 < _g) { var i = _g1++; if(list[i].priority < listener.priority) { addAtPosition = i; break; } } list.splice(addAtPosition,0,listener); } ,__class__: openfl_events_EventDispatcher }; var openfl_display_IBitmapDrawable = function() { }; $hxClasses["openfl.display.IBitmapDrawable"] = openfl_display_IBitmapDrawable; openfl_display_IBitmapDrawable.__name__ = ["openfl","display","IBitmapDrawable"]; openfl_display_IBitmapDrawable.prototype = { __blendMode: null ,__transform: null ,__worldTransform: null ,__worldColorTransform: null ,__getBounds: null ,__renderCairo: null ,__renderCairoMask: null ,__renderCanvas: null ,__renderCanvasMask: null ,__renderGL: null ,__updateChildren: null ,__updateTransforms: null ,__updateMask: null ,__class__: openfl_display_IBitmapDrawable }; var openfl_display_DisplayObject = function() { openfl_events_EventDispatcher.call(this); this.__alpha = 1; this.__blendMode = 10; this.__cacheAsBitmap = false; this.__transform = new openfl_geom_Matrix(); this.__visible = true; this.__rotation = 0; this.__rotationSine = 0; this.__rotationCosine = 1; this.__scaleX = 1; this.__scaleY = 1; this.__worldAlpha = 1; this.__worldBlendMode = 10; this.__worldTransform = new openfl_geom_Matrix(); this.__worldColorTransform = new openfl_geom_ColorTransform(); this.__renderTransform = new openfl_geom_Matrix(); this.set_name("instance" + ++openfl_display_DisplayObject.__instanceCount); }; $hxClasses["openfl.display.DisplayObject"] = openfl_display_DisplayObject; openfl_display_DisplayObject.__name__ = ["openfl","display","DisplayObject"]; openfl_display_DisplayObject.__interfaces__ = [openfl_display_IBitmapDrawable]; openfl_display_DisplayObject.__super__ = openfl_events_EventDispatcher; openfl_display_DisplayObject.prototype = $extend(openfl_events_EventDispatcher.prototype,{ opaqueBackground: null ,parent: null ,scale9Grid: null ,stage: null ,__alpha: null ,__blendMode: null ,__cacheAsBitmap: null ,__cacheAsBitmapMatrix: null ,__cacheBitmap: null ,__cacheBitmapBackground: null ,__cacheBitmapColorTransform: null ,__cacheBitmapData: null ,__cacheBitmapRender: null ,__cairo: null ,__children: null ,__filters: null ,__graphics: null ,__interactive: null ,__isMask: null ,__loaderInfo: null ,__mask: null ,__name: null ,__objectTransform: null ,__renderable: null ,__renderDirty: null ,__renderParent: null ,__renderTransform: null ,__renderTransformCache: null ,__renderTransformChanged: null ,__rotation: null ,__rotationCosine: null ,__rotationSine: null ,__scaleX: null ,__scaleY: null ,__scrollRect: null ,__transform: null ,__transformDirty: null ,__visible: null ,__worldAlpha: null ,__worldAlphaChanged: null ,__worldBlendMode: null ,__worldClip: null ,__worldClipChanged: null ,__worldColorTransform: null ,__worldTransform: null ,__worldVisible: null ,__worldVisibleChanged: null ,__worldTransformInvalid: null ,__worldZ: null ,__canvas: null ,__context: null ,__style: null ,addEventListener: function(type,listener,useCapture,priority,useWeakReference) { if(useWeakReference == null) { useWeakReference = false; } if(priority == null) { priority = 0; } if(useCapture == null) { useCapture = false; } switch(type) { case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render": if(!openfl_display_DisplayObject.__broadcastEvents.exists(type)) { openfl_display_DisplayObject.__broadcastEvents.set(type,[]); } var dispatchers = openfl_display_DisplayObject.__broadcastEvents.get(type); if(dispatchers.indexOf(this) == -1) { dispatchers.push(this); } break; default: } openfl_events_EventDispatcher.prototype.addEventListener.call(this,type,listener,useCapture,priority,useWeakReference); } ,dispatchEvent: function(event) { if(js_Boot.__instanceof(event,openfl_events_MouseEvent)) { var mouseEvent = event; var _this = this.__getRenderTransform(); mouseEvent.stageX = mouseEvent.localX * _this.a + mouseEvent.localY * _this.c + _this.tx; var _this1 = this.__getRenderTransform(); mouseEvent.stageY = mouseEvent.localX * _this1.b + mouseEvent.localY * _this1.d + _this1.ty; } else if(js_Boot.__instanceof(event,openfl_events_TouchEvent)) { var touchEvent = event; var _this2 = this.__getRenderTransform(); touchEvent.stageX = touchEvent.localX * _this2.a + touchEvent.localY * _this2.c + _this2.tx; var _this3 = this.__getRenderTransform(); touchEvent.stageY = touchEvent.localX * _this3.b + touchEvent.localY * _this3.d + _this3.ty; } return openfl_events_EventDispatcher.prototype.dispatchEvent.call(this,event); } ,getBounds: function(targetCoordinateSpace) { var matrix; var usingTemp = false; if(targetCoordinateSpace != null) { matrix = this.__getWorldTransform().clone(); matrix.concat(targetCoordinateSpace.__getWorldTransform().clone().invert()); } else { usingTemp = true; matrix = openfl_geom_Matrix.__pool.get(); matrix.identity(); } var bounds = new openfl_geom_Rectangle(); this.__getBounds(bounds,matrix); if(usingTemp) { openfl_geom_Matrix.__pool.release(matrix); } return bounds; } ,getRect: function(targetCoordinateSpace) { return this.getBounds(targetCoordinateSpace); } ,globalToLocal: function(pos) { return this.__globalToLocal(pos,new openfl_geom_Point()); } ,hitTestObject: function(obj) { if(obj != null && obj.parent != null && this.parent != null) { var currentBounds = this.getBounds(this); var targetBounds = obj.getBounds(this); return currentBounds.intersects(targetBounds); } return false; } ,hitTestPoint: function(x,y,shapeFlag) { if(shapeFlag == null) { shapeFlag = false; } if(this.stage != null) { return this.__hitTest(x,y,shapeFlag,null,true,this); } else { return false; } } ,localToGlobal: function(point) { return this.__getRenderTransform().transformPoint(point); } ,removeEventListener: function(type,listener,useCapture) { if(useCapture == null) { useCapture = false; } openfl_events_EventDispatcher.prototype.removeEventListener.call(this,type,listener,useCapture); switch(type) { case "activate":case "deactivate":case "enterFrame":case "exitFrame":case "frameConstructed":case "render": if(!this.hasEventListener(type)) { if(openfl_display_DisplayObject.__broadcastEvents.exists(type)) { HxOverrides.remove(openfl_display_DisplayObject.__broadcastEvents.get(type),this); } } break; default: } } ,__cleanup: function() { this.__cairo = null; this.__canvas = null; this.__context = null; if(this.__graphics != null) { this.__graphics.__cleanup(); } } ,__dispatch: function(event) { if(this.__eventMap != null && this.hasEventListener(event.type)) { var result = openfl_events_EventDispatcher.prototype.__dispatchEvent.call(this,event); if(event.__isCanceled) { return true; } return result; } return true; } ,__dispatchChildren: function(event,stack) { event.target = this; if(this.parent != null) { event.eventPhase = 1; if(this.parent == this.stage) { this.parent.__dispatchEvent(event); } else { var parent = this.parent; var i = 0; while(parent != null) { stack.data.set(i,parent); parent = parent.parent; ++i; } var _g1 = 0; var _g = i; while(_g1 < _g) { var j = _g1++; stack.data.get(i - j - 1).__dispatchEvent(event); } } } event.eventPhase = 2; return this.__dispatchEvent(event); } ,__dispatchEvent: function(event) { var result = openfl_events_EventDispatcher.prototype.__dispatchEvent.call(this,event); if(event.__isCanceled) { return true; } if(event.bubbles && this.parent != null && this.parent != this) { event.eventPhase = 3; if(event.target == null) { event.target = this; } this.parent.__dispatchEvent(event); } return result; } ,__dispatchStack: function(event,stack) { var target; var length = stack.length; if(length == 0) { event.eventPhase = 2; target = event.target; target.__dispatch(event); } else { event.eventPhase = 1; event.target = stack[stack.length - 1]; var _g1 = 0; var _g = length - 1; while(_g1 < _g) { var i = _g1++; stack[i].__dispatch(event); if(event.__isCanceled) { return; } } event.eventPhase = 2; target = event.target; target.__dispatch(event); if(event.__isCanceled) { return; } if(event.bubbles) { event.eventPhase = 3; var i1 = length - 2; while(i1 >= 0) { stack[i1].__dispatch(event); if(event.__isCanceled) { return; } --i1; } } } } ,__enterFrame: function(deltaTime) { } ,__getBounds: function(rect,matrix) { if(this.__graphics != null) { this.__graphics.__getBounds(rect,matrix); } } ,__getCursor: function() { return null; } ,__getFilterBounds: function(rect,matrix) { this.__getBounds(rect,matrix); if(this.__filters != null && this.__filters.length > 0) { var extension = openfl_geom_Rectangle.__pool.get(); var _g = 0; var _g1 = this.__filters; while(_g < _g1.length) { var filter = _g1[_g]; ++_g; extension.__expand(-filter.__leftExtension,-filter.__topExtension,filter.__leftExtension + filter.__rightExtension,filter.__topExtension + filter.__bottomExtension); } rect.width += extension.width; rect.height += extension.height; rect.x += extension.x; rect.y += extension.y; openfl_geom_Rectangle.__pool.release(extension); } } ,__getInteractive: function(stack) { return false; } ,__getLocalBounds: function(rect) { this.__getBounds(rect,this.__transform); rect.x -= this.__transform.tx; rect.y -= this.__transform.ty; } ,__getRenderBounds: function(rect,matrix) { if(this.__scrollRect == null) { this.__getBounds(rect,matrix); } else { var r = openfl_geom_Rectangle.__pool.get(); r.copyFrom(this.__scrollRect); r.__transform(r,matrix); rect.__expand(matrix.tx,matrix.ty,r.width,r.height); openfl_geom_Rectangle.__pool.release(r); } } ,__getRenderTransform: function() { this.__getWorldTransform(); return this.__renderTransform; } ,__getWorldTransform: function() { var transformDirty = this.__transformDirty || this.__worldTransformInvalid; if(transformDirty) { var list = []; var current = this; if(this.parent == null) { this.__update(true,false); } else { while(current != this.stage) { list.push(current); current = current.parent; if(current == null) { break; } } } var i = list.length; while(--i >= 0) { current = list[i]; current.__update(true,false); current.__worldTransformInvalid = false; } } return this.__worldTransform; } ,__globalToLocal: function(global,local) { this.__getRenderTransform(); if(global == local) { var _this = this.__renderTransform; var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { global.x = -_this.tx; global.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - global.y) + _this.d * (global.x - _this.tx)); global.y = 1.0 / norm * (_this.a * (global.y - _this.ty) + _this.b * (_this.tx - global.x)); global.x = px; } } else { var _this1 = this.__renderTransform; var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; local.x = norm1 == 0 ? -_this1.tx : 1.0 / norm1 * (_this1.c * (_this1.ty - global.y) + _this1.d * (global.x - _this1.tx)); var _this2 = this.__renderTransform; var norm2 = _this2.a * _this2.d - _this2.b * _this2.c; local.y = norm2 == 0 ? -_this2.ty : 1.0 / norm2 * (_this2.a * (global.y - _this2.ty) + _this2.b * (_this2.tx - global.x)); } return local; } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { if(this.__graphics != null) { if(!hitObject.get_visible() || this.__isMask) { return false; } if(this.get_mask() != null && !this.get_mask().__hitTestMask(x,y)) { return false; } if(this.__graphics.__hitTest(x,y,shapeFlag,this.__getRenderTransform())) { if(stack != null && !interactiveOnly) { stack.push(hitObject); } return true; } } return false; } ,__hitTestMask: function(x,y) { if(this.__graphics != null) { if(this.__graphics.__hitTest(x,y,true,this.__getRenderTransform())) { return true; } } return false; } ,__readGraphicsData: function(graphicsData,recurse) { if(this.__graphics != null) { this.__graphics.__readGraphicsData(graphicsData); } } ,__renderCairo: function(renderSession) { } ,__renderCairoMask: function(renderSession) { } ,__renderCanvas: function(renderSession) { if(this.get_mask() == null || this.get_mask().get_width() > 0 && this.get_mask().get_height() > 0) { this.__updateCacheBitmap(renderSession,!this.__worldColorTransform.__isDefault()); if(this.__cacheBitmap != null && !this.__cacheBitmapRender) { var bitmap = this.__cacheBitmap; if(!(!bitmap.__renderable || bitmap.__worldAlpha <= 0)) { var context = renderSession.context; if(bitmap.bitmapData != null && bitmap.bitmapData.__isValid && bitmap.bitmapData.readable) { renderSession.blendModeManager.setBlendMode(bitmap.__worldBlendMode); renderSession.maskManager.pushObject(bitmap,false); lime_graphics_utils_ImageCanvasUtil.convertToCanvas(bitmap.bitmapData.image); context.globalAlpha = bitmap.__worldAlpha; var transform = bitmap.__renderTransform; var scrollRect = bitmap.__scrollRect; if(renderSession.roundPixels) { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx | 0,transform.ty | 0); } else { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); } if(!renderSession.allowSmoothing || !bitmap.smoothing) { context.mozImageSmoothingEnabled = false; context.msImageSmoothingEnabled = false; context.imageSmoothingEnabled = false; } if(scrollRect == null) { context.drawImage(bitmap.bitmapData.image.get_src(),0,0); } else { context.drawImage(bitmap.bitmapData.image.get_src(),scrollRect.x,scrollRect.y,scrollRect.width,scrollRect.height,scrollRect.x,scrollRect.y,scrollRect.width,scrollRect.height); } if(!renderSession.allowSmoothing || !bitmap.smoothing) { context.mozImageSmoothingEnabled = true; context.msImageSmoothingEnabled = true; context.imageSmoothingEnabled = true; } renderSession.maskManager.popObject(bitmap,false); } } } else if(!(this.opaqueBackground == null && this.__graphics == null)) { if(!(!this.__renderable || this.__worldAlpha <= 0)) { if(this.opaqueBackground != null && !this.__cacheBitmapRender && this.get_width() > 0 && this.get_height() > 0) { renderSession.blendModeManager.setBlendMode(this.__worldBlendMode); renderSession.maskManager.pushObject(this); var context1 = renderSession.context; var transform1 = this.__renderTransform; if(renderSession.roundPixels) { context1.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx | 0,transform1.ty | 0); } else { context1.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx,transform1.ty); } var color = this.opaqueBackground; context1.fillStyle = "rgb(" + (color >>> 16 & 255) + "," + (color >>> 8 & 255) + "," + (color & 255) + ")"; context1.fillRect(0,0,this.get_width(),this.get_height()); renderSession.maskManager.popObject(this); } if(this.__graphics != null) { if(!(!this.__renderable || this.__worldAlpha <= 0)) { var graphics = this.__graphics; if(graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,this.__renderTransform); var bounds = graphics.__bounds; var width = graphics.__width; var height = graphics.__height; if(graphics.__canvas != null) { var context2 = renderSession.context; var scrollRect1 = this.__scrollRect; if(width > 0 && height > 0 && (scrollRect1 == null || scrollRect1.width > 0 && scrollRect1.height > 0)) { renderSession.blendModeManager.setBlendMode(this.__worldBlendMode); renderSession.maskManager.pushObject(this); context2.globalAlpha = this.__worldAlpha; var transform2 = graphics.__worldTransform; if(renderSession.roundPixels) { context2.setTransform(transform2.a,transform2.b,transform2.c,transform2.d,transform2.tx | 0,transform2.ty | 0); } else { context2.setTransform(transform2.a,transform2.b,transform2.c,transform2.d,transform2.tx,transform2.ty); } context2.drawImage(graphics.__canvas,0,0); renderSession.maskManager.popObject(this); } } } } } } } } } ,__renderCanvasMask: function(renderSession) { if(this.__graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.renderMask(this.__graphics,renderSession); } } ,__renderDOM: function(renderSession) { } ,__renderDOMClear: function(renderSession) { } ,__renderGL: function(renderSession) { this.__updateCacheBitmap(renderSession,false); if(this.__cacheBitmap != null && !this.__cacheBitmapRender) { openfl__$internal_renderer_opengl_GLBitmap.render(this.__cacheBitmap,renderSession); } else if(!(this.opaqueBackground == null && this.__graphics == null)) { if(!(!this.__renderable || this.__worldAlpha <= 0)) { if(this.opaqueBackground != null && !this.__cacheBitmapRender && this.get_width() > 0 && this.get_height() > 0) { renderSession.blendModeManager.setBlendMode(this.__worldBlendMode); renderSession.maskManager.pushObject(this); var gl = renderSession.gl; var rect = openfl_geom_Rectangle.__pool.get(); rect.setTo(0,0,this.get_width(),this.get_height()); renderSession.maskManager.pushRect(rect,this.__renderTransform); var color = this.opaqueBackground; gl.__context.clearColor((color >>> 16 & 255) / 255,(color >>> 8 & 255) / 255,(color & 255) / 255,1); gl.__context.clear(gl.COLOR_BUFFER_BIT); renderSession.maskManager.popRect(); renderSession.maskManager.popObject(this); openfl_geom_Rectangle.__pool.release(rect); } if(this.__graphics != null) { if(!(!this.__renderable || this.__worldAlpha <= 0)) { var graphics = this.__graphics; if(graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,this.__renderTransform); var bounds = graphics.__bounds; if(graphics.__bitmap != null && graphics.__visible) { var renderer = renderSession.renderer; var gl1 = renderSession.gl; renderSession.blendModeManager.setBlendMode(this.__worldBlendMode); renderSession.maskManager.pushObject(this); var shader = renderSession.filterManager.pushObject(this); renderSession.shaderManager.setShader(shader); shader.get_data().uImage0.input = graphics.__bitmap; shader.get_data().uImage0.smoothing = renderSession.allowSmoothing; shader.get_data().uMatrix.value = renderer.getMatrix(graphics.__worldTransform); var useColorTransform = !this.__worldColorTransform.__isDefault(); if(shader.get_data().uColorTransform.value == null) { shader.get_data().uColorTransform.value = []; } shader.get_data().uColorTransform.value[0] = useColorTransform; renderSession.shaderManager.updateShader(shader); var target = gl1.ARRAY_BUFFER; var buffer = graphics.__bitmap.getBuffer(gl1,this.__worldAlpha,this.__worldColorTransform); gl1.__context.bindBuffer(target,buffer); var index = shader.get_data().aPosition.index; var type = gl1.FLOAT; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); gl1.__context.vertexAttribPointer(index,3,type,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); var index1 = shader.get_data().aTexCoord.index; var type1 = gl1.FLOAT; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(12); gl1.__context.vertexAttribPointer(index1,2,type1,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); var index2 = shader.get_data().aAlpha.index; var type2 = gl1.FLOAT; var offset2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(20); gl1.__context.vertexAttribPointer(index2,1,type2,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset2)); var index3 = shader.get_data().aColorMultipliers.index; var type3 = gl1.FLOAT; var offset3 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(24); gl1.__context.vertexAttribPointer(index3,4,type3,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset3)); var index4 = shader.get_data().aColorMultipliers.index + 1; var type4 = gl1.FLOAT; var offset4 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(40); gl1.__context.vertexAttribPointer(index4,4,type4,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset4)); var index5 = shader.get_data().aColorMultipliers.index + 2; var type5 = gl1.FLOAT; var offset5 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(56); gl1.__context.vertexAttribPointer(index5,4,type5,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset5)); var index6 = shader.get_data().aColorMultipliers.index + 3; var type6 = gl1.FLOAT; var offset6 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(72); gl1.__context.vertexAttribPointer(index6,4,type6,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset6)); var index7 = shader.get_data().aColorOffsets.index; var type7 = gl1.FLOAT; var offset7 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(88); gl1.__context.vertexAttribPointer(index7,4,type7,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset7)); gl1.__context.drawArrays(gl1.TRIANGLE_STRIP,0,4); renderSession.filterManager.popObject(this); renderSession.maskManager.popObject(this); } } } } } } } ,__setParentRenderDirty: function() { var renderParent = this.__renderParent != null ? this.__renderParent : this.parent; if(renderParent != null && !renderParent.__renderDirty) { renderParent.__renderDirty = true; renderParent.__setParentRenderDirty(); } } ,__setRenderDirty: function() { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } ,__setStageReference: function(stage) { this.stage = stage; } ,__setTransformDirty: function() { if(!this.__transformDirty) { this.__transformDirty = true; this.__setWorldTransformInvalid(); this.__setParentRenderDirty(); } } ,__setWorldTransformInvalid: function() { this.__worldTransformInvalid = true; } ,__stopAllMovieClips: function() { } ,__update: function(transformOnly,updateChildren,maskGraphics) { var renderParent = this.__renderParent != null ? this.__renderParent : this.parent; this.__renderable = this.get_visible() && this.__scaleX != 0 && this.__scaleY != 0 && !this.__isMask && (renderParent == null || !renderParent.__isMask); this.__updateTransforms(); this.__transformDirty = false; if(maskGraphics != null) { this.__updateMask(maskGraphics); } if(!transformOnly) { if(!this.__worldColorTransform.__equals(this.get_transform().get_colorTransform())) { this.__worldColorTransform = this.get_transform().get_colorTransform().__clone(); } if(renderParent != null) { this.__worldAlpha = this.get_alpha() * renderParent.__worldAlpha; this.__worldColorTransform.__combine(renderParent.__worldColorTransform); if(this.__blendMode == null || this.__blendMode == 10) { this.__worldBlendMode = renderParent.__blendMode; } else { this.__worldBlendMode = this.__blendMode; } } else { this.__worldAlpha = this.get_alpha(); } } } ,__updateCacheBitmap: function(renderSession,force) { if(this.__cacheBitmapRender) { return; } if(this.get_cacheAsBitmap()) { var matrix = null; var rect = null; if(!renderSession.lockTransform) { this.__getWorldTransform(); } this.__update(false,true); var needRender = this.__cacheBitmap == null || this.__renderDirty && (force || this.__children != null && this.__children.length > 0) || this.opaqueBackground != this.__cacheBitmapBackground || !this.__cacheBitmapColorTransform.__equals(this.__worldColorTransform); var updateTransform = needRender || !this.__cacheBitmap.__worldTransform.equals(this.__worldTransform); var hasFilters = this.__filters != null && this.__filters.length > 0; var bitmapWidth = 0; var bitmapHeight = 0; if(updateTransform || hasFilters) { matrix = openfl_geom_Matrix.__pool.get(); rect = openfl_geom_Rectangle.__pool.get(); matrix.identity(); this.__getFilterBounds(rect,this.__renderTransform); bitmapWidth = Math.ceil(rect.width); bitmapHeight = Math.ceil(rect.height); } if(hasFilters) { if(this.__cacheBitmap != null && (bitmapWidth != this.__cacheBitmap.get_width() || bitmapHeight != this.__cacheBitmap.get_height())) { needRender = true; } else { var _g = 0; var _g1 = this.__filters; while(_g < _g1.length) { var filter = _g1[_g]; ++_g; if(filter.__renderDirty) { needRender = true; break; } } } } if(needRender) { this.__cacheBitmapBackground = this.opaqueBackground; var color = this.opaqueBackground != null ? -16777216 | this.opaqueBackground : 0; if(rect.width >= 0.5 && rect.height >= 0.5) { if(this.__cacheBitmap == null || bitmapWidth != this.__cacheBitmap.get_width() || bitmapHeight != this.__cacheBitmap.get_height()) { this.__cacheBitmapData = new openfl_display_BitmapData(bitmapWidth,bitmapHeight,true,color); if(this.__cacheBitmap == null) { this.__cacheBitmap = new openfl_display_Bitmap(); } this.__cacheBitmap.set_bitmapData(this.__cacheBitmapData); } else { this.__cacheBitmapData.fillRect(this.__cacheBitmapData.rect,color); } } else { this.__cacheBitmap = null; this.__cacheBitmapData = null; return; } } if(updateTransform || needRender) { this.__cacheBitmap.__worldTransform.copyFrom(this.__worldTransform); this.__cacheBitmap.__renderTransform.identity(); this.__cacheBitmap.__renderTransform.tx = rect.x; this.__cacheBitmap.__renderTransform.ty = rect.y; matrix.concat(this.__renderTransform); matrix.tx -= Math.round(rect.x); matrix.ty -= Math.round(rect.y); } this.__cacheBitmap.smoothing = renderSession.allowSmoothing; this.__cacheBitmap.__renderable = this.__renderable; this.__cacheBitmap.__worldAlpha = this.__worldAlpha; this.__cacheBitmap.__worldBlendMode = this.__worldBlendMode; this.__cacheBitmap.__scrollRect = this.__scrollRect; if(needRender) { this.__cacheBitmapRender = true; this.__cacheBitmapData.__draw(this,matrix,null,null,null,renderSession.allowSmoothing); if(hasFilters) { var needSecondBitmapData = false; var needCopyOfOriginal = false; var _g2 = 0; var _g11 = this.__filters; while(_g2 < _g11.length) { var filter1 = _g11[_g2]; ++_g2; if(filter1.__needSecondBitmapData) { needSecondBitmapData = true; } if(filter1.__preserveObject) { needCopyOfOriginal = true; } } var bitmapData = this.__cacheBitmapData; var bitmapData2 = null; var bitmapData3 = null; if(needSecondBitmapData) { bitmapData2 = new openfl_display_BitmapData(bitmapData.width,bitmapData.height,true,0); } else { bitmapData2 = bitmapData; } if(needCopyOfOriginal) { bitmapData3 = new openfl_display_BitmapData(bitmapData.width,bitmapData.height,true,0); } var sourceRect = bitmapData.rect; var destPoint = new openfl_geom_Point(); var cacheBitmap; var lastBitmap; var _g3 = 0; var _g12 = this.__filters; while(_g3 < _g12.length) { var filter2 = _g12[_g3]; ++_g3; if(filter2.__preserveObject) { bitmapData3.copyPixels(bitmapData,bitmapData.rect,destPoint); } lastBitmap = filter2.__applyFilter(bitmapData2,bitmapData,sourceRect,destPoint); if(filter2.__preserveObject) { lastBitmap.draw(bitmapData3); } filter2.__renderDirty = false; if(needSecondBitmapData && lastBitmap == bitmapData2) { cacheBitmap = bitmapData; bitmapData = bitmapData2; bitmapData2 = cacheBitmap; } } this.__cacheBitmap.set_bitmapData(bitmapData); } this.__cacheBitmapRender = false; if(this.__cacheBitmapColorTransform == null) { this.__cacheBitmapColorTransform = new openfl_geom_ColorTransform(); } this.__cacheBitmapColorTransform.__copyFrom(this.__worldColorTransform); if(!this.__cacheBitmapColorTransform.__isDefault()) { this.__cacheBitmapData.colorTransform(this.__cacheBitmapData.rect,this.__cacheBitmapColorTransform); } } if(updateTransform) { this.__update(false,true); openfl_geom_Matrix.__pool.release(matrix); openfl_geom_Rectangle.__pool.release(rect); } } else if(this.__cacheBitmap != null) { this.__cacheBitmap = null; this.__cacheBitmapData = null; this.__cacheBitmapColorTransform = null; } } ,__updateChildren: function(transformOnly) { var renderParent = this.__renderParent != null ? this.__renderParent : this.parent; this.__renderable = this.get_visible() && this.__scaleX != 0 && this.__scaleY != 0 && !this.__isMask && (renderParent == null || !renderParent.__isMask); this.__worldAlpha = this.get_alpha(); this.__worldBlendMode = this.get_blendMode(); if(this.__transformDirty) { this.__transformDirty = false; } } ,__updateMask: function(maskGraphics) { if(this.__graphics != null) { maskGraphics.__commands.overrideMatrix(this.__worldTransform); maskGraphics.__commands.append(this.__graphics.__commands); maskGraphics.set___dirty(true); maskGraphics.__visible = true; if(maskGraphics.__bounds == null) { maskGraphics.__bounds = new openfl_geom_Rectangle(); } this.__graphics.__getBounds(maskGraphics.__bounds,openfl_geom_Matrix.__identity); } } ,__updateTransforms: function(overrideTransform) { var overrided = overrideTransform != null; var local = overrided ? overrideTransform : this.__transform; if(this.__worldTransform == null) { this.__worldTransform = new openfl_geom_Matrix(); } if(this.__renderTransform == null) { this.__renderTransform = new openfl_geom_Matrix(); } var renderParent = this.__renderParent != null ? this.__renderParent : this.parent; var parentTransform; if(!overrided && this.parent != null) { parentTransform = this.parent.__worldTransform; this.__worldTransform.a = local.a * parentTransform.a + local.b * parentTransform.c; this.__worldTransform.b = local.a * parentTransform.b + local.b * parentTransform.d; this.__worldTransform.c = local.c * parentTransform.a + local.d * parentTransform.c; this.__worldTransform.d = local.c * parentTransform.b + local.d * parentTransform.d; this.__worldTransform.tx = local.tx * parentTransform.a + local.ty * parentTransform.c + parentTransform.tx; this.__worldTransform.ty = local.tx * parentTransform.b + local.ty * parentTransform.d + parentTransform.ty; } else { this.__worldTransform.copyFrom(local); } if(!overrided && renderParent != null) { parentTransform = renderParent.__renderTransform; this.__renderTransform.a = local.a * parentTransform.a + local.b * parentTransform.c; this.__renderTransform.b = local.a * parentTransform.b + local.b * parentTransform.d; this.__renderTransform.c = local.c * parentTransform.a + local.d * parentTransform.c; this.__renderTransform.d = local.c * parentTransform.b + local.d * parentTransform.d; this.__renderTransform.tx = local.tx * parentTransform.a + local.ty * parentTransform.c + parentTransform.tx; this.__renderTransform.ty = local.tx * parentTransform.b + local.ty * parentTransform.d + parentTransform.ty; } else { this.__renderTransform.copyFrom(local); } if(this.__scrollRect != null) { var _this = this.__renderTransform; var px = -this.__scrollRect.x; var py = -this.__scrollRect.y; _this.tx = px * _this.a + py * _this.c + _this.tx; _this.ty = px * _this.b + py * _this.d + _this.ty; } } ,get_alpha: function() { return this.__alpha; } ,set_alpha: function(value) { if(value > 1.0) { value = 1.0; } if(value != this.__alpha) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__alpha = value; } ,get_blendMode: function() { return this.__blendMode; } ,set_blendMode: function(value) { if(value == null) { value = 10; } if(value != this.__blendMode) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__blendMode = value; } ,get_cacheAsBitmap: function() { if(this.__filters == null) { return this.__cacheAsBitmap; } else { return true; } } ,set_cacheAsBitmap: function(value) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } return this.__cacheAsBitmap = value; } ,get_cacheAsBitmapMatrix: function() { return this.__cacheAsBitmapMatrix; } ,set_cacheAsBitmapMatrix: function(value) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } return this.__cacheAsBitmapMatrix = value.clone(); } ,get_filters: function() { if(this.__filters == null) { return []; } else { return this.__filters.slice(); } } ,set_filters: function(value) { if(value != null && value.length > 0) { this.__filters = value; } else { this.__filters = null; } if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } return value; } ,get_height: function() { var rect = openfl_geom_Rectangle.__pool.get(); this.__getLocalBounds(rect); var height = rect.height; openfl_geom_Rectangle.__pool.release(rect); return height; } ,set_height: function(value) { var rect = openfl_geom_Rectangle.__pool.get(); var matrix = openfl_geom_Matrix.__pool.get(); matrix.identity(); this.__getBounds(rect,matrix); if(value != rect.height) { this.set_scaleY(value / rect.height); } else { this.set_scaleY(1); } openfl_geom_Rectangle.__pool.release(rect); openfl_geom_Matrix.__pool.release(matrix); return value; } ,get_loaderInfo: function() { if(this.stage != null) { return openfl_Lib.current.__loaderInfo; } return null; } ,get_mask: function() { return this.__mask; } ,set_mask: function(value) { if(value != this.__mask) { this.__setTransformDirty(); if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } if(this.__mask != null) { this.__mask.__isMask = false; this.__mask.__setTransformDirty(); var _this = this.__mask; if(!_this.__renderDirty) { _this.__renderDirty = true; _this.__setParentRenderDirty(); } } if(value != null) { value.__isMask = true; } return this.__mask = value; } ,get_mouseX: function() { var mouseX = this.stage != null ? this.stage.__mouseX : openfl_Lib.current.stage.__mouseX; var mouseY = this.stage != null ? this.stage.__mouseY : openfl_Lib.current.stage.__mouseY; var _this = this.__getRenderTransform(); var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { return -_this.tx; } else { return 1.0 / norm * (_this.c * (_this.ty - mouseY) + _this.d * (mouseX - _this.tx)); } } ,get_mouseY: function() { var mouseX = this.stage != null ? this.stage.__mouseX : openfl_Lib.current.stage.__mouseX; var mouseY = this.stage != null ? this.stage.__mouseY : openfl_Lib.current.stage.__mouseY; var _this = this.__getRenderTransform(); var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { return -_this.ty; } else { return 1.0 / norm * (_this.a * (mouseY - _this.ty) + _this.b * (_this.tx - mouseX)); } } ,get_name: function() { return this.__name; } ,set_name: function(value) { return this.__name = value; } ,get_root: function() { if(this.stage != null) { return openfl_Lib.current; } return null; } ,get_rotation: function() { return this.__rotation; } ,set_rotation: function(value) { if(value != this.__rotation) { this.__rotation = value; var radians = this.__rotation * (Math.PI / 180); this.__rotationSine = Math.sin(radians); this.__rotationCosine = Math.cos(radians); this.__transform.a = this.__rotationCosine * this.__scaleX; this.__transform.b = this.__rotationSine * this.__scaleX; this.__transform.c = -this.__rotationSine * this.__scaleY; this.__transform.d = this.__rotationCosine * this.__scaleY; this.__setTransformDirty(); } return value; } ,get_scaleX: function() { return this.__scaleX; } ,set_scaleX: function(value) { if(value != this.__scaleX) { this.__scaleX = value; if(this.__transform.b == 0) { if(value != this.__transform.a) { this.__setTransformDirty(); } this.__transform.a = value; } else { var a = this.__rotationCosine * value; var b = this.__rotationSine * value; if(this.__transform.a != a || this.__transform.b != b) { this.__setTransformDirty(); } this.__transform.a = a; this.__transform.b = b; } } return value; } ,get_scaleY: function() { return this.__scaleY; } ,set_scaleY: function(value) { if(value != this.__scaleY) { this.__scaleY = value; if(this.__transform.c == 0) { if(value != this.__transform.d) { this.__setTransformDirty(); } this.__transform.d = value; } else { var c = -this.__rotationSine * value; var d = this.__rotationCosine * value; if(this.__transform.d != d || this.__transform.c != c) { this.__setTransformDirty(); } this.__transform.c = c; this.__transform.d = d; } } return value; } ,get_scrollRect: function() { if(this.__scrollRect == null) { return null; } return this.__scrollRect.clone(); } ,set_scrollRect: function(value) { if(value != this.__scrollRect) { this.__setTransformDirty(); } return this.__scrollRect = value; } ,get_transform: function() { if(this.__objectTransform == null) { this.__objectTransform = new openfl_geom_Transform(this); } return this.__objectTransform; } ,set_transform: function(value) { if(value == null) { throw new js__$Boot_HaxeError(new openfl_errors_TypeError("Parameter transform must be non-null.")); } if(this.__objectTransform == null) { this.__objectTransform = new openfl_geom_Transform(this); } this.__setTransformDirty(); this.__objectTransform.set_matrix(value.get_matrix()); this.__objectTransform.set_colorTransform(value.get_colorTransform().__clone()); return this.__objectTransform; } ,get_visible: function() { return this.__visible; } ,set_visible: function(value) { if(value != this.__visible) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__visible = value; } ,get_width: function() { var rect = openfl_geom_Rectangle.__pool.get(); this.__getLocalBounds(rect); var width = rect.width; openfl_geom_Rectangle.__pool.release(rect); return width; } ,set_width: function(value) { var rect = openfl_geom_Rectangle.__pool.get(); var matrix = openfl_geom_Matrix.__pool.get(); matrix.identity(); this.__getBounds(rect,matrix); if(value != rect.width) { this.set_scaleX(value / rect.width); } else { this.set_scaleX(1); } openfl_geom_Rectangle.__pool.release(rect); openfl_geom_Matrix.__pool.release(matrix); return value; } ,get_x: function() { return this.__transform.tx; } ,set_x: function(value) { if(value != this.__transform.tx) { this.__setTransformDirty(); } return this.__transform.tx = value; } ,get_y: function() { return this.__transform.ty; } ,set_y: function(value) { if(value != this.__transform.ty) { this.__setTransformDirty(); } return this.__transform.ty = value; } ,__class__: openfl_display_DisplayObject ,__properties__: {set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width",get_width:"get_width",set_visible:"set_visible",get_visible:"get_visible",set_transform:"set_transform",get_transform:"get_transform",set_scrollRect:"set_scrollRect",get_scrollRect:"get_scrollRect",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_rotation:"set_rotation",get_rotation:"get_rotation",get_root:"get_root",set_name:"set_name",get_name:"get_name",get_mouseY:"get_mouseY",get_mouseX:"get_mouseX",set_mask:"set_mask",get_mask:"get_mask",get_loaderInfo:"get_loaderInfo",set_height:"set_height",get_height:"get_height",set_filters:"set_filters",get_filters:"get_filters",set_cacheAsBitmapMatrix:"set_cacheAsBitmapMatrix",get_cacheAsBitmapMatrix:"get_cacheAsBitmapMatrix",set_cacheAsBitmap:"set_cacheAsBitmap",get_cacheAsBitmap:"get_cacheAsBitmap",set_blendMode:"set_blendMode",get_blendMode:"get_blendMode",set_alpha:"set_alpha",get_alpha:"get_alpha"} }); var openfl_display_InteractiveObject = function() { openfl_display_DisplayObject.call(this); this.doubleClickEnabled = false; this.mouseEnabled = true; this.needsSoftKeyboard = false; this.__tabEnabled = false; this.tabIndex = -1; }; $hxClasses["openfl.display.InteractiveObject"] = openfl_display_InteractiveObject; openfl_display_InteractiveObject.__name__ = ["openfl","display","InteractiveObject"]; openfl_display_InteractiveObject.__super__ = openfl_display_DisplayObject; openfl_display_InteractiveObject.prototype = $extend(openfl_display_DisplayObject.prototype,{ doubleClickEnabled: null ,focusRect: null ,mouseEnabled: null ,needsSoftKeyboard: null ,softKeyboardInputAreaOfInterest: null ,tabIndex: null ,__tabEnabled: null ,requestSoftKeyboard: function() { openfl_Lib.notImplemented({ fileName : "InteractiveObject.hx", lineNumber : 42, className : "openfl.display.InteractiveObject", methodName : "requestSoftKeyboard"}); return false; } ,__getInteractive: function(stack) { if(stack != null) { stack.push(this); if(this.parent != null) { this.parent.__getInteractive(stack); } } return true; } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { if(!hitObject.get_visible() || this.__isMask || interactiveOnly && !this.mouseEnabled) { return false; } return openfl_display_DisplayObject.prototype.__hitTest.call(this,x,y,shapeFlag,stack,interactiveOnly,hitObject); } ,get_tabEnabled: function() { return this.__tabEnabled; } ,set_tabEnabled: function(value) { return this.__tabEnabled = value; } ,__class__: openfl_display_InteractiveObject ,__properties__: $extend(openfl_display_DisplayObject.prototype.__properties__,{set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"}) }); var openfl_display_DisplayObjectContainer = function() { openfl_display_InteractiveObject.call(this); this.mouseChildren = true; this.__children = []; this.__removedChildren = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); this.__tempStack = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); }; $hxClasses["openfl.display.DisplayObjectContainer"] = openfl_display_DisplayObjectContainer; openfl_display_DisplayObjectContainer.__name__ = ["openfl","display","DisplayObjectContainer"]; openfl_display_DisplayObjectContainer.__super__ = openfl_display_InteractiveObject; openfl_display_DisplayObjectContainer.prototype = $extend(openfl_display_InteractiveObject.prototype,{ mouseChildren: null ,tabChildren: null ,__removedChildren: null ,__tempStack: null ,addChild: function(child) { return this.addChildAt(child,this.get_numChildren()); } ,addChildAt: function(child,index) { if(child == null) { var error = new openfl_errors_TypeError("Error #2007: Parameter child must be non-null."); error.errorID = 2007; throw new js__$Boot_HaxeError(error); } if(index > this.__children.length || index < 0) { throw new js__$Boot_HaxeError("Invalid index position " + index); } if(child.parent == this) { if(this.__children[index] != child) { HxOverrides.remove(this.__children,child); this.__children.splice(index,0,child); if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } } else { if(child.parent != null) { child.parent.removeChild(child); } this.__children.splice(index,0,child); child.parent = this; var addedToStage = this.stage != null && child.stage == null; if(addedToStage) { this.__setStageReference(this.stage); } child.__setTransformDirty(); if(!child.__renderDirty) { child.__renderDirty = true; child.__setParentRenderDirty(); } if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } var event = new openfl_events_Event("added",true); event.target = child; child.__dispatchEvent(event); if(addedToStage) { child.__dispatchChildren(new openfl_events_Event("addedToStage",false,false),this.__tempStack); this.__tempStack.data.set_length(0); } } return child; } ,areInaccessibleObjectsUnderPoint: function(point) { return false; } ,contains: function(child) { while(child != this && child != null) child = child.parent; return child == this; } ,getChildAt: function(index) { if(index >= 0 && index < this.__children.length) { return this.__children[index]; } return null; } ,getChildByName: function(name) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; if(child.get_name() == name) { return child; } } return null; } ,getChildIndex: function(child) { var _g1 = 0; var _g = this.__children.length; while(_g1 < _g) { var i = _g1++; if(this.__children[i] == child) { return i; } } return -1; } ,getObjectsUnderPoint: function(point) { var stack = []; this.__hitTest(point.x,point.y,false,stack,false,this); stack.reverse(); return stack; } ,removeChild: function(child) { if(child != null && child.parent == this) { child.__setTransformDirty(); if(!child.__renderDirty) { child.__renderDirty = true; child.__setParentRenderDirty(); } if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } child.__dispatchEvent(new openfl_events_Event("removed",true)); if(this.stage != null) { if(child.stage != null && this.stage.get_focus() == child) { this.stage.set_focus(null); } child.__dispatchChildren(new openfl_events_Event("removedFromStage",false,false),this.__tempStack); this.__tempStack.data.set_length(0); child.__setStageReference(null); } child.parent = null; HxOverrides.remove(this.__children,child); this.__removedChildren.data.push(child); child.__setTransformDirty(); } return child; } ,removeChildAt: function(index) { if(index >= 0 && index < this.__children.length) { return this.removeChild(this.__children[index]); } return null; } ,removeChildren: function(beginIndex,endIndex) { if(endIndex == null) { endIndex = 2147483647; } if(beginIndex == null) { beginIndex = 0; } if(endIndex == 2147483647) { endIndex = this.__children.length - 1; if(endIndex < 0) { return; } } if(beginIndex > this.__children.length - 1) { return; } else if(endIndex < beginIndex || beginIndex < 0 || endIndex > this.__children.length) { throw new js__$Boot_HaxeError(new openfl_errors_RangeError("The supplied index is out of bounds.")); } var numRemovals = endIndex - beginIndex; while(numRemovals >= 0) { this.removeChildAt(beginIndex); --numRemovals; } } ,resolve: function(fieldName) { if(this.__children == null) { return null; } var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; if(child.get_name() == fieldName) { return child; } } return null; } ,setChildIndex: function(child,index) { if(index >= 0 && index <= this.__children.length && child.parent == this) { HxOverrides.remove(this.__children,child); this.__children.splice(index,0,child); } } ,stopAllMovieClips: function() { this.__stopAllMovieClips(); } ,swapChildren: function(child1,child2) { if(child1.parent == this && child2.parent == this) { var index1 = this.__children.indexOf(child1); var index2 = this.__children.indexOf(child2); this.__children[index1] = child2; this.__children[index2] = child1; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } } ,swapChildrenAt: function(index1,index2) { var swap = this.__children[index1]; this.__children[index1] = this.__children[index2]; this.__children[index2] = swap; swap = null; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } ,__dispatchChildren: function(event,stack) { var success = openfl_display_InteractiveObject.prototype.__dispatchChildren.call(this,event,stack); if(success && this.__children != null) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; if(!child.__dispatchChildren(event,stack)) { return false; } } } return success; } ,__enterFrame: function(deltaTime) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__enterFrame(deltaTime); } } ,__getBounds: function(rect,matrix) { openfl_display_InteractiveObject.prototype.__getBounds.call(this,rect,matrix); if(this.__children.length == 0) { return; } if(matrix != null) { this.__updateTransforms(matrix); this.__updateChildren(true); } var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; if(child.__scaleX == 0 || child.__scaleY == 0) { continue; } child.__getBounds(rect,child.__worldTransform); } if(matrix != null) { this.__updateTransforms(); this.__updateChildren(true); } } ,__getFilterBounds: function(rect,matrix) { openfl_display_InteractiveObject.prototype.__getFilterBounds.call(this,rect,matrix); if(this.__children.length == 0) { return; } if(matrix != null) { this.__updateTransforms(matrix); this.__updateChildren(true); } var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; if(child.__scaleX == 0 || child.__scaleY == 0 || child.__isMask) { continue; } child.__getFilterBounds(rect,child.__worldTransform); } if(matrix != null) { this.__updateTransforms(); this.__updateChildren(true); } } ,__getRenderBounds: function(rect,matrix) { if(this.__scrollRect != null) { openfl_display_InteractiveObject.prototype.__getRenderBounds.call(this,rect,matrix); return; } else { openfl_display_InteractiveObject.prototype.__getBounds.call(this,rect,matrix); } if(this.__children.length == 0) { return; } if(matrix != null) { this.__updateTransforms(matrix); this.__updateChildren(true); } var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; if(child.__scaleX == 0 || child.__scaleY == 0 || child.__isMask) { continue; } child.__getRenderBounds(rect,child.__worldTransform); } if(matrix != null) { this.__updateTransforms(); this.__updateChildren(true); } } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { if(!hitObject.get_visible() || this.__isMask || interactiveOnly && !this.mouseEnabled && !this.mouseChildren) { return false; } if(this.get_mask() != null && !this.get_mask().__hitTestMask(x,y)) { return false; } if(this.__scrollRect != null) { var point = openfl_geom_Point.__pool.get(); point.setTo(x,y); var _this = this.__getRenderTransform(); var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { point.x = -_this.tx; point.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - point.y) + _this.d * (point.x - _this.tx)); point.y = 1.0 / norm * (_this.a * (point.y - _this.ty) + _this.b * (_this.tx - point.x)); point.x = px; } if(!this.__scrollRect.containsPoint(point)) { openfl_geom_Point.__pool.release(point); return false; } openfl_geom_Point.__pool.release(point); } var i = this.__children.length; if(interactiveOnly) { if(stack == null || !this.mouseChildren) { while(--i >= 0) if(this.__children[i].__hitTest(x,y,shapeFlag,null,true,this.__children[i])) { if(stack != null) { stack.push(hitObject); } return true; } } else if(stack != null) { var length = stack.length; var interactive = false; var hitTest = false; while(--i >= 0) { interactive = this.__children[i].__getInteractive(null); if(interactive || this.mouseEnabled && !hitTest) { if(this.__children[i].__hitTest(x,y,shapeFlag,stack,true,this.__children[i])) { hitTest = true; if(interactive) { break; } } } } if(hitTest) { stack.splice(length,0,hitObject); return true; } } } else { while(--i >= 0) this.__children[i].__hitTest(x,y,shapeFlag,stack,false,this.__children[i]); } return false; } ,__hitTestMask: function(x,y) { var i = this.__children.length; while(--i >= 0) if(this.__children[i].__hitTestMask(x,y)) { return true; } return false; } ,__readGraphicsData: function(graphicsData,recurse) { openfl_display_InteractiveObject.prototype.__readGraphicsData.call(this,graphicsData,recurse); if(recurse) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__readGraphicsData(graphicsData,recurse); } } } ,__renderCairo: function(renderSession) { } ,__renderCairoMask: function(renderSession) { } ,__renderCanvas: function(renderSession) { if(!this.__renderable || this.__worldAlpha <= 0 || this.get_mask() != null && (this.get_mask().get_width() <= 0 || this.get_mask().get_height() <= 0)) { return; } openfl_display_InteractiveObject.prototype.__renderCanvas.call(this,renderSession); if(this.__cacheBitmap != null && !this.__cacheBitmapRender) { return; } renderSession.maskManager.pushObject(this); if(renderSession.clearRenderDirty) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__renderCanvas(renderSession); child.__renderDirty = false; } this.__renderDirty = false; } else { var _g2 = 0; var _g11 = this.__children; while(_g2 < _g11.length) { var child1 = _g11[_g2]; ++_g2; child1.__renderCanvas(renderSession); } } var _g3 = 0; var _g12 = this.__removedChildren; while(_g3 < _g12.data.get_length()) { var orphan = _g12.data.get(_g3); ++_g3; if(orphan.stage == null) { orphan.__cleanup(); } } this.__removedChildren.data.set_length(0); renderSession.maskManager.popObject(this); } ,__renderCanvasMask: function(renderSession) { if(this.__graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.renderMask(this.__graphics,renderSession); } var bounds = openfl_geom_Rectangle.__pool.get(); this.__getLocalBounds(bounds); renderSession.context.rect(0,0,bounds.width,bounds.height); openfl_geom_Rectangle.__pool.release(bounds); } ,__renderDOM: function(renderSession) { } ,__renderDOMClear: function(renderSession) { } ,__renderGL: function(renderSession) { if(!this.__renderable || this.__worldAlpha <= 0) { return; } openfl_display_InteractiveObject.prototype.__renderGL.call(this,renderSession); if(this.__cacheBitmap != null && !this.__cacheBitmapRender) { return; } renderSession.maskManager.pushObject(this); renderSession.filterManager.pushObject(this); if(renderSession.clearRenderDirty) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__renderGL(renderSession); child.__renderDirty = false; } this.__renderDirty = false; } else { var _g2 = 0; var _g11 = this.__children; while(_g2 < _g11.length) { var child1 = _g11[_g2]; ++_g2; child1.__renderGL(renderSession); } } var _g3 = 0; var _g12 = this.__removedChildren; while(_g3 < _g12.data.get_length()) { var orphan = _g12.data.get(_g3); ++_g3; if(orphan.stage == null) { orphan.__cleanup(); } } this.__removedChildren.data.set_length(0); renderSession.filterManager.popObject(this); renderSession.maskManager.popObject(this); } ,__setStageReference: function(stage) { openfl_display_InteractiveObject.prototype.__setStageReference.call(this,stage); if(this.__children != null) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__setStageReference(stage); } } } ,__setWorldTransformInvalid: function() { if(!this.__worldTransformInvalid) { this.__worldTransformInvalid = true; if(this.__children != null) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__setWorldTransformInvalid(); } } } } ,__stopAllMovieClips: function() { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__stopAllMovieClips(); } } ,__update: function(transformOnly,updateChildren,maskGraphics) { openfl_display_InteractiveObject.prototype.__update.call(this,transformOnly,updateChildren,maskGraphics); if(updateChildren) { var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__update(transformOnly,true,maskGraphics); } } } ,__updateChildren: function(transformOnly) { openfl_display_InteractiveObject.prototype.__updateChildren.call(this,transformOnly); var _g = 0; var _g1 = this.__children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; child.__update(transformOnly,true); } } ,get_numChildren: function() { return this.__children.length; } ,__class__: openfl_display_DisplayObjectContainer ,__properties__: $extend(openfl_display_InteractiveObject.prototype.__properties__,{get_numChildren:"get_numChildren"}) }); var openfl_display_Sprite = function() { openfl_display_DisplayObjectContainer.call(this); this.buttonMode = false; this.useHandCursor = true; }; $hxClasses["openfl.display.Sprite"] = openfl_display_Sprite; openfl_display_Sprite.__name__ = ["openfl","display","Sprite"]; openfl_display_Sprite.__super__ = openfl_display_DisplayObjectContainer; openfl_display_Sprite.prototype = $extend(openfl_display_DisplayObjectContainer.prototype,{ buttonMode: null ,dropTarget: null ,hitArea: null ,useHandCursor: null ,startDrag: function(lockCenter,bounds) { if(lockCenter == null) { lockCenter = false; } if(this.stage != null) { this.stage.__startDrag(this,lockCenter,bounds); } } ,stopDrag: function() { if(this.stage != null) { this.stage.__stopDrag(this); } } ,__getCursor: function() { if(this.buttonMode && this.useHandCursor) { return lime_ui_MouseCursor.POINTER; } else { return null; } } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { if(this.hitArea != null) { if(!this.hitArea.mouseEnabled) { this.hitArea.mouseEnabled = true; var hitTest = this.hitArea.__hitTest(x,y,shapeFlag,null,true,hitObject); this.hitArea.mouseEnabled = false; if(hitTest) { stack[stack.length] = hitObject; } return hitTest; } } else { if(!hitObject.get_visible() || this.__isMask || interactiveOnly && !this.mouseEnabled && !this.mouseChildren) { return false; } if(this.get_mask() != null && !this.get_mask().__hitTestMask(x,y)) { return false; } if(this.__scrollRect != null) { var point = openfl_geom_Point.__pool.get(); point.setTo(x,y); var _this = this.__getRenderTransform(); var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { point.x = -_this.tx; point.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - point.y) + _this.d * (point.x - _this.tx)); point.y = 1.0 / norm * (_this.a * (point.y - _this.ty) + _this.b * (_this.tx - point.x)); point.x = px; } if(!this.__scrollRect.containsPoint(point)) { openfl_geom_Point.__pool.release(point); return false; } openfl_geom_Point.__pool.release(point); } if(openfl_display_DisplayObjectContainer.prototype.__hitTest.call(this,x,y,shapeFlag,stack,interactiveOnly,hitObject)) { return interactiveOnly; } else if((!interactiveOnly || this.mouseEnabled) && this.__graphics != null && this.__graphics.__hitTest(x,y,shapeFlag,this.__getRenderTransform())) { if(stack != null) { stack.push(hitObject); } return true; } } return false; } ,__hitTestMask: function(x,y) { if(openfl_display_DisplayObjectContainer.prototype.__hitTestMask.call(this,x,y)) { return true; } else if(this.__graphics != null && this.__graphics.__hitTest(x,y,true,this.__getRenderTransform())) { return true; } return false; } ,get_graphics: function() { if(this.__graphics == null) { this.__graphics = new openfl_display_Graphics(this); } return this.__graphics; } ,get_tabEnabled: function() { if(!this.__tabEnabled) { return this.buttonMode; } else { return true; } } ,__class__: openfl_display_Sprite ,__properties__: $extend(openfl_display_DisplayObjectContainer.prototype.__properties__,{get_graphics:"get_graphics"}) }); var com_firstplayable_hxlib_app_Application = function() { this.targetSize = null; openfl_display_Sprite.call(this); com_firstplayable_hxlib_app_Application.app = this; openfl_Lib.current.stage.addChild(com_firstplayable_hxlib_app_Application.app); var severity = null; if(severity == null) { severity = com_firstplayable_hxlib_Severity.Warn; } var tmp; if(this.stage != null) { tmp = true; } else { com_firstplayable_hxlib_Debug.logHelper("variable" + " is null!",severity,{ fileName : "Application.hx", lineNumber : 157, className : "com.firstplayable.hxlib.app.Application", methodName : "new"}); tmp = false; } if(tmp) { this.init(); } else { this.addEventListener("addedToStage",$bind(this,this.init)); } }; $hxClasses["com.firstplayable.hxlib.app.Application"] = com_firstplayable_hxlib_app_Application; com_firstplayable_hxlib_app_Application.__name__ = ["com","firstplayable","hxlib","app","Application"]; com_firstplayable_hxlib_app_Application.__super__ = openfl_display_Sprite; com_firstplayable_hxlib_app_Application.prototype = $extend(openfl_display_Sprite.prototype,{ initSize: null ,contentSize: null ,get_contentSize: function() { return new openfl_geom_Point(this.stage.get_width(),this.stage.get_height()); } ,appSize: null ,get_appSize: function() { return new openfl_geom_Point(this.stage.stageWidth,this.stage.stageHeight); } ,targetSize: null ,get_targetSize: function() { if(this.targetSize != null) { return this.targetSize; } else { return this.get_appSize(); } } ,scale: null ,scaleMode: null ,set_scaleMode: function(mode) { if(mode == com_firstplayable_hxlib_app_ScaleMode.NONE) { this.scale = 1.0; } else { this.scale = this.calculateScale(mode); } return this.scaleMode = mode; } ,screenSize: null ,get_screenSize: function() { com_firstplayable_hxlib_Debug.logHelper("Property screenSize is not implemented for this target.",com_firstplayable_hxlib_Severity.Error,{ fileName : "Application.hx", lineNumber : 128, className : "com.firstplayable.hxlib.app.Application", methodName : "get_screenSize"}); return new openfl_geom_Point(); } ,center: null ,get_center: function() { return new openfl_geom_Point(this.get_appSize().x * 0.5,this.get_appSize().y * 0.5); } ,m_inited: null ,init: function(e) { if(this.m_inited) { return; } this.m_inited = true; this.removeEventListener("addedToStage",$bind(this,this.init)); this.initSize = new openfl_geom_Point(this.stage.stageWidth,this.stage.stageHeight); this.setSizeForManualScaling(); this.stage.addEventListener("deactivate",$bind(this,this.deactivate)); this.stage.addEventListener("resize",$bind(this,this.onResize)); this.setDefaults(); this.updateBuildInfo(); this.initLayers(); this.onInitialized(); } ,setSizeForManualScaling: function() { } ,initLayers: function() { com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.BACKGROUND); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.PRIMARY); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.FOREGROUND); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.HUD); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.DEBUG); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.BUILDSTAMP); } ,setDefaults: function() { this.stage.quality = 0; this.stage.scaleMode = 2; this.stage.align = 6; } ,onInitialized: function() { com_firstplayable_hxlib_Debug.logHelper("Function onInitialized not set! Please use 'onInitialized = aFunc;' before calling super().",com_firstplayable_hxlib_Severity.Warn,{ fileName : "Application.hx", lineNumber : 226, className : "com.firstplayable.hxlib.app.Application", methodName : "onInitialized"}); } ,onResize: function(e) { } ,deactivate: function(e) { this.stage.addEventListener("activate",$bind(this,this.activate)); } ,activate: function(e) { var severity = null; if(severity == null) { severity = com_firstplayable_hxlib_Severity.Warn; } var tmp; if(this.stage != null) { tmp = true; } else { com_firstplayable_hxlib_Debug.logHelper("variable" + " is null!",severity,{ fileName : "Application.hx", lineNumber : 254, className : "com.firstplayable.hxlib.app.Application", methodName : "activate"}); tmp = false; } if(tmp) { this.stage.removeEventListener("activate",$bind(this,this.activate)); } } ,exit: function(code) { if(code == null) { code = 0; } com_firstplayable_hxlib_Debug.log("Exiting... code " + code,null,{ fileName : "Application.hx", lineNumber : 266, className : "com.firstplayable.hxlib.app.Application", methodName : "exit"}); window.close(); } ,pause: function() { com_firstplayable_hxlib_Debug.log("The current implentation of Application.pause() only works in AIR!",null,{ fileName : "Application.hx", lineNumber : 285, className : "com.firstplayable.hxlib.app.Application", methodName : "pause"}); } ,resume: function() { com_firstplayable_hxlib_Debug.log("The current implentation of Application.pause() only works in AIR!",null,{ fileName : "Application.hx", lineNumber : 299, className : "com.firstplayable.hxlib.app.Application", methodName : "resume"}); } ,calculateScale: function(mode) { var widthRatio = this.get_appSize().x / this.get_targetSize().x; var heightRatio = this.get_appSize().y / this.get_targetSize().y; switch(mode[1]) { case 0: return 1; case 1: return Math.min(widthRatio,heightRatio); case 2: return Math.max(widthRatio,heightRatio); case 3: return widthRatio; case 4: return heightRatio; } } ,setFullscreenMode: function(fullscreen) { var fsMsg = fullscreen ? "Enabling full screen mode..." : "Disabling full screen mode..."; com_firstplayable_hxlib_Debug.log(fsMsg,null,{ fileName : "Application.hx", lineNumber : 343, className : "com.firstplayable.hxlib.app.Application", methodName : "setFullscreenMode"}); com_firstplayable_hxlib_Debug.log("Setting full-screen mode only works for Flash targets.",null,{ fileName : "Application.hx", lineNumber : 350, className : "com.firstplayable.hxlib.app.Application", methodName : "setFullscreenMode"}); } ,enableMenu: function(enabled) { var eMsg = enabled ? "Enabling menu context..." : "Disabling menu context..."; com_firstplayable_hxlib_Debug.log(eMsg,null,{ fileName : "Application.hx", lineNumber : 364, className : "com.firstplayable.hxlib.app.Application", methodName : "enableMenu"}); com_firstplayable_hxlib_Debug.log("The Flash context menu can only be enabled for Flash targets!",null,{ fileName : "Application.hx", lineNumber : 371, className : "com.firstplayable.hxlib.app.Application", methodName : "enableMenu"}); } ,updateBuildInfo: function() { com_firstplayable_hxlib_app_Application.buildInfo = "2020-03-23 17:56:16"; com_firstplayable_hxlib_Debug.log("Build Date: " + com_firstplayable_hxlib_app_Application.buildInfo,null,{ fileName : "Application.hx", lineNumber : 381, className : "com.firstplayable.hxlib.app.Application", methodName : "updateBuildInfo"}); } ,__class__: com_firstplayable_hxlib_app_Application ,__properties__: $extend(openfl_display_Sprite.prototype.__properties__,{get_center:"get_center",get_screenSize:"get_screenSize",set_scaleMode:"set_scaleMode",get_targetSize:"get_targetSize",get_appSize:"get_appSize",get_contentSize:"get_contentSize"}) }); var Main = function() { this.onInitialized = $bind(this,this.start); com_firstplayable_hxlib_app_Application.call(this); }; $hxClasses["Main"] = Main; Main.__name__ = ["Main"]; Main.__super__ = com_firstplayable_hxlib_app_Application; Main.prototype = $extend(com_firstplayable_hxlib_app_Application.prototype,{ setSizeForManualScaling: function() { this.targetSize = game_shared_init_Display.initSize(); this.set_scaleMode(com_firstplayable_hxlib_app_ScaleMode.CROP); } ,initLayers: function() { game_shared_init_Display.initLayers(); } ,start: function() { var version = new com_firstplayable_hxlib_utils_Version(); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.create("UA-3661490-2"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.setField("appName","Digital Cards Against Calamity"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.setField("appVersion",version.buildNum); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.setField("appId",version.buildType); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.require("displayfeatures"); com_firstplayable_hxlib_app_MainLoop.init(); com_firstplayable_hxlib_utils_json_GlobalTable.init(new assets_ResourceMap(),new assets_Gamestrings()); assets_PaistManifest.init(); game_shared_init_States.init(); this.initSounds(assets_SoundLib.SOUNDS,"snd/"); game_data_GameCMS.init(); com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.SPLASH); } ,initSounds: function(audioList,path) { com_firstplayable_hxlib_audio_WebAudio.get_instance().qLimit = 4; com_firstplayable_hxlib_audio_WebAudio.set_mute(false); var _g = 0; while(_g < audioList.length) { var audioID = audioList[_g]; ++_g; var audioSrc = path + audioID; com_firstplayable_hxlib_audio_WebAudio.get_instance().multiRegister([audioSrc + ".mp3",audioSrc + ".m4a",audioSrc + ".ogg"],audioID); } com_firstplayable_hxlib_audio_WebAudio.get_instance().load(game_defs_AudioDefs.SHARED_SFX_LIST); } ,__class__: Main }); var DocumentClass = function(current) { current.addChild(this); Main.call(this); this.dispatchEvent(new openfl_events_Event("addedToStage",false,false)); }; $hxClasses["DocumentClass"] = DocumentClass; DocumentClass.__name__ = ["DocumentClass"]; DocumentClass.__super__ = Main; DocumentClass.prototype = $extend(Main.prototype,{ __class__: DocumentClass }); var EReg = function(r,opt) { this.r = new RegExp(r,opt.split("u").join("")); }; $hxClasses["EReg"] = EReg; EReg.__name__ = ["EReg"]; EReg.prototype = { r: null ,match: function(s) { if(this.r.global) { this.r.lastIndex = 0; } this.r.m = this.r.exec(s); this.r.s = s; return this.r.m != null; } ,matched: function(n) { if(this.r.m != null && n >= 0 && n < this.r.m.length) { return this.r.m[n]; } else { throw new js__$Boot_HaxeError("EReg::matched"); } } ,matchedRight: function() { if(this.r.m == null) { throw new js__$Boot_HaxeError("No string matched"); } var sz = this.r.m.index + this.r.m[0].length; return HxOverrides.substr(this.r.s,sz,this.r.s.length - sz); } ,matchedPos: function() { if(this.r.m == null) { throw new js__$Boot_HaxeError("No string matched"); } return { pos : this.r.m.index, len : this.r.m[0].length}; } ,matchSub: function(s,pos,len) { if(len == null) { len = -1; } if(this.r.global) { this.r.lastIndex = pos; var tmp = this.r; var tmp1 = len < 0 ? s : HxOverrides.substr(s,0,pos + len); this.r.m = tmp.exec(tmp1); var b = this.r.m != null; if(b) { this.r.s = s; } return b; } else { var b1 = this.match(len < 0 ? HxOverrides.substr(s,pos,null) : HxOverrides.substr(s,pos,len)); if(b1) { this.r.s = s; this.r.m.index += pos; } return b1; } } ,split: function(s) { var d = "#__delim__#"; return s.replace(this.r,d).split(d); } ,map: function(s,f) { var offset = 0; var buf_b = ""; while(true) { if(offset >= s.length) { break; } else if(!this.matchSub(s,offset)) { buf_b += Std.string(HxOverrides.substr(s,offset,null)); break; } var p = this.matchedPos(); buf_b += Std.string(HxOverrides.substr(s,offset,p.pos - offset)); buf_b += Std.string(f(this)); if(p.len == 0) { buf_b += Std.string(HxOverrides.substr(s,p.pos,1)); offset = p.pos + 1; } else { offset = p.pos + p.len; } if(!this.r.global) { break; } } if(!this.r.global && offset > 0 && offset < s.length) { buf_b += Std.string(HxOverrides.substr(s,offset,null)); } return buf_b; } ,__class__: EReg }; var Global = function() { }; $hxClasses["Global"] = Global; Global.__name__ = ["Global"]; var HxOverrides = function() { }; $hxClasses["HxOverrides"] = HxOverrides; HxOverrides.__name__ = ["HxOverrides"]; HxOverrides.dateStr = function(date) { var m = date.getMonth() + 1; var d = date.getDate(); var h = date.getHours(); var mi = date.getMinutes(); var s = date.getSeconds(); return date.getFullYear() + "-" + (m < 10 ? "0" + m : "" + m) + "-" + (d < 10 ? "0" + d : "" + d) + " " + (h < 10 ? "0" + h : "" + h) + ":" + (mi < 10 ? "0" + mi : "" + mi) + ":" + (s < 10 ? "0" + s : "" + s); }; HxOverrides.strDate = function(s) { var _g = s.length; switch(_g) { case 8: var k = s.split(":"); var d = new Date(); d["setTime"](0); d["setUTCHours"](k[0]); d["setUTCMinutes"](k[1]); d["setUTCSeconds"](k[2]); return d; case 10: var k1 = s.split("-"); return new Date(k1[0],k1[1] - 1,k1[2],0,0,0); case 19: var k2 = s.split(" "); var y = k2[0].split("-"); var t = k2[1].split(":"); return new Date(y[0],y[1] - 1,y[2],t[0],t[1],t[2]); default: throw new js__$Boot_HaxeError("Invalid date format : " + s); } }; HxOverrides.cca = function(s,index) { var x = s.charCodeAt(index); if(x != x) { return undefined; } return x; }; HxOverrides.substr = function(s,pos,len) { if(len == null) { len = s.length; } else if(len < 0) { if(pos == 0) { len = s.length + len; } else { return ""; } } return s.substr(pos,len); }; HxOverrides.remove = function(a,obj) { var i = a.indexOf(obj); if(i == -1) { return false; } a.splice(i,1); return true; }; HxOverrides.iter = function(a) { return { cur : 0, arr : a, hasNext : function() { return this.cur < this.arr.length; }, next : function() { return this.arr[this.cur++]; }}; }; var Lambda = function() { }; $hxClasses["Lambda"] = Lambda; Lambda.__name__ = ["Lambda"]; Lambda.array = function(it) { var a = []; var i = $iterator(it)(); while(i.hasNext()) { var i1 = i.next(); a.push(i1); } return a; }; Lambda.has = function(it,elt) { var x = $iterator(it)(); while(x.hasNext()) { var x1 = x.next(); if(x1 == elt) { return true; } } return false; }; var List = function() { this.length = 0; }; $hxClasses["List"] = List; List.__name__ = ["List"]; List.prototype = { h: null ,q: null ,length: null ,add: function(item) { var x = new _$List_ListNode(item,null); if(this.h == null) { this.h = x; } else { this.q.next = x; } this.q = x; this.length++; } ,push: function(item) { var x = new _$List_ListNode(item,this.h); this.h = x; if(this.q == null) { this.q = x; } this.length++; } ,pop: function() { if(this.h == null) { return null; } var x = this.h.item; this.h = this.h.next; if(this.h == null) { this.q = null; } this.length--; return x; } ,clear: function() { this.h = null; this.q = null; this.length = 0; } ,remove: function(v) { var prev = null; var l = this.h; while(l != null) { if(l.item == v) { if(prev == null) { this.h = l.next; } else { prev.next = l.next; } if(this.q == l) { this.q = prev; } this.length--; return true; } prev = l; l = l.next; } return false; } ,iterator: function() { return new _$List_ListIterator(this.h); } ,__class__: List }; var _$List_ListNode = function(item,next) { this.item = item; this.next = next; }; $hxClasses["_List.ListNode"] = _$List_ListNode; _$List_ListNode.__name__ = ["_List","ListNode"]; _$List_ListNode.prototype = { item: null ,next: null ,__class__: _$List_ListNode }; var _$List_ListIterator = function(head) { this.head = head; }; $hxClasses["_List.ListIterator"] = _$List_ListIterator; _$List_ListIterator.__name__ = ["_List","ListIterator"]; _$List_ListIterator.prototype = { head: null ,hasNext: function() { return this.head != null; } ,next: function() { var val = this.head.item; this.head = this.head.next; return val; } ,__class__: _$List_ListIterator }; var ManifestResources = function() { }; $hxClasses["ManifestResources"] = ManifestResources; ManifestResources.__name__ = ["ManifestResources"]; ManifestResources.init = function(config) { ManifestResources.preloadLibraries = []; ManifestResources.preloadLibraryNames = []; var rootPath = null; if(config != null && Object.prototype.hasOwnProperty.call(config,"rootPath")) { rootPath = Reflect.field(config,"rootPath"); } if(rootPath == null) { rootPath = ""; } lime_utils_Assets.defaultRootPath = rootPath; openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$bangers_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$fromwhereyouare_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$lato_$bold_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$bold_$0_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$italic_$0_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bold_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bolditalic_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabold_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabolditalic_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$italic_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$light_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$lightitalic_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$regular_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibold_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibolditalic_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$raleway_$medium_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bold_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bolditalic_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$italic_$ttf); openfl_text_Font.registerFont(_$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$regular_$ttf); var data; var manifest; var library; data = "{\"name\":null,\"assets\":\"aoy4:pathy23:data%2Fgamestrings.jsony4:sizei4409y4:typey4:TEXTy2:idR1y7:preloadtgoR0y19:data%2Fregions.jsonR2i393R3R4R5R7R6tgoR0y19:data%2Fstories.jsonR2i584893R3R4R5R8R6tgoR0y15:site%2Flogo.pngR2i264951R3y5:IMAGER5R9R6tgoR0y30:2d%2FBackground_BG_DEFAULT.pngR2i53139R3R10R5R11goR0y34:2d%2FCoverSprite_DEFAULT_LARGE.pngR2i424278R3R10R5R12goR0y25:2d%2FEvent_BG_DEFAULT.pngR2i1617055R3R10R5R13goR0y26:2d%2FIntroMenu_DEFAULT.pngR2i185678R3R10R5R14goR0y38:2d%2FLevelSelectMenu_DEFAULT_LARGE.pngR2i558278R3R10R5R15goR0y37:2d%2FModeSelectMenu_DEFAULT_LARGE.pngR2i282115R3R10R5R16goR0y27:2d%2FPacific_BG_DEFAULT.pngR2i207159R3R10R5R17goR0y31:2d%2FPreparation_BG_DEFAULT.pngR2i1618243R3R10R5R18goR0y27:2d%2FResultMenu_DEFAULT.pngR2i34611R3R10R5R19goR0y25:2d%2FSharedUI_BUTTONS.pngR2i100R3R10R5R20goR0y25:2d%2FSharedUI_DEFAULT.pngR2i56477R3R10R5R21goR0y32:2d%2FStakeholders_BG_DEFAULT.pngR2i213430R3R10R5R22goR0y27:2d%2FTitleBG_BG_DEFAULT.pngR2i256775R3R10R5R23goR0y28:2d%2FTitle_DEFAULT_LARGE.pngR2i630455R3R10R5R24goR0y19:2d%2FUI_DEFAULT.pngR2i211131R3R10R5R25goR2i4571R3y5:SOUNDR5y19:snd%2FSFX_CLICK.m4ay9:pathGroupaR27y19:snd%2FSFX_CLICK.mp3y19:snd%2FSFX_CLICK.ogghgoR2i1253R3y5:MUSICR5R29R28aR27R29R30hgoR2i4602R3R26R5R30R28aR27R29R30hgoR2i7706R3R26R5y18:snd%2FSFX_DONE.m4aR28aR32y18:snd%2FSFX_DONE.mp3y18:snd%2FSFX_DONE.ogghgoR2i14210R3R31R5R33R28aR32R33R34hgoR2i10975R3R26R5R34R28aR32R33R34hgoR2i39676R3y4:FONTy9:classNamey24:__ASSET__fnt_bangers_ttfR5y17:fnt%2FBangers.ttfR6tgoR2i158396R3R35R36y32:__ASSET__fnt_fromwhereyouare_ttfR5y25:fnt%2FFromWhereYouAre.ttfR6tgoR2i121788R3R35R36y26:__ASSET__fnt_lato_bold_ttfR5y19:fnt%2FLato-Bold.ttfR6tgoR2i133488R3R35R36y38:__ASSET__fnt_liberationsans_bold_0_ttfR5y31:fnt%2FLiberationSans-Bold_0.ttfR6tgoR2i155452R3R35R36y40:__ASSET__fnt_liberationsans_italic_0_ttfR5y33:fnt%2FLiberationSans-Italic_0.ttfR6tgoR2i224452R3R35R36y30:__ASSET__fnt_opensans_bold_ttfR5y23:fnt%2FOpenSans-Bold.ttfR6tgoR2i213168R3R35R36y36:__ASSET__fnt_opensans_bolditalic_ttfR5y29:fnt%2FOpenSans-BoldItalic.ttfR6tgoR2i222424R3R35R36y35:__ASSET__fnt_opensans_extrabold_ttfR5y28:fnt%2FOpenSans-ExtraBold.ttfR6tgoR2i213336R3R35R36y41:__ASSET__fnt_opensans_extrabolditalic_ttfR5y34:fnt%2FOpenSans-ExtraBoldItalic.ttfR6tgoR2i212760R3R35R36y32:__ASSET__fnt_opensans_italic_ttfR5y25:fnt%2FOpenSans-Italic.ttfR6tgoR2i222236R3R35R36y31:__ASSET__fnt_opensans_light_ttfR5y24:fnt%2FOpenSans-Light.ttfR6tgoR2i213024R3R35R36y37:__ASSET__fnt_opensans_lightitalic_ttfR5y30:fnt%2FOpenSans-LightItalic.ttfR6tgoR2i217276R3R35R36y33:__ASSET__fnt_opensans_regular_ttfR5y26:fnt%2FOpenSans-Regular.ttfR6tgoR2i221164R3R35R36y34:__ASSET__fnt_opensans_semibold_ttfR5y27:fnt%2FOpenSans-SemiBold.ttfR6tgoR2i212732R3R35R36y40:__ASSET__fnt_opensans_semibolditalic_ttfR5y33:fnt%2FOpenSans-SemiBoldItalic.ttfR6tgoR2i179444R3R35R36y31:__ASSET__fnt_raleway_medium_ttfR5y24:fnt%2FRaleway-Medium.ttfR6tgoR2i89020R3R35R36y31:__ASSET__fnt_spacemono_bold_ttfR5y24:fnt%2FSpaceMono-Bold.ttfR6tgoR2i97732R3R35R36y37:__ASSET__fnt_spacemono_bolditalic_ttfR5y30:fnt%2FSpaceMono-BoldItalic.ttfR6tgoR2i105932R3R35R36y33:__ASSET__fnt_spacemono_italic_ttfR5y26:fnt%2FSpaceMono-Italic.ttfR6tgoR2i93252R3R35R36y34:__ASSET__fnt_spacemono_regular_ttfR5y27:fnt%2FSpaceMono-Regular.ttfR6tgh\",\"version\":2,\"libraryArgs\":[],\"libraryType\":null}"; manifest = lime_utils_AssetManifest.parse(data,rootPath); library = lime_utils_AssetLibrary.fromManifest(manifest); lime_utils_Assets.registerLibrary("default",library); library = lime_utils_Assets.getLibrary("default"); if(library != null) { ManifestResources.preloadLibraries.push(library); } else { ManifestResources.preloadLibraryNames.push("default"); } }; var lime_text_Font = function(name) { if(name != null) { this.name = name; } if(this.__fontPath != null) { this.__fromFile(this.__fontPath); } }; $hxClasses["lime.text.Font"] = lime_text_Font; lime_text_Font.__name__ = ["lime","text","Font"]; lime_text_Font.fromBytes = function(bytes) { if(bytes == null) { return null; } var font = new lime_text_Font(); font.__fromBytes(bytes); return font; }; lime_text_Font.fromFile = function(path) { if(path == null) { return null; } var font = new lime_text_Font(); font.__fromFile(path); return font; }; lime_text_Font.loadFromBytes = function(bytes) { return lime_app_Future.withValue(lime_text_Font.fromBytes(bytes)); }; lime_text_Font.loadFromFile = function(path) { var request = new lime_net__$HTTPRequest_$lime_$text_$Font(); return request.load(path).then(function(font) { if(font != null) { return lime_app_Future.withValue(font); } else { return lime_app_Future.withError(""); } }); }; lime_text_Font.loadFromName = function(path) { var font = new lime_text_Font(); return font.__loadFromName(path); }; lime_text_Font.__measureFontNode = function(fontFamily) { var node = window.document.createElement("span"); node.setAttribute("aria-hidden","true"); var text = window.document.createTextNode("BESbswy"); node.appendChild(text); var style = node.style; style.display = "block"; style.position = "absolute"; style.top = "-9999px"; style.left = "-9999px"; style.fontSize = "300px"; style.width = "auto"; style.height = "auto"; style.lineHeight = "normal"; style.margin = "0"; style.padding = "0"; style.fontVariant = "normal"; style.whiteSpace = "nowrap"; style.fontFamily = fontFamily; window.document.body.appendChild(node); return node; }; lime_text_Font.prototype = { ascender: null ,descender: null ,height: null ,name: null ,numGlyphs: null ,src: null ,underlinePosition: null ,underlineThickness: null ,unitsPerEM: null ,__fontPath: null ,decompose: function() { return null; } ,getGlyph: function(character) { return -1; } ,getGlyphs: function(characters) { if(characters == null) { characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^`'\"/\\&*()[]{}<>|:;_-+=?,. "; } return null; } ,getGlyphMetrics: function(glyph) { return null; } ,renderGlyph: function(glyph,fontSize) { return null; } ,renderGlyphs: function(glyphs,fontSize) { return null; } ,__fromBytes: function(bytes) { this.__fontPath = null; } ,__fromFile: function(path) { this.__fontPath = path; } ,__loadFromName: function(name) { var _gthis = this; var promise = new lime_app_Promise(); this.name = name; var font = name; var ua = window.navigator.userAgent.toLowerCase(); var isSafari = ua.indexOf(" safari/") >= 0 && ua.indexOf(" chrome/") < 0; if(!isSafari && (window.document.fonts && ($_=window.document.fonts,$bind($_,$_.load)))) { window.document.fonts.load("1em '" + font + "'").then(function(_) { promise.complete(_gthis); }); } else { var node1 = lime_text_Font.__measureFontNode("'" + name + "', sans-serif"); var node2 = lime_text_Font.__measureFontNode("'" + name + "', serif"); var width1 = node1.offsetWidth; var width2 = node2.offsetWidth; var interval = -1; var timeout = 3000; var intervalLength = 50; var intervalCount = 0; var checkFont = function() { intervalCount += 1; if(node1.offsetWidth != width1 || node2.offsetWidth != width2 || intervalCount * intervalLength >= timeout) { window.clearInterval(interval); node1.parentNode.removeChild(node1); node2.parentNode.removeChild(node2); node1 = null; node2 = null; promise.complete(_gthis); } }; interval = window.setInterval(checkFont,intervalLength); } return promise.future; } ,__setSize: function(size) { } ,get_ascender: function() { return 0; } ,get_descender: function() { return 0; } ,get_height: function() { return 0; } ,get_numGlyphs: function() { return 0; } ,get_underlinePosition: function() { return 0; } ,get_underlineThickness: function() { return 0; } ,get_unitsPerEM: function() { return 0; } ,__class__: lime_text_Font ,__properties__: {get_unitsPerEM:"get_unitsPerEM",get_underlineThickness:"get_underlineThickness",get_underlinePosition:"get_underlinePosition",get_numGlyphs:"get_numGlyphs",get_height:"get_height",get_descender:"get_descender",get_ascender:"get_ascender"} }; var _$_$ASSET_$_$fnt_$bangers_$ttf = $hx_exports["__ASSET__fnt_bangers_ttf"] = function() { this.name = "Bangers"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_bangers_ttf"] = _$_$ASSET_$_$fnt_$bangers_$ttf; _$_$ASSET_$_$fnt_$bangers_$ttf.__name__ = ["__ASSET__fnt_bangers_ttf"]; _$_$ASSET_$_$fnt_$bangers_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$bangers_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$bangers_$ttf }); var _$_$ASSET_$_$fnt_$fromwhereyouare_$ttf = $hx_exports["__ASSET__fnt_fromwhereyouare_ttf"] = function() { this.name = "From Where You Are"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_fromwhereyouare_ttf"] = _$_$ASSET_$_$fnt_$fromwhereyouare_$ttf; _$_$ASSET_$_$fnt_$fromwhereyouare_$ttf.__name__ = ["__ASSET__fnt_fromwhereyouare_ttf"]; _$_$ASSET_$_$fnt_$fromwhereyouare_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$fromwhereyouare_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$fromwhereyouare_$ttf }); var _$_$ASSET_$_$fnt_$lato_$bold_$ttf = $hx_exports["__ASSET__fnt_lato_bold_ttf"] = function() { this.name = "Lato Bold"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_lato_bold_ttf"] = _$_$ASSET_$_$fnt_$lato_$bold_$ttf; _$_$ASSET_$_$fnt_$lato_$bold_$ttf.__name__ = ["__ASSET__fnt_lato_bold_ttf"]; _$_$ASSET_$_$fnt_$lato_$bold_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$lato_$bold_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$lato_$bold_$ttf }); var _$_$ASSET_$_$fnt_$liberationsans_$bold_$0_$ttf = $hx_exports["__ASSET__fnt_liberationsans_bold_0_ttf"] = function() { this.name = "Liberation Sans Bold"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_liberationsans_bold_0_ttf"] = _$_$ASSET_$_$fnt_$liberationsans_$bold_$0_$ttf; _$_$ASSET_$_$fnt_$liberationsans_$bold_$0_$ttf.__name__ = ["__ASSET__fnt_liberationsans_bold_0_ttf"]; _$_$ASSET_$_$fnt_$liberationsans_$bold_$0_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$liberationsans_$bold_$0_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$liberationsans_$bold_$0_$ttf }); var _$_$ASSET_$_$fnt_$liberationsans_$italic_$0_$ttf = $hx_exports["__ASSET__fnt_liberationsans_italic_0_ttf"] = function() { this.name = "Liberation Sans Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_liberationsans_italic_0_ttf"] = _$_$ASSET_$_$fnt_$liberationsans_$italic_$0_$ttf; _$_$ASSET_$_$fnt_$liberationsans_$italic_$0_$ttf.__name__ = ["__ASSET__fnt_liberationsans_italic_0_ttf"]; _$_$ASSET_$_$fnt_$liberationsans_$italic_$0_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$liberationsans_$italic_$0_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$liberationsans_$italic_$0_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$bold_$ttf = $hx_exports["__ASSET__fnt_opensans_bold_ttf"] = function() { this.name = "Open Sans Bold"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_bold_ttf"] = _$_$ASSET_$_$fnt_$opensans_$bold_$ttf; _$_$ASSET_$_$fnt_$opensans_$bold_$ttf.__name__ = ["__ASSET__fnt_opensans_bold_ttf"]; _$_$ASSET_$_$fnt_$opensans_$bold_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$bold_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$bold_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$bolditalic_$ttf = $hx_exports["__ASSET__fnt_opensans_bolditalic_ttf"] = function() { this.name = "Open Sans Bold Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_bolditalic_ttf"] = _$_$ASSET_$_$fnt_$opensans_$bolditalic_$ttf; _$_$ASSET_$_$fnt_$opensans_$bolditalic_$ttf.__name__ = ["__ASSET__fnt_opensans_bolditalic_ttf"]; _$_$ASSET_$_$fnt_$opensans_$bolditalic_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$bolditalic_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$bolditalic_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$extrabold_$ttf = $hx_exports["__ASSET__fnt_opensans_extrabold_ttf"] = function() { this.name = "Open Sans ExtraBold"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_extrabold_ttf"] = _$_$ASSET_$_$fnt_$opensans_$extrabold_$ttf; _$_$ASSET_$_$fnt_$opensans_$extrabold_$ttf.__name__ = ["__ASSET__fnt_opensans_extrabold_ttf"]; _$_$ASSET_$_$fnt_$opensans_$extrabold_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$extrabold_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$extrabold_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$extrabolditalic_$ttf = $hx_exports["__ASSET__fnt_opensans_extrabolditalic_ttf"] = function() { this.name = "Open Sans ExtraBold Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_extrabolditalic_ttf"] = _$_$ASSET_$_$fnt_$opensans_$extrabolditalic_$ttf; _$_$ASSET_$_$fnt_$opensans_$extrabolditalic_$ttf.__name__ = ["__ASSET__fnt_opensans_extrabolditalic_ttf"]; _$_$ASSET_$_$fnt_$opensans_$extrabolditalic_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$extrabolditalic_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$extrabolditalic_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$italic_$ttf = $hx_exports["__ASSET__fnt_opensans_italic_ttf"] = function() { this.name = "Open Sans Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_italic_ttf"] = _$_$ASSET_$_$fnt_$opensans_$italic_$ttf; _$_$ASSET_$_$fnt_$opensans_$italic_$ttf.__name__ = ["__ASSET__fnt_opensans_italic_ttf"]; _$_$ASSET_$_$fnt_$opensans_$italic_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$italic_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$italic_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$light_$ttf = $hx_exports["__ASSET__fnt_opensans_light_ttf"] = function() { this.name = "Open Sans Light"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_light_ttf"] = _$_$ASSET_$_$fnt_$opensans_$light_$ttf; _$_$ASSET_$_$fnt_$opensans_$light_$ttf.__name__ = ["__ASSET__fnt_opensans_light_ttf"]; _$_$ASSET_$_$fnt_$opensans_$light_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$light_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$light_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$lightitalic_$ttf = $hx_exports["__ASSET__fnt_opensans_lightitalic_ttf"] = function() { this.name = "Open Sans Light Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_lightitalic_ttf"] = _$_$ASSET_$_$fnt_$opensans_$lightitalic_$ttf; _$_$ASSET_$_$fnt_$opensans_$lightitalic_$ttf.__name__ = ["__ASSET__fnt_opensans_lightitalic_ttf"]; _$_$ASSET_$_$fnt_$opensans_$lightitalic_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$lightitalic_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$lightitalic_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$regular_$ttf = $hx_exports["__ASSET__fnt_opensans_regular_ttf"] = function() { this.name = "Open Sans Regular"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_regular_ttf"] = _$_$ASSET_$_$fnt_$opensans_$regular_$ttf; _$_$ASSET_$_$fnt_$opensans_$regular_$ttf.__name__ = ["__ASSET__fnt_opensans_regular_ttf"]; _$_$ASSET_$_$fnt_$opensans_$regular_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$regular_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$regular_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$semibold_$ttf = $hx_exports["__ASSET__fnt_opensans_semibold_ttf"] = function() { this.name = "Open Sans SemiBold"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_semibold_ttf"] = _$_$ASSET_$_$fnt_$opensans_$semibold_$ttf; _$_$ASSET_$_$fnt_$opensans_$semibold_$ttf.__name__ = ["__ASSET__fnt_opensans_semibold_ttf"]; _$_$ASSET_$_$fnt_$opensans_$semibold_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$semibold_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$semibold_$ttf }); var _$_$ASSET_$_$fnt_$opensans_$semibolditalic_$ttf = $hx_exports["__ASSET__fnt_opensans_semibolditalic_ttf"] = function() { this.name = "Open Sans SemiBold Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_opensans_semibolditalic_ttf"] = _$_$ASSET_$_$fnt_$opensans_$semibolditalic_$ttf; _$_$ASSET_$_$fnt_$opensans_$semibolditalic_$ttf.__name__ = ["__ASSET__fnt_opensans_semibolditalic_ttf"]; _$_$ASSET_$_$fnt_$opensans_$semibolditalic_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$opensans_$semibolditalic_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$opensans_$semibolditalic_$ttf }); var _$_$ASSET_$_$fnt_$raleway_$medium_$ttf = $hx_exports["__ASSET__fnt_raleway_medium_ttf"] = function() { this.name = "Raleway Medium"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_raleway_medium_ttf"] = _$_$ASSET_$_$fnt_$raleway_$medium_$ttf; _$_$ASSET_$_$fnt_$raleway_$medium_$ttf.__name__ = ["__ASSET__fnt_raleway_medium_ttf"]; _$_$ASSET_$_$fnt_$raleway_$medium_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$raleway_$medium_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$raleway_$medium_$ttf }); var _$_$ASSET_$_$fnt_$spacemono_$bold_$ttf = $hx_exports["__ASSET__fnt_spacemono_bold_ttf"] = function() { this.name = "Space Mono Bold"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_spacemono_bold_ttf"] = _$_$ASSET_$_$fnt_$spacemono_$bold_$ttf; _$_$ASSET_$_$fnt_$spacemono_$bold_$ttf.__name__ = ["__ASSET__fnt_spacemono_bold_ttf"]; _$_$ASSET_$_$fnt_$spacemono_$bold_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$spacemono_$bold_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$spacemono_$bold_$ttf }); var _$_$ASSET_$_$fnt_$spacemono_$bolditalic_$ttf = $hx_exports["__ASSET__fnt_spacemono_bolditalic_ttf"] = function() { this.name = "Space Mono Bold Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_spacemono_bolditalic_ttf"] = _$_$ASSET_$_$fnt_$spacemono_$bolditalic_$ttf; _$_$ASSET_$_$fnt_$spacemono_$bolditalic_$ttf.__name__ = ["__ASSET__fnt_spacemono_bolditalic_ttf"]; _$_$ASSET_$_$fnt_$spacemono_$bolditalic_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$spacemono_$bolditalic_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$spacemono_$bolditalic_$ttf }); var _$_$ASSET_$_$fnt_$spacemono_$italic_$ttf = $hx_exports["__ASSET__fnt_spacemono_italic_ttf"] = function() { this.name = "Space Mono Italic"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_spacemono_italic_ttf"] = _$_$ASSET_$_$fnt_$spacemono_$italic_$ttf; _$_$ASSET_$_$fnt_$spacemono_$italic_$ttf.__name__ = ["__ASSET__fnt_spacemono_italic_ttf"]; _$_$ASSET_$_$fnt_$spacemono_$italic_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$spacemono_$italic_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$spacemono_$italic_$ttf }); var _$_$ASSET_$_$fnt_$spacemono_$regular_$ttf = $hx_exports["__ASSET__fnt_spacemono_regular_ttf"] = function() { this.name = "Space Mono"; lime_text_Font.call(this); }; $hxClasses["__ASSET__fnt_spacemono_regular_ttf"] = _$_$ASSET_$_$fnt_$spacemono_$regular_$ttf; _$_$ASSET_$_$fnt_$spacemono_$regular_$ttf.__name__ = ["__ASSET__fnt_spacemono_regular_ttf"]; _$_$ASSET_$_$fnt_$spacemono_$regular_$ttf.__super__ = lime_text_Font; _$_$ASSET_$_$fnt_$spacemono_$regular_$ttf.prototype = $extend(lime_text_Font.prototype,{ __class__: _$_$ASSET_$_$fnt_$spacemono_$regular_$ttf }); var openfl_text_Font = function(name) { lime_text_Font.call(this,name); }; $hxClasses["openfl.text.Font"] = openfl_text_Font; openfl_text_Font.__name__ = ["openfl","text","Font"]; openfl_text_Font.enumerateFonts = function(enumerateDeviceFonts) { if(enumerateDeviceFonts == null) { enumerateDeviceFonts = false; } return openfl_text_Font.__registeredFonts; }; openfl_text_Font.fromBytes = function(bytes) { var font = new openfl_text_Font(); font.__fromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes)); return font; }; openfl_text_Font.fromFile = function(path) { var font = new openfl_text_Font(); font.__fromFile(path); return font; }; openfl_text_Font.registerFont = function(font) { var instance = js_Boot.__cast(Type.createInstance(font,[]) , openfl_text_Font); if(instance != null) { openfl_text_Font.__registeredFonts.push(instance); } }; openfl_text_Font.__fromLimeFont = function(value) { var font = new openfl_text_Font(); font.name = value.name; font.src = value.src; return font; }; openfl_text_Font.__super__ = lime_text_Font; openfl_text_Font.prototype = $extend(lime_text_Font.prototype,{ fontStyle: null ,fontType: null ,get_fontName: function() { return this.name; } ,set_fontName: function(value) { return this.name = value; } ,__class__: openfl_text_Font ,__properties__: $extend(lime_text_Font.prototype.__properties__,{set_fontName:"set_fontName",get_fontName:"get_fontName"}) }); var _$_$ASSET_$_$OPENFL_$_$fnt_$bangers_$ttf = $hx_exports["__ASSET__OPENFL__fnt_bangers_ttf"] = function() { this.name = "Bangers"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_bangers_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$bangers_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$bangers_$ttf.__name__ = ["__ASSET__OPENFL__fnt_bangers_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$bangers_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$bangers_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$bangers_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$fromwhereyouare_$ttf = $hx_exports["__ASSET__OPENFL__fnt_fromwhereyouare_ttf"] = function() { this.name = "From Where You Are"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_fromwhereyouare_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$fromwhereyouare_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$fromwhereyouare_$ttf.__name__ = ["__ASSET__OPENFL__fnt_fromwhereyouare_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$fromwhereyouare_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$fromwhereyouare_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$fromwhereyouare_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$lato_$bold_$ttf = $hx_exports["__ASSET__OPENFL__fnt_lato_bold_ttf"] = function() { this.name = "Lato Bold"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_lato_bold_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$lato_$bold_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$lato_$bold_$ttf.__name__ = ["__ASSET__OPENFL__fnt_lato_bold_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$lato_$bold_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$lato_$bold_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$lato_$bold_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$bold_$0_$ttf = $hx_exports["__ASSET__OPENFL__fnt_liberationsans_bold_0_ttf"] = function() { this.name = "Liberation Sans Bold"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_liberationsans_bold_0_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$bold_$0_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$bold_$0_$ttf.__name__ = ["__ASSET__OPENFL__fnt_liberationsans_bold_0_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$bold_$0_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$bold_$0_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$bold_$0_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$italic_$0_$ttf = $hx_exports["__ASSET__OPENFL__fnt_liberationsans_italic_0_ttf"] = function() { this.name = "Liberation Sans Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_liberationsans_italic_0_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$italic_$0_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$italic_$0_$ttf.__name__ = ["__ASSET__OPENFL__fnt_liberationsans_italic_0_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$italic_$0_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$italic_$0_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$liberationsans_$italic_$0_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bold_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_bold_ttf"] = function() { this.name = "Open Sans Bold"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_bold_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bold_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bold_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_bold_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bold_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bold_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bold_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bolditalic_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_bolditalic_ttf"] = function() { this.name = "Open Sans Bold Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_bolditalic_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bolditalic_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bolditalic_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_bolditalic_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bolditalic_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bolditalic_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$bolditalic_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabold_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_extrabold_ttf"] = function() { this.name = "Open Sans ExtraBold"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_extrabold_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabold_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabold_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_extrabold_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabold_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabold_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabold_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabolditalic_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_extrabolditalic_ttf"] = function() { this.name = "Open Sans ExtraBold Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_extrabolditalic_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabolditalic_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabolditalic_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_extrabolditalic_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabolditalic_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabolditalic_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$extrabolditalic_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$italic_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_italic_ttf"] = function() { this.name = "Open Sans Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_italic_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$italic_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$italic_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_italic_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$italic_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$italic_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$italic_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$light_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_light_ttf"] = function() { this.name = "Open Sans Light"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_light_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$light_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$light_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_light_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$light_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$light_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$light_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$lightitalic_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_lightitalic_ttf"] = function() { this.name = "Open Sans Light Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_lightitalic_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$lightitalic_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$lightitalic_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_lightitalic_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$lightitalic_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$lightitalic_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$lightitalic_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$regular_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_regular_ttf"] = function() { this.name = "Open Sans Regular"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_regular_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$regular_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$regular_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_regular_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$regular_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$regular_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$regular_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibold_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_semibold_ttf"] = function() { this.name = "Open Sans SemiBold"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_semibold_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibold_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibold_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_semibold_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibold_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibold_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibold_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibolditalic_$ttf = $hx_exports["__ASSET__OPENFL__fnt_opensans_semibolditalic_ttf"] = function() { this.name = "Open Sans SemiBold Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_opensans_semibolditalic_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibolditalic_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibolditalic_$ttf.__name__ = ["__ASSET__OPENFL__fnt_opensans_semibolditalic_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibolditalic_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibolditalic_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$opensans_$semibolditalic_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$raleway_$medium_$ttf = $hx_exports["__ASSET__OPENFL__fnt_raleway_medium_ttf"] = function() { this.name = "Raleway Medium"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_raleway_medium_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$raleway_$medium_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$raleway_$medium_$ttf.__name__ = ["__ASSET__OPENFL__fnt_raleway_medium_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$raleway_$medium_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$raleway_$medium_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$raleway_$medium_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bold_$ttf = $hx_exports["__ASSET__OPENFL__fnt_spacemono_bold_ttf"] = function() { this.name = "Space Mono Bold"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_spacemono_bold_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bold_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bold_$ttf.__name__ = ["__ASSET__OPENFL__fnt_spacemono_bold_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bold_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bold_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bold_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bolditalic_$ttf = $hx_exports["__ASSET__OPENFL__fnt_spacemono_bolditalic_ttf"] = function() { this.name = "Space Mono Bold Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_spacemono_bolditalic_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bolditalic_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bolditalic_$ttf.__name__ = ["__ASSET__OPENFL__fnt_spacemono_bolditalic_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bolditalic_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bolditalic_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$bolditalic_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$italic_$ttf = $hx_exports["__ASSET__OPENFL__fnt_spacemono_italic_ttf"] = function() { this.name = "Space Mono Italic"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_spacemono_italic_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$italic_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$italic_$ttf.__name__ = ["__ASSET__OPENFL__fnt_spacemono_italic_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$italic_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$italic_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$italic_$ttf }); var _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$regular_$ttf = $hx_exports["__ASSET__OPENFL__fnt_spacemono_regular_ttf"] = function() { this.name = "Space Mono"; openfl_text_Font.call(this); }; $hxClasses["__ASSET__OPENFL__fnt_spacemono_regular_ttf"] = _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$regular_$ttf; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$regular_$ttf.__name__ = ["__ASSET__OPENFL__fnt_spacemono_regular_ttf"]; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$regular_$ttf.__super__ = openfl_text_Font; _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$regular_$ttf.prototype = $extend(openfl_text_Font.prototype,{ __class__: _$_$ASSET_$_$OPENFL_$_$fnt_$spacemono_$regular_$ttf }); Math.__name__ = ["Math"]; var Reflect = function() { }; $hxClasses["Reflect"] = Reflect; Reflect.__name__ = ["Reflect"]; Reflect.field = function(o,field) { try { return o[field]; } catch( e ) { haxe_CallStack.lastException = e; return null; } }; Reflect.getProperty = function(o,field) { var tmp; if(o == null) { return null; } else { var tmp1; if(o.__properties__) { tmp = o.__properties__["get_" + field]; tmp1 = tmp; } else { tmp1 = false; } if(tmp1) { return o[tmp](); } else { return o[field]; } } }; Reflect.setProperty = function(o,field,value) { var tmp; var tmp1; if(o.__properties__) { tmp = o.__properties__["set_" + field]; tmp1 = tmp; } else { tmp1 = false; } if(tmp1) { o[tmp](value); } else { o[field] = value; } }; Reflect.fields = function(o) { var a = []; if(o != null) { var hasOwnProperty = Object.prototype.hasOwnProperty; for( var f in o ) { if(f != "__id__" && f != "hx__closures__" && hasOwnProperty.call(o,f)) { a.push(f); } } } return a; }; Reflect.isFunction = function(f) { if(typeof(f) == "function") { return !(f.__name__ || f.__ename__); } else { return false; } }; Reflect.compare = function(a,b) { if(a == b) { return 0; } else if(a > b) { return 1; } else { return -1; } }; Reflect.compareMethods = function(f1,f2) { if(f1 == f2) { return true; } if(!Reflect.isFunction(f1) || !Reflect.isFunction(f2)) { return false; } if(f1.scope == f2.scope && f1.method == f2.method) { return f1.method != null; } else { return false; } }; Reflect.isObject = function(v) { if(v == null) { return false; } var t = typeof(v); if(!(t == "string" || t == "object" && v.__enum__ == null)) { if(t == "function") { return (v.__name__ || v.__ename__) != null; } else { return false; } } else { return true; } }; Reflect.isEnumValue = function(v) { if(v != null) { return v.__enum__ != null; } else { return false; } }; Reflect.deleteField = function(o,field) { if(!Object.prototype.hasOwnProperty.call(o,field)) { return false; } delete(o[field]); return true; }; Reflect.makeVarArgs = function(f) { return function() { var a = Array.prototype.slice.call(arguments); return f(a); }; }; var Std = function() { }; $hxClasses["Std"] = Std; Std.__name__ = ["Std"]; Std.string = function(s) { return js_Boot.__string_rec(s,""); }; Std.parseInt = function(x) { var v = parseInt(x,10); if(v == 0 && (HxOverrides.cca(x,1) == 120 || HxOverrides.cca(x,1) == 88)) { v = parseInt(x); } if(isNaN(v)) { return null; } return v; }; Std.random = function(x) { if(x <= 0) { return 0; } else { return Math.floor(Math.random() * x); } }; var StringBuf = function() { this.b = ""; }; $hxClasses["StringBuf"] = StringBuf; StringBuf.__name__ = ["StringBuf"]; StringBuf.prototype = { b: null ,__class__: StringBuf }; var StringTools = function() { }; $hxClasses["StringTools"] = StringTools; StringTools.__name__ = ["StringTools"]; StringTools.htmlEscape = function(s,quotes) { s = s.split("&").join("&").split("<").join("<").split(">").join(">"); if(quotes) { return s.split("\"").join(""").split("'").join("'"); } else { return s; } }; StringTools.startsWith = function(s,start) { if(s.length >= start.length) { return HxOverrides.substr(s,0,start.length) == start; } else { return false; } }; StringTools.endsWith = function(s,end) { var elen = end.length; var slen = s.length; if(slen >= elen) { return HxOverrides.substr(s,slen - elen,elen) == end; } else { return false; } }; StringTools.isSpace = function(s,pos) { var c = HxOverrides.cca(s,pos); if(!(c > 8 && c < 14)) { return c == 32; } else { return true; } }; StringTools.ltrim = function(s) { var l = s.length; var r = 0; while(r < l && StringTools.isSpace(s,r)) ++r; if(r > 0) { return HxOverrides.substr(s,r,l - r); } else { return s; } }; StringTools.rtrim = function(s) { var l = s.length; var r = 0; while(r < l && StringTools.isSpace(s,l - r - 1)) ++r; if(r > 0) { return HxOverrides.substr(s,0,l - r); } else { return s; } }; StringTools.trim = function(s) { return StringTools.ltrim(StringTools.rtrim(s)); }; StringTools.lpad = function(s,c,l) { if(c.length <= 0) { return s; } while(s.length < l) s = c + s; return s; }; StringTools.replace = function(s,sub,by) { return s.split(sub).join(by); }; StringTools.hex = function(n,digits) { var s = ""; var hexChars = "0123456789ABCDEF"; while(true) { s = hexChars.charAt(n & 15) + s; n >>>= 4; if(!(n > 0)) { break; } } if(digits != null) { while(s.length < digits) s = "0" + s; } return s; }; var ValueType = $hxClasses["ValueType"] = { __ename__ : ["ValueType"], __constructs__ : ["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"] }; ValueType.TNull = ["TNull",0]; ValueType.TNull.toString = $estr; ValueType.TNull.__enum__ = ValueType; ValueType.TInt = ["TInt",1]; ValueType.TInt.toString = $estr; ValueType.TInt.__enum__ = ValueType; ValueType.TFloat = ["TFloat",2]; ValueType.TFloat.toString = $estr; ValueType.TFloat.__enum__ = ValueType; ValueType.TBool = ["TBool",3]; ValueType.TBool.toString = $estr; ValueType.TBool.__enum__ = ValueType; ValueType.TObject = ["TObject",4]; ValueType.TObject.toString = $estr; ValueType.TObject.__enum__ = ValueType; ValueType.TFunction = ["TFunction",5]; ValueType.TFunction.toString = $estr; ValueType.TFunction.__enum__ = ValueType; ValueType.TClass = function(c) { var $x = ["TClass",6,c]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }; ValueType.TEnum = function(e) { var $x = ["TEnum",7,e]; $x.__enum__ = ValueType; $x.toString = $estr; return $x; }; ValueType.TUnknown = ["TUnknown",8]; ValueType.TUnknown.toString = $estr; ValueType.TUnknown.__enum__ = ValueType; ValueType.__empty_constructs__ = [ValueType.TNull,ValueType.TInt,ValueType.TFloat,ValueType.TBool,ValueType.TObject,ValueType.TFunction,ValueType.TUnknown]; var Type = function() { }; $hxClasses["Type"] = Type; Type.__name__ = ["Type"]; Type.getSuperClass = function(c) { return c.__super__; }; Type.getClassName = function(c) { var a = c.__name__; if(a == null) { return null; } return a.join("."); }; Type.getEnumName = function(e) { var a = e.__ename__; return a.join("."); }; Type.resolveClass = function(name) { var cl = $hxClasses[name]; if(cl == null || !cl.__name__) { return null; } return cl; }; Type.resolveEnum = function(name) { var e = $hxClasses[name]; if(e == null || !e.__ename__) { return null; } return e; }; Type.createInstance = function(cl,args) { var _g = args.length; switch(_g) { case 0: return new cl(); case 1: return new cl(args[0]); case 2: return new cl(args[0],args[1]); case 3: return new cl(args[0],args[1],args[2]); case 4: return new cl(args[0],args[1],args[2],args[3]); case 5: return new cl(args[0],args[1],args[2],args[3],args[4]); case 6: return new cl(args[0],args[1],args[2],args[3],args[4],args[5]); case 7: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6]); case 8: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7]); case 9: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8]); case 10: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9]); case 11: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10]); case 12: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10],args[11]); case 13: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10],args[11],args[12]); case 14: return new cl(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8],args[9],args[10],args[11],args[12],args[13]); default: throw new js__$Boot_HaxeError("Too many arguments"); } }; Type.createEmptyInstance = function(cl) { function empty() {}; empty.prototype = cl.prototype; return new empty(); }; Type.createEnum = function(e,constr,params) { var f = Reflect.field(e,constr); if(f == null) { throw new js__$Boot_HaxeError("No such constructor " + constr); } if(Reflect.isFunction(f)) { if(params == null) { throw new js__$Boot_HaxeError("Constructor " + constr + " need parameters"); } return f.apply(e,params); } if(params != null && params.length != 0) { throw new js__$Boot_HaxeError("Constructor " + constr + " does not need parameters"); } return f; }; Type.createEnumIndex = function(e,index,params) { var c = e.__constructs__[index]; if(c == null) { throw new js__$Boot_HaxeError(index + " is not a valid enum constructor index"); } return Type.createEnum(e,c,params); }; Type.getInstanceFields = function(c) { var a = []; for(var i in c.prototype) a.push(i); HxOverrides.remove(a,"__class__"); HxOverrides.remove(a,"__properties__"); return a; }; Type["typeof"] = function(v) { var _g = typeof(v); switch(_g) { case "boolean": return ValueType.TBool; case "function": if(v.__name__ || v.__ename__) { return ValueType.TObject; } return ValueType.TFunction; case "number": if(Math.ceil(v) == v % 2147483648.0) { return ValueType.TInt; } return ValueType.TFloat; case "object": if(v == null) { return ValueType.TNull; } var e = v.__enum__; if(e != null) { return ValueType.TEnum(e); } var c = js_Boot.getClass(v); if(c != null) { return ValueType.TClass(c); } return ValueType.TObject; case "string": return ValueType.TClass(String); case "undefined": return ValueType.TNull; default: return ValueType.TUnknown; } }; var _$UInt_UInt_$Impl_$ = {}; $hxClasses["_UInt.UInt_Impl_"] = _$UInt_UInt_$Impl_$; _$UInt_UInt_$Impl_$.__name__ = ["_UInt","UInt_Impl_"]; _$UInt_UInt_$Impl_$.gt = function(a,b) { var aNeg = a < 0; var bNeg = b < 0; if(aNeg != bNeg) { return aNeg; } else { return a > b; } }; _$UInt_UInt_$Impl_$.toFloat = function(this1) { var $int = this1; if($int < 0) { return 4294967296.0 + $int; } else { return $int + 0.0; } }; var Xml = function(nodeType) { this.nodeType = nodeType; this.children = []; this.attributeMap = new haxe_ds_StringMap(); }; $hxClasses["Xml"] = Xml; Xml.__name__ = ["Xml"]; Xml.parse = function(str) { return haxe_xml_Parser.parse(str); }; Xml.createElement = function(name) { var xml = new Xml(Xml.Element); if(xml.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + xml.nodeType); } xml.nodeName = name; return xml; }; Xml.createPCData = function(data) { var xml = new Xml(Xml.PCData); if(xml.nodeType == Xml.Document || xml.nodeType == Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, unexpected " + xml.nodeType); } xml.nodeValue = data; return xml; }; Xml.createCData = function(data) { var xml = new Xml(Xml.CData); if(xml.nodeType == Xml.Document || xml.nodeType == Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, unexpected " + xml.nodeType); } xml.nodeValue = data; return xml; }; Xml.createComment = function(data) { var xml = new Xml(Xml.Comment); if(xml.nodeType == Xml.Document || xml.nodeType == Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, unexpected " + xml.nodeType); } xml.nodeValue = data; return xml; }; Xml.createDocType = function(data) { var xml = new Xml(Xml.DocType); if(xml.nodeType == Xml.Document || xml.nodeType == Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, unexpected " + xml.nodeType); } xml.nodeValue = data; return xml; }; Xml.createProcessingInstruction = function(data) { var xml = new Xml(Xml.ProcessingInstruction); if(xml.nodeType == Xml.Document || xml.nodeType == Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, unexpected " + xml.nodeType); } xml.nodeValue = data; return xml; }; Xml.createDocument = function() { return new Xml(Xml.Document); }; Xml.prototype = { nodeType: null ,nodeName: null ,nodeValue: null ,parent: null ,children: null ,attributeMap: null ,get: function(att) { if(this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + this.nodeType); } var _this = this.attributeMap; if(__map_reserved[att] != null) { return _this.getReserved(att); } else { return _this.h[att]; } } ,set: function(att,value) { if(this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + this.nodeType); } var _this = this.attributeMap; if(__map_reserved[att] != null) { _this.setReserved(att,value); } else { _this.h[att] = value; } } ,exists: function(att) { if(this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + this.nodeType); } var _this = this.attributeMap; if(__map_reserved[att] != null) { return _this.existsReserved(att); } else { return _this.h.hasOwnProperty(att); } } ,elementsNamed: function(name) { if(this.nodeType != Xml.Document && this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element or Document but found " + this.nodeType); } var _g = []; var _g1 = 0; var _g2 = this.children; while(_g1 < _g2.length) { var child = _g2[_g1]; ++_g1; var tmp; if(child.nodeType == Xml.Element) { if(child.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + child.nodeType); } tmp = child.nodeName == name; } else { tmp = false; } if(tmp) { _g.push(child); } } var ret = _g; return HxOverrides.iter(ret); } ,firstElement: function() { if(this.nodeType != Xml.Document && this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element or Document but found " + this.nodeType); } var _g = 0; var _g1 = this.children; while(_g < _g1.length) { var child = _g1[_g]; ++_g; if(child.nodeType == Xml.Element) { return child; } } return null; } ,addChild: function(x) { if(this.nodeType != Xml.Document && this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element or Document but found " + this.nodeType); } if(x.parent != null) { x.parent.removeChild(x); } this.children.push(x); x.parent = this; } ,removeChild: function(x) { if(this.nodeType != Xml.Document && this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element or Document but found " + this.nodeType); } if(HxOverrides.remove(this.children,x)) { x.parent = null; return true; } return false; } ,__class__: Xml }; var assets_GamestringsXmlElement = function(id,english) { this.id = id; this.english = english; }; $hxClasses["assets.GamestringsXmlElement"] = assets_GamestringsXmlElement; assets_GamestringsXmlElement.__name__ = ["assets","GamestringsXmlElement"]; assets_GamestringsXmlElement.prototype = { id: null ,english: null ,__class__: assets_GamestringsXmlElement }; var com_firstplayable_hxlib_utils_IGamestrings = function() { }; $hxClasses["com.firstplayable.hxlib.utils.IGamestrings"] = com_firstplayable_hxlib_utils_IGamestrings; com_firstplayable_hxlib_utils_IGamestrings.__name__ = ["com","firstplayable","hxlib","utils","IGamestrings"]; com_firstplayable_hxlib_utils_IGamestrings.prototype = { has: null ,get: null ,__class__: com_firstplayable_hxlib_utils_IGamestrings }; var assets_Gamestrings = function() { this.m_stringMap = new haxe_ds_StringMap(); this.m_tokenMap = new haxe_ds_StringMap(); this.initStrings(); }; $hxClasses["assets.Gamestrings"] = assets_Gamestrings; assets_Gamestrings.__name__ = ["assets","Gamestrings"]; assets_Gamestrings.__interfaces__ = [com_firstplayable_hxlib_utils_IGamestrings]; assets_Gamestrings.prototype = { m_stringMap: null ,m_tokenMap: null ,has: function(id) { var _this = this.m_stringMap; if(__map_reserved[id] != null) { return _this.existsReserved(id); } else { return _this.h.hasOwnProperty(id); } } ,get: function(id) { var _this = this.m_stringMap; var strings = __map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]; var retVal = id; if(strings != null) { retVal = strings.english; if(retVal.indexOf("TOKEN__") != -1) { retVal = this.replaceTokens(retVal); } } return retVal; } ,replaceTokens: function(str) { var tokenPattern = "TOKEN__" + "[A-Za-z0-9_]+"; var tokenRegex = new EReg(tokenPattern,""); var matched = tokenRegex.match(str); while(matched) { var token = tokenRegex.matched(0); var match = tokenRegex.matchedPos(); var tokenVal = this.getTokenVal(token); if(tokenVal == token) { com_firstplayable_hxlib_Debug.logHelper("Could not find value for token '" + token + "'",com_firstplayable_hxlib_Severity.Warn,{ fileName : "Gamestrings.hx", lineNumber : 81, className : "assets.Gamestrings", methodName : "replaceTokens"}); tokenVal = " "; } str = HxOverrides.substr(str,0,match.pos) + tokenVal + HxOverrides.substr(str,match.pos + match.len,null); matched = tokenRegex.match(str); } return str; } ,setToken: function(tokenId,tokenVal) { var _this = this.m_tokenMap; if(__map_reserved[tokenId] != null ? _this.existsReserved(tokenId) : _this.h.hasOwnProperty(tokenId)) { com_firstplayable_hxlib_Debug.log("Token with ID '" + tokenId + "' already exists; it will be overwritten",null,{ fileName : "Gamestrings.hx", lineNumber : 96, className : "assets.Gamestrings", methodName : "setToken"}); } var _this1 = this.m_tokenMap; if(__map_reserved[tokenId] != null) { _this1.setReserved(tokenId,tokenVal); } else { _this1.h[tokenId] = tokenVal; } } ,getTokenVal: function(token) { var _this = this.m_tokenMap; if(__map_reserved[token] != null ? _this.existsReserved(token) : _this.h.hasOwnProperty(token)) { var _this1 = this.m_tokenMap; if(__map_reserved[token] != null) { return _this1.getReserved(token); } else { return _this1.h[token]; } } else { return token; } } ,initStrings: function() { var paistStrs = assets_strings_PaistStringsValues.getValues(); var key = paistStrs.keys(); while(key.hasNext()) { var key1 = key.next(); var val = __map_reserved[key1] != null ? paistStrs.getReserved(key1) : paistStrs.h[key1]; var newVal = new assets_GamestringsXmlElement(val.id,val.english); var _this = this.m_stringMap; if(__map_reserved[key1] != null) { _this.setReserved(key1,newVal); } else { _this.h[key1] = newVal; } } } ,addStrings: function(strings) { var _g = 0; while(_g < strings.length) { var element = strings[_g]; ++_g; var _this = this.m_stringMap; var key = element.id; if(__map_reserved[key] != null ? _this.existsReserved(key) : _this.h.hasOwnProperty(key)) { com_firstplayable_hxlib_Debug.logHelper("String with ID: " + element.id + " already in map. Overwriting.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "Gamestrings.hx", lineNumber : 139, className : "assets.Gamestrings", methodName : "addStrings"}); } var _this1 = this.m_stringMap; var key1 = element.id; if(__map_reserved[key1] != null) { _this1.setReserved(key1,element); } else { _this1.h[key1] = element; } } } ,__class__: assets_Gamestrings }; var assets_JsonAssets = function() { }; $hxClasses["assets.JsonAssets"] = assets_JsonAssets; assets_JsonAssets.__name__ = ["assets","JsonAssets"]; var assets_PaistManifest = function() { }; $hxClasses["assets.PaistManifest"] = assets_PaistManifest; assets_PaistManifest.__name__ = ["assets","PaistManifest"]; assets_PaistManifest.init = function() { com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("CommunityPopup",{ src : "layouts/CommunityPopup.json", content : assets_JsonAssets._layouts_CommunityPopup}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("CommunityPopup",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("CommunityPopup",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("CommunityPopup",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("CommunityPopup",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("CommunityPopup",{ src : "2d/SharedUI_BUTTONS.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("CommunityPopup",{ src : "2d/SharedUI_BUTTONS.json", content : assets_JsonAssets._2d_SharedUI_BUTTONS}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("EventChoiceMenu",{ src : "layouts/EventChoiceMenu.json", content : assets_JsonAssets._layouts_EventChoiceMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("EventChoiceMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("EventChoiceMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("EventChoiceMenu",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("EventChoiceMenu",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayChoicePopup",{ src : "layouts/GameplayChoicePopup.json", content : assets_JsonAssets._layouts_GameplayChoicePopup}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayChoicePopup",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayChoicePopup",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayChoicePopup",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayChoicePopup",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayChoicePopup",{ src : "2d/SharedUI_BUTTONS.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayChoicePopup",{ src : "2d/SharedUI_BUTTONS.json", content : assets_JsonAssets._2d_SharedUI_BUTTONS}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "layouts/GameplayMenu.json", content : assets_JsonAssets._layouts_GameplayMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/Event_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/Event_BG_DEFAULT.json", content : assets_JsonAssets._2d_Event_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/Preparation_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/Preparation_BG_DEFAULT.json", content : assets_JsonAssets._2d_Preparation_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/CoverSprite_DEFAULT_LARGE.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/CoverSprite_DEFAULT_LARGE.json", content : assets_JsonAssets._2d_CoverSprite_DEFAULT_LARGE}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameplayMenu",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PreparationChoiceMenu",{ src : "layouts/PreparationChoiceMenu.json", content : assets_JsonAssets._layouts_PreparationChoiceMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PreparationChoiceMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PreparationChoiceMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PreparationChoiceMenu",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PreparationChoiceMenu",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SocialFeedComment",{ src : "layouts/SocialFeedComment.json", content : assets_JsonAssets._layouts_SocialFeedComment}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SocialFeedComment",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SocialFeedComment",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SocialFeedMenu",{ src : "layouts/SocialFeedMenu.json", content : assets_JsonAssets._layouts_SocialFeedMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "layouts/StakeholderPopup.json", content : assets_JsonAssets._layouts_StakeholderPopup}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/Stakeholders_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/Stakeholders_BG_DEFAULT.json", content : assets_JsonAssets._2d_Stakeholders_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/SharedUI_BUTTONS.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("StakeholderPopup",{ src : "2d/SharedUI_BUTTONS.json", content : assets_JsonAssets._2d_SharedUI_BUTTONS}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("IntroMenu",{ src : "layouts/IntroMenu.json", content : assets_JsonAssets._layouts_IntroMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("IntroMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("IntroMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("IntroMenu",{ src : "2d/Background_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("IntroMenu",{ src : "2d/Background_BG_DEFAULT.json", content : assets_JsonAssets._2d_Background_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("IntroMenu",{ src : "2d/IntroMenu_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("IntroMenu",{ src : "2d/IntroMenu_DEFAULT.json", content : assets_JsonAssets._2d_IntroMenu_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResilienceTutorialMenu",{ src : "layouts/ResilienceTutorialMenu.json", content : assets_JsonAssets._layouts_ResilienceTutorialMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResilienceTutorialMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResilienceTutorialMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResilienceTutorialMenu",{ src : "2d/Background_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResilienceTutorialMenu",{ src : "2d/Background_BG_DEFAULT.json", content : assets_JsonAssets._2d_Background_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("YearMenu",{ src : "layouts/YearMenu.json", content : assets_JsonAssets._layouts_YearMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("YearMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("YearMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("YearMenu",{ src : "2d/Background_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("YearMenu",{ src : "2d/Background_BG_DEFAULT.json", content : assets_JsonAssets._2d_Background_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelect",{ src : "layouts/LevelSelect.json", content : assets_JsonAssets._layouts_LevelSelect}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelect",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelect",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "layouts/LevelSelectMenu.json", content : assets_JsonAssets._layouts_LevelSelectMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/Background_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/Background_BG_DEFAULT.json", content : assets_JsonAssets._2d_Background_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/LevelSelectMenu_DEFAULT_LARGE.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/LevelSelectMenu_DEFAULT_LARGE.json", content : assets_JsonAssets._2d_LevelSelectMenu_DEFAULT_LARGE}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("LevelSelectMenu",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "layouts/RegionSelectMenu.json", content : assets_JsonAssets._layouts_RegionSelectMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/Background_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/Background_BG_DEFAULT.json", content : assets_JsonAssets._2d_Background_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/ModeSelectMenu_DEFAULT_LARGE.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/ModeSelectMenu_DEFAULT_LARGE.json", content : assets_JsonAssets._2d_ModeSelectMenu_DEFAULT_LARGE}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("RegionSelectMenu",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "layouts/ResultsMenu.json", content : assets_JsonAssets._layouts_ResultsMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/Background_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/Background_BG_DEFAULT.json", content : assets_JsonAssets._2d_Background_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/Preparation_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/Preparation_BG_DEFAULT.json", content : assets_JsonAssets._2d_Preparation_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/ResultMenu_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("ResultsMenu",{ src : "2d/ResultMenu_DEFAULT.json", content : assets_JsonAssets._2d_ResultMenu_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameHudMenu",{ src : "layouts/GameHudMenu.json", content : assets_JsonAssets._layouts_GameHudMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameHudMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameHudMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameHudMenu",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("GameHudMenu",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PanelIcons",{ src : "layouts/PanelIcons.json", content : assets_JsonAssets._layouts_PanelIcons}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PanelIcons",{ src : "2d/SharedUI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("PanelIcons",{ src : "2d/SharedUI_DEFAULT.json", content : assets_JsonAssets._2d_SharedUI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TimelineMenu",{ src : "layouts/TimelineMenu.json", content : assets_JsonAssets._layouts_TimelineMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TimelineMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TimelineMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TimelineNode",{ src : "layouts/TimelineNode.json", content : assets_JsonAssets._layouts_TimelineNode}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TimelineNode",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TimelineNode",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SplashMenu",{ src : "layouts/SplashMenu.json", content : assets_JsonAssets._layouts_SplashMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SplashMenu",{ src : "2d/TitleBG_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SplashMenu",{ src : "2d/TitleBG_BG_DEFAULT.json", content : assets_JsonAssets._2d_TitleBG_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SplashMenu",{ src : "2d/Title_DEFAULT_LARGE.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("SplashMenu",{ src : "2d/Title_DEFAULT_LARGE.json", content : assets_JsonAssets._2d_Title_DEFAULT_LARGE}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TitleMenu",{ src : "layouts/TitleMenu.json", content : assets_JsonAssets._layouts_TitleMenu}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TitleMenu",{ src : "2d/UI_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TitleMenu",{ src : "2d/UI_DEFAULT.json", content : assets_JsonAssets._2d_UI_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TitleMenu",{ src : "2d/TitleBG_BG_DEFAULT.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TitleMenu",{ src : "2d/TitleBG_BG_DEFAULT.json", content : assets_JsonAssets._2d_TitleBG_BG_DEFAULT}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TitleMenu",{ src : "2d/Title_DEFAULT_LARGE.png"}); com_firstplayable_hxlib_loader_ResMan.get_instance().addRes("TitleMenu",{ src : "2d/Title_DEFAULT_LARGE.json", content : assets_JsonAssets._2d_Title_DEFAULT_LARGE}); }; var com_firstplayable_hxlib_loader_IResourceMap = function() { this.INVALID = "invalid"; }; $hxClasses["com.firstplayable.hxlib.loader.IResourceMap"] = com_firstplayable_hxlib_loader_IResourceMap; com_firstplayable_hxlib_loader_IResourceMap.__name__ = ["com","firstplayable","hxlib","loader","IResourceMap"]; com_firstplayable_hxlib_loader_IResourceMap.prototype = { INVALID: null ,getSheetPath: null ,__class__: com_firstplayable_hxlib_loader_IResourceMap }; var assets_ResourceMap = function() { this.INVALID = "invalid"; this.m_map = new haxe_ds_StringMap(); this.init(); }; $hxClasses["assets.ResourceMap"] = assets_ResourceMap; assets_ResourceMap.__name__ = ["assets","ResourceMap"]; assets_ResourceMap.__interfaces__ = [com_firstplayable_hxlib_loader_IResourceMap]; assets_ResourceMap.prototype = { INVALID: null ,m_map: null ,getSheetPath: function(assetName) { var _this = this.m_map; if(!(__map_reserved[assetName] != null ? _this.existsReserved(assetName) : _this.h.hasOwnProperty(assetName))) { return this.INVALID; } else { var _this1 = this.m_map; if(__map_reserved[assetName] != null) { return _this1.getReserved(assetName); } else { return _this1.h[assetName]; } } } ,init: function() { var _this = this.m_map; if(__map_reserved["2d/ui/intro/CommunityRes.png"] != null) { _this.setReserved("2d/ui/intro/CommunityRes.png","2d/IntroMenu_DEFAULT.json"); } else { _this.h["2d/ui/intro/CommunityRes.png"] = "2d/IntroMenu_DEFAULT.json"; } var _this1 = this.m_map; if(__map_reserved["2d/ui/intro/CommunityRes"] != null) { _this1.setReserved("2d/ui/intro/CommunityRes","2d/IntroMenu_DEFAULT.json"); } else { _this1.h["2d/ui/intro/CommunityRes"] = "2d/IntroMenu_DEFAULT.json"; } var _this2 = this.m_map; if(__map_reserved["2d/ui/intro/CommunityResImg.png"] != null) { _this2.setReserved("2d/ui/intro/CommunityResImg.png","2d/IntroMenu_DEFAULT.json"); } else { _this2.h["2d/ui/intro/CommunityResImg.png"] = "2d/IntroMenu_DEFAULT.json"; } var _this3 = this.m_map; if(__map_reserved["2d/ui/intro/CommunityResImg"] != null) { _this3.setReserved("2d/ui/intro/CommunityResImg","2d/IntroMenu_DEFAULT.json"); } else { _this3.h["2d/ui/intro/CommunityResImg"] = "2d/IntroMenu_DEFAULT.json"; } var _this4 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-EventButton_disabled.png"] != null) { _this4.setReserved("2d/ui/buttons/9patch-EventButton_disabled.png","2d/UI_DEFAULT.json"); } else { _this4.h["2d/ui/buttons/9patch-EventButton_disabled.png"] = "2d/UI_DEFAULT.json"; } var _this5 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-EventButton_disabled"] != null) { _this5.setReserved("2d/ui/buttons/9patch-EventButton_disabled","2d/UI_DEFAULT.json"); } else { _this5.h["2d/ui/buttons/9patch-EventButton_disabled"] = "2d/UI_DEFAULT.json"; } var _this6 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-EventButton_down.png"] != null) { _this6.setReserved("2d/ui/buttons/9patch-EventButton_down.png","2d/UI_DEFAULT.json"); } else { _this6.h["2d/ui/buttons/9patch-EventButton_down.png"] = "2d/UI_DEFAULT.json"; } var _this7 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-EventButton_down"] != null) { _this7.setReserved("2d/ui/buttons/9patch-EventButton_down","2d/UI_DEFAULT.json"); } else { _this7.h["2d/ui/buttons/9patch-EventButton_down"] = "2d/UI_DEFAULT.json"; } var _this8 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-EventButton_up.png"] != null) { _this8.setReserved("2d/ui/buttons/9patch-EventButton_up.png","2d/UI_DEFAULT.json"); } else { _this8.h["2d/ui/buttons/9patch-EventButton_up.png"] = "2d/UI_DEFAULT.json"; } var _this9 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-EventButton_up"] != null) { _this9.setReserved("2d/ui/buttons/9patch-EventButton_up","2d/UI_DEFAULT.json"); } else { _this9.h["2d/ui/buttons/9patch-EventButton_up"] = "2d/UI_DEFAULT.json"; } var _this10 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-GameMode_disabled.png"] != null) { _this10.setReserved("2d/ui/buttons/9patch-GameMode_disabled.png","2d/UI_DEFAULT.json"); } else { _this10.h["2d/ui/buttons/9patch-GameMode_disabled.png"] = "2d/UI_DEFAULT.json"; } var _this11 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-GameMode_disabled"] != null) { _this11.setReserved("2d/ui/buttons/9patch-GameMode_disabled","2d/UI_DEFAULT.json"); } else { _this11.h["2d/ui/buttons/9patch-GameMode_disabled"] = "2d/UI_DEFAULT.json"; } var _this12 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-GameMode_down.png"] != null) { _this12.setReserved("2d/ui/buttons/9patch-GameMode_down.png","2d/UI_DEFAULT.json"); } else { _this12.h["2d/ui/buttons/9patch-GameMode_down.png"] = "2d/UI_DEFAULT.json"; } var _this13 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-GameMode_down"] != null) { _this13.setReserved("2d/ui/buttons/9patch-GameMode_down","2d/UI_DEFAULT.json"); } else { _this13.h["2d/ui/buttons/9patch-GameMode_down"] = "2d/UI_DEFAULT.json"; } var _this14 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-GameMode_up.png"] != null) { _this14.setReserved("2d/ui/buttons/9patch-GameMode_up.png","2d/UI_DEFAULT.json"); } else { _this14.h["2d/ui/buttons/9patch-GameMode_up.png"] = "2d/UI_DEFAULT.json"; } var _this15 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-GameMode_up"] != null) { _this15.setReserved("2d/ui/buttons/9patch-GameMode_up","2d/UI_DEFAULT.json"); } else { _this15.h["2d/ui/buttons/9patch-GameMode_up"] = "2d/UI_DEFAULT.json"; } var _this16 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-LevelSelectBtn_disabled.png"] != null) { _this16.setReserved("2d/ui/buttons/9patch-LevelSelectBtn_disabled.png","2d/UI_DEFAULT.json"); } else { _this16.h["2d/ui/buttons/9patch-LevelSelectBtn_disabled.png"] = "2d/UI_DEFAULT.json"; } var _this17 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-LevelSelectBtn_disabled"] != null) { _this17.setReserved("2d/ui/buttons/9patch-LevelSelectBtn_disabled","2d/UI_DEFAULT.json"); } else { _this17.h["2d/ui/buttons/9patch-LevelSelectBtn_disabled"] = "2d/UI_DEFAULT.json"; } var _this18 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-LevelSelectBtn_down.png"] != null) { _this18.setReserved("2d/ui/buttons/9patch-LevelSelectBtn_down.png","2d/UI_DEFAULT.json"); } else { _this18.h["2d/ui/buttons/9patch-LevelSelectBtn_down.png"] = "2d/UI_DEFAULT.json"; } var _this19 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-LevelSelectBtn_down"] != null) { _this19.setReserved("2d/ui/buttons/9patch-LevelSelectBtn_down","2d/UI_DEFAULT.json"); } else { _this19.h["2d/ui/buttons/9patch-LevelSelectBtn_down"] = "2d/UI_DEFAULT.json"; } var _this20 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-LevelSelectBtn_up.png"] != null) { _this20.setReserved("2d/ui/buttons/9patch-LevelSelectBtn_up.png","2d/UI_DEFAULT.json"); } else { _this20.h["2d/ui/buttons/9patch-LevelSelectBtn_up.png"] = "2d/UI_DEFAULT.json"; } var _this21 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-LevelSelectBtn_up"] != null) { _this21.setReserved("2d/ui/buttons/9patch-LevelSelectBtn_up","2d/UI_DEFAULT.json"); } else { _this21.h["2d/ui/buttons/9patch-LevelSelectBtn_up"] = "2d/UI_DEFAULT.json"; } var _this22 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-PrepButton_disabled.png"] != null) { _this22.setReserved("2d/ui/buttons/9patch-PrepButton_disabled.png","2d/UI_DEFAULT.json"); } else { _this22.h["2d/ui/buttons/9patch-PrepButton_disabled.png"] = "2d/UI_DEFAULT.json"; } var _this23 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-PrepButton_disabled"] != null) { _this23.setReserved("2d/ui/buttons/9patch-PrepButton_disabled","2d/UI_DEFAULT.json"); } else { _this23.h["2d/ui/buttons/9patch-PrepButton_disabled"] = "2d/UI_DEFAULT.json"; } var _this24 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-PrepButton_down.png"] != null) { _this24.setReserved("2d/ui/buttons/9patch-PrepButton_down.png","2d/UI_DEFAULT.json"); } else { _this24.h["2d/ui/buttons/9patch-PrepButton_down.png"] = "2d/UI_DEFAULT.json"; } var _this25 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-PrepButton_down"] != null) { _this25.setReserved("2d/ui/buttons/9patch-PrepButton_down","2d/UI_DEFAULT.json"); } else { _this25.h["2d/ui/buttons/9patch-PrepButton_down"] = "2d/UI_DEFAULT.json"; } var _this26 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-PrepButton_up.png"] != null) { _this26.setReserved("2d/ui/buttons/9patch-PrepButton_up.png","2d/UI_DEFAULT.json"); } else { _this26.h["2d/ui/buttons/9patch-PrepButton_up.png"] = "2d/UI_DEFAULT.json"; } var _this27 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-PrepButton_up"] != null) { _this27.setReserved("2d/ui/buttons/9patch-PrepButton_up","2d/UI_DEFAULT.json"); } else { _this27.h["2d/ui/buttons/9patch-PrepButton_up"] = "2d/UI_DEFAULT.json"; } var _this28 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Primary_down.png"] != null) { _this28.setReserved("2d/ui/buttons/9patch-Primary_down.png","2d/UI_DEFAULT.json"); } else { _this28.h["2d/ui/buttons/9patch-Primary_down.png"] = "2d/UI_DEFAULT.json"; } var _this29 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Primary_down"] != null) { _this29.setReserved("2d/ui/buttons/9patch-Primary_down","2d/UI_DEFAULT.json"); } else { _this29.h["2d/ui/buttons/9patch-Primary_down"] = "2d/UI_DEFAULT.json"; } var _this30 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Primary_up.png"] != null) { _this30.setReserved("2d/ui/buttons/9patch-Primary_up.png","2d/UI_DEFAULT.json"); } else { _this30.h["2d/ui/buttons/9patch-Primary_up.png"] = "2d/UI_DEFAULT.json"; } var _this31 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Primary_up"] != null) { _this31.setReserved("2d/ui/buttons/9patch-Primary_up","2d/UI_DEFAULT.json"); } else { _this31.h["2d/ui/buttons/9patch-Primary_up"] = "2d/UI_DEFAULT.json"; } var _this32 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Secondary_down.png"] != null) { _this32.setReserved("2d/ui/buttons/9patch-Secondary_down.png","2d/UI_DEFAULT.json"); } else { _this32.h["2d/ui/buttons/9patch-Secondary_down.png"] = "2d/UI_DEFAULT.json"; } var _this33 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Secondary_down"] != null) { _this33.setReserved("2d/ui/buttons/9patch-Secondary_down","2d/UI_DEFAULT.json"); } else { _this33.h["2d/ui/buttons/9patch-Secondary_down"] = "2d/UI_DEFAULT.json"; } var _this34 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Secondary_up.png"] != null) { _this34.setReserved("2d/ui/buttons/9patch-Secondary_up.png","2d/UI_DEFAULT.json"); } else { _this34.h["2d/ui/buttons/9patch-Secondary_up.png"] = "2d/UI_DEFAULT.json"; } var _this35 = this.m_map; if(__map_reserved["2d/ui/buttons/9patch-Secondary_up"] != null) { _this35.setReserved("2d/ui/buttons/9patch-Secondary_up","2d/UI_DEFAULT.json"); } else { _this35.h["2d/ui/buttons/9patch-Secondary_up"] = "2d/UI_DEFAULT.json"; } var _this36 = this.m_map; if(__map_reserved["2d/ui/buttons/Facebook_down.png"] != null) { _this36.setReserved("2d/ui/buttons/Facebook_down.png","2d/UI_DEFAULT.json"); } else { _this36.h["2d/ui/buttons/Facebook_down.png"] = "2d/UI_DEFAULT.json"; } var _this37 = this.m_map; if(__map_reserved["2d/ui/buttons/Facebook_down"] != null) { _this37.setReserved("2d/ui/buttons/Facebook_down","2d/UI_DEFAULT.json"); } else { _this37.h["2d/ui/buttons/Facebook_down"] = "2d/UI_DEFAULT.json"; } var _this38 = this.m_map; if(__map_reserved["2d/ui/buttons/Facebook_up.png"] != null) { _this38.setReserved("2d/ui/buttons/Facebook_up.png","2d/UI_DEFAULT.json"); } else { _this38.h["2d/ui/buttons/Facebook_up.png"] = "2d/UI_DEFAULT.json"; } var _this39 = this.m_map; if(__map_reserved["2d/ui/buttons/Facebook_up"] != null) { _this39.setReserved("2d/ui/buttons/Facebook_up","2d/UI_DEFAULT.json"); } else { _this39.h["2d/ui/buttons/Facebook_up"] = "2d/UI_DEFAULT.json"; } var _this40 = this.m_map; if(__map_reserved["2d/ui/buttons/GooglePlus_down.png"] != null) { _this40.setReserved("2d/ui/buttons/GooglePlus_down.png","2d/UI_DEFAULT.json"); } else { _this40.h["2d/ui/buttons/GooglePlus_down.png"] = "2d/UI_DEFAULT.json"; } var _this41 = this.m_map; if(__map_reserved["2d/ui/buttons/GooglePlus_down"] != null) { _this41.setReserved("2d/ui/buttons/GooglePlus_down","2d/UI_DEFAULT.json"); } else { _this41.h["2d/ui/buttons/GooglePlus_down"] = "2d/UI_DEFAULT.json"; } var _this42 = this.m_map; if(__map_reserved["2d/ui/buttons/GooglePlus_up.png"] != null) { _this42.setReserved("2d/ui/buttons/GooglePlus_up.png","2d/UI_DEFAULT.json"); } else { _this42.h["2d/ui/buttons/GooglePlus_up.png"] = "2d/UI_DEFAULT.json"; } var _this43 = this.m_map; if(__map_reserved["2d/ui/buttons/GooglePlus_up"] != null) { _this43.setReserved("2d/ui/buttons/GooglePlus_up","2d/UI_DEFAULT.json"); } else { _this43.h["2d/ui/buttons/GooglePlus_up"] = "2d/UI_DEFAULT.json"; } var _this44 = this.m_map; if(__map_reserved["2d/ui/buttons/LevelSelectCompleted.png"] != null) { _this44.setReserved("2d/ui/buttons/LevelSelectCompleted.png","2d/UI_DEFAULT.json"); } else { _this44.h["2d/ui/buttons/LevelSelectCompleted.png"] = "2d/UI_DEFAULT.json"; } var _this45 = this.m_map; if(__map_reserved["2d/ui/buttons/LevelSelectCompleted"] != null) { _this45.setReserved("2d/ui/buttons/LevelSelectCompleted","2d/UI_DEFAULT.json"); } else { _this45.h["2d/ui/buttons/LevelSelectCompleted"] = "2d/UI_DEFAULT.json"; } var _this46 = this.m_map; if(__map_reserved["2d/ui/buttons/LevelSelectLocked.png"] != null) { _this46.setReserved("2d/ui/buttons/LevelSelectLocked.png","2d/UI_DEFAULT.json"); } else { _this46.h["2d/ui/buttons/LevelSelectLocked.png"] = "2d/UI_DEFAULT.json"; } var _this47 = this.m_map; if(__map_reserved["2d/ui/buttons/LevelSelectLocked"] != null) { _this47.setReserved("2d/ui/buttons/LevelSelectLocked","2d/UI_DEFAULT.json"); } else { _this47.h["2d/ui/buttons/LevelSelectLocked"] = "2d/UI_DEFAULT.json"; } var _this48 = this.m_map; if(__map_reserved["2d/ui/buttons/LevelSelectNew.png"] != null) { _this48.setReserved("2d/ui/buttons/LevelSelectNew.png","2d/UI_DEFAULT.json"); } else { _this48.h["2d/ui/buttons/LevelSelectNew.png"] = "2d/UI_DEFAULT.json"; } var _this49 = this.m_map; if(__map_reserved["2d/ui/buttons/LevelSelectNew"] != null) { _this49.setReserved("2d/ui/buttons/LevelSelectNew","2d/UI_DEFAULT.json"); } else { _this49.h["2d/ui/buttons/LevelSelectNew"] = "2d/UI_DEFAULT.json"; } var _this50 = this.m_map; if(__map_reserved["2d/ui/buttons/PageRight_down.png"] != null) { _this50.setReserved("2d/ui/buttons/PageRight_down.png","2d/UI_DEFAULT.json"); } else { _this50.h["2d/ui/buttons/PageRight_down.png"] = "2d/UI_DEFAULT.json"; } var _this51 = this.m_map; if(__map_reserved["2d/ui/buttons/PageRight_down"] != null) { _this51.setReserved("2d/ui/buttons/PageRight_down","2d/UI_DEFAULT.json"); } else { _this51.h["2d/ui/buttons/PageRight_down"] = "2d/UI_DEFAULT.json"; } var _this52 = this.m_map; if(__map_reserved["2d/ui/buttons/PageRight_up.png"] != null) { _this52.setReserved("2d/ui/buttons/PageRight_up.png","2d/UI_DEFAULT.json"); } else { _this52.h["2d/ui/buttons/PageRight_up.png"] = "2d/UI_DEFAULT.json"; } var _this53 = this.m_map; if(__map_reserved["2d/ui/buttons/PageRight_up"] != null) { _this53.setReserved("2d/ui/buttons/PageRight_up","2d/UI_DEFAULT.json"); } else { _this53.h["2d/ui/buttons/PageRight_up"] = "2d/UI_DEFAULT.json"; } var _this54 = this.m_map; if(__map_reserved["2d/ui/buttons/Twitter_down.png"] != null) { _this54.setReserved("2d/ui/buttons/Twitter_down.png","2d/UI_DEFAULT.json"); } else { _this54.h["2d/ui/buttons/Twitter_down.png"] = "2d/UI_DEFAULT.json"; } var _this55 = this.m_map; if(__map_reserved["2d/ui/buttons/Twitter_down"] != null) { _this55.setReserved("2d/ui/buttons/Twitter_down","2d/UI_DEFAULT.json"); } else { _this55.h["2d/ui/buttons/Twitter_down"] = "2d/UI_DEFAULT.json"; } var _this56 = this.m_map; if(__map_reserved["2d/ui/buttons/Twitter_up.png"] != null) { _this56.setReserved("2d/ui/buttons/Twitter_up.png","2d/UI_DEFAULT.json"); } else { _this56.h["2d/ui/buttons/Twitter_up.png"] = "2d/UI_DEFAULT.json"; } var _this57 = this.m_map; if(__map_reserved["2d/ui/buttons/Twitter_up"] != null) { _this57.setReserved("2d/ui/buttons/Twitter_up","2d/UI_DEFAULT.json"); } else { _this57.h["2d/ui/buttons/Twitter_up"] = "2d/UI_DEFAULT.json"; } var _this58 = this.m_map; if(__map_reserved["2d/ui/coverSpriteBlack.png"] != null) { _this58.setReserved("2d/ui/coverSpriteBlack.png","2d/UI_DEFAULT.json"); } else { _this58.h["2d/ui/coverSpriteBlack.png"] = "2d/UI_DEFAULT.json"; } var _this59 = this.m_map; if(__map_reserved["2d/ui/coverSpriteBlack"] != null) { _this59.setReserved("2d/ui/coverSpriteBlack","2d/UI_DEFAULT.json"); } else { _this59.h["2d/ui/coverSpriteBlack"] = "2d/UI_DEFAULT.json"; } var _this60 = this.m_map; if(__map_reserved["2d/ui/hud/HudFishing.png"] != null) { _this60.setReserved("2d/ui/hud/HudFishing.png","2d/UI_DEFAULT.json"); } else { _this60.h["2d/ui/hud/HudFishing.png"] = "2d/UI_DEFAULT.json"; } var _this61 = this.m_map; if(__map_reserved["2d/ui/hud/HudFishing"] != null) { _this61.setReserved("2d/ui/hud/HudFishing","2d/UI_DEFAULT.json"); } else { _this61.h["2d/ui/hud/HudFishing"] = "2d/UI_DEFAULT.json"; } var _this62 = this.m_map; if(__map_reserved["2d/ui/hud/HudResilience.png"] != null) { _this62.setReserved("2d/ui/hud/HudResilience.png","2d/UI_DEFAULT.json"); } else { _this62.h["2d/ui/hud/HudResilience.png"] = "2d/UI_DEFAULT.json"; } var _this63 = this.m_map; if(__map_reserved["2d/ui/hud/HudResilience"] != null) { _this63.setReserved("2d/ui/hud/HudResilience","2d/UI_DEFAULT.json"); } else { _this63.h["2d/ui/hud/HudResilience"] = "2d/UI_DEFAULT.json"; } var _this64 = this.m_map; if(__map_reserved["2d/ui/hud/HudServices.png"] != null) { _this64.setReserved("2d/ui/hud/HudServices.png","2d/UI_DEFAULT.json"); } else { _this64.h["2d/ui/hud/HudServices.png"] = "2d/UI_DEFAULT.json"; } var _this65 = this.m_map; if(__map_reserved["2d/ui/hud/HudServices"] != null) { _this65.setReserved("2d/ui/hud/HudServices","2d/UI_DEFAULT.json"); } else { _this65.h["2d/ui/hud/HudServices"] = "2d/UI_DEFAULT.json"; } var _this66 = this.m_map; if(__map_reserved["2d/ui/hud/HudTourism.png"] != null) { _this66.setReserved("2d/ui/hud/HudTourism.png","2d/UI_DEFAULT.json"); } else { _this66.h["2d/ui/hud/HudTourism.png"] = "2d/UI_DEFAULT.json"; } var _this67 = this.m_map; if(__map_reserved["2d/ui/hud/HudTourism"] != null) { _this67.setReserved("2d/ui/hud/HudTourism","2d/UI_DEFAULT.json"); } else { _this67.h["2d/ui/hud/HudTourism"] = "2d/UI_DEFAULT.json"; } var _this68 = this.m_map; if(__map_reserved["2d/ui/hud/HudTrade.png"] != null) { _this68.setReserved("2d/ui/hud/HudTrade.png","2d/UI_DEFAULT.json"); } else { _this68.h["2d/ui/hud/HudTrade.png"] = "2d/UI_DEFAULT.json"; } var _this69 = this.m_map; if(__map_reserved["2d/ui/hud/HudTrade"] != null) { _this69.setReserved("2d/ui/hud/HudTrade","2d/UI_DEFAULT.json"); } else { _this69.h["2d/ui/hud/HudTrade"] = "2d/UI_DEFAULT.json"; } var _this70 = this.m_map; if(__map_reserved["2d/ui/hud/Placeholder/Hud.png"] != null) { _this70.setReserved("2d/ui/hud/Placeholder/Hud.png","2d/UI_DEFAULT.json"); } else { _this70.h["2d/ui/hud/Placeholder/Hud.png"] = "2d/UI_DEFAULT.json"; } var _this71 = this.m_map; if(__map_reserved["2d/ui/hud/Placeholder/Hud"] != null) { _this71.setReserved("2d/ui/hud/Placeholder/Hud","2d/UI_DEFAULT.json"); } else { _this71.h["2d/ui/hud/Placeholder/Hud"] = "2d/UI_DEFAULT.json"; } var _this72 = this.m_map; if(__map_reserved["2d/ui/hud/StatLabelBackingSocial.png"] != null) { _this72.setReserved("2d/ui/hud/StatLabelBackingSocial.png","2d/UI_DEFAULT.json"); } else { _this72.h["2d/ui/hud/StatLabelBackingSocial.png"] = "2d/UI_DEFAULT.json"; } var _this73 = this.m_map; if(__map_reserved["2d/ui/hud/StatLabelBackingSocial"] != null) { _this73.setReserved("2d/ui/hud/StatLabelBackingSocial","2d/UI_DEFAULT.json"); } else { _this73.h["2d/ui/hud/StatLabelBackingSocial"] = "2d/UI_DEFAULT.json"; } var _this74 = this.m_map; if(__map_reserved["2d/ui/hud/StatLabelbacking.png"] != null) { _this74.setReserved("2d/ui/hud/StatLabelbacking.png","2d/UI_DEFAULT.json"); } else { _this74.h["2d/ui/hud/StatLabelbacking.png"] = "2d/UI_DEFAULT.json"; } var _this75 = this.m_map; if(__map_reserved["2d/ui/hud/StatLabelbacking"] != null) { _this75.setReserved("2d/ui/hud/StatLabelbacking","2d/UI_DEFAULT.json"); } else { _this75.h["2d/ui/hud/StatLabelbacking"] = "2d/UI_DEFAULT.json"; } var _this76 = this.m_map; if(__map_reserved["2d/ui/hud/year_completed.png"] != null) { _this76.setReserved("2d/ui/hud/year_completed.png","2d/UI_DEFAULT.json"); } else { _this76.h["2d/ui/hud/year_completed.png"] = "2d/UI_DEFAULT.json"; } var _this77 = this.m_map; if(__map_reserved["2d/ui/hud/year_completed"] != null) { _this77.setReserved("2d/ui/hud/year_completed","2d/UI_DEFAULT.json"); } else { _this77.h["2d/ui/hud/year_completed"] = "2d/UI_DEFAULT.json"; } var _this78 = this.m_map; if(__map_reserved["2d/ui/hud/year_current.png"] != null) { _this78.setReserved("2d/ui/hud/year_current.png","2d/UI_DEFAULT.json"); } else { _this78.h["2d/ui/hud/year_current.png"] = "2d/UI_DEFAULT.json"; } var _this79 = this.m_map; if(__map_reserved["2d/ui/hud/year_current"] != null) { _this79.setReserved("2d/ui/hud/year_current","2d/UI_DEFAULT.json"); } else { _this79.h["2d/ui/hud/year_current"] = "2d/UI_DEFAULT.json"; } var _this80 = this.m_map; if(__map_reserved["2d/ui/hud/year_default.png"] != null) { _this80.setReserved("2d/ui/hud/year_default.png","2d/UI_DEFAULT.json"); } else { _this80.h["2d/ui/hud/year_default.png"] = "2d/UI_DEFAULT.json"; } var _this81 = this.m_map; if(__map_reserved["2d/ui/hud/year_default"] != null) { _this81.setReserved("2d/ui/hud/year_default","2d/UI_DEFAULT.json"); } else { _this81.h["2d/ui/hud/year_default"] = "2d/UI_DEFAULT.json"; } var _this82 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-EventBanner.png"] != null) { _this82.setReserved("2d/ui/panels/9patch-EventBanner.png","2d/UI_DEFAULT.json"); } else { _this82.h["2d/ui/panels/9patch-EventBanner.png"] = "2d/UI_DEFAULT.json"; } var _this83 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-EventBanner"] != null) { _this83.setReserved("2d/ui/panels/9patch-EventBanner","2d/UI_DEFAULT.json"); } else { _this83.h["2d/ui/panels/9patch-EventBanner"] = "2d/UI_DEFAULT.json"; } var _this84 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-EventHalfBanner.png"] != null) { _this84.setReserved("2d/ui/panels/9patch-EventHalfBanner.png","2d/UI_DEFAULT.json"); } else { _this84.h["2d/ui/panels/9patch-EventHalfBanner.png"] = "2d/UI_DEFAULT.json"; } var _this85 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-EventHalfBanner"] != null) { _this85.setReserved("2d/ui/panels/9patch-EventHalfBanner","2d/UI_DEFAULT.json"); } else { _this85.h["2d/ui/panels/9patch-EventHalfBanner"] = "2d/UI_DEFAULT.json"; } var _this86 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-EventPanel.png"] != null) { _this86.setReserved("2d/ui/panels/9patch-EventPanel.png","2d/UI_DEFAULT.json"); } else { _this86.h["2d/ui/panels/9patch-EventPanel.png"] = "2d/UI_DEFAULT.json"; } var _this87 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-EventPanel"] != null) { _this87.setReserved("2d/ui/panels/9patch-EventPanel","2d/UI_DEFAULT.json"); } else { _this87.h["2d/ui/panels/9patch-EventPanel"] = "2d/UI_DEFAULT.json"; } var _this88 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-HintPanel.png"] != null) { _this88.setReserved("2d/ui/panels/9patch-HintPanel.png","2d/UI_DEFAULT.json"); } else { _this88.h["2d/ui/panels/9patch-HintPanel.png"] = "2d/UI_DEFAULT.json"; } var _this89 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-HintPanel"] != null) { _this89.setReserved("2d/ui/panels/9patch-HintPanel","2d/UI_DEFAULT.json"); } else { _this89.h["2d/ui/panels/9patch-HintPanel"] = "2d/UI_DEFAULT.json"; } var _this90 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-HintPopupPanel.png"] != null) { _this90.setReserved("2d/ui/panels/9patch-HintPopupPanel.png","2d/UI_DEFAULT.json"); } else { _this90.h["2d/ui/panels/9patch-HintPopupPanel.png"] = "2d/UI_DEFAULT.json"; } var _this91 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-HintPopupPanel"] != null) { _this91.setReserved("2d/ui/panels/9patch-HintPopupPanel","2d/UI_DEFAULT.json"); } else { _this91.h["2d/ui/panels/9patch-HintPopupPanel"] = "2d/UI_DEFAULT.json"; } var _this92 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-HintTab.png"] != null) { _this92.setReserved("2d/ui/panels/9patch-HintTab.png","2d/UI_DEFAULT.json"); } else { _this92.h["2d/ui/panels/9patch-HintTab.png"] = "2d/UI_DEFAULT.json"; } var _this93 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-HintTab"] != null) { _this93.setReserved("2d/ui/panels/9patch-HintTab","2d/UI_DEFAULT.json"); } else { _this93.h["2d/ui/panels/9patch-HintTab"] = "2d/UI_DEFAULT.json"; } var _this94 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-PrepBanner.png"] != null) { _this94.setReserved("2d/ui/panels/9patch-PrepBanner.png","2d/UI_DEFAULT.json"); } else { _this94.h["2d/ui/panels/9patch-PrepBanner.png"] = "2d/UI_DEFAULT.json"; } var _this95 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-PrepBanner"] != null) { _this95.setReserved("2d/ui/panels/9patch-PrepBanner","2d/UI_DEFAULT.json"); } else { _this95.h["2d/ui/panels/9patch-PrepBanner"] = "2d/UI_DEFAULT.json"; } var _this96 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-PrepHalfBanner.png"] != null) { _this96.setReserved("2d/ui/panels/9patch-PrepHalfBanner.png","2d/UI_DEFAULT.json"); } else { _this96.h["2d/ui/panels/9patch-PrepHalfBanner.png"] = "2d/UI_DEFAULT.json"; } var _this97 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-PrepHalfBanner"] != null) { _this97.setReserved("2d/ui/panels/9patch-PrepHalfBanner","2d/UI_DEFAULT.json"); } else { _this97.h["2d/ui/panels/9patch-PrepHalfBanner"] = "2d/UI_DEFAULT.json"; } var _this98 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-PrepPanel.png"] != null) { _this98.setReserved("2d/ui/panels/9patch-PrepPanel.png","2d/UI_DEFAULT.json"); } else { _this98.h["2d/ui/panels/9patch-PrepPanel.png"] = "2d/UI_DEFAULT.json"; } var _this99 = this.m_map; if(__map_reserved["2d/ui/panels/9patch-PrepPanel"] != null) { _this99.setReserved("2d/ui/panels/9patch-PrepPanel","2d/UI_DEFAULT.json"); } else { _this99.h["2d/ui/panels/9patch-PrepPanel"] = "2d/UI_DEFAULT.json"; } var _this100 = this.m_map; if(__map_reserved["2d/ui/panels/Blue1.png"] != null) { _this100.setReserved("2d/ui/panels/Blue1.png","2d/UI_DEFAULT.json"); } else { _this100.h["2d/ui/panels/Blue1.png"] = "2d/UI_DEFAULT.json"; } var _this101 = this.m_map; if(__map_reserved["2d/ui/panels/Blue1"] != null) { _this101.setReserved("2d/ui/panels/Blue1","2d/UI_DEFAULT.json"); } else { _this101.h["2d/ui/panels/Blue1"] = "2d/UI_DEFAULT.json"; } var _this102 = this.m_map; if(__map_reserved["2d/ui/panels/Blue2.png"] != null) { _this102.setReserved("2d/ui/panels/Blue2.png","2d/UI_DEFAULT.json"); } else { _this102.h["2d/ui/panels/Blue2.png"] = "2d/UI_DEFAULT.json"; } var _this103 = this.m_map; if(__map_reserved["2d/ui/panels/Blue2"] != null) { _this103.setReserved("2d/ui/panels/Blue2","2d/UI_DEFAULT.json"); } else { _this103.h["2d/ui/panels/Blue2"] = "2d/UI_DEFAULT.json"; } var _this104 = this.m_map; if(__map_reserved["2d/ui/panels/Blue3.png"] != null) { _this104.setReserved("2d/ui/panels/Blue3.png","2d/UI_DEFAULT.json"); } else { _this104.h["2d/ui/panels/Blue3.png"] = "2d/UI_DEFAULT.json"; } var _this105 = this.m_map; if(__map_reserved["2d/ui/panels/Blue3"] != null) { _this105.setReserved("2d/ui/panels/Blue3","2d/UI_DEFAULT.json"); } else { _this105.h["2d/ui/panels/Blue3"] = "2d/UI_DEFAULT.json"; } var _this106 = this.m_map; if(__map_reserved["2d/ui/panels/CeilingDarkening.png"] != null) { _this106.setReserved("2d/ui/panels/CeilingDarkening.png","2d/UI_DEFAULT.json"); } else { _this106.h["2d/ui/panels/CeilingDarkening.png"] = "2d/UI_DEFAULT.json"; } var _this107 = this.m_map; if(__map_reserved["2d/ui/panels/CeilingDarkening"] != null) { _this107.setReserved("2d/ui/panels/CeilingDarkening","2d/UI_DEFAULT.json"); } else { _this107.h["2d/ui/panels/CeilingDarkening"] = "2d/UI_DEFAULT.json"; } var _this108 = this.m_map; if(__map_reserved["2d/ui/panels/HudPanel.png"] != null) { _this108.setReserved("2d/ui/panels/HudPanel.png","2d/UI_DEFAULT.json"); } else { _this108.h["2d/ui/panels/HudPanel.png"] = "2d/UI_DEFAULT.json"; } var _this109 = this.m_map; if(__map_reserved["2d/ui/panels/HudPanel"] != null) { _this109.setReserved("2d/ui/panels/HudPanel","2d/UI_DEFAULT.json"); } else { _this109.h["2d/ui/panels/HudPanel"] = "2d/UI_DEFAULT.json"; } var _this110 = this.m_map; if(__map_reserved["2d/ui/panels/White.png"] != null) { _this110.setReserved("2d/ui/panels/White.png","2d/UI_DEFAULT.json"); } else { _this110.h["2d/ui/panels/White.png"] = "2d/UI_DEFAULT.json"; } var _this111 = this.m_map; if(__map_reserved["2d/ui/panels/White"] != null) { _this111.setReserved("2d/ui/panels/White","2d/UI_DEFAULT.json"); } else { _this111.h["2d/ui/panels/White"] = "2d/UI_DEFAULT.json"; } var _this112 = this.m_map; if(__map_reserved["2d/bg/TitleBG.png"] != null) { _this112.setReserved("2d/bg/TitleBG.png","2d/TitleBG_BG_DEFAULT.json"); } else { _this112.h["2d/bg/TitleBG.png"] = "2d/TitleBG_BG_DEFAULT.json"; } var _this113 = this.m_map; if(__map_reserved["2d/bg/TitleBG"] != null) { _this113.setReserved("2d/bg/TitleBG","2d/TitleBG_BG_DEFAULT.json"); } else { _this113.h["2d/bg/TitleBG"] = "2d/TitleBG_BG_DEFAULT.json"; } var _this114 = this.m_map; if(__map_reserved["2d/bg/PrepBG.png"] != null) { _this114.setReserved("2d/bg/PrepBG.png","2d/Background_BG_DEFAULT.json"); } else { _this114.h["2d/bg/PrepBG.png"] = "2d/Background_BG_DEFAULT.json"; } var _this115 = this.m_map; if(__map_reserved["2d/bg/PrepBG"] != null) { _this115.setReserved("2d/bg/PrepBG","2d/Background_BG_DEFAULT.json"); } else { _this115.h["2d/bg/PrepBG"] = "2d/Background_BG_DEFAULT.json"; } var _this116 = this.m_map; if(__map_reserved["2d/shared/coverBlack.png"] != null) { _this116.setReserved("2d/shared/coverBlack.png","2d/SharedUI_BUTTONS.json"); } else { _this116.h["2d/shared/coverBlack.png"] = "2d/SharedUI_BUTTONS.json"; } var _this117 = this.m_map; if(__map_reserved["2d/shared/coverBlack"] != null) { _this117.setReserved("2d/shared/coverBlack","2d/SharedUI_BUTTONS.json"); } else { _this117.h["2d/shared/coverBlack"] = "2d/SharedUI_BUTTONS.json"; } var _this118 = this.m_map; if(__map_reserved["2d/ui/levelselect/LevelSelect.png"] != null) { _this118.setReserved("2d/ui/levelselect/LevelSelect.png","2d/LevelSelectMenu_DEFAULT_LARGE.json"); } else { _this118.h["2d/ui/levelselect/LevelSelect.png"] = "2d/LevelSelectMenu_DEFAULT_LARGE.json"; } var _this119 = this.m_map; if(__map_reserved["2d/ui/levelselect/LevelSelect"] != null) { _this119.setReserved("2d/ui/levelselect/LevelSelect","2d/LevelSelectMenu_DEFAULT_LARGE.json"); } else { _this119.h["2d/ui/levelselect/LevelSelect"] = "2d/LevelSelectMenu_DEFAULT_LARGE.json"; } var _this120 = this.m_map; if(__map_reserved["2d/ui/levelselect/Stakeholders.png"] != null) { _this120.setReserved("2d/ui/levelselect/Stakeholders.png","2d/LevelSelectMenu_DEFAULT_LARGE.json"); } else { _this120.h["2d/ui/levelselect/Stakeholders.png"] = "2d/LevelSelectMenu_DEFAULT_LARGE.json"; } var _this121 = this.m_map; if(__map_reserved["2d/ui/levelselect/Stakeholders"] != null) { _this121.setReserved("2d/ui/levelselect/Stakeholders","2d/LevelSelectMenu_DEFAULT_LARGE.json"); } else { _this121.h["2d/ui/levelselect/Stakeholders"] = "2d/LevelSelectMenu_DEFAULT_LARGE.json"; } var _this122 = this.m_map; if(__map_reserved["2d/ui/icons/EffectDecrease.png"] != null) { _this122.setReserved("2d/ui/icons/EffectDecrease.png","2d/SharedUI_DEFAULT.json"); } else { _this122.h["2d/ui/icons/EffectDecrease.png"] = "2d/SharedUI_DEFAULT.json"; } var _this123 = this.m_map; if(__map_reserved["2d/ui/icons/EffectDecrease"] != null) { _this123.setReserved("2d/ui/icons/EffectDecrease","2d/SharedUI_DEFAULT.json"); } else { _this123.h["2d/ui/icons/EffectDecrease"] = "2d/SharedUI_DEFAULT.json"; } var _this124 = this.m_map; if(__map_reserved["2d/ui/icons/EffectIncrease.png"] != null) { _this124.setReserved("2d/ui/icons/EffectIncrease.png","2d/SharedUI_DEFAULT.json"); } else { _this124.h["2d/ui/icons/EffectIncrease.png"] = "2d/SharedUI_DEFAULT.json"; } var _this125 = this.m_map; if(__map_reserved["2d/ui/icons/EffectIncrease"] != null) { _this125.setReserved("2d/ui/icons/EffectIncrease","2d/SharedUI_DEFAULT.json"); } else { _this125.h["2d/ui/icons/EffectIncrease"] = "2d/SharedUI_DEFAULT.json"; } var _this126 = this.m_map; if(__map_reserved["2d/ui/icons/InfoIcon.png"] != null) { _this126.setReserved("2d/ui/icons/InfoIcon.png","2d/SharedUI_DEFAULT.json"); } else { _this126.h["2d/ui/icons/InfoIcon.png"] = "2d/SharedUI_DEFAULT.json"; } var _this127 = this.m_map; if(__map_reserved["2d/ui/icons/InfoIcon"] != null) { _this127.setReserved("2d/ui/icons/InfoIcon","2d/SharedUI_DEFAULT.json"); } else { _this127.h["2d/ui/icons/InfoIcon"] = "2d/SharedUI_DEFAULT.json"; } var _this128 = this.m_map; if(__map_reserved["2d/ui/icons/NoChange.png"] != null) { _this128.setReserved("2d/ui/icons/NoChange.png","2d/SharedUI_DEFAULT.json"); } else { _this128.h["2d/ui/icons/NoChange.png"] = "2d/SharedUI_DEFAULT.json"; } var _this129 = this.m_map; if(__map_reserved["2d/ui/icons/NoChange"] != null) { _this129.setReserved("2d/ui/icons/NoChange","2d/SharedUI_DEFAULT.json"); } else { _this129.h["2d/ui/icons/NoChange"] = "2d/SharedUI_DEFAULT.json"; } var _this130 = this.m_map; if(__map_reserved["2d/ui/icons/Placeholder/Option1-Effect.png"] != null) { _this130.setReserved("2d/ui/icons/Placeholder/Option1-Effect.png","2d/SharedUI_DEFAULT.json"); } else { _this130.h["2d/ui/icons/Placeholder/Option1-Effect.png"] = "2d/SharedUI_DEFAULT.json"; } var _this131 = this.m_map; if(__map_reserved["2d/ui/icons/Placeholder/Option1-Effect"] != null) { _this131.setReserved("2d/ui/icons/Placeholder/Option1-Effect","2d/SharedUI_DEFAULT.json"); } else { _this131.h["2d/ui/icons/Placeholder/Option1-Effect"] = "2d/SharedUI_DEFAULT.json"; } var _this132 = this.m_map; if(__map_reserved["2d/ui/icons/Placeholder/Option2-Effect1.png"] != null) { _this132.setReserved("2d/ui/icons/Placeholder/Option2-Effect1.png","2d/SharedUI_DEFAULT.json"); } else { _this132.h["2d/ui/icons/Placeholder/Option2-Effect1.png"] = "2d/SharedUI_DEFAULT.json"; } var _this133 = this.m_map; if(__map_reserved["2d/ui/icons/Placeholder/Option2-Effect1"] != null) { _this133.setReserved("2d/ui/icons/Placeholder/Option2-Effect1","2d/SharedUI_DEFAULT.json"); } else { _this133.h["2d/ui/icons/Placeholder/Option2-Effect1"] = "2d/SharedUI_DEFAULT.json"; } var _this134 = this.m_map; if(__map_reserved["2d/ui/icons/Placeholder/Option2-Effect2.png"] != null) { _this134.setReserved("2d/ui/icons/Placeholder/Option2-Effect2.png","2d/SharedUI_DEFAULT.json"); } else { _this134.h["2d/ui/icons/Placeholder/Option2-Effect2.png"] = "2d/SharedUI_DEFAULT.json"; } var _this135 = this.m_map; if(__map_reserved["2d/ui/icons/Placeholder/Option2-Effect2"] != null) { _this135.setReserved("2d/ui/icons/Placeholder/Option2-Effect2","2d/SharedUI_DEFAULT.json"); } else { _this135.h["2d/ui/icons/Placeholder/Option2-Effect2"] = "2d/SharedUI_DEFAULT.json"; } var _this136 = this.m_map; if(__map_reserved["2d/ui/icons/SocialCapital.png"] != null) { _this136.setReserved("2d/ui/icons/SocialCapital.png","2d/SharedUI_DEFAULT.json"); } else { _this136.h["2d/ui/icons/SocialCapital.png"] = "2d/SharedUI_DEFAULT.json"; } var _this137 = this.m_map; if(__map_reserved["2d/ui/icons/SocialCapital"] != null) { _this137.setReserved("2d/ui/icons/SocialCapital","2d/SharedUI_DEFAULT.json"); } else { _this137.h["2d/ui/icons/SocialCapital"] = "2d/SharedUI_DEFAULT.json"; } var _this138 = this.m_map; if(__map_reserved["2d/ui/icons/UserIcon.png"] != null) { _this138.setReserved("2d/ui/icons/UserIcon.png","2d/SharedUI_DEFAULT.json"); } else { _this138.h["2d/ui/icons/UserIcon.png"] = "2d/SharedUI_DEFAULT.json"; } var _this139 = this.m_map; if(__map_reserved["2d/ui/icons/UserIcon"] != null) { _this139.setReserved("2d/ui/icons/UserIcon","2d/SharedUI_DEFAULT.json"); } else { _this139.h["2d/ui/icons/UserIcon"] = "2d/SharedUI_DEFAULT.json"; } var _this140 = this.m_map; if(__map_reserved["2d/ui/icons/UserIconBacking.png"] != null) { _this140.setReserved("2d/ui/icons/UserIconBacking.png","2d/SharedUI_DEFAULT.json"); } else { _this140.h["2d/ui/icons/UserIconBacking.png"] = "2d/SharedUI_DEFAULT.json"; } var _this141 = this.m_map; if(__map_reserved["2d/ui/icons/UserIconBacking"] != null) { _this141.setReserved("2d/ui/icons/UserIconBacking","2d/SharedUI_DEFAULT.json"); } else { _this141.h["2d/ui/icons/UserIconBacking"] = "2d/SharedUI_DEFAULT.json"; } var _this142 = this.m_map; if(__map_reserved["2d/ui/icons/community.png"] != null) { _this142.setReserved("2d/ui/icons/community.png","2d/SharedUI_DEFAULT.json"); } else { _this142.h["2d/ui/icons/community.png"] = "2d/SharedUI_DEFAULT.json"; } var _this143 = this.m_map; if(__map_reserved["2d/ui/icons/community"] != null) { _this143.setReserved("2d/ui/icons/community","2d/SharedUI_DEFAULT.json"); } else { _this143.h["2d/ui/icons/community"] = "2d/SharedUI_DEFAULT.json"; } var _this144 = this.m_map; if(__map_reserved["2d/ui/icons/event.png"] != null) { _this144.setReserved("2d/ui/icons/event.png","2d/SharedUI_DEFAULT.json"); } else { _this144.h["2d/ui/icons/event.png"] = "2d/SharedUI_DEFAULT.json"; } var _this145 = this.m_map; if(__map_reserved["2d/ui/icons/event"] != null) { _this145.setReserved("2d/ui/icons/event","2d/SharedUI_DEFAULT.json"); } else { _this145.h["2d/ui/icons/event"] = "2d/SharedUI_DEFAULT.json"; } var _this146 = this.m_map; if(__map_reserved["2d/ui/icons/fish.png"] != null) { _this146.setReserved("2d/ui/icons/fish.png","2d/SharedUI_DEFAULT.json"); } else { _this146.h["2d/ui/icons/fish.png"] = "2d/SharedUI_DEFAULT.json"; } var _this147 = this.m_map; if(__map_reserved["2d/ui/icons/fish"] != null) { _this147.setReserved("2d/ui/icons/fish","2d/SharedUI_DEFAULT.json"); } else { _this147.h["2d/ui/icons/fish"] = "2d/SharedUI_DEFAULT.json"; } var _this148 = this.m_map; if(__map_reserved["2d/ui/icons/services.png"] != null) { _this148.setReserved("2d/ui/icons/services.png","2d/SharedUI_DEFAULT.json"); } else { _this148.h["2d/ui/icons/services.png"] = "2d/SharedUI_DEFAULT.json"; } var _this149 = this.m_map; if(__map_reserved["2d/ui/icons/services"] != null) { _this149.setReserved("2d/ui/icons/services","2d/SharedUI_DEFAULT.json"); } else { _this149.h["2d/ui/icons/services"] = "2d/SharedUI_DEFAULT.json"; } var _this150 = this.m_map; if(__map_reserved["2d/ui/icons/tourism.png"] != null) { _this150.setReserved("2d/ui/icons/tourism.png","2d/SharedUI_DEFAULT.json"); } else { _this150.h["2d/ui/icons/tourism.png"] = "2d/SharedUI_DEFAULT.json"; } var _this151 = this.m_map; if(__map_reserved["2d/ui/icons/tourism"] != null) { _this151.setReserved("2d/ui/icons/tourism","2d/SharedUI_DEFAULT.json"); } else { _this151.h["2d/ui/icons/tourism"] = "2d/SharedUI_DEFAULT.json"; } var _this152 = this.m_map; if(__map_reserved["2d/ui/icons/trade.png"] != null) { _this152.setReserved("2d/ui/icons/trade.png","2d/SharedUI_DEFAULT.json"); } else { _this152.h["2d/ui/icons/trade.png"] = "2d/SharedUI_DEFAULT.json"; } var _this153 = this.m_map; if(__map_reserved["2d/ui/icons/trade"] != null) { _this153.setReserved("2d/ui/icons/trade","2d/SharedUI_DEFAULT.json"); } else { _this153.h["2d/ui/icons/trade"] = "2d/SharedUI_DEFAULT.json"; } var _this154 = this.m_map; if(__map_reserved["2d/events/Earthquake.png"] != null) { _this154.setReserved("2d/events/Earthquake.png","2d/Event_BG_DEFAULT.json"); } else { _this154.h["2d/events/Earthquake.png"] = "2d/Event_BG_DEFAULT.json"; } var _this155 = this.m_map; if(__map_reserved["2d/events/Earthquake"] != null) { _this155.setReserved("2d/events/Earthquake","2d/Event_BG_DEFAULT.json"); } else { _this155.h["2d/events/Earthquake"] = "2d/Event_BG_DEFAULT.json"; } var _this156 = this.m_map; if(__map_reserved["2d/events/Event_BreakInSupplyChain.png"] != null) { _this156.setReserved("2d/events/Event_BreakInSupplyChain.png","2d/Event_BG_DEFAULT.json"); } else { _this156.h["2d/events/Event_BreakInSupplyChain.png"] = "2d/Event_BG_DEFAULT.json"; } var _this157 = this.m_map; if(__map_reserved["2d/events/Event_BreakInSupplyChain"] != null) { _this157.setReserved("2d/events/Event_BreakInSupplyChain","2d/Event_BG_DEFAULT.json"); } else { _this157.h["2d/events/Event_BreakInSupplyChain"] = "2d/Event_BG_DEFAULT.json"; } var _this158 = this.m_map; if(__map_reserved["2d/events/Event_Brownouts.png"] != null) { _this158.setReserved("2d/events/Event_Brownouts.png","2d/Event_BG_DEFAULT.json"); } else { _this158.h["2d/events/Event_Brownouts.png"] = "2d/Event_BG_DEFAULT.json"; } var _this159 = this.m_map; if(__map_reserved["2d/events/Event_Brownouts"] != null) { _this159.setReserved("2d/events/Event_Brownouts","2d/Event_BG_DEFAULT.json"); } else { _this159.h["2d/events/Event_Brownouts"] = "2d/Event_BG_DEFAULT.json"; } var _this160 = this.m_map; if(__map_reserved["2d/events/Event_FishDisease.png"] != null) { _this160.setReserved("2d/events/Event_FishDisease.png","2d/Event_BG_DEFAULT.json"); } else { _this160.h["2d/events/Event_FishDisease.png"] = "2d/Event_BG_DEFAULT.json"; } var _this161 = this.m_map; if(__map_reserved["2d/events/Event_FishDisease"] != null) { _this161.setReserved("2d/events/Event_FishDisease","2d/Event_BG_DEFAULT.json"); } else { _this161.h["2d/events/Event_FishDisease"] = "2d/Event_BG_DEFAULT.json"; } var _this162 = this.m_map; if(__map_reserved["2d/events/Event_FishFleeNorthward.png"] != null) { _this162.setReserved("2d/events/Event_FishFleeNorthward.png","2d/Event_BG_DEFAULT.json"); } else { _this162.h["2d/events/Event_FishFleeNorthward.png"] = "2d/Event_BG_DEFAULT.json"; } var _this163 = this.m_map; if(__map_reserved["2d/events/Event_FishFleeNorthward"] != null) { _this163.setReserved("2d/events/Event_FishFleeNorthward","2d/Event_BG_DEFAULT.json"); } else { _this163.h["2d/events/Event_FishFleeNorthward"] = "2d/Event_BG_DEFAULT.json"; } var _this164 = this.m_map; if(__map_reserved["2d/events/Event_FishingLicensesLimited.png"] != null) { _this164.setReserved("2d/events/Event_FishingLicensesLimited.png","2d/Event_BG_DEFAULT.json"); } else { _this164.h["2d/events/Event_FishingLicensesLimited.png"] = "2d/Event_BG_DEFAULT.json"; } var _this165 = this.m_map; if(__map_reserved["2d/events/Event_FishingLicensesLimited"] != null) { _this165.setReserved("2d/events/Event_FishingLicensesLimited","2d/Event_BG_DEFAULT.json"); } else { _this165.h["2d/events/Event_FishingLicensesLimited"] = "2d/Event_BG_DEFAULT.json"; } var _this166 = this.m_map; if(__map_reserved["2d/events/Event_GlobalWarming.png"] != null) { _this166.setReserved("2d/events/Event_GlobalWarming.png","2d/Event_BG_DEFAULT.json"); } else { _this166.h["2d/events/Event_GlobalWarming.png"] = "2d/Event_BG_DEFAULT.json"; } var _this167 = this.m_map; if(__map_reserved["2d/events/Event_GlobalWarming"] != null) { _this167.setReserved("2d/events/Event_GlobalWarming","2d/Event_BG_DEFAULT.json"); } else { _this167.h["2d/events/Event_GlobalWarming"] = "2d/Event_BG_DEFAULT.json"; } var _this168 = this.m_map; if(__map_reserved["2d/events/Event_HeavyWinter.png"] != null) { _this168.setReserved("2d/events/Event_HeavyWinter.png","2d/Event_BG_DEFAULT.json"); } else { _this168.h["2d/events/Event_HeavyWinter.png"] = "2d/Event_BG_DEFAULT.json"; } var _this169 = this.m_map; if(__map_reserved["2d/events/Event_HeavyWinter"] != null) { _this169.setReserved("2d/events/Event_HeavyWinter","2d/Event_BG_DEFAULT.json"); } else { _this169.h["2d/events/Event_HeavyWinter"] = "2d/Event_BG_DEFAULT.json"; } var _this170 = this.m_map; if(__map_reserved["2d/events/Event_HipsterHangout.png"] != null) { _this170.setReserved("2d/events/Event_HipsterHangout.png","2d/Event_BG_DEFAULT.json"); } else { _this170.h["2d/events/Event_HipsterHangout.png"] = "2d/Event_BG_DEFAULT.json"; } var _this171 = this.m_map; if(__map_reserved["2d/events/Event_HipsterHangout"] != null) { _this171.setReserved("2d/events/Event_HipsterHangout","2d/Event_BG_DEFAULT.json"); } else { _this171.h["2d/events/Event_HipsterHangout"] = "2d/Event_BG_DEFAULT.json"; } var _this172 = this.m_map; if(__map_reserved["2d/events/Event_HollywoodMovie.png"] != null) { _this172.setReserved("2d/events/Event_HollywoodMovie.png","2d/Event_BG_DEFAULT.json"); } else { _this172.h["2d/events/Event_HollywoodMovie.png"] = "2d/Event_BG_DEFAULT.json"; } var _this173 = this.m_map; if(__map_reserved["2d/events/Event_HollywoodMovie"] != null) { _this173.setReserved("2d/events/Event_HollywoodMovie","2d/Event_BG_DEFAULT.json"); } else { _this173.h["2d/events/Event_HollywoodMovie"] = "2d/Event_BG_DEFAULT.json"; } var _this174 = this.m_map; if(__map_reserved["2d/events/Event_Hypoxia.png"] != null) { _this174.setReserved("2d/events/Event_Hypoxia.png","2d/Event_BG_DEFAULT.json"); } else { _this174.h["2d/events/Event_Hypoxia.png"] = "2d/Event_BG_DEFAULT.json"; } var _this175 = this.m_map; if(__map_reserved["2d/events/Event_Hypoxia"] != null) { _this175.setReserved("2d/events/Event_Hypoxia","2d/Event_BG_DEFAULT.json"); } else { _this175.h["2d/events/Event_Hypoxia"] = "2d/Event_BG_DEFAULT.json"; } var _this176 = this.m_map; if(__map_reserved["2d/events/Event_MovieHurricane.png"] != null) { _this176.setReserved("2d/events/Event_MovieHurricane.png","2d/Event_BG_DEFAULT.json"); } else { _this176.h["2d/events/Event_MovieHurricane.png"] = "2d/Event_BG_DEFAULT.json"; } var _this177 = this.m_map; if(__map_reserved["2d/events/Event_MovieHurricane"] != null) { _this177.setReserved("2d/events/Event_MovieHurricane","2d/Event_BG_DEFAULT.json"); } else { _this177.h["2d/events/Event_MovieHurricane"] = "2d/Event_BG_DEFAULT.json"; } var _this178 = this.m_map; if(__map_reserved["2d/events/Event_NationalEconomicRecession.png"] != null) { _this178.setReserved("2d/events/Event_NationalEconomicRecession.png","2d/Event_BG_DEFAULT.json"); } else { _this178.h["2d/events/Event_NationalEconomicRecession.png"] = "2d/Event_BG_DEFAULT.json"; } var _this179 = this.m_map; if(__map_reserved["2d/events/Event_NationalEconomicRecession"] != null) { _this179.setReserved("2d/events/Event_NationalEconomicRecession","2d/Event_BG_DEFAULT.json"); } else { _this179.h["2d/events/Event_NationalEconomicRecession"] = "2d/Event_BG_DEFAULT.json"; } var _this180 = this.m_map; if(__map_reserved["2d/events/Event_PirateFishers.png"] != null) { _this180.setReserved("2d/events/Event_PirateFishers.png","2d/Event_BG_DEFAULT.json"); } else { _this180.h["2d/events/Event_PirateFishers.png"] = "2d/Event_BG_DEFAULT.json"; } var _this181 = this.m_map; if(__map_reserved["2d/events/Event_PirateFishers"] != null) { _this181.setReserved("2d/events/Event_PirateFishers","2d/Event_BG_DEFAULT.json"); } else { _this181.h["2d/events/Event_PirateFishers"] = "2d/Event_BG_DEFAULT.json"; } var _this182 = this.m_map; if(__map_reserved["2d/events/Event_RealisticHurricane.png"] != null) { _this182.setReserved("2d/events/Event_RealisticHurricane.png","2d/Event_BG_DEFAULT.json"); } else { _this182.h["2d/events/Event_RealisticHurricane.png"] = "2d/Event_BG_DEFAULT.json"; } var _this183 = this.m_map; if(__map_reserved["2d/events/Event_RealisticHurricane"] != null) { _this183.setReserved("2d/events/Event_RealisticHurricane","2d/Event_BG_DEFAULT.json"); } else { _this183.h["2d/events/Event_RealisticHurricane"] = "2d/Event_BG_DEFAULT.json"; } var _this184 = this.m_map; if(__map_reserved["2d/events/Event_SeaRush.png"] != null) { _this184.setReserved("2d/events/Event_SeaRush.png","2d/Event_BG_DEFAULT.json"); } else { _this184.h["2d/events/Event_SeaRush.png"] = "2d/Event_BG_DEFAULT.json"; } var _this185 = this.m_map; if(__map_reserved["2d/events/Event_SeaRush"] != null) { _this185.setReserved("2d/events/Event_SeaRush","2d/Event_BG_DEFAULT.json"); } else { _this185.h["2d/events/Event_SeaRush"] = "2d/Event_BG_DEFAULT.json"; } var _this186 = this.m_map; if(__map_reserved["2d/events/Event_Superfisher9000.png"] != null) { _this186.setReserved("2d/events/Event_Superfisher9000.png","2d/Event_BG_DEFAULT.json"); } else { _this186.h["2d/events/Event_Superfisher9000.png"] = "2d/Event_BG_DEFAULT.json"; } var _this187 = this.m_map; if(__map_reserved["2d/events/Event_Superfisher9000"] != null) { _this187.setReserved("2d/events/Event_Superfisher9000","2d/Event_BG_DEFAULT.json"); } else { _this187.h["2d/events/Event_Superfisher9000"] = "2d/Event_BG_DEFAULT.json"; } var _this188 = this.m_map; if(__map_reserved["2d/events/FishEntanglement.png"] != null) { _this188.setReserved("2d/events/FishEntanglement.png","2d/Event_BG_DEFAULT.json"); } else { _this188.h["2d/events/FishEntanglement.png"] = "2d/Event_BG_DEFAULT.json"; } var _this189 = this.m_map; if(__map_reserved["2d/events/FishEntanglement"] != null) { _this189.setReserved("2d/events/FishEntanglement","2d/Event_BG_DEFAULT.json"); } else { _this189.h["2d/events/FishEntanglement"] = "2d/Event_BG_DEFAULT.json"; } var _this190 = this.m_map; if(__map_reserved["2d/events/MarineProtectedArea.png"] != null) { _this190.setReserved("2d/events/MarineProtectedArea.png","2d/Event_BG_DEFAULT.json"); } else { _this190.h["2d/events/MarineProtectedArea.png"] = "2d/Event_BG_DEFAULT.json"; } var _this191 = this.m_map; if(__map_reserved["2d/events/MarineProtectedArea"] != null) { _this191.setReserved("2d/events/MarineProtectedArea","2d/Event_BG_DEFAULT.json"); } else { _this191.h["2d/events/MarineProtectedArea"] = "2d/Event_BG_DEFAULT.json"; } var _this192 = this.m_map; if(__map_reserved["2d/events/OffshoreAquaculture.png"] != null) { _this192.setReserved("2d/events/OffshoreAquaculture.png","2d/Event_BG_DEFAULT.json"); } else { _this192.h["2d/events/OffshoreAquaculture.png"] = "2d/Event_BG_DEFAULT.json"; } var _this193 = this.m_map; if(__map_reserved["2d/events/OffshoreAquaculture"] != null) { _this193.setReserved("2d/events/OffshoreAquaculture","2d/Event_BG_DEFAULT.json"); } else { _this193.h["2d/events/OffshoreAquaculture"] = "2d/Event_BG_DEFAULT.json"; } var _this194 = this.m_map; if(__map_reserved["2d/events/OilSpill.png"] != null) { _this194.setReserved("2d/events/OilSpill.png","2d/Event_BG_DEFAULT.json"); } else { _this194.h["2d/events/OilSpill.png"] = "2d/Event_BG_DEFAULT.json"; } var _this195 = this.m_map; if(__map_reserved["2d/events/OilSpill"] != null) { _this195.setReserved("2d/events/OilSpill","2d/Event_BG_DEFAULT.json"); } else { _this195.h["2d/events/OilSpill"] = "2d/Event_BG_DEFAULT.json"; } var _this196 = this.m_map; if(__map_reserved["2d/events/Prep_AdditionalFireTruck.png"] != null) { _this196.setReserved("2d/events/Prep_AdditionalFireTruck.png","2d/Event_BG_DEFAULT.json"); } else { _this196.h["2d/events/Prep_AdditionalFireTruck.png"] = "2d/Event_BG_DEFAULT.json"; } var _this197 = this.m_map; if(__map_reserved["2d/events/Prep_AdditionalFireTruck"] != null) { _this197.setReserved("2d/events/Prep_AdditionalFireTruck","2d/Event_BG_DEFAULT.json"); } else { _this197.h["2d/events/Prep_AdditionalFireTruck"] = "2d/Event_BG_DEFAULT.json"; } var _this198 = this.m_map; if(__map_reserved["2d/events/Prep_AdditionalIndustry.png"] != null) { _this198.setReserved("2d/events/Prep_AdditionalIndustry.png","2d/Event_BG_DEFAULT.json"); } else { _this198.h["2d/events/Prep_AdditionalIndustry.png"] = "2d/Event_BG_DEFAULT.json"; } var _this199 = this.m_map; if(__map_reserved["2d/events/Prep_AdditionalIndustry"] != null) { _this199.setReserved("2d/events/Prep_AdditionalIndustry","2d/Event_BG_DEFAULT.json"); } else { _this199.h["2d/events/Prep_AdditionalIndustry"] = "2d/Event_BG_DEFAULT.json"; } var _this200 = this.m_map; if(__map_reserved["2d/events/Prep_AdditionalPoliceOfficer.png"] != null) { _this200.setReserved("2d/events/Prep_AdditionalPoliceOfficer.png","2d/Event_BG_DEFAULT.json"); } else { _this200.h["2d/events/Prep_AdditionalPoliceOfficer.png"] = "2d/Event_BG_DEFAULT.json"; } var _this201 = this.m_map; if(__map_reserved["2d/events/Prep_AdditionalPoliceOfficer"] != null) { _this201.setReserved("2d/events/Prep_AdditionalPoliceOfficer","2d/Event_BG_DEFAULT.json"); } else { _this201.h["2d/events/Prep_AdditionalPoliceOfficer"] = "2d/Event_BG_DEFAULT.json"; } var _this202 = this.m_map; if(__map_reserved["2d/events/Prep_Breakwater.png"] != null) { _this202.setReserved("2d/events/Prep_Breakwater.png","2d/Event_BG_DEFAULT.json"); } else { _this202.h["2d/events/Prep_Breakwater.png"] = "2d/Event_BG_DEFAULT.json"; } var _this203 = this.m_map; if(__map_reserved["2d/events/Prep_Breakwater"] != null) { _this203.setReserved("2d/events/Prep_Breakwater","2d/Event_BG_DEFAULT.json"); } else { _this203.h["2d/events/Prep_Breakwater"] = "2d/Event_BG_DEFAULT.json"; } var _this204 = this.m_map; if(__map_reserved["2d/events/Prep_CoastalCondominiums.png"] != null) { _this204.setReserved("2d/events/Prep_CoastalCondominiums.png","2d/Event_BG_DEFAULT.json"); } else { _this204.h["2d/events/Prep_CoastalCondominiums.png"] = "2d/Event_BG_DEFAULT.json"; } var _this205 = this.m_map; if(__map_reserved["2d/events/Prep_CoastalCondominiums"] != null) { _this205.setReserved("2d/events/Prep_CoastalCondominiums","2d/Event_BG_DEFAULT.json"); } else { _this205.h["2d/events/Prep_CoastalCondominiums"] = "2d/Event_BG_DEFAULT.json"; } var _this206 = this.m_map; if(__map_reserved["2d/events/Prep_CoastalFestival.png"] != null) { _this206.setReserved("2d/events/Prep_CoastalFestival.png","2d/Event_BG_DEFAULT.json"); } else { _this206.h["2d/events/Prep_CoastalFestival.png"] = "2d/Event_BG_DEFAULT.json"; } var _this207 = this.m_map; if(__map_reserved["2d/events/Prep_CoastalFestival"] != null) { _this207.setReserved("2d/events/Prep_CoastalFestival","2d/Event_BG_DEFAULT.json"); } else { _this207.h["2d/events/Prep_CoastalFestival"] = "2d/Event_BG_DEFAULT.json"; } var _this208 = this.m_map; if(__map_reserved["2d/events/Prep_CreateHatchery.png"] != null) { _this208.setReserved("2d/events/Prep_CreateHatchery.png","2d/Event_BG_DEFAULT.json"); } else { _this208.h["2d/events/Prep_CreateHatchery.png"] = "2d/Event_BG_DEFAULT.json"; } var _this209 = this.m_map; if(__map_reserved["2d/events/Prep_CreateHatchery"] != null) { _this209.setReserved("2d/events/Prep_CreateHatchery","2d/Event_BG_DEFAULT.json"); } else { _this209.h["2d/events/Prep_CreateHatchery"] = "2d/Event_BG_DEFAULT.json"; } var _this210 = this.m_map; if(__map_reserved["2d/events/Prep_Curfew.png"] != null) { _this210.setReserved("2d/events/Prep_Curfew.png","2d/Event_BG_DEFAULT.json"); } else { _this210.h["2d/events/Prep_Curfew.png"] = "2d/Event_BG_DEFAULT.json"; } var _this211 = this.m_map; if(__map_reserved["2d/events/Prep_Curfew"] != null) { _this211.setReserved("2d/events/Prep_Curfew","2d/Event_BG_DEFAULT.json"); } else { _this211.h["2d/events/Prep_Curfew"] = "2d/Event_BG_DEFAULT.json"; } var _this212 = this.m_map; if(__map_reserved["2d/events/Prep_EconomicDevelopment.png"] != null) { _this212.setReserved("2d/events/Prep_EconomicDevelopment.png","2d/Event_BG_DEFAULT.json"); } else { _this212.h["2d/events/Prep_EconomicDevelopment.png"] = "2d/Event_BG_DEFAULT.json"; } var _this213 = this.m_map; if(__map_reserved["2d/events/Prep_EconomicDevelopment"] != null) { _this213.setReserved("2d/events/Prep_EconomicDevelopment","2d/Event_BG_DEFAULT.json"); } else { _this213.h["2d/events/Prep_EconomicDevelopment"] = "2d/Event_BG_DEFAULT.json"; } var _this214 = this.m_map; if(__map_reserved["2d/events/Prep_ExpandLocalBusiness.png"] != null) { _this214.setReserved("2d/events/Prep_ExpandLocalBusiness.png","2d/Event_BG_DEFAULT.json"); } else { _this214.h["2d/events/Prep_ExpandLocalBusiness.png"] = "2d/Event_BG_DEFAULT.json"; } var _this215 = this.m_map; if(__map_reserved["2d/events/Prep_ExpandLocalBusiness"] != null) { _this215.setReserved("2d/events/Prep_ExpandLocalBusiness","2d/Event_BG_DEFAULT.json"); } else { _this215.h["2d/events/Prep_ExpandLocalBusiness"] = "2d/Event_BG_DEFAULT.json"; } var _this216 = this.m_map; if(__map_reserved["2d/events/Prep_ExpandProcessingPlant.png"] != null) { _this216.setReserved("2d/events/Prep_ExpandProcessingPlant.png","2d/Event_BG_DEFAULT.json"); } else { _this216.h["2d/events/Prep_ExpandProcessingPlant.png"] = "2d/Event_BG_DEFAULT.json"; } var _this217 = this.m_map; if(__map_reserved["2d/events/Prep_ExpandProcessingPlant"] != null) { _this217.setReserved("2d/events/Prep_ExpandProcessingPlant","2d/Event_BG_DEFAULT.json"); } else { _this217.h["2d/events/Prep_ExpandProcessingPlant"] = "2d/Event_BG_DEFAULT.json"; } var _this218 = this.m_map; if(__map_reserved["2d/events/Prep_FishDifferentSpecies.png"] != null) { _this218.setReserved("2d/events/Prep_FishDifferentSpecies.png","2d/Event_BG_DEFAULT.json"); } else { _this218.h["2d/events/Prep_FishDifferentSpecies.png"] = "2d/Event_BG_DEFAULT.json"; } var _this219 = this.m_map; if(__map_reserved["2d/events/Prep_FishDifferentSpecies"] != null) { _this219.setReserved("2d/events/Prep_FishDifferentSpecies","2d/Event_BG_DEFAULT.json"); } else { _this219.h["2d/events/Prep_FishDifferentSpecies"] = "2d/Event_BG_DEFAULT.json"; } var _this220 = this.m_map; if(__map_reserved["2d/events/Prep_FishingSkillsTraining.png"] != null) { _this220.setReserved("2d/events/Prep_FishingSkillsTraining.png","2d/Event_BG_DEFAULT.json"); } else { _this220.h["2d/events/Prep_FishingSkillsTraining.png"] = "2d/Event_BG_DEFAULT.json"; } var _this221 = this.m_map; if(__map_reserved["2d/events/Prep_FishingSkillsTraining"] != null) { _this221.setReserved("2d/events/Prep_FishingSkillsTraining","2d/Event_BG_DEFAULT.json"); } else { _this221.h["2d/events/Prep_FishingSkillsTraining"] = "2d/Event_BG_DEFAULT.json"; } var _this222 = this.m_map; if(__map_reserved["2d/events/Prep_HarborHotel.png"] != null) { _this222.setReserved("2d/events/Prep_HarborHotel.png","2d/Event_BG_DEFAULT.json"); } else { _this222.h["2d/events/Prep_HarborHotel.png"] = "2d/Event_BG_DEFAULT.json"; } var _this223 = this.m_map; if(__map_reserved["2d/events/Prep_HarborHotel"] != null) { _this223.setReserved("2d/events/Prep_HarborHotel","2d/Event_BG_DEFAULT.json"); } else { _this223.h["2d/events/Prep_HarborHotel"] = "2d/Event_BG_DEFAULT.json"; } var _this224 = this.m_map; if(__map_reserved["2d/events/Prep_HarborMedCenter.png"] != null) { _this224.setReserved("2d/events/Prep_HarborMedCenter.png","2d/Event_BG_DEFAULT.json"); } else { _this224.h["2d/events/Prep_HarborMedCenter.png"] = "2d/Event_BG_DEFAULT.json"; } var _this225 = this.m_map; if(__map_reserved["2d/events/Prep_HarborMedCenter"] != null) { _this225.setReserved("2d/events/Prep_HarborMedCenter","2d/Event_BG_DEFAULT.json"); } else { _this225.h["2d/events/Prep_HarborMedCenter"] = "2d/Event_BG_DEFAULT.json"; } var _this226 = this.m_map; if(__map_reserved["2d/events/Prep_HarborRenovation.png"] != null) { _this226.setReserved("2d/events/Prep_HarborRenovation.png","2d/Event_BG_DEFAULT.json"); } else { _this226.h["2d/events/Prep_HarborRenovation.png"] = "2d/Event_BG_DEFAULT.json"; } var _this227 = this.m_map; if(__map_reserved["2d/events/Prep_HarborRenovation"] != null) { _this227.setReserved("2d/events/Prep_HarborRenovation","2d/Event_BG_DEFAULT.json"); } else { _this227.h["2d/events/Prep_HarborRenovation"] = "2d/Event_BG_DEFAULT.json"; } var _this228 = this.m_map; if(__map_reserved["2d/events/Prep_LiquorRestriction.png"] != null) { _this228.setReserved("2d/events/Prep_LiquorRestriction.png","2d/Event_BG_DEFAULT.json"); } else { _this228.h["2d/events/Prep_LiquorRestriction.png"] = "2d/Event_BG_DEFAULT.json"; } var _this229 = this.m_map; if(__map_reserved["2d/events/Prep_LiquorRestriction"] != null) { _this229.setReserved("2d/events/Prep_LiquorRestriction","2d/Event_BG_DEFAULT.json"); } else { _this229.h["2d/events/Prep_LiquorRestriction"] = "2d/Event_BG_DEFAULT.json"; } var _this230 = this.m_map; if(__map_reserved["2d/events/Prep_LivingShoreline.png"] != null) { _this230.setReserved("2d/events/Prep_LivingShoreline.png","2d/Event_BG_DEFAULT.json"); } else { _this230.h["2d/events/Prep_LivingShoreline.png"] = "2d/Event_BG_DEFAULT.json"; } var _this231 = this.m_map; if(__map_reserved["2d/events/Prep_LivingShoreline"] != null) { _this231.setReserved("2d/events/Prep_LivingShoreline","2d/Event_BG_DEFAULT.json"); } else { _this231.h["2d/events/Prep_LivingShoreline"] = "2d/Event_BG_DEFAULT.json"; } var _this232 = this.m_map; if(__map_reserved["2d/events/Prep_LongerFishingHours.png"] != null) { _this232.setReserved("2d/events/Prep_LongerFishingHours.png","2d/Event_BG_DEFAULT.json"); } else { _this232.h["2d/events/Prep_LongerFishingHours.png"] = "2d/Event_BG_DEFAULT.json"; } var _this233 = this.m_map; if(__map_reserved["2d/events/Prep_LongerFishingHours"] != null) { _this233.setReserved("2d/events/Prep_LongerFishingHours","2d/Event_BG_DEFAULT.json"); } else { _this233.h["2d/events/Prep_LongerFishingHours"] = "2d/Event_BG_DEFAULT.json"; } var _this234 = this.m_map; if(__map_reserved["2d/events/Prep_MarineProtectedArea.png"] != null) { _this234.setReserved("2d/events/Prep_MarineProtectedArea.png","2d/Event_BG_DEFAULT.json"); } else { _this234.h["2d/events/Prep_MarineProtectedArea.png"] = "2d/Event_BG_DEFAULT.json"; } var _this235 = this.m_map; if(__map_reserved["2d/events/Prep_MarineProtectedArea"] != null) { _this235.setReserved("2d/events/Prep_MarineProtectedArea","2d/Event_BG_DEFAULT.json"); } else { _this235.h["2d/events/Prep_MarineProtectedArea"] = "2d/Event_BG_DEFAULT.json"; } var _this236 = this.m_map; if(__map_reserved["2d/events/Prep_NewBars.png"] != null) { _this236.setReserved("2d/events/Prep_NewBars.png","2d/Event_BG_DEFAULT.json"); } else { _this236.h["2d/events/Prep_NewBars.png"] = "2d/Event_BG_DEFAULT.json"; } var _this237 = this.m_map; if(__map_reserved["2d/events/Prep_NewBars"] != null) { _this237.setReserved("2d/events/Prep_NewBars","2d/Event_BG_DEFAULT.json"); } else { _this237.h["2d/events/Prep_NewBars"] = "2d/Event_BG_DEFAULT.json"; } var _this238 = this.m_map; if(__map_reserved["2d/events/Prep_NewJobProgram.png"] != null) { _this238.setReserved("2d/events/Prep_NewJobProgram.png","2d/Event_BG_DEFAULT.json"); } else { _this238.h["2d/events/Prep_NewJobProgram.png"] = "2d/Event_BG_DEFAULT.json"; } var _this239 = this.m_map; if(__map_reserved["2d/events/Prep_NewJobProgram"] != null) { _this239.setReserved("2d/events/Prep_NewJobProgram","2d/Event_BG_DEFAULT.json"); } else { _this239.h["2d/events/Prep_NewJobProgram"] = "2d/Event_BG_DEFAULT.json"; } var _this240 = this.m_map; if(__map_reserved["2d/events/Prep_NewMall.png"] != null) { _this240.setReserved("2d/events/Prep_NewMall.png","2d/Event_BG_DEFAULT.json"); } else { _this240.h["2d/events/Prep_NewMall.png"] = "2d/Event_BG_DEFAULT.json"; } var _this241 = this.m_map; if(__map_reserved["2d/events/Prep_NewMall"] != null) { _this241.setReserved("2d/events/Prep_NewMall","2d/Event_BG_DEFAULT.json"); } else { _this241.h["2d/events/Prep_NewMall"] = "2d/Event_BG_DEFAULT.json"; } var _this242 = this.m_map; if(__map_reserved["2d/events/Prep_OffShoreWindfarm.png"] != null) { _this242.setReserved("2d/events/Prep_OffShoreWindfarm.png","2d/Event_BG_DEFAULT.json"); } else { _this242.h["2d/events/Prep_OffShoreWindfarm.png"] = "2d/Event_BG_DEFAULT.json"; } var _this243 = this.m_map; if(__map_reserved["2d/events/Prep_OffShoreWindfarm"] != null) { _this243.setReserved("2d/events/Prep_OffShoreWindfarm","2d/Event_BG_DEFAULT.json"); } else { _this243.h["2d/events/Prep_OffShoreWindfarm"] = "2d/Event_BG_DEFAULT.json"; } var _this244 = this.m_map; if(__map_reserved["2d/events/Prep_PreparednessWorkshop.png"] != null) { _this244.setReserved("2d/events/Prep_PreparednessWorkshop.png","2d/Event_BG_DEFAULT.json"); } else { _this244.h["2d/events/Prep_PreparednessWorkshop.png"] = "2d/Event_BG_DEFAULT.json"; } var _this245 = this.m_map; if(__map_reserved["2d/events/Prep_PreparednessWorkshop"] != null) { _this245.setReserved("2d/events/Prep_PreparednessWorkshop","2d/Event_BG_DEFAULT.json"); } else { _this245.h["2d/events/Prep_PreparednessWorkshop"] = "2d/Event_BG_DEFAULT.json"; } var _this246 = this.m_map; if(__map_reserved["2d/events/Prep_PromoteLocalSeafood.png"] != null) { _this246.setReserved("2d/events/Prep_PromoteLocalSeafood.png","2d/Event_BG_DEFAULT.json"); } else { _this246.h["2d/events/Prep_PromoteLocalSeafood.png"] = "2d/Event_BG_DEFAULT.json"; } var _this247 = this.m_map; if(__map_reserved["2d/events/Prep_PromoteLocalSeafood"] != null) { _this247.setReserved("2d/events/Prep_PromoteLocalSeafood","2d/Event_BG_DEFAULT.json"); } else { _this247.h["2d/events/Prep_PromoteLocalSeafood"] = "2d/Event_BG_DEFAULT.json"; } var _this248 = this.m_map; if(__map_reserved["2d/events/Prep_Regatta.png"] != null) { _this248.setReserved("2d/events/Prep_Regatta.png","2d/Event_BG_DEFAULT.json"); } else { _this248.h["2d/events/Prep_Regatta.png"] = "2d/Event_BG_DEFAULT.json"; } var _this249 = this.m_map; if(__map_reserved["2d/events/Prep_Regatta"] != null) { _this249.setReserved("2d/events/Prep_Regatta","2d/Event_BG_DEFAULT.json"); } else { _this249.h["2d/events/Prep_Regatta"] = "2d/Event_BG_DEFAULT.json"; } var _this250 = this.m_map; if(__map_reserved["2d/events/Prep_RenovateSchool.png"] != null) { _this250.setReserved("2d/events/Prep_RenovateSchool.png","2d/Event_BG_DEFAULT.json"); } else { _this250.h["2d/events/Prep_RenovateSchool.png"] = "2d/Event_BG_DEFAULT.json"; } var _this251 = this.m_map; if(__map_reserved["2d/events/Prep_RenovateSchool"] != null) { _this251.setReserved("2d/events/Prep_RenovateSchool","2d/Event_BG_DEFAULT.json"); } else { _this251.h["2d/events/Prep_RenovateSchool"] = "2d/Event_BG_DEFAULT.json"; } var _this252 = this.m_map; if(__map_reserved["2d/events/Prep_RepairAgingPowerGrid.png"] != null) { _this252.setReserved("2d/events/Prep_RepairAgingPowerGrid.png","2d/Event_BG_DEFAULT.json"); } else { _this252.h["2d/events/Prep_RepairAgingPowerGrid.png"] = "2d/Event_BG_DEFAULT.json"; } var _this253 = this.m_map; if(__map_reserved["2d/events/Prep_RepairAgingPowerGrid"] != null) { _this253.setReserved("2d/events/Prep_RepairAgingPowerGrid","2d/Event_BG_DEFAULT.json"); } else { _this253.h["2d/events/Prep_RepairAgingPowerGrid"] = "2d/Event_BG_DEFAULT.json"; } var _this254 = this.m_map; if(__map_reserved["2d/events/Prep_RepairRoads.png"] != null) { _this254.setReserved("2d/events/Prep_RepairRoads.png","2d/Event_BG_DEFAULT.json"); } else { _this254.h["2d/events/Prep_RepairRoads.png"] = "2d/Event_BG_DEFAULT.json"; } var _this255 = this.m_map; if(__map_reserved["2d/events/Prep_RepairRoads"] != null) { _this255.setReserved("2d/events/Prep_RepairRoads","2d/Event_BG_DEFAULT.json"); } else { _this255.h["2d/events/Prep_RepairRoads"] = "2d/Event_BG_DEFAULT.json"; } var _this256 = this.m_map; if(__map_reserved["2d/events/Prep_RestrictRecreationalFishing.png"] != null) { _this256.setReserved("2d/events/Prep_RestrictRecreationalFishing.png","2d/Event_BG_DEFAULT.json"); } else { _this256.h["2d/events/Prep_RestrictRecreationalFishing.png"] = "2d/Event_BG_DEFAULT.json"; } var _this257 = this.m_map; if(__map_reserved["2d/events/Prep_RestrictRecreationalFishing"] != null) { _this257.setReserved("2d/events/Prep_RestrictRecreationalFishing","2d/Event_BG_DEFAULT.json"); } else { _this257.h["2d/events/Prep_RestrictRecreationalFishing"] = "2d/Event_BG_DEFAULT.json"; } var _this258 = this.m_map; if(__map_reserved["2d/events/Prep_SeaWall.png"] != null) { _this258.setReserved("2d/events/Prep_SeaWall.png","2d/Event_BG_DEFAULT.json"); } else { _this258.h["2d/events/Prep_SeaWall.png"] = "2d/Event_BG_DEFAULT.json"; } var _this259 = this.m_map; if(__map_reserved["2d/events/Prep_SeaWall"] != null) { _this259.setReserved("2d/events/Prep_SeaWall","2d/Event_BG_DEFAULT.json"); } else { _this259.h["2d/events/Prep_SeaWall"] = "2d/Event_BG_DEFAULT.json"; } var _this260 = this.m_map; if(__map_reserved["2d/events/Prep_TighterPollutionControl.png"] != null) { _this260.setReserved("2d/events/Prep_TighterPollutionControl.png","2d/Event_BG_DEFAULT.json"); } else { _this260.h["2d/events/Prep_TighterPollutionControl.png"] = "2d/Event_BG_DEFAULT.json"; } var _this261 = this.m_map; if(__map_reserved["2d/events/Prep_TighterPollutionControl"] != null) { _this261.setReserved("2d/events/Prep_TighterPollutionControl","2d/Event_BG_DEFAULT.json"); } else { _this261.h["2d/events/Prep_TighterPollutionControl"] = "2d/Event_BG_DEFAULT.json"; } var _this262 = this.m_map; if(__map_reserved["2d/events/Prep_TourismZoningRestrictions.png"] != null) { _this262.setReserved("2d/events/Prep_TourismZoningRestrictions.png","2d/Event_BG_DEFAULT.json"); } else { _this262.h["2d/events/Prep_TourismZoningRestrictions.png"] = "2d/Event_BG_DEFAULT.json"; } var _this263 = this.m_map; if(__map_reserved["2d/events/Prep_TourismZoningRestrictions"] != null) { _this263.setReserved("2d/events/Prep_TourismZoningRestrictions","2d/Event_BG_DEFAULT.json"); } else { _this263.h["2d/events/Prep_TourismZoningRestrictions"] = "2d/Event_BG_DEFAULT.json"; } var _this264 = this.m_map; if(__map_reserved["2d/events/Prep_UpgradeSewerSystem.png"] != null) { _this264.setReserved("2d/events/Prep_UpgradeSewerSystem.png","2d/Event_BG_DEFAULT.json"); } else { _this264.h["2d/events/Prep_UpgradeSewerSystem.png"] = "2d/Event_BG_DEFAULT.json"; } var _this265 = this.m_map; if(__map_reserved["2d/events/Prep_UpgradeSewerSystem"] != null) { _this265.setReserved("2d/events/Prep_UpgradeSewerSystem","2d/Event_BG_DEFAULT.json"); } else { _this265.h["2d/events/Prep_UpgradeSewerSystem"] = "2d/Event_BG_DEFAULT.json"; } var _this266 = this.m_map; if(__map_reserved["2d/events/Prep_UpscaleShops.png"] != null) { _this266.setReserved("2d/events/Prep_UpscaleShops.png","2d/Event_BG_DEFAULT.json"); } else { _this266.h["2d/events/Prep_UpscaleShops.png"] = "2d/Event_BG_DEFAULT.json"; } var _this267 = this.m_map; if(__map_reserved["2d/events/Prep_UpscaleShops"] != null) { _this267.setReserved("2d/events/Prep_UpscaleShops","2d/Event_BG_DEFAULT.json"); } else { _this267.h["2d/events/Prep_UpscaleShops"] = "2d/Event_BG_DEFAULT.json"; } var _this268 = this.m_map; if(__map_reserved["2d/events/Prep_VaccinationProgram.png"] != null) { _this268.setReserved("2d/events/Prep_VaccinationProgram.png","2d/Event_BG_DEFAULT.json"); } else { _this268.h["2d/events/Prep_VaccinationProgram.png"] = "2d/Event_BG_DEFAULT.json"; } var _this269 = this.m_map; if(__map_reserved["2d/events/Prep_VaccinationProgram"] != null) { _this269.setReserved("2d/events/Prep_VaccinationProgram","2d/Event_BG_DEFAULT.json"); } else { _this269.h["2d/events/Prep_VaccinationProgram"] = "2d/Event_BG_DEFAULT.json"; } var _this270 = this.m_map; if(__map_reserved["2d/events/SH_EmergencyWorkers.png"] != null) { _this270.setReserved("2d/events/SH_EmergencyWorkers.png","2d/Event_BG_DEFAULT.json"); } else { _this270.h["2d/events/SH_EmergencyWorkers.png"] = "2d/Event_BG_DEFAULT.json"; } var _this271 = this.m_map; if(__map_reserved["2d/events/SH_EmergencyWorkers"] != null) { _this271.setReserved("2d/events/SH_EmergencyWorkers","2d/Event_BG_DEFAULT.json"); } else { _this271.h["2d/events/SH_EmergencyWorkers"] = "2d/Event_BG_DEFAULT.json"; } var _this272 = this.m_map; if(__map_reserved["2d/events/SH_IndustrialFishing.png"] != null) { _this272.setReserved("2d/events/SH_IndustrialFishing.png","2d/Event_BG_DEFAULT.json"); } else { _this272.h["2d/events/SH_IndustrialFishing.png"] = "2d/Event_BG_DEFAULT.json"; } var _this273 = this.m_map; if(__map_reserved["2d/events/SH_IndustrialFishing"] != null) { _this273.setReserved("2d/events/SH_IndustrialFishing","2d/Event_BG_DEFAULT.json"); } else { _this273.h["2d/events/SH_IndustrialFishing"] = "2d/Event_BG_DEFAULT.json"; } var _this274 = this.m_map; if(__map_reserved["2d/events/SH_RecreationalFishing.png"] != null) { _this274.setReserved("2d/events/SH_RecreationalFishing.png","2d/Event_BG_DEFAULT.json"); } else { _this274.h["2d/events/SH_RecreationalFishing.png"] = "2d/Event_BG_DEFAULT.json"; } var _this275 = this.m_map; if(__map_reserved["2d/events/SH_RecreationalFishing"] != null) { _this275.setReserved("2d/events/SH_RecreationalFishing","2d/Event_BG_DEFAULT.json"); } else { _this275.h["2d/events/SH_RecreationalFishing"] = "2d/Event_BG_DEFAULT.json"; } var _this276 = this.m_map; if(__map_reserved["2d/events/SH_SmallBusinessOwners.png"] != null) { _this276.setReserved("2d/events/SH_SmallBusinessOwners.png","2d/Event_BG_DEFAULT.json"); } else { _this276.h["2d/events/SH_SmallBusinessOwners.png"] = "2d/Event_BG_DEFAULT.json"; } var _this277 = this.m_map; if(__map_reserved["2d/events/SH_SmallBusinessOwners"] != null) { _this277.setReserved("2d/events/SH_SmallBusinessOwners","2d/Event_BG_DEFAULT.json"); } else { _this277.h["2d/events/SH_SmallBusinessOwners"] = "2d/Event_BG_DEFAULT.json"; } var _this278 = this.m_map; if(__map_reserved["2d/events/SeaTurtle.png"] != null) { _this278.setReserved("2d/events/SeaTurtle.png","2d/Event_BG_DEFAULT.json"); } else { _this278.h["2d/events/SeaTurtle.png"] = "2d/Event_BG_DEFAULT.json"; } var _this279 = this.m_map; if(__map_reserved["2d/events/SeaTurtle"] != null) { _this279.setReserved("2d/events/SeaTurtle","2d/Event_BG_DEFAULT.json"); } else { _this279.h["2d/events/SeaTurtle"] = "2d/Event_BG_DEFAULT.json"; } var _this280 = this.m_map; if(__map_reserved["2d/events/SealHaul.png"] != null) { _this280.setReserved("2d/events/SealHaul.png","2d/Event_BG_DEFAULT.json"); } else { _this280.h["2d/events/SealHaul.png"] = "2d/Event_BG_DEFAULT.json"; } var _this281 = this.m_map; if(__map_reserved["2d/events/SealHaul"] != null) { _this281.setReserved("2d/events/SealHaul","2d/Event_BG_DEFAULT.json"); } else { _this281.h["2d/events/SealHaul"] = "2d/Event_BG_DEFAULT.json"; } var _this282 = this.m_map; if(__map_reserved["2d/events/WaterCrisis.png"] != null) { _this282.setReserved("2d/events/WaterCrisis.png","2d/Event_BG_DEFAULT.json"); } else { _this282.h["2d/events/WaterCrisis.png"] = "2d/Event_BG_DEFAULT.json"; } var _this283 = this.m_map; if(__map_reserved["2d/events/WaterCrisis"] != null) { _this283.setReserved("2d/events/WaterCrisis","2d/Event_BG_DEFAULT.json"); } else { _this283.h["2d/events/WaterCrisis"] = "2d/Event_BG_DEFAULT.json"; } var _this284 = this.m_map; if(__map_reserved["2d/pacific/Earthquake.png"] != null) { _this284.setReserved("2d/pacific/Earthquake.png","2d/Pacific_BG_DEFAULT.json"); } else { _this284.h["2d/pacific/Earthquake.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this285 = this.m_map; if(__map_reserved["2d/pacific/Earthquake"] != null) { _this285.setReserved("2d/pacific/Earthquake","2d/Pacific_BG_DEFAULT.json"); } else { _this285.h["2d/pacific/Earthquake"] = "2d/Pacific_BG_DEFAULT.json"; } var _this286 = this.m_map; if(__map_reserved["2d/pacific/FishEntanglement.png"] != null) { _this286.setReserved("2d/pacific/FishEntanglement.png","2d/Pacific_BG_DEFAULT.json"); } else { _this286.h["2d/pacific/FishEntanglement.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this287 = this.m_map; if(__map_reserved["2d/pacific/FishEntanglement"] != null) { _this287.setReserved("2d/pacific/FishEntanglement","2d/Pacific_BG_DEFAULT.json"); } else { _this287.h["2d/pacific/FishEntanglement"] = "2d/Pacific_BG_DEFAULT.json"; } var _this288 = this.m_map; if(__map_reserved["2d/pacific/MarineProtectedArea.png"] != null) { _this288.setReserved("2d/pacific/MarineProtectedArea.png","2d/Pacific_BG_DEFAULT.json"); } else { _this288.h["2d/pacific/MarineProtectedArea.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this289 = this.m_map; if(__map_reserved["2d/pacific/MarineProtectedArea"] != null) { _this289.setReserved("2d/pacific/MarineProtectedArea","2d/Pacific_BG_DEFAULT.json"); } else { _this289.h["2d/pacific/MarineProtectedArea"] = "2d/Pacific_BG_DEFAULT.json"; } var _this290 = this.m_map; if(__map_reserved["2d/pacific/OffshoreAquaculture.png"] != null) { _this290.setReserved("2d/pacific/OffshoreAquaculture.png","2d/Pacific_BG_DEFAULT.json"); } else { _this290.h["2d/pacific/OffshoreAquaculture.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this291 = this.m_map; if(__map_reserved["2d/pacific/OffshoreAquaculture"] != null) { _this291.setReserved("2d/pacific/OffshoreAquaculture","2d/Pacific_BG_DEFAULT.json"); } else { _this291.h["2d/pacific/OffshoreAquaculture"] = "2d/Pacific_BG_DEFAULT.json"; } var _this292 = this.m_map; if(__map_reserved["2d/pacific/OilSpill.png"] != null) { _this292.setReserved("2d/pacific/OilSpill.png","2d/Pacific_BG_DEFAULT.json"); } else { _this292.h["2d/pacific/OilSpill.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this293 = this.m_map; if(__map_reserved["2d/pacific/OilSpill"] != null) { _this293.setReserved("2d/pacific/OilSpill","2d/Pacific_BG_DEFAULT.json"); } else { _this293.h["2d/pacific/OilSpill"] = "2d/Pacific_BG_DEFAULT.json"; } var _this294 = this.m_map; if(__map_reserved["2d/pacific/SeaTurtle.png"] != null) { _this294.setReserved("2d/pacific/SeaTurtle.png","2d/Pacific_BG_DEFAULT.json"); } else { _this294.h["2d/pacific/SeaTurtle.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this295 = this.m_map; if(__map_reserved["2d/pacific/SeaTurtle"] != null) { _this295.setReserved("2d/pacific/SeaTurtle","2d/Pacific_BG_DEFAULT.json"); } else { _this295.h["2d/pacific/SeaTurtle"] = "2d/Pacific_BG_DEFAULT.json"; } var _this296 = this.m_map; if(__map_reserved["2d/pacific/SealHaul.png"] != null) { _this296.setReserved("2d/pacific/SealHaul.png","2d/Pacific_BG_DEFAULT.json"); } else { _this296.h["2d/pacific/SealHaul.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this297 = this.m_map; if(__map_reserved["2d/pacific/SealHaul"] != null) { _this297.setReserved("2d/pacific/SealHaul","2d/Pacific_BG_DEFAULT.json"); } else { _this297.h["2d/pacific/SealHaul"] = "2d/Pacific_BG_DEFAULT.json"; } var _this298 = this.m_map; if(__map_reserved["2d/pacific/WaterCrisis.png"] != null) { _this298.setReserved("2d/pacific/WaterCrisis.png","2d/Pacific_BG_DEFAULT.json"); } else { _this298.h["2d/pacific/WaterCrisis.png"] = "2d/Pacific_BG_DEFAULT.json"; } var _this299 = this.m_map; if(__map_reserved["2d/pacific/WaterCrisis"] != null) { _this299.setReserved("2d/pacific/WaterCrisis","2d/Pacific_BG_DEFAULT.json"); } else { _this299.h["2d/pacific/WaterCrisis"] = "2d/Pacific_BG_DEFAULT.json"; } var _this300 = this.m_map; if(__map_reserved["2d/stakeholders/SH_ConstructionWorkers.png"] != null) { _this300.setReserved("2d/stakeholders/SH_ConstructionWorkers.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this300.h["2d/stakeholders/SH_ConstructionWorkers.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this301 = this.m_map; if(__map_reserved["2d/stakeholders/SH_ConstructionWorkers"] != null) { _this301.setReserved("2d/stakeholders/SH_ConstructionWorkers","2d/Stakeholders_BG_DEFAULT.json"); } else { _this301.h["2d/stakeholders/SH_ConstructionWorkers"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this302 = this.m_map; if(__map_reserved["2d/stakeholders/SH_EmergencyWorkers.png"] != null) { _this302.setReserved("2d/stakeholders/SH_EmergencyWorkers.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this302.h["2d/stakeholders/SH_EmergencyWorkers.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this303 = this.m_map; if(__map_reserved["2d/stakeholders/SH_EmergencyWorkers"] != null) { _this303.setReserved("2d/stakeholders/SH_EmergencyWorkers","2d/Stakeholders_BG_DEFAULT.json"); } else { _this303.h["2d/stakeholders/SH_EmergencyWorkers"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this304 = this.m_map; if(__map_reserved["2d/stakeholders/SH_IndustrialFishing.png"] != null) { _this304.setReserved("2d/stakeholders/SH_IndustrialFishing.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this304.h["2d/stakeholders/SH_IndustrialFishing.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this305 = this.m_map; if(__map_reserved["2d/stakeholders/SH_IndustrialFishing"] != null) { _this305.setReserved("2d/stakeholders/SH_IndustrialFishing","2d/Stakeholders_BG_DEFAULT.json"); } else { _this305.h["2d/stakeholders/SH_IndustrialFishing"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this306 = this.m_map; if(__map_reserved["2d/stakeholders/SH_PTFishing1.png"] != null) { _this306.setReserved("2d/stakeholders/SH_PTFishing1.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this306.h["2d/stakeholders/SH_PTFishing1.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this307 = this.m_map; if(__map_reserved["2d/stakeholders/SH_PTFishing1"] != null) { _this307.setReserved("2d/stakeholders/SH_PTFishing1","2d/Stakeholders_BG_DEFAULT.json"); } else { _this307.h["2d/stakeholders/SH_PTFishing1"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this308 = this.m_map; if(__map_reserved["2d/stakeholders/SH_PTFishing2.png"] != null) { _this308.setReserved("2d/stakeholders/SH_PTFishing2.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this308.h["2d/stakeholders/SH_PTFishing2.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this309 = this.m_map; if(__map_reserved["2d/stakeholders/SH_PTFishing2"] != null) { _this309.setReserved("2d/stakeholders/SH_PTFishing2","2d/Stakeholders_BG_DEFAULT.json"); } else { _this309.h["2d/stakeholders/SH_PTFishing2"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this310 = this.m_map; if(__map_reserved["2d/stakeholders/SH_RecreationalFishing.png"] != null) { _this310.setReserved("2d/stakeholders/SH_RecreationalFishing.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this310.h["2d/stakeholders/SH_RecreationalFishing.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this311 = this.m_map; if(__map_reserved["2d/stakeholders/SH_RecreationalFishing"] != null) { _this311.setReserved("2d/stakeholders/SH_RecreationalFishing","2d/Stakeholders_BG_DEFAULT.json"); } else { _this311.h["2d/stakeholders/SH_RecreationalFishing"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this312 = this.m_map; if(__map_reserved["2d/stakeholders/SH_SmallBusinessOwners.png"] != null) { _this312.setReserved("2d/stakeholders/SH_SmallBusinessOwners.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this312.h["2d/stakeholders/SH_SmallBusinessOwners.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this313 = this.m_map; if(__map_reserved["2d/stakeholders/SH_SmallBusinessOwners"] != null) { _this313.setReserved("2d/stakeholders/SH_SmallBusinessOwners","2d/Stakeholders_BG_DEFAULT.json"); } else { _this313.h["2d/stakeholders/SH_SmallBusinessOwners"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this314 = this.m_map; if(__map_reserved["2d/stakeholders/SH_TourismIndustry.png"] != null) { _this314.setReserved("2d/stakeholders/SH_TourismIndustry.png","2d/Stakeholders_BG_DEFAULT.json"); } else { _this314.h["2d/stakeholders/SH_TourismIndustry.png"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this315 = this.m_map; if(__map_reserved["2d/stakeholders/SH_TourismIndustry"] != null) { _this315.setReserved("2d/stakeholders/SH_TourismIndustry","2d/Stakeholders_BG_DEFAULT.json"); } else { _this315.h["2d/stakeholders/SH_TourismIndustry"] = "2d/Stakeholders_BG_DEFAULT.json"; } var _this316 = this.m_map; if(__map_reserved["2d/title/eli_logo.png"] != null) { _this316.setReserved("2d/title/eli_logo.png","2d/Title_DEFAULT_LARGE.json"); } else { _this316.h["2d/title/eli_logo.png"] = "2d/Title_DEFAULT_LARGE.json"; } var _this317 = this.m_map; if(__map_reserved["2d/title/eli_logo"] != null) { _this317.setReserved("2d/title/eli_logo","2d/Title_DEFAULT_LARGE.json"); } else { _this317.h["2d/title/eli_logo"] = "2d/Title_DEFAULT_LARGE.json"; } var _this318 = this.m_map; if(__map_reserved["2d/title/logo.png"] != null) { _this318.setReserved("2d/title/logo.png","2d/Title_DEFAULT_LARGE.json"); } else { _this318.h["2d/title/logo.png"] = "2d/Title_DEFAULT_LARGE.json"; } var _this319 = this.m_map; if(__map_reserved["2d/title/logo"] != null) { _this319.setReserved("2d/title/logo","2d/Title_DEFAULT_LARGE.json"); } else { _this319.h["2d/title/logo"] = "2d/Title_DEFAULT_LARGE.json"; } var _this320 = this.m_map; if(__map_reserved["2d/ui/coversprite/BGMask.png"] != null) { _this320.setReserved("2d/ui/coversprite/BGMask.png","2d/CoverSprite_DEFAULT_LARGE.json"); } else { _this320.h["2d/ui/coversprite/BGMask.png"] = "2d/CoverSprite_DEFAULT_LARGE.json"; } var _this321 = this.m_map; if(__map_reserved["2d/ui/coversprite/BGMask"] != null) { _this321.setReserved("2d/ui/coversprite/BGMask","2d/CoverSprite_DEFAULT_LARGE.json"); } else { _this321.h["2d/ui/coversprite/BGMask"] = "2d/CoverSprite_DEFAULT_LARGE.json"; } var _this322 = this.m_map; if(__map_reserved["2d/ui/regionselect/Map.png"] != null) { _this322.setReserved("2d/ui/regionselect/Map.png","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this322.h["2d/ui/regionselect/Map.png"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this323 = this.m_map; if(__map_reserved["2d/ui/regionselect/Map"] != null) { _this323.setReserved("2d/ui/regionselect/Map","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this323.h["2d/ui/regionselect/Map"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this324 = this.m_map; if(__map_reserved["2d/ui/regionselect/MapAlaska.png"] != null) { _this324.setReserved("2d/ui/regionselect/MapAlaska.png","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this324.h["2d/ui/regionselect/MapAlaska.png"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this325 = this.m_map; if(__map_reserved["2d/ui/regionselect/MapAlaska"] != null) { _this325.setReserved("2d/ui/regionselect/MapAlaska","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this325.h["2d/ui/regionselect/MapAlaska"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this326 = this.m_map; if(__map_reserved["2d/ui/regionselect/MapCaribbean.png"] != null) { _this326.setReserved("2d/ui/regionselect/MapCaribbean.png","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this326.h["2d/ui/regionselect/MapCaribbean.png"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this327 = this.m_map; if(__map_reserved["2d/ui/regionselect/MapCaribbean"] != null) { _this327.setReserved("2d/ui/regionselect/MapCaribbean","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this327.h["2d/ui/regionselect/MapCaribbean"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this328 = this.m_map; if(__map_reserved["2d/ui/regionselect/MapWesternPacific.png"] != null) { _this328.setReserved("2d/ui/regionselect/MapWesternPacific.png","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this328.h["2d/ui/regionselect/MapWesternPacific.png"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this329 = this.m_map; if(__map_reserved["2d/ui/regionselect/MapWesternPacific"] != null) { _this329.setReserved("2d/ui/regionselect/MapWesternPacific","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this329.h["2d/ui/regionselect/MapWesternPacific"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this330 = this.m_map; if(__map_reserved["2d/ui/regionselect/ModeSelectHeader.png"] != null) { _this330.setReserved("2d/ui/regionselect/ModeSelectHeader.png","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this330.h["2d/ui/regionselect/ModeSelectHeader.png"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this331 = this.m_map; if(__map_reserved["2d/ui/regionselect/ModeSelectHeader"] != null) { _this331.setReserved("2d/ui/regionselect/ModeSelectHeader","2d/ModeSelectMenu_DEFAULT_LARGE.json"); } else { _this331.h["2d/ui/regionselect/ModeSelectHeader"] = "2d/ModeSelectMenu_DEFAULT_LARGE.json"; } var _this332 = this.m_map; if(__map_reserved["2d/ui/result/Defeat.png"] != null) { _this332.setReserved("2d/ui/result/Defeat.png","2d/ResultMenu_DEFAULT.json"); } else { _this332.h["2d/ui/result/Defeat.png"] = "2d/ResultMenu_DEFAULT.json"; } var _this333 = this.m_map; if(__map_reserved["2d/ui/result/Defeat"] != null) { _this333.setReserved("2d/ui/result/Defeat","2d/ResultMenu_DEFAULT.json"); } else { _this333.h["2d/ui/result/Defeat"] = "2d/ResultMenu_DEFAULT.json"; } var _this334 = this.m_map; if(__map_reserved["2d/ui/result/Victory.png"] != null) { _this334.setReserved("2d/ui/result/Victory.png","2d/ResultMenu_DEFAULT.json"); } else { _this334.h["2d/ui/result/Victory.png"] = "2d/ResultMenu_DEFAULT.json"; } var _this335 = this.m_map; if(__map_reserved["2d/ui/result/Victory"] != null) { _this335.setReserved("2d/ui/result/Victory","2d/ResultMenu_DEFAULT.json"); } else { _this335.h["2d/ui/result/Victory"] = "2d/ResultMenu_DEFAULT.json"; } var _this336 = this.m_map; if(__map_reserved["2d/prep/Earthquake.png"] != null) { _this336.setReserved("2d/prep/Earthquake.png","2d/Preparation_BG_DEFAULT.json"); } else { _this336.h["2d/prep/Earthquake.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this337 = this.m_map; if(__map_reserved["2d/prep/Earthquake"] != null) { _this337.setReserved("2d/prep/Earthquake","2d/Preparation_BG_DEFAULT.json"); } else { _this337.h["2d/prep/Earthquake"] = "2d/Preparation_BG_DEFAULT.json"; } var _this338 = this.m_map; if(__map_reserved["2d/prep/Event_BreakInSupplyChain.png"] != null) { _this338.setReserved("2d/prep/Event_BreakInSupplyChain.png","2d/Preparation_BG_DEFAULT.json"); } else { _this338.h["2d/prep/Event_BreakInSupplyChain.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this339 = this.m_map; if(__map_reserved["2d/prep/Event_BreakInSupplyChain"] != null) { _this339.setReserved("2d/prep/Event_BreakInSupplyChain","2d/Preparation_BG_DEFAULT.json"); } else { _this339.h["2d/prep/Event_BreakInSupplyChain"] = "2d/Preparation_BG_DEFAULT.json"; } var _this340 = this.m_map; if(__map_reserved["2d/prep/Event_Brownouts.png"] != null) { _this340.setReserved("2d/prep/Event_Brownouts.png","2d/Preparation_BG_DEFAULT.json"); } else { _this340.h["2d/prep/Event_Brownouts.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this341 = this.m_map; if(__map_reserved["2d/prep/Event_Brownouts"] != null) { _this341.setReserved("2d/prep/Event_Brownouts","2d/Preparation_BG_DEFAULT.json"); } else { _this341.h["2d/prep/Event_Brownouts"] = "2d/Preparation_BG_DEFAULT.json"; } var _this342 = this.m_map; if(__map_reserved["2d/prep/Event_FishDisease.png"] != null) { _this342.setReserved("2d/prep/Event_FishDisease.png","2d/Preparation_BG_DEFAULT.json"); } else { _this342.h["2d/prep/Event_FishDisease.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this343 = this.m_map; if(__map_reserved["2d/prep/Event_FishDisease"] != null) { _this343.setReserved("2d/prep/Event_FishDisease","2d/Preparation_BG_DEFAULT.json"); } else { _this343.h["2d/prep/Event_FishDisease"] = "2d/Preparation_BG_DEFAULT.json"; } var _this344 = this.m_map; if(__map_reserved["2d/prep/Event_FishFleeNorthward.png"] != null) { _this344.setReserved("2d/prep/Event_FishFleeNorthward.png","2d/Preparation_BG_DEFAULT.json"); } else { _this344.h["2d/prep/Event_FishFleeNorthward.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this345 = this.m_map; if(__map_reserved["2d/prep/Event_FishFleeNorthward"] != null) { _this345.setReserved("2d/prep/Event_FishFleeNorthward","2d/Preparation_BG_DEFAULT.json"); } else { _this345.h["2d/prep/Event_FishFleeNorthward"] = "2d/Preparation_BG_DEFAULT.json"; } var _this346 = this.m_map; if(__map_reserved["2d/prep/Event_FishingLicensesLimited.png"] != null) { _this346.setReserved("2d/prep/Event_FishingLicensesLimited.png","2d/Preparation_BG_DEFAULT.json"); } else { _this346.h["2d/prep/Event_FishingLicensesLimited.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this347 = this.m_map; if(__map_reserved["2d/prep/Event_FishingLicensesLimited"] != null) { _this347.setReserved("2d/prep/Event_FishingLicensesLimited","2d/Preparation_BG_DEFAULT.json"); } else { _this347.h["2d/prep/Event_FishingLicensesLimited"] = "2d/Preparation_BG_DEFAULT.json"; } var _this348 = this.m_map; if(__map_reserved["2d/prep/Event_GlobalWarming.png"] != null) { _this348.setReserved("2d/prep/Event_GlobalWarming.png","2d/Preparation_BG_DEFAULT.json"); } else { _this348.h["2d/prep/Event_GlobalWarming.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this349 = this.m_map; if(__map_reserved["2d/prep/Event_GlobalWarming"] != null) { _this349.setReserved("2d/prep/Event_GlobalWarming","2d/Preparation_BG_DEFAULT.json"); } else { _this349.h["2d/prep/Event_GlobalWarming"] = "2d/Preparation_BG_DEFAULT.json"; } var _this350 = this.m_map; if(__map_reserved["2d/prep/Event_HeavyWinter.png"] != null) { _this350.setReserved("2d/prep/Event_HeavyWinter.png","2d/Preparation_BG_DEFAULT.json"); } else { _this350.h["2d/prep/Event_HeavyWinter.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this351 = this.m_map; if(__map_reserved["2d/prep/Event_HeavyWinter"] != null) { _this351.setReserved("2d/prep/Event_HeavyWinter","2d/Preparation_BG_DEFAULT.json"); } else { _this351.h["2d/prep/Event_HeavyWinter"] = "2d/Preparation_BG_DEFAULT.json"; } var _this352 = this.m_map; if(__map_reserved["2d/prep/Event_HipsterHangout.png"] != null) { _this352.setReserved("2d/prep/Event_HipsterHangout.png","2d/Preparation_BG_DEFAULT.json"); } else { _this352.h["2d/prep/Event_HipsterHangout.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this353 = this.m_map; if(__map_reserved["2d/prep/Event_HipsterHangout"] != null) { _this353.setReserved("2d/prep/Event_HipsterHangout","2d/Preparation_BG_DEFAULT.json"); } else { _this353.h["2d/prep/Event_HipsterHangout"] = "2d/Preparation_BG_DEFAULT.json"; } var _this354 = this.m_map; if(__map_reserved["2d/prep/Event_HollywoodMovie.png"] != null) { _this354.setReserved("2d/prep/Event_HollywoodMovie.png","2d/Preparation_BG_DEFAULT.json"); } else { _this354.h["2d/prep/Event_HollywoodMovie.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this355 = this.m_map; if(__map_reserved["2d/prep/Event_HollywoodMovie"] != null) { _this355.setReserved("2d/prep/Event_HollywoodMovie","2d/Preparation_BG_DEFAULT.json"); } else { _this355.h["2d/prep/Event_HollywoodMovie"] = "2d/Preparation_BG_DEFAULT.json"; } var _this356 = this.m_map; if(__map_reserved["2d/prep/Event_Hypoxia.png"] != null) { _this356.setReserved("2d/prep/Event_Hypoxia.png","2d/Preparation_BG_DEFAULT.json"); } else { _this356.h["2d/prep/Event_Hypoxia.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this357 = this.m_map; if(__map_reserved["2d/prep/Event_Hypoxia"] != null) { _this357.setReserved("2d/prep/Event_Hypoxia","2d/Preparation_BG_DEFAULT.json"); } else { _this357.h["2d/prep/Event_Hypoxia"] = "2d/Preparation_BG_DEFAULT.json"; } var _this358 = this.m_map; if(__map_reserved["2d/prep/Event_MovieHurricane.png"] != null) { _this358.setReserved("2d/prep/Event_MovieHurricane.png","2d/Preparation_BG_DEFAULT.json"); } else { _this358.h["2d/prep/Event_MovieHurricane.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this359 = this.m_map; if(__map_reserved["2d/prep/Event_MovieHurricane"] != null) { _this359.setReserved("2d/prep/Event_MovieHurricane","2d/Preparation_BG_DEFAULT.json"); } else { _this359.h["2d/prep/Event_MovieHurricane"] = "2d/Preparation_BG_DEFAULT.json"; } var _this360 = this.m_map; if(__map_reserved["2d/prep/Event_NationalEconomicRecession.png"] != null) { _this360.setReserved("2d/prep/Event_NationalEconomicRecession.png","2d/Preparation_BG_DEFAULT.json"); } else { _this360.h["2d/prep/Event_NationalEconomicRecession.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this361 = this.m_map; if(__map_reserved["2d/prep/Event_NationalEconomicRecession"] != null) { _this361.setReserved("2d/prep/Event_NationalEconomicRecession","2d/Preparation_BG_DEFAULT.json"); } else { _this361.h["2d/prep/Event_NationalEconomicRecession"] = "2d/Preparation_BG_DEFAULT.json"; } var _this362 = this.m_map; if(__map_reserved["2d/prep/Event_PirateFishers.png"] != null) { _this362.setReserved("2d/prep/Event_PirateFishers.png","2d/Preparation_BG_DEFAULT.json"); } else { _this362.h["2d/prep/Event_PirateFishers.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this363 = this.m_map; if(__map_reserved["2d/prep/Event_PirateFishers"] != null) { _this363.setReserved("2d/prep/Event_PirateFishers","2d/Preparation_BG_DEFAULT.json"); } else { _this363.h["2d/prep/Event_PirateFishers"] = "2d/Preparation_BG_DEFAULT.json"; } var _this364 = this.m_map; if(__map_reserved["2d/prep/Event_RealisticHurricane.png"] != null) { _this364.setReserved("2d/prep/Event_RealisticHurricane.png","2d/Preparation_BG_DEFAULT.json"); } else { _this364.h["2d/prep/Event_RealisticHurricane.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this365 = this.m_map; if(__map_reserved["2d/prep/Event_RealisticHurricane"] != null) { _this365.setReserved("2d/prep/Event_RealisticHurricane","2d/Preparation_BG_DEFAULT.json"); } else { _this365.h["2d/prep/Event_RealisticHurricane"] = "2d/Preparation_BG_DEFAULT.json"; } var _this366 = this.m_map; if(__map_reserved["2d/prep/Event_SeaRush.png"] != null) { _this366.setReserved("2d/prep/Event_SeaRush.png","2d/Preparation_BG_DEFAULT.json"); } else { _this366.h["2d/prep/Event_SeaRush.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this367 = this.m_map; if(__map_reserved["2d/prep/Event_SeaRush"] != null) { _this367.setReserved("2d/prep/Event_SeaRush","2d/Preparation_BG_DEFAULT.json"); } else { _this367.h["2d/prep/Event_SeaRush"] = "2d/Preparation_BG_DEFAULT.json"; } var _this368 = this.m_map; if(__map_reserved["2d/prep/Event_Superfisher9000.png"] != null) { _this368.setReserved("2d/prep/Event_Superfisher9000.png","2d/Preparation_BG_DEFAULT.json"); } else { _this368.h["2d/prep/Event_Superfisher9000.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this369 = this.m_map; if(__map_reserved["2d/prep/Event_Superfisher9000"] != null) { _this369.setReserved("2d/prep/Event_Superfisher9000","2d/Preparation_BG_DEFAULT.json"); } else { _this369.h["2d/prep/Event_Superfisher9000"] = "2d/Preparation_BG_DEFAULT.json"; } var _this370 = this.m_map; if(__map_reserved["2d/prep/FishEntanglement.png"] != null) { _this370.setReserved("2d/prep/FishEntanglement.png","2d/Preparation_BG_DEFAULT.json"); } else { _this370.h["2d/prep/FishEntanglement.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this371 = this.m_map; if(__map_reserved["2d/prep/FishEntanglement"] != null) { _this371.setReserved("2d/prep/FishEntanglement","2d/Preparation_BG_DEFAULT.json"); } else { _this371.h["2d/prep/FishEntanglement"] = "2d/Preparation_BG_DEFAULT.json"; } var _this372 = this.m_map; if(__map_reserved["2d/prep/MarineProtectedArea.png"] != null) { _this372.setReserved("2d/prep/MarineProtectedArea.png","2d/Preparation_BG_DEFAULT.json"); } else { _this372.h["2d/prep/MarineProtectedArea.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this373 = this.m_map; if(__map_reserved["2d/prep/MarineProtectedArea"] != null) { _this373.setReserved("2d/prep/MarineProtectedArea","2d/Preparation_BG_DEFAULT.json"); } else { _this373.h["2d/prep/MarineProtectedArea"] = "2d/Preparation_BG_DEFAULT.json"; } var _this374 = this.m_map; if(__map_reserved["2d/prep/OffshoreAquaculture.png"] != null) { _this374.setReserved("2d/prep/OffshoreAquaculture.png","2d/Preparation_BG_DEFAULT.json"); } else { _this374.h["2d/prep/OffshoreAquaculture.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this375 = this.m_map; if(__map_reserved["2d/prep/OffshoreAquaculture"] != null) { _this375.setReserved("2d/prep/OffshoreAquaculture","2d/Preparation_BG_DEFAULT.json"); } else { _this375.h["2d/prep/OffshoreAquaculture"] = "2d/Preparation_BG_DEFAULT.json"; } var _this376 = this.m_map; if(__map_reserved["2d/prep/OilSpill.png"] != null) { _this376.setReserved("2d/prep/OilSpill.png","2d/Preparation_BG_DEFAULT.json"); } else { _this376.h["2d/prep/OilSpill.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this377 = this.m_map; if(__map_reserved["2d/prep/OilSpill"] != null) { _this377.setReserved("2d/prep/OilSpill","2d/Preparation_BG_DEFAULT.json"); } else { _this377.h["2d/prep/OilSpill"] = "2d/Preparation_BG_DEFAULT.json"; } var _this378 = this.m_map; if(__map_reserved["2d/prep/Prep_AdditionalFireTruck.png"] != null) { _this378.setReserved("2d/prep/Prep_AdditionalFireTruck.png","2d/Preparation_BG_DEFAULT.json"); } else { _this378.h["2d/prep/Prep_AdditionalFireTruck.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this379 = this.m_map; if(__map_reserved["2d/prep/Prep_AdditionalFireTruck"] != null) { _this379.setReserved("2d/prep/Prep_AdditionalFireTruck","2d/Preparation_BG_DEFAULT.json"); } else { _this379.h["2d/prep/Prep_AdditionalFireTruck"] = "2d/Preparation_BG_DEFAULT.json"; } var _this380 = this.m_map; if(__map_reserved["2d/prep/Prep_AdditionalIndustry.png"] != null) { _this380.setReserved("2d/prep/Prep_AdditionalIndustry.png","2d/Preparation_BG_DEFAULT.json"); } else { _this380.h["2d/prep/Prep_AdditionalIndustry.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this381 = this.m_map; if(__map_reserved["2d/prep/Prep_AdditionalIndustry"] != null) { _this381.setReserved("2d/prep/Prep_AdditionalIndustry","2d/Preparation_BG_DEFAULT.json"); } else { _this381.h["2d/prep/Prep_AdditionalIndustry"] = "2d/Preparation_BG_DEFAULT.json"; } var _this382 = this.m_map; if(__map_reserved["2d/prep/Prep_AdditionalPoliceOfficer.png"] != null) { _this382.setReserved("2d/prep/Prep_AdditionalPoliceOfficer.png","2d/Preparation_BG_DEFAULT.json"); } else { _this382.h["2d/prep/Prep_AdditionalPoliceOfficer.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this383 = this.m_map; if(__map_reserved["2d/prep/Prep_AdditionalPoliceOfficer"] != null) { _this383.setReserved("2d/prep/Prep_AdditionalPoliceOfficer","2d/Preparation_BG_DEFAULT.json"); } else { _this383.h["2d/prep/Prep_AdditionalPoliceOfficer"] = "2d/Preparation_BG_DEFAULT.json"; } var _this384 = this.m_map; if(__map_reserved["2d/prep/Prep_Breakwater.png"] != null) { _this384.setReserved("2d/prep/Prep_Breakwater.png","2d/Preparation_BG_DEFAULT.json"); } else { _this384.h["2d/prep/Prep_Breakwater.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this385 = this.m_map; if(__map_reserved["2d/prep/Prep_Breakwater"] != null) { _this385.setReserved("2d/prep/Prep_Breakwater","2d/Preparation_BG_DEFAULT.json"); } else { _this385.h["2d/prep/Prep_Breakwater"] = "2d/Preparation_BG_DEFAULT.json"; } var _this386 = this.m_map; if(__map_reserved["2d/prep/Prep_CoastalCondominiums.png"] != null) { _this386.setReserved("2d/prep/Prep_CoastalCondominiums.png","2d/Preparation_BG_DEFAULT.json"); } else { _this386.h["2d/prep/Prep_CoastalCondominiums.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this387 = this.m_map; if(__map_reserved["2d/prep/Prep_CoastalCondominiums"] != null) { _this387.setReserved("2d/prep/Prep_CoastalCondominiums","2d/Preparation_BG_DEFAULT.json"); } else { _this387.h["2d/prep/Prep_CoastalCondominiums"] = "2d/Preparation_BG_DEFAULT.json"; } var _this388 = this.m_map; if(__map_reserved["2d/prep/Prep_CoastalFestival.png"] != null) { _this388.setReserved("2d/prep/Prep_CoastalFestival.png","2d/Preparation_BG_DEFAULT.json"); } else { _this388.h["2d/prep/Prep_CoastalFestival.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this389 = this.m_map; if(__map_reserved["2d/prep/Prep_CoastalFestival"] != null) { _this389.setReserved("2d/prep/Prep_CoastalFestival","2d/Preparation_BG_DEFAULT.json"); } else { _this389.h["2d/prep/Prep_CoastalFestival"] = "2d/Preparation_BG_DEFAULT.json"; } var _this390 = this.m_map; if(__map_reserved["2d/prep/Prep_CreateHatchery.png"] != null) { _this390.setReserved("2d/prep/Prep_CreateHatchery.png","2d/Preparation_BG_DEFAULT.json"); } else { _this390.h["2d/prep/Prep_CreateHatchery.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this391 = this.m_map; if(__map_reserved["2d/prep/Prep_CreateHatchery"] != null) { _this391.setReserved("2d/prep/Prep_CreateHatchery","2d/Preparation_BG_DEFAULT.json"); } else { _this391.h["2d/prep/Prep_CreateHatchery"] = "2d/Preparation_BG_DEFAULT.json"; } var _this392 = this.m_map; if(__map_reserved["2d/prep/Prep_Curfew.png"] != null) { _this392.setReserved("2d/prep/Prep_Curfew.png","2d/Preparation_BG_DEFAULT.json"); } else { _this392.h["2d/prep/Prep_Curfew.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this393 = this.m_map; if(__map_reserved["2d/prep/Prep_Curfew"] != null) { _this393.setReserved("2d/prep/Prep_Curfew","2d/Preparation_BG_DEFAULT.json"); } else { _this393.h["2d/prep/Prep_Curfew"] = "2d/Preparation_BG_DEFAULT.json"; } var _this394 = this.m_map; if(__map_reserved["2d/prep/Prep_EconomicDevelopment.png"] != null) { _this394.setReserved("2d/prep/Prep_EconomicDevelopment.png","2d/Preparation_BG_DEFAULT.json"); } else { _this394.h["2d/prep/Prep_EconomicDevelopment.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this395 = this.m_map; if(__map_reserved["2d/prep/Prep_EconomicDevelopment"] != null) { _this395.setReserved("2d/prep/Prep_EconomicDevelopment","2d/Preparation_BG_DEFAULT.json"); } else { _this395.h["2d/prep/Prep_EconomicDevelopment"] = "2d/Preparation_BG_DEFAULT.json"; } var _this396 = this.m_map; if(__map_reserved["2d/prep/Prep_ExpandLocalBusiness.png"] != null) { _this396.setReserved("2d/prep/Prep_ExpandLocalBusiness.png","2d/Preparation_BG_DEFAULT.json"); } else { _this396.h["2d/prep/Prep_ExpandLocalBusiness.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this397 = this.m_map; if(__map_reserved["2d/prep/Prep_ExpandLocalBusiness"] != null) { _this397.setReserved("2d/prep/Prep_ExpandLocalBusiness","2d/Preparation_BG_DEFAULT.json"); } else { _this397.h["2d/prep/Prep_ExpandLocalBusiness"] = "2d/Preparation_BG_DEFAULT.json"; } var _this398 = this.m_map; if(__map_reserved["2d/prep/Prep_ExpandProcessingPlant.png"] != null) { _this398.setReserved("2d/prep/Prep_ExpandProcessingPlant.png","2d/Preparation_BG_DEFAULT.json"); } else { _this398.h["2d/prep/Prep_ExpandProcessingPlant.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this399 = this.m_map; if(__map_reserved["2d/prep/Prep_ExpandProcessingPlant"] != null) { _this399.setReserved("2d/prep/Prep_ExpandProcessingPlant","2d/Preparation_BG_DEFAULT.json"); } else { _this399.h["2d/prep/Prep_ExpandProcessingPlant"] = "2d/Preparation_BG_DEFAULT.json"; } var _this400 = this.m_map; if(__map_reserved["2d/prep/Prep_FishDifferentSpecies.png"] != null) { _this400.setReserved("2d/prep/Prep_FishDifferentSpecies.png","2d/Preparation_BG_DEFAULT.json"); } else { _this400.h["2d/prep/Prep_FishDifferentSpecies.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this401 = this.m_map; if(__map_reserved["2d/prep/Prep_FishDifferentSpecies"] != null) { _this401.setReserved("2d/prep/Prep_FishDifferentSpecies","2d/Preparation_BG_DEFAULT.json"); } else { _this401.h["2d/prep/Prep_FishDifferentSpecies"] = "2d/Preparation_BG_DEFAULT.json"; } var _this402 = this.m_map; if(__map_reserved["2d/prep/Prep_FishingSkillsTraining.png"] != null) { _this402.setReserved("2d/prep/Prep_FishingSkillsTraining.png","2d/Preparation_BG_DEFAULT.json"); } else { _this402.h["2d/prep/Prep_FishingSkillsTraining.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this403 = this.m_map; if(__map_reserved["2d/prep/Prep_FishingSkillsTraining"] != null) { _this403.setReserved("2d/prep/Prep_FishingSkillsTraining","2d/Preparation_BG_DEFAULT.json"); } else { _this403.h["2d/prep/Prep_FishingSkillsTraining"] = "2d/Preparation_BG_DEFAULT.json"; } var _this404 = this.m_map; if(__map_reserved["2d/prep/Prep_HarborHotel.png"] != null) { _this404.setReserved("2d/prep/Prep_HarborHotel.png","2d/Preparation_BG_DEFAULT.json"); } else { _this404.h["2d/prep/Prep_HarborHotel.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this405 = this.m_map; if(__map_reserved["2d/prep/Prep_HarborHotel"] != null) { _this405.setReserved("2d/prep/Prep_HarborHotel","2d/Preparation_BG_DEFAULT.json"); } else { _this405.h["2d/prep/Prep_HarborHotel"] = "2d/Preparation_BG_DEFAULT.json"; } var _this406 = this.m_map; if(__map_reserved["2d/prep/Prep_HarborMedCenter.png"] != null) { _this406.setReserved("2d/prep/Prep_HarborMedCenter.png","2d/Preparation_BG_DEFAULT.json"); } else { _this406.h["2d/prep/Prep_HarborMedCenter.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this407 = this.m_map; if(__map_reserved["2d/prep/Prep_HarborMedCenter"] != null) { _this407.setReserved("2d/prep/Prep_HarborMedCenter","2d/Preparation_BG_DEFAULT.json"); } else { _this407.h["2d/prep/Prep_HarborMedCenter"] = "2d/Preparation_BG_DEFAULT.json"; } var _this408 = this.m_map; if(__map_reserved["2d/prep/Prep_HarborRenovation.png"] != null) { _this408.setReserved("2d/prep/Prep_HarborRenovation.png","2d/Preparation_BG_DEFAULT.json"); } else { _this408.h["2d/prep/Prep_HarborRenovation.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this409 = this.m_map; if(__map_reserved["2d/prep/Prep_HarborRenovation"] != null) { _this409.setReserved("2d/prep/Prep_HarborRenovation","2d/Preparation_BG_DEFAULT.json"); } else { _this409.h["2d/prep/Prep_HarborRenovation"] = "2d/Preparation_BG_DEFAULT.json"; } var _this410 = this.m_map; if(__map_reserved["2d/prep/Prep_LiquorRestriction.png"] != null) { _this410.setReserved("2d/prep/Prep_LiquorRestriction.png","2d/Preparation_BG_DEFAULT.json"); } else { _this410.h["2d/prep/Prep_LiquorRestriction.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this411 = this.m_map; if(__map_reserved["2d/prep/Prep_LiquorRestriction"] != null) { _this411.setReserved("2d/prep/Prep_LiquorRestriction","2d/Preparation_BG_DEFAULT.json"); } else { _this411.h["2d/prep/Prep_LiquorRestriction"] = "2d/Preparation_BG_DEFAULT.json"; } var _this412 = this.m_map; if(__map_reserved["2d/prep/Prep_LivingShoreline.png"] != null) { _this412.setReserved("2d/prep/Prep_LivingShoreline.png","2d/Preparation_BG_DEFAULT.json"); } else { _this412.h["2d/prep/Prep_LivingShoreline.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this413 = this.m_map; if(__map_reserved["2d/prep/Prep_LivingShoreline"] != null) { _this413.setReserved("2d/prep/Prep_LivingShoreline","2d/Preparation_BG_DEFAULT.json"); } else { _this413.h["2d/prep/Prep_LivingShoreline"] = "2d/Preparation_BG_DEFAULT.json"; } var _this414 = this.m_map; if(__map_reserved["2d/prep/Prep_LongerFishingHours.png"] != null) { _this414.setReserved("2d/prep/Prep_LongerFishingHours.png","2d/Preparation_BG_DEFAULT.json"); } else { _this414.h["2d/prep/Prep_LongerFishingHours.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this415 = this.m_map; if(__map_reserved["2d/prep/Prep_LongerFishingHours"] != null) { _this415.setReserved("2d/prep/Prep_LongerFishingHours","2d/Preparation_BG_DEFAULT.json"); } else { _this415.h["2d/prep/Prep_LongerFishingHours"] = "2d/Preparation_BG_DEFAULT.json"; } var _this416 = this.m_map; if(__map_reserved["2d/prep/Prep_MarineProtectedArea.png"] != null) { _this416.setReserved("2d/prep/Prep_MarineProtectedArea.png","2d/Preparation_BG_DEFAULT.json"); } else { _this416.h["2d/prep/Prep_MarineProtectedArea.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this417 = this.m_map; if(__map_reserved["2d/prep/Prep_MarineProtectedArea"] != null) { _this417.setReserved("2d/prep/Prep_MarineProtectedArea","2d/Preparation_BG_DEFAULT.json"); } else { _this417.h["2d/prep/Prep_MarineProtectedArea"] = "2d/Preparation_BG_DEFAULT.json"; } var _this418 = this.m_map; if(__map_reserved["2d/prep/Prep_NewBars.png"] != null) { _this418.setReserved("2d/prep/Prep_NewBars.png","2d/Preparation_BG_DEFAULT.json"); } else { _this418.h["2d/prep/Prep_NewBars.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this419 = this.m_map; if(__map_reserved["2d/prep/Prep_NewBars"] != null) { _this419.setReserved("2d/prep/Prep_NewBars","2d/Preparation_BG_DEFAULT.json"); } else { _this419.h["2d/prep/Prep_NewBars"] = "2d/Preparation_BG_DEFAULT.json"; } var _this420 = this.m_map; if(__map_reserved["2d/prep/Prep_NewJobProgram.png"] != null) { _this420.setReserved("2d/prep/Prep_NewJobProgram.png","2d/Preparation_BG_DEFAULT.json"); } else { _this420.h["2d/prep/Prep_NewJobProgram.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this421 = this.m_map; if(__map_reserved["2d/prep/Prep_NewJobProgram"] != null) { _this421.setReserved("2d/prep/Prep_NewJobProgram","2d/Preparation_BG_DEFAULT.json"); } else { _this421.h["2d/prep/Prep_NewJobProgram"] = "2d/Preparation_BG_DEFAULT.json"; } var _this422 = this.m_map; if(__map_reserved["2d/prep/Prep_NewMall.png"] != null) { _this422.setReserved("2d/prep/Prep_NewMall.png","2d/Preparation_BG_DEFAULT.json"); } else { _this422.h["2d/prep/Prep_NewMall.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this423 = this.m_map; if(__map_reserved["2d/prep/Prep_NewMall"] != null) { _this423.setReserved("2d/prep/Prep_NewMall","2d/Preparation_BG_DEFAULT.json"); } else { _this423.h["2d/prep/Prep_NewMall"] = "2d/Preparation_BG_DEFAULT.json"; } var _this424 = this.m_map; if(__map_reserved["2d/prep/Prep_OffShoreWindfarm.png"] != null) { _this424.setReserved("2d/prep/Prep_OffShoreWindfarm.png","2d/Preparation_BG_DEFAULT.json"); } else { _this424.h["2d/prep/Prep_OffShoreWindfarm.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this425 = this.m_map; if(__map_reserved["2d/prep/Prep_OffShoreWindfarm"] != null) { _this425.setReserved("2d/prep/Prep_OffShoreWindfarm","2d/Preparation_BG_DEFAULT.json"); } else { _this425.h["2d/prep/Prep_OffShoreWindfarm"] = "2d/Preparation_BG_DEFAULT.json"; } var _this426 = this.m_map; if(__map_reserved["2d/prep/Prep_PreparednessWorkshop.png"] != null) { _this426.setReserved("2d/prep/Prep_PreparednessWorkshop.png","2d/Preparation_BG_DEFAULT.json"); } else { _this426.h["2d/prep/Prep_PreparednessWorkshop.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this427 = this.m_map; if(__map_reserved["2d/prep/Prep_PreparednessWorkshop"] != null) { _this427.setReserved("2d/prep/Prep_PreparednessWorkshop","2d/Preparation_BG_DEFAULT.json"); } else { _this427.h["2d/prep/Prep_PreparednessWorkshop"] = "2d/Preparation_BG_DEFAULT.json"; } var _this428 = this.m_map; if(__map_reserved["2d/prep/Prep_PromoteLocalSeafood.png"] != null) { _this428.setReserved("2d/prep/Prep_PromoteLocalSeafood.png","2d/Preparation_BG_DEFAULT.json"); } else { _this428.h["2d/prep/Prep_PromoteLocalSeafood.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this429 = this.m_map; if(__map_reserved["2d/prep/Prep_PromoteLocalSeafood"] != null) { _this429.setReserved("2d/prep/Prep_PromoteLocalSeafood","2d/Preparation_BG_DEFAULT.json"); } else { _this429.h["2d/prep/Prep_PromoteLocalSeafood"] = "2d/Preparation_BG_DEFAULT.json"; } var _this430 = this.m_map; if(__map_reserved["2d/prep/Prep_Regatta.png"] != null) { _this430.setReserved("2d/prep/Prep_Regatta.png","2d/Preparation_BG_DEFAULT.json"); } else { _this430.h["2d/prep/Prep_Regatta.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this431 = this.m_map; if(__map_reserved["2d/prep/Prep_Regatta"] != null) { _this431.setReserved("2d/prep/Prep_Regatta","2d/Preparation_BG_DEFAULT.json"); } else { _this431.h["2d/prep/Prep_Regatta"] = "2d/Preparation_BG_DEFAULT.json"; } var _this432 = this.m_map; if(__map_reserved["2d/prep/Prep_RenovateSchool.png"] != null) { _this432.setReserved("2d/prep/Prep_RenovateSchool.png","2d/Preparation_BG_DEFAULT.json"); } else { _this432.h["2d/prep/Prep_RenovateSchool.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this433 = this.m_map; if(__map_reserved["2d/prep/Prep_RenovateSchool"] != null) { _this433.setReserved("2d/prep/Prep_RenovateSchool","2d/Preparation_BG_DEFAULT.json"); } else { _this433.h["2d/prep/Prep_RenovateSchool"] = "2d/Preparation_BG_DEFAULT.json"; } var _this434 = this.m_map; if(__map_reserved["2d/prep/Prep_RepairAgingPowerGrid.png"] != null) { _this434.setReserved("2d/prep/Prep_RepairAgingPowerGrid.png","2d/Preparation_BG_DEFAULT.json"); } else { _this434.h["2d/prep/Prep_RepairAgingPowerGrid.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this435 = this.m_map; if(__map_reserved["2d/prep/Prep_RepairAgingPowerGrid"] != null) { _this435.setReserved("2d/prep/Prep_RepairAgingPowerGrid","2d/Preparation_BG_DEFAULT.json"); } else { _this435.h["2d/prep/Prep_RepairAgingPowerGrid"] = "2d/Preparation_BG_DEFAULT.json"; } var _this436 = this.m_map; if(__map_reserved["2d/prep/Prep_RepairRoads.png"] != null) { _this436.setReserved("2d/prep/Prep_RepairRoads.png","2d/Preparation_BG_DEFAULT.json"); } else { _this436.h["2d/prep/Prep_RepairRoads.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this437 = this.m_map; if(__map_reserved["2d/prep/Prep_RepairRoads"] != null) { _this437.setReserved("2d/prep/Prep_RepairRoads","2d/Preparation_BG_DEFAULT.json"); } else { _this437.h["2d/prep/Prep_RepairRoads"] = "2d/Preparation_BG_DEFAULT.json"; } var _this438 = this.m_map; if(__map_reserved["2d/prep/Prep_RestrictRecreationalFishing.png"] != null) { _this438.setReserved("2d/prep/Prep_RestrictRecreationalFishing.png","2d/Preparation_BG_DEFAULT.json"); } else { _this438.h["2d/prep/Prep_RestrictRecreationalFishing.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this439 = this.m_map; if(__map_reserved["2d/prep/Prep_RestrictRecreationalFishing"] != null) { _this439.setReserved("2d/prep/Prep_RestrictRecreationalFishing","2d/Preparation_BG_DEFAULT.json"); } else { _this439.h["2d/prep/Prep_RestrictRecreationalFishing"] = "2d/Preparation_BG_DEFAULT.json"; } var _this440 = this.m_map; if(__map_reserved["2d/prep/Prep_SeaWall.png"] != null) { _this440.setReserved("2d/prep/Prep_SeaWall.png","2d/Preparation_BG_DEFAULT.json"); } else { _this440.h["2d/prep/Prep_SeaWall.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this441 = this.m_map; if(__map_reserved["2d/prep/Prep_SeaWall"] != null) { _this441.setReserved("2d/prep/Prep_SeaWall","2d/Preparation_BG_DEFAULT.json"); } else { _this441.h["2d/prep/Prep_SeaWall"] = "2d/Preparation_BG_DEFAULT.json"; } var _this442 = this.m_map; if(__map_reserved["2d/prep/Prep_TighterPollutionControl.png"] != null) { _this442.setReserved("2d/prep/Prep_TighterPollutionControl.png","2d/Preparation_BG_DEFAULT.json"); } else { _this442.h["2d/prep/Prep_TighterPollutionControl.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this443 = this.m_map; if(__map_reserved["2d/prep/Prep_TighterPollutionControl"] != null) { _this443.setReserved("2d/prep/Prep_TighterPollutionControl","2d/Preparation_BG_DEFAULT.json"); } else { _this443.h["2d/prep/Prep_TighterPollutionControl"] = "2d/Preparation_BG_DEFAULT.json"; } var _this444 = this.m_map; if(__map_reserved["2d/prep/Prep_TourismZoningRestrictions.png"] != null) { _this444.setReserved("2d/prep/Prep_TourismZoningRestrictions.png","2d/Preparation_BG_DEFAULT.json"); } else { _this444.h["2d/prep/Prep_TourismZoningRestrictions.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this445 = this.m_map; if(__map_reserved["2d/prep/Prep_TourismZoningRestrictions"] != null) { _this445.setReserved("2d/prep/Prep_TourismZoningRestrictions","2d/Preparation_BG_DEFAULT.json"); } else { _this445.h["2d/prep/Prep_TourismZoningRestrictions"] = "2d/Preparation_BG_DEFAULT.json"; } var _this446 = this.m_map; if(__map_reserved["2d/prep/Prep_UpgradeSewerSystem.png"] != null) { _this446.setReserved("2d/prep/Prep_UpgradeSewerSystem.png","2d/Preparation_BG_DEFAULT.json"); } else { _this446.h["2d/prep/Prep_UpgradeSewerSystem.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this447 = this.m_map; if(__map_reserved["2d/prep/Prep_UpgradeSewerSystem"] != null) { _this447.setReserved("2d/prep/Prep_UpgradeSewerSystem","2d/Preparation_BG_DEFAULT.json"); } else { _this447.h["2d/prep/Prep_UpgradeSewerSystem"] = "2d/Preparation_BG_DEFAULT.json"; } var _this448 = this.m_map; if(__map_reserved["2d/prep/Prep_UpscaleShops.png"] != null) { _this448.setReserved("2d/prep/Prep_UpscaleShops.png","2d/Preparation_BG_DEFAULT.json"); } else { _this448.h["2d/prep/Prep_UpscaleShops.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this449 = this.m_map; if(__map_reserved["2d/prep/Prep_UpscaleShops"] != null) { _this449.setReserved("2d/prep/Prep_UpscaleShops","2d/Preparation_BG_DEFAULT.json"); } else { _this449.h["2d/prep/Prep_UpscaleShops"] = "2d/Preparation_BG_DEFAULT.json"; } var _this450 = this.m_map; if(__map_reserved["2d/prep/Prep_VaccinationProgram.png"] != null) { _this450.setReserved("2d/prep/Prep_VaccinationProgram.png","2d/Preparation_BG_DEFAULT.json"); } else { _this450.h["2d/prep/Prep_VaccinationProgram.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this451 = this.m_map; if(__map_reserved["2d/prep/Prep_VaccinationProgram"] != null) { _this451.setReserved("2d/prep/Prep_VaccinationProgram","2d/Preparation_BG_DEFAULT.json"); } else { _this451.h["2d/prep/Prep_VaccinationProgram"] = "2d/Preparation_BG_DEFAULT.json"; } var _this452 = this.m_map; if(__map_reserved["2d/prep/SH_EmergencyWorkers.png"] != null) { _this452.setReserved("2d/prep/SH_EmergencyWorkers.png","2d/Preparation_BG_DEFAULT.json"); } else { _this452.h["2d/prep/SH_EmergencyWorkers.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this453 = this.m_map; if(__map_reserved["2d/prep/SH_EmergencyWorkers"] != null) { _this453.setReserved("2d/prep/SH_EmergencyWorkers","2d/Preparation_BG_DEFAULT.json"); } else { _this453.h["2d/prep/SH_EmergencyWorkers"] = "2d/Preparation_BG_DEFAULT.json"; } var _this454 = this.m_map; if(__map_reserved["2d/prep/SH_IndustrialFishing.png"] != null) { _this454.setReserved("2d/prep/SH_IndustrialFishing.png","2d/Preparation_BG_DEFAULT.json"); } else { _this454.h["2d/prep/SH_IndustrialFishing.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this455 = this.m_map; if(__map_reserved["2d/prep/SH_IndustrialFishing"] != null) { _this455.setReserved("2d/prep/SH_IndustrialFishing","2d/Preparation_BG_DEFAULT.json"); } else { _this455.h["2d/prep/SH_IndustrialFishing"] = "2d/Preparation_BG_DEFAULT.json"; } var _this456 = this.m_map; if(__map_reserved["2d/prep/SH_RecreationalFishing.png"] != null) { _this456.setReserved("2d/prep/SH_RecreationalFishing.png","2d/Preparation_BG_DEFAULT.json"); } else { _this456.h["2d/prep/SH_RecreationalFishing.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this457 = this.m_map; if(__map_reserved["2d/prep/SH_RecreationalFishing"] != null) { _this457.setReserved("2d/prep/SH_RecreationalFishing","2d/Preparation_BG_DEFAULT.json"); } else { _this457.h["2d/prep/SH_RecreationalFishing"] = "2d/Preparation_BG_DEFAULT.json"; } var _this458 = this.m_map; if(__map_reserved["2d/prep/SH_SmallBusinessOwners.png"] != null) { _this458.setReserved("2d/prep/SH_SmallBusinessOwners.png","2d/Preparation_BG_DEFAULT.json"); } else { _this458.h["2d/prep/SH_SmallBusinessOwners.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this459 = this.m_map; if(__map_reserved["2d/prep/SH_SmallBusinessOwners"] != null) { _this459.setReserved("2d/prep/SH_SmallBusinessOwners","2d/Preparation_BG_DEFAULT.json"); } else { _this459.h["2d/prep/SH_SmallBusinessOwners"] = "2d/Preparation_BG_DEFAULT.json"; } var _this460 = this.m_map; if(__map_reserved["2d/prep/SeaTurtle.png"] != null) { _this460.setReserved("2d/prep/SeaTurtle.png","2d/Preparation_BG_DEFAULT.json"); } else { _this460.h["2d/prep/SeaTurtle.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this461 = this.m_map; if(__map_reserved["2d/prep/SeaTurtle"] != null) { _this461.setReserved("2d/prep/SeaTurtle","2d/Preparation_BG_DEFAULT.json"); } else { _this461.h["2d/prep/SeaTurtle"] = "2d/Preparation_BG_DEFAULT.json"; } var _this462 = this.m_map; if(__map_reserved["2d/prep/SealHaul.png"] != null) { _this462.setReserved("2d/prep/SealHaul.png","2d/Preparation_BG_DEFAULT.json"); } else { _this462.h["2d/prep/SealHaul.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this463 = this.m_map; if(__map_reserved["2d/prep/SealHaul"] != null) { _this463.setReserved("2d/prep/SealHaul","2d/Preparation_BG_DEFAULT.json"); } else { _this463.h["2d/prep/SealHaul"] = "2d/Preparation_BG_DEFAULT.json"; } var _this464 = this.m_map; if(__map_reserved["2d/prep/WaterCrisis.png"] != null) { _this464.setReserved("2d/prep/WaterCrisis.png","2d/Preparation_BG_DEFAULT.json"); } else { _this464.h["2d/prep/WaterCrisis.png"] = "2d/Preparation_BG_DEFAULT.json"; } var _this465 = this.m_map; if(__map_reserved["2d/prep/WaterCrisis"] != null) { _this465.setReserved("2d/prep/WaterCrisis","2d/Preparation_BG_DEFAULT.json"); } else { _this465.h["2d/prep/WaterCrisis"] = "2d/Preparation_BG_DEFAULT.json"; } } ,__class__: assets_ResourceMap }; var assets_SoundLib = function() { }; $hxClasses["assets.SoundLib"] = assets_SoundLib; assets_SoundLib.__name__ = ["assets","SoundLib"]; var assets_strings_PaistStringsXmlElement = function(id,english) { this.id = id; this.english = english; }; $hxClasses["assets.strings.PaistStringsXmlElement"] = assets_strings_PaistStringsXmlElement; assets_strings_PaistStringsXmlElement.__name__ = ["assets","strings","PaistStringsXmlElement"]; assets_strings_PaistStringsXmlElement.prototype = { id: null ,english: null ,__class__: assets_strings_PaistStringsXmlElement }; var assets_strings_PaistStringsValues = function() { }; $hxClasses["assets.strings.PaistStringsValues"] = assets_strings_PaistStringsValues; assets_strings_PaistStringsValues.__name__ = ["assets","strings","PaistStringsValues"]; assets_strings_PaistStringsValues.getValues = function() { var map = new haxe_ds_StringMap(); var value = new assets_strings_PaistStringsXmlElement("BTN_PLAY","Play"); if(__map_reserved["BTN_PLAY"] != null) { map.setReserved("BTN_PLAY",value); } else { map.h["BTN_PLAY"] = value; } var value1 = new assets_strings_PaistStringsXmlElement("BTN_PLAY_AGAIN","Play Again"); if(__map_reserved["BTN_PLAY_AGAIN"] != null) { map.setReserved("BTN_PLAY_AGAIN",value1); } else { map.h["BTN_PLAY_AGAIN"] = value1; } var value2 = new assets_strings_PaistStringsXmlElement("LOAD_PROMPT","Loading..."); if(__map_reserved["LOAD_PROMPT"] != null) { map.setReserved("LOAD_PROMPT",value2); } else { map.h["LOAD_PROMPT"] = value2; } var value3 = new assets_strings_PaistStringsXmlElement("LOAD_PROMPT_SHORT","Loading"); if(__map_reserved["LOAD_PROMPT_SHORT"] != null) { map.setReserved("LOAD_PROMPT_SHORT",value3); } else { map.h["LOAD_PROMPT_SHORT"] = value3; } var value4 = new assets_strings_PaistStringsXmlElement("HEADER_SELECT","Module Select"); if(__map_reserved["HEADER_SELECT"] != null) { map.setReserved("HEADER_SELECT",value4); } else { map.h["HEADER_SELECT"] = value4; } var value5 = new assets_strings_PaistStringsXmlElement("TEST_GAME_TITLE","System One: Game One"); if(__map_reserved["TEST_GAME_TITLE"] != null) { map.setReserved("TEST_GAME_TITLE",value5); } else { map.h["TEST_GAME_TITLE"] = value5; } var value6 = new assets_strings_PaistStringsXmlElement("TEST_PRETEST","Pre-test"); if(__map_reserved["TEST_PRETEST"] != null) { map.setReserved("TEST_PRETEST",value6); } else { map.h["TEST_PRETEST"] = value6; } var value7 = new assets_strings_PaistStringsXmlElement("TEST_POSTTEST","Post-test"); if(__map_reserved["TEST_POSTTEST"] != null) { map.setReserved("TEST_POSTTEST",value7); } else { map.h["TEST_POSTTEST"] = value7; } var value8 = new assets_strings_PaistStringsXmlElement("TEST_INPUT_PROMPT","Please type your answer in the box below:"); if(__map_reserved["TEST_INPUT_PROMPT"] != null) { map.setReserved("TEST_INPUT_PROMPT",value8); } else { map.h["TEST_INPUT_PROMPT"] = value8; } var value9 = new assets_strings_PaistStringsXmlElement("TEST_CHOICE_PROMPT","Please select one of the following:"); if(__map_reserved["TEST_CHOICE_PROMPT"] != null) { map.setReserved("TEST_CHOICE_PROMPT",value9); } else { map.h["TEST_CHOICE_PROMPT"] = value9; } var value10 = new assets_strings_PaistStringsXmlElement("QUESTION_INDEX","Question {CURRENT} of {TOTAL}"); if(__map_reserved["QUESTION_INDEX"] != null) { map.setReserved("QUESTION_INDEX",value10); } else { map.h["QUESTION_INDEX"] = value10; } var value11 = new assets_strings_PaistStringsXmlElement("PRETEST_QUESTION_1","Anchoring Numeric: Without looking it up, think about whether the average winter temperature in Antarctica is higher or lower than 1 degree Fahrenheit. What is the average winter temperature in Antarctica (in degrees Fahrenheit)?"); if(__map_reserved["PRETEST_QUESTION_1"] != null) { map.setReserved("PRETEST_QUESTION_1",value11); } else { map.h["PRETEST_QUESTION_1"] = value11; } var value12 = new assets_strings_PaistStringsXmlElement("PRETEST_QUESTION_2","Anchoring Numeric: Think about whether the height of the tallest redwood tree is greater or less than 1516 feet. How tall (in feet) is the height of the tallest redwood tree?"); if(__map_reserved["PRETEST_QUESTION_2"] != null) { map.setReserved("PRETEST_QUESTION_2",value12); } else { map.h["PRETEST_QUESTION_2"] = value12; } var value13 = new assets_strings_PaistStringsXmlElement("PRETEST_QUESTION_3","Base Rate - Consider a group of individuals in which 80% are recently released inmates and 20% are nurses: An individual drawn at random has turned in a lost wallet. Which of the following is more likely:"); if(__map_reserved["PRETEST_QUESTION_3"] != null) { map.setReserved("PRETEST_QUESTION_3",value13); } else { map.h["PRETEST_QUESTION_3"] = value13; } var value14 = new assets_strings_PaistStringsXmlElement("PRETEST_QUESTION_4","Base Rate - Jack's freshman year roommate provided a description of himself, including this excerpt, \"I love to travel and investigate new places. People tell me I'm fun to talk to because I have a good memory for hilarious phrases and interesting stores. They also enjoy my music collection, especially the variety on nonEnglish songs I've picked up over the years.\" Two years from now, which do you think is most likely?"); if(__map_reserved["PRETEST_QUESTION_4"] != null) { map.setReserved("PRETEST_QUESTION_4",value14); } else { map.h["PRETEST_QUESTION_4"] = value14; } var value15 = new assets_strings_PaistStringsXmlElement("PRETEST_QUESTION_5","Randomness - The Hullaballoo Festival is held every year after the mayor of one of the two rival towns of Marysville and Burlingame draws one of two rabbits out of a hat. When a black rabbit is drawn, the festival is held in Marysville, and when a brown rabbit is drawn out of the hat, the festival is held in Burlingame. Over the past four years, a black rabbit has been drawn from the hat. Where is the festival more likely to be held this year? "); if(__map_reserved["PRETEST_QUESTION_5"] != null) { map.setReserved("PRETEST_QUESTION_5",value15); } else { map.h["PRETEST_QUESTION_5"] = value15; } var value16 = new assets_strings_PaistStringsXmlElement("PRETEST_QUESTION_6","Diane's favorite game show tells participants that their final prize is behind one of three doors. Diane keeps track of which door the prizes were behind for each episode (1, 2, or 3), and many, many episodes later, has concluded that there is an equal probability (1/3) that the prize is behind a particular door. In a random selection of seven episodes, the prize is behind Door 2 five times in a row. What do you think is the likelihood that the prize will be behind Door 2 in the next episode?"); if(__map_reserved["PRETEST_QUESTION_6"] != null) { map.setReserved("PRETEST_QUESTION_6",value16); } else { map.h["PRETEST_QUESTION_6"] = value16; } var value17 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_3_1","This person is a nurse"); if(__map_reserved["PRETEST_ANSWER_3_1"] != null) { map.setReserved("PRETEST_ANSWER_3_1",value17); } else { map.h["PRETEST_ANSWER_3_1"] = value17; } var value18 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_3_2","This person is a former inmate"); if(__map_reserved["PRETEST_ANSWER_3_2"] != null) { map.setReserved("PRETEST_ANSWER_3_2",value18); } else { map.h["PRETEST_ANSWER_3_2"] = value18; } var value19 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_4_1","Jack's roommate became a comedian."); if(__map_reserved["PRETEST_ANSWER_4_1"] != null) { map.setReserved("PRETEST_ANSWER_4_1",value19); } else { map.h["PRETEST_ANSWER_4_1"] = value19; } var value20 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_4_2","Jack's roommate chose to study Business Administration."); if(__map_reserved["PRETEST_ANSWER_4_2"] != null) { map.setReserved("PRETEST_ANSWER_4_2",value20); } else { map.h["PRETEST_ANSWER_4_2"] = value20; } var value21 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_4_3","Jack's roommate chose to live in Japan."); if(__map_reserved["PRETEST_ANSWER_4_3"] != null) { map.setReserved("PRETEST_ANSWER_4_3",value21); } else { map.h["PRETEST_ANSWER_4_3"] = value21; } var value22 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_5_1","Burlingame."); if(__map_reserved["PRETEST_ANSWER_5_1"] != null) { map.setReserved("PRETEST_ANSWER_5_1",value22); } else { map.h["PRETEST_ANSWER_5_1"] = value22; } var value23 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_5_2","Marysville."); if(__map_reserved["PRETEST_ANSWER_5_2"] != null) { map.setReserved("PRETEST_ANSWER_5_2",value23); } else { map.h["PRETEST_ANSWER_5_2"] = value23; } var value24 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_5_3","Each town is equally likely to host the Hullaballoo Festival."); if(__map_reserved["PRETEST_ANSWER_5_3"] != null) { map.setReserved("PRETEST_ANSWER_5_3",value24); } else { map.h["PRETEST_ANSWER_5_3"] = value24; } var value25 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_6_1","1"); if(__map_reserved["PRETEST_ANSWER_6_1"] != null) { map.setReserved("PRETEST_ANSWER_6_1",value25); } else { map.h["PRETEST_ANSWER_6_1"] = value25; } var value26 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_6_2","0.66"); if(__map_reserved["PRETEST_ANSWER_6_2"] != null) { map.setReserved("PRETEST_ANSWER_6_2",value26); } else { map.h["PRETEST_ANSWER_6_2"] = value26; } var value27 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_6_3","0.33"); if(__map_reserved["PRETEST_ANSWER_6_3"] != null) { map.setReserved("PRETEST_ANSWER_6_3",value27); } else { map.h["PRETEST_ANSWER_6_3"] = value27; } var value28 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_6_4","0.1"); if(__map_reserved["PRETEST_ANSWER_6_4"] != null) { map.setReserved("PRETEST_ANSWER_6_4",value28); } else { map.h["PRETEST_ANSWER_6_4"] = value28; } var value29 = new assets_strings_PaistStringsXmlElement("PRETEST_ANSWER_6_5","0"); if(__map_reserved["PRETEST_ANSWER_6_5"] != null) { map.setReserved("PRETEST_ANSWER_6_5",value29); } else { map.h["PRETEST_ANSWER_6_5"] = value29; } var value30 = new assets_strings_PaistStringsXmlElement("ANCHORING_BIAS_DEF","Over-emphasizing the first number or topic you see in later decisions."); if(__map_reserved["ANCHORING_BIAS_DEF"] != null) { map.setReserved("ANCHORING_BIAS_DEF",value30); } else { map.h["ANCHORING_BIAS_DEF"] = value30; } var value31 = new assets_strings_PaistStringsXmlElement("TITLE_BTN1","Yes, load saved game."); if(__map_reserved["TITLE_BTN1"] != null) { map.setReserved("TITLE_BTN1",value31); } else { map.h["TITLE_BTN1"] = value31; } var value32 = new assets_strings_PaistStringsXmlElement("TITLE_BTN2","No, start new game."); if(__map_reserved["TITLE_BTN2"] != null) { map.setReserved("TITLE_BTN2",value32); } else { map.h["TITLE_BTN2"] = value32; } var value33 = new assets_strings_PaistStringsXmlElement("TITLE_MENU1","Have you played SYSTEM ONE before?"); if(__map_reserved["TITLE_MENU1"] != null) { map.setReserved("TITLE_MENU1",value33); } else { map.h["TITLE_MENU1"] = value33; } var value34 = new assets_strings_PaistStringsXmlElement("TITLE_MENU2","Enter four-digit save code:"); if(__map_reserved["TITLE_MENU2"] != null) { map.setReserved("TITLE_MENU2",value34); } else { map.h["TITLE_MENU2"] = value34; } var value35 = new assets_strings_PaistStringsXmlElement("PROJECTION_BIAS_DEF","Over-estimating how much others share your values, beliefs, or knowledge."); if(__map_reserved["PROJECTION_BIAS_DEF"] != null) { map.setReserved("PROJECTION_BIAS_DEF",value35); } else { map.h["PROJECTION_BIAS_DEF"] = value35; } var value36 = new assets_strings_PaistStringsXmlElement("REPRESENTATIVENESS_BIAS_DEF","Using resemblance rather than probability to make a judgement."); if(__map_reserved["REPRESENTATIVENESS_BIAS_DEF"] != null) { map.setReserved("REPRESENTATIVENESS_BIAS_DEF",value36); } else { map.h["REPRESENTATIVENESS_BIAS_DEF"] = value36; } var value37 = new assets_strings_PaistStringsXmlElement("COG_BIAS1_HEADER","COGNITIVE BIASES"); if(__map_reserved["COG_BIAS1_HEADER"] != null) { map.setReserved("COG_BIAS1_HEADER",value37); } else { map.h["COG_BIAS1_HEADER"] = value37; } var value38 = new assets_strings_PaistStringsXmlElement("COG_BIAS1","Welcome to System One!\nThis game will teach you about three cognitive biases \nthat can affect your thinking.\nThey are: Representativeness Bias, Anchoring Bias, and Projection Bias."); if(__map_reserved["COG_BIAS1"] != null) { map.setReserved("COG_BIAS1",value38); } else { map.h["COG_BIAS1"] = value38; } var value39 = new assets_strings_PaistStringsXmlElement("COG_BIAS2_HEADER","COGNITIVE BIASES"); if(__map_reserved["COG_BIAS2_HEADER"] != null) { map.setReserved("COG_BIAS2_HEADER",value39); } else { map.h["COG_BIAS2_HEADER"] = value39; } var value40 = new assets_strings_PaistStringsXmlElement("COG_BIAS2","Sometimes your thinking is influenced by processes you are unaware of and cannot control."); if(__map_reserved["COG_BIAS2"] != null) { map.setReserved("COG_BIAS2",value40); } else { map.h["COG_BIAS2"] = value40; } var value41 = new assets_strings_PaistStringsXmlElement("COG_BIAS3_HEADER","COGNITIVE BIASES"); if(__map_reserved["COG_BIAS3_HEADER"] != null) { map.setReserved("COG_BIAS3_HEADER",value41); } else { map.h["COG_BIAS3_HEADER"] = value41; } var value42 = new assets_strings_PaistStringsXmlElement("COG_BIAS3","For example, which of these two lines is longer?"); if(__map_reserved["COG_BIAS3"] != null) { map.setReserved("COG_BIAS3",value42); } else { map.h["COG_BIAS3"] = value42; } var value43 = new assets_strings_PaistStringsXmlElement("COG_BIAS4_HEADER","COGNITIVE BIASES"); if(__map_reserved["COG_BIAS4_HEADER"] != null) { map.setReserved("COG_BIAS4_HEADER",value43); } else { map.h["COG_BIAS4_HEADER"] = value43; } var value44 = new assets_strings_PaistStringsXmlElement("COG_BIAS4","They are both the same length. Yet they always look different.\n\nThis visual illusion comes from patterns in the way you process information and can lead to incorrect conclusions. The tricky thing is you aren't aware it's even happening."); if(__map_reserved["COG_BIAS4"] != null) { map.setReserved("COG_BIAS4",value44); } else { map.h["COG_BIAS4"] = value44; } var value45 = new assets_strings_PaistStringsXmlElement("COG_BIAS5_HEADER","COGNITIVE BIASES"); if(__map_reserved["COG_BIAS5_HEADER"] != null) { map.setReserved("COG_BIAS5_HEADER",value45); } else { map.h["COG_BIAS5_HEADER"] = value45; } var value46 = new assets_strings_PaistStringsXmlElement("COG_BIAS5","When you use a tool — like a ruler — you see that the lines are the same length. But your brain is always fooled into seeing them as different.\n\nCognitive biases work the same way. Certain situations cause your brain to process information in biased ways, leading to bad decisions."); if(__map_reserved["COG_BIAS5"] != null) { map.setReserved("COG_BIAS5",value46); } else { map.h["COG_BIAS5"] = value46; } var value47 = new assets_strings_PaistStringsXmlElement("COG_BIAS6_HEADER","COGNITIVE BIASES"); if(__map_reserved["COG_BIAS6_HEADER"] != null) { map.setReserved("COG_BIAS6_HEADER",value47); } else { map.h["COG_BIAS6_HEADER"] = value47; } var value48 = new assets_strings_PaistStringsXmlElement("COG_BIAS6","Keep in mind that cognitive biases aren't prejudices like: \"I don't trust \nteenagers.\" They're patterns in how you think that lead to mistakes in \ndecision-making.\n"); if(__map_reserved["COG_BIAS6"] != null) { map.setReserved("COG_BIAS6",value48); } else { map.h["COG_BIAS6"] = value48; } var value49 = new assets_strings_PaistStringsXmlElement("COG_BIAS7_HEADER","TYPES OF COGNITIVE BIASES"); if(__map_reserved["COG_BIAS7_HEADER"] != null) { map.setReserved("COG_BIAS7_HEADER",value49); } else { map.h["COG_BIAS7_HEADER"] = value49; } var value50 = new assets_strings_PaistStringsXmlElement("COG_BIAS7","The hard part, though: cognitive biases still affect your thinking. But, using the tools you will learn in this game will help you make a better decision.\n"); if(__map_reserved["COG_BIAS7"] != null) { map.setReserved("COG_BIAS7",value50); } else { map.h["COG_BIAS7"] = value50; } var value51 = new assets_strings_PaistStringsXmlElement("COG_BIAS8_HEADER","BIAS REDUCTION TRAINING"); if(__map_reserved["COG_BIAS8_HEADER"] != null) { map.setReserved("COG_BIAS8_HEADER",value51); } else { map.h["COG_BIAS8_HEADER"] = value51; } var value52 = new assets_strings_PaistStringsXmlElement("COG_BIAS8_SUBHEADER","Your elite trainer, Mr. Q, will be your guide on this adventure in cognitive biases. \n"); if(__map_reserved["COG_BIAS8_SUBHEADER"] != null) { map.setReserved("COG_BIAS8_SUBHEADER",value52); } else { map.h["COG_BIAS8_SUBHEADER"] = value52; } var value53 = new assets_strings_PaistStringsXmlElement("COG_BIAS8","Here you go!"); if(__map_reserved["COG_BIAS8"] != null) { map.setReserved("COG_BIAS8",value53); } else { map.h["COG_BIAS8"] = value53; } var value54 = new assets_strings_PaistStringsXmlElement("INFO_REPRESENTATIVENESS_TITLE","REPRESENTATIVENESS BIAS"); if(__map_reserved["INFO_REPRESENTATIVENESS_TITLE"] != null) { map.setReserved("INFO_REPRESENTATIVENESS_TITLE",value54); } else { map.h["INFO_REPRESENTATIVENESS_TITLE"] = value54; } var value55 = new assets_strings_PaistStringsXmlElement("INFO_BASE_DEFINITION","Mistakenly relying on irrelevant information rather than the chances when making a decision."); if(__map_reserved["INFO_BASE_DEFINITION"] != null) { map.setReserved("INFO_BASE_DEFINITION",value55); } else { map.h["INFO_BASE_DEFINITION"] = value55; } var value56 = new assets_strings_PaistStringsXmlElement("INFO_BASE_MANIFESTATION","Ignoring the actual chances when making a decision."); if(__map_reserved["INFO_BASE_MANIFESTATION"] != null) { map.setReserved("INFO_BASE_MANIFESTATION",value56); } else { map.h["INFO_BASE_MANIFESTATION"] = value56; } var value57 = new assets_strings_PaistStringsXmlElement("INFO_BASE_MITIGATION","Ignore irrelevant information and focus on known chances."); if(__map_reserved["INFO_BASE_MITIGATION"] != null) { map.setReserved("INFO_BASE_MITIGATION",value57); } else { map.h["INFO_BASE_MITIGATION"] = value57; } var value58 = new assets_strings_PaistStringsXmlElement("INFO_REPRESENTATIVENESS_SLOGAN","Your odds of making a good decision improve when you identify the chances."); if(__map_reserved["INFO_REPRESENTATIVENESS_SLOGAN"] != null) { map.setReserved("INFO_REPRESENTATIVENESS_SLOGAN",value58); } else { map.h["INFO_REPRESENTATIVENESS_SLOGAN"] = value58; } var value59 = new assets_strings_PaistStringsXmlElement("INFO_RANDOMNESS_DEFINITION","Mistakenly relying on irrelevant information rather than the chances when making a decision."); if(__map_reserved["INFO_RANDOMNESS_DEFINITION"] != null) { map.setReserved("INFO_RANDOMNESS_DEFINITION",value59); } else { map.h["INFO_RANDOMNESS_DEFINITION"] = value59; } var value60 = new assets_strings_PaistStringsXmlElement("INFO_RANDOMNESS_MANIFESTATION","Mistakenly believing a current event is influenced by a past, independent event."); if(__map_reserved["INFO_RANDOMNESS_MANIFESTATION"] != null) { map.setReserved("INFO_RANDOMNESS_MANIFESTATION",value60); } else { map.h["INFO_RANDOMNESS_MANIFESTATION"] = value60; } var value61 = new assets_strings_PaistStringsXmlElement("INFO_RANDOMNESS_MITIGATION","Ignore independent, past events and focus on known chances."); if(__map_reserved["INFO_RANDOMNESS_MITIGATION"] != null) { map.setReserved("INFO_RANDOMNESS_MITIGATION",value61); } else { map.h["INFO_RANDOMNESS_MITIGATION"] = value61; } var value62 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_INTRO1","Hi survivalists! I can see you're excited. There's just a few tips you need before the big day. Like how to defeat your worst enemy out there: bias!"); if(__map_reserved["TNT_RBIN_INTRO1"] != null) { map.setReserved("TNT_RBIN_INTRO1",value62); } else { map.h["TNT_RBIN_INTRO1"] = value62; } var value63 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SLIDE_INTRO","Bias #1: Representativeness Bias"); if(__map_reserved["TNT_RBIN_SLIDE_INTRO"] != null) { map.setReserved("TNT_RBIN_SLIDE_INTRO",value63); } else { map.h["TNT_RBIN_SLIDE_INTRO"] = value63; } var value64 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_EX1","Today's briefing is about Representativeness Bias. \nIt's a killer."); if(__map_reserved["TNT_RBIN_FIRST_EX1"] != null) { map.setReserved("TNT_RBIN_FIRST_EX1",value64); } else { map.h["TNT_RBIN_FIRST_EX1"] = value64; } var value65 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_EX2","Representativeness Bias happens when you rely on irrelevant information rather than the chances when making a decision."); if(__map_reserved["TNT_RBIN_FIRST_EX2"] != null) { map.setReserved("TNT_RBIN_FIRST_EX2",value65); } else { map.h["TNT_RBIN_FIRST_EX2"] = value65; } var value66 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_EX3","There are several different ways this can affect your thinking. One way is when you consider the chances a random event will happen."); if(__map_reserved["TNT_RBIN_FIRST_EX3"] != null) { map.setReserved("TNT_RBIN_FIRST_EX3",value66); } else { map.h["TNT_RBIN_FIRST_EX3"] = value66; } var value67 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_EX4","Take my daughter Shannon here. She flips a coin 3 times, and it lands on heads every time."); if(__map_reserved["TNT_RBIN_FIRST_EX4"] != null) { map.setReserved("TNT_RBIN_FIRST_EX4",value67); } else { map.h["TNT_RBIN_FIRST_EX4"] = value67; } var value68 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_ANS1","Heads"); if(__map_reserved["TNT_RBIN_FIRST_MIT_ANS1"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_ANS1",value68); } else { map.h["TNT_RBIN_FIRST_MIT_ANS1"] = value68; } var value69 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_ANS2","Tails"); if(__map_reserved["TNT_RBIN_FIRST_MIT_ANS2"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_ANS2",value69); } else { map.h["TNT_RBIN_FIRST_MIT_ANS2"] = value69; } var value70 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_ANS3","Both are equally likely"); if(__map_reserved["TNT_RBIN_FIRST_MIT_ANS3"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_ANS3",value70); } else { map.h["TNT_RBIN_FIRST_MIT_ANS3"] = value70; } var value71 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_COIN","What do you think is most likely for the next flip to land on?"); if(__map_reserved["TNT_RBIN_FIRST_MIT_COIN"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_COIN",value71); } else { map.h["TNT_RBIN_FIRST_MIT_COIN"] = value71; } var value72 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_MIT_COIN_CORRECT","Right! Shannon, however, guesses the coin will land on tails next time because it's “due.\""); if(__map_reserved["TNT_RBIN_MIT_COIN_CORRECT"] != null) { map.setReserved("TNT_RBIN_MIT_COIN_CORRECT",value72); } else { map.h["TNT_RBIN_MIT_COIN_CORRECT"] = value72; } var value73 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_MIT_COIN_INCORRECT","Nope. Don't let previous rounds affect your thinking."); if(__map_reserved["TNT_RBIN_MIT_COIN_INCORRECT"] != null) { map.setReserved("TNT_RBIN_MIT_COIN_INCORRECT",value73); } else { map.h["TNT_RBIN_MIT_COIN_INCORRECT"] = value73; } var value74 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_EX5","She's falling for Representativeness Bias. Shannon mistakenly believes tails is representative of the next flip. But, the reality is that coins ALWAYS have a 50% chance of landing heads (or tails), no matter what happened before."); if(__map_reserved["TNT_RBIN_FIRST_EX5"] != null) { map.setReserved("TNT_RBIN_FIRST_EX5",value74); } else { map.h["TNT_RBIN_FIRST_EX5"] = value74; } var value75 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_EX6","So, Representativeness Bias is focusing on the irrelevant information from the previous flips rather than the actual chances of the coin landing on tails."); if(__map_reserved["TNT_RBIN_FIRST_EX6"] != null) { map.setReserved("TNT_RBIN_FIRST_EX6",value75); } else { map.h["TNT_RBIN_FIRST_EX6"] = value75; } var value76 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_EX7","Fortunately, we can train you to avoid Representativeness Bias. Just follow these two steps:\n(1) Identify the chances involved\n(2) Ignore irrelevant information"); if(__map_reserved["TNT_RBIN_FIRST_EX7"] != null) { map.setReserved("TNT_RBIN_FIRST_EX7",value76); } else { map.h["TNT_RBIN_FIRST_EX7"] = value76; } var value77 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_CHANCE","Chance:"); if(__map_reserved["TNT_RBIN_FIRST_MIT_CHANCE"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_CHANCE",value77); } else { map.h["TNT_RBIN_FIRST_MIT_CHANCE"] = value77; } var value78 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_SPIN","Previous Spins:"); if(__map_reserved["TNT_RBIN_FIRST_MIT_SPIN"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_SPIN",value78); } else { map.h["TNT_RBIN_FIRST_MIT_SPIN"] = value78; } var value79 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT","Your time to shine, Rookie! Try to follow those steps to avoid Representativeness Bias:\n\nA wheel is spun 5 times and has landed on blue every time. What are the chances it will land on blue again?"); if(__map_reserved["TNT_RBIN_FIRST_MIT"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT",value79); } else { map.h["TNT_RBIN_FIRST_MIT"] = value79; } var value80 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_CORRECT","Hey, you're a quick study! With two equal colors, each one always has a 50% chance of winning, no matter what happened before. You avoided Representativeness Bias by focusing on the actual chances of winning."); if(__map_reserved["TNT_RBIN_FIRST_MIT_CORRECT"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_CORRECT",value80); } else { map.h["TNT_RBIN_FIRST_MIT_CORRECT"] = value80; } var value81 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_INCORRECT_WHITE","Rookie mistake, Rookie. White is not more likely just because blue has come up so many times in a row. That, my friend, is a classic, and often fatal, Representativeness Bias mistake. Try again."); if(__map_reserved["TNT_RBIN_FIRST_MIT_INCORRECT_WHITE"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_INCORRECT_WHITE",value81); } else { map.h["TNT_RBIN_FIRST_MIT_INCORRECT_WHITE"] = value81; } var value82 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_FIRST_MIT_INCORRECT_BLUE","Rookie mistake. Maybe you assumed that the wheel is more likely to land on blue because blue is “hot.” That is exactly how Representativeness Bias fools you. Try again."); if(__map_reserved["TNT_RBIN_FIRST_MIT_INCORRECT_BLUE"] != null) { map.setReserved("TNT_RBIN_FIRST_MIT_INCORRECT_BLUE",value82); } else { map.h["TNT_RBIN_FIRST_MIT_INCORRECT_BLUE"] = value82; } var value83 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_EX1","Representativeness Bias happens in other situations, too. Imagine you are at a wicked party with 95 lawyers and 5 trapeze artists."); if(__map_reserved["TNT_RBIN_SECOND_EX1"] != null) { map.setReserved("TNT_RBIN_SECOND_EX1",value83); } else { map.h["TNT_RBIN_SECOND_EX1"] = value83; } var value84 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_EX2","You meet a guy named Rudy. He's boisterous, outgoing, tattooed, and mentions he practices yoga. \n\nDo you think he is more likely to be a lawyer or a trapeze artist?"); if(__map_reserved["TNT_RBIN_SECOND_EX2"] != null) { map.setReserved("TNT_RBIN_SECOND_EX2",value84); } else { map.h["TNT_RBIN_SECOND_EX2"] = value84; } var value85 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_EX95","x95"); if(__map_reserved["TNT_RBIN_SECOND_EX95"] != null) { map.setReserved("TNT_RBIN_SECOND_EX95",value85); } else { map.h["TNT_RBIN_SECOND_EX95"] = value85; } var value86 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_EX5","x5"); if(__map_reserved["TNT_RBIN_SECOND_EX5"] != null) { map.setReserved("TNT_RBIN_SECOND_EX5",value86); } else { map.h["TNT_RBIN_SECOND_EX5"] = value86; } var value87 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_EX_CORRECT","There ya go! Way to avoid biased thinking! Even though 95 out of the 100 people are lawyers, people often get sucked into the idea that Rudy's personality is what matters, and forget to pay attention to the chances."); if(__map_reserved["TNT_RBIN_SECOND_EX_CORRECT"] != null) { map.setReserved("TNT_RBIN_SECOND_EX_CORRECT",value87); } else { map.h["TNT_RBIN_SECOND_EX_CORRECT"] = value87; } var value88 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_EX_FAIL","Ooooh. Representativeness Bias at work! Even though 95 out of the 100 people are lawyers, people often think the chances Rudy is a lawyer are so low because of his personality. Let's try again."); if(__map_reserved["TNT_RBIN_SECOND_EX_FAIL"] != null) { map.setReserved("TNT_RBIN_SECOND_EX_FAIL",value88); } else { map.h["TNT_RBIN_SECOND_EX_FAIL"] = value88; } var value89 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT1","Impress me again.\nImagine I'm at the shelter looking for a quiet dog. Calvin is small and high strung while Fin is large and calm. The shelter worker tells me that nervous Calvin barked 10% of the time and calm Fin barked 80% of the time last month."); if(__map_reserved["TNT_RBIN_SECOND_MIT1"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT1",value89); } else { map.h["TNT_RBIN_SECOND_MIT1"] = value89; } var value90 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT2_1","Calvin"); if(__map_reserved["TNT_RBIN_SECOND_MIT2_1"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT2_1",value90); } else { map.h["TNT_RBIN_SECOND_MIT2_1"] = value90; } var value91 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT2_2","Barks 10% of the time"); if(__map_reserved["TNT_RBIN_SECOND_MIT2_2"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT2_2",value91); } else { map.h["TNT_RBIN_SECOND_MIT2_2"] = value91; } var value92 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT2_3","Fin"); if(__map_reserved["TNT_RBIN_SECOND_MIT2_3"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT2_3",value92); } else { map.h["TNT_RBIN_SECOND_MIT2_3"] = value92; } var value93 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT2_4","Barks 80% of the time"); if(__map_reserved["TNT_RBIN_SECOND_MIT2_4"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT2_4",value93); } else { map.h["TNT_RBIN_SECOND_MIT2_4"] = value93; } var value94 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT2","Which dog should I adopt if I want a dog that doesn’t bark too much?"); if(__map_reserved["TNT_RBIN_SECOND_MIT2"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT2",value94); } else { map.h["TNT_RBIN_SECOND_MIT2"] = value94; } var value95 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT_CORRECT","Whoa. You're good. Although Calvin looks like a barker, he actually has a much lower chance of barking compared to Fin. You ignored irrelevant information—his appearance—and focused on chances. That’s how you avoid Representativeness Bias."); if(__map_reserved["TNT_RBIN_SECOND_MIT_CORRECT"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT_CORRECT",value95); } else { map.h["TNT_RBIN_SECOND_MIT_CORRECT"] = value95; } var value96 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SECOND_MIT_INCORRECT","Nope. Fin may look like a nice quiet dog, but he actually has higher chance of barking compared to Calvin. Unfortunately, you fell for Representativeness Bias by focusing on the dogs’ appearances rather than the chances."); if(__map_reserved["TNT_RBIN_SECOND_MIT_INCORRECT"] != null) { map.setReserved("TNT_RBIN_SECOND_MIT_INCORRECT",value96); } else { map.h["TNT_RBIN_SECOND_MIT_INCORRECT"] = value96; } var value97 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_OUTRO1","And your first briefing is done! Onward we go!"); if(__map_reserved["TNT_RBIN_OUTRO1"] != null) { map.setReserved("TNT_RBIN_OUTRO1",value97); } else { map.h["TNT_RBIN_OUTRO1"] = value97; } var value98 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_BIAS","BIAS #1: \nREPRESENTATIVENESS\nBIAS"); if(__map_reserved["TNT_RBIN_BIAS"] != null) { map.setReserved("TNT_RBIN_BIAS",value98); } else { map.h["TNT_RBIN_BIAS"] = value98; } var value99 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_INTRO_1","Next you'll hear from Ms. A, the 4 Q's specialist. She'll run you through the technique.\nMs. A is brilliant, by the way, and only a teensy bit strict."); if(__map_reserved["TNT_RBIN_SAT_INTRO_1"] != null) { map.setReserved("TNT_RBIN_SAT_INTRO_1",value99); } else { map.h["TNT_RBIN_SAT_INTRO_1"] = value99; } var value100 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_BOOK1","4 Q's Overview"); if(__map_reserved["TNT_RBIN_SAT_BOOK1"] != null) { map.setReserved("TNT_RBIN_SAT_BOOK1",value100); } else { map.h["TNT_RBIN_SAT_BOOK1"] = value100; } var value101 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_BOOK6","The 4 Q's!"); if(__map_reserved["TNT_RBIN_SAT_BOOK6"] != null) { map.setReserved("TNT_RBIN_SAT_BOOK6",value101); } else { map.h["TNT_RBIN_SAT_BOOK6"] = value101; } var value102 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_1-1","Remember the four simple questions: What's the bias? What's the trigger? What's the strategy? Did I do it right?\n"); if(__map_reserved["TNT_RBIN_SAT_1-1"] != null) { map.setReserved("TNT_RBIN_SAT_1-1",value102); } else { map.h["TNT_RBIN_SAT_1-1"] = value102; } var value103 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_1-2","Use these 4 questions to review after each bias challenge. Reviewing your performance is essential to avoid mistakes in your Final Escape.\n"); if(__map_reserved["TNT_RBIN_SAT_1-2"] != null) { map.setReserved("TNT_RBIN_SAT_1-2",value103); } else { map.h["TNT_RBIN_SAT_1-2"] = value103; } var value104 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_1-3","For now, let’s focus on Q1: What's the bias? In Mr. Q's example, Shannon thinks the coin will land on tails because heads turned up before. That’s the bias: thinking previous tosses make any difference."); if(__map_reserved["TNT_RBIN_SAT_1-3"] != null) { map.setReserved("TNT_RBIN_SAT_1-3",value104); } else { map.h["TNT_RBIN_SAT_1-3"] = value104; } var value105 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_1-4","Keep Question #1 in mind going forward."); if(__map_reserved["TNT_RBIN_SAT_1-4"] != null) { map.setReserved("TNT_RBIN_SAT_1-4",value105); } else { map.h["TNT_RBIN_SAT_1-4"] = value105; } var value106 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q1","What's the Bias?"); if(__map_reserved["TNT_RBIN_SAT_Q1"] != null) { map.setReserved("TNT_RBIN_SAT_Q1",value106); } else { map.h["TNT_RBIN_SAT_Q1"] = value106; } var value107 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q2","What's the Trigger?"); if(__map_reserved["TNT_RBIN_SAT_Q2"] != null) { map.setReserved("TNT_RBIN_SAT_Q2",value107); } else { map.h["TNT_RBIN_SAT_Q2"] = value107; } var value108 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q3","What's the Strategy?"); if(__map_reserved["TNT_RBIN_SAT_Q3"] != null) { map.setReserved("TNT_RBIN_SAT_Q3",value108); } else { map.h["TNT_RBIN_SAT_Q3"] = value108; } var value109 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q4","Did I do it right?"); if(__map_reserved["TNT_RBIN_SAT_Q4"] != null) { map.setReserved("TNT_RBIN_SAT_Q4",value109); } else { map.h["TNT_RBIN_SAT_Q4"] = value109; } var value110 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_EX1_HEADER","Q #1"); if(__map_reserved["TNT_RBIN_SAT_EX1_HEADER"] != null) { map.setReserved("TNT_RBIN_SAT_EX1_HEADER",value110); } else { map.h["TNT_RBIN_SAT_EX1_HEADER"] = value110; } var value111 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q1_Q1","Q #1: What's the Bias?"); if(__map_reserved["TNT_RBIN_SAT_Q1_Q1"] != null) { map.setReserved("TNT_RBIN_SAT_Q1_Q1",value111); } else { map.h["TNT_RBIN_SAT_Q1_Q1"] = value111; } var value112 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q1_A1","Thinking it's time for tails to turn up."); if(__map_reserved["TNT_RBIN_SAT_Q1_A1"] != null) { map.setReserved("TNT_RBIN_SAT_Q1_A1",value112); } else { map.h["TNT_RBIN_SAT_Q1_A1"] = value112; } var value113 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_INTRO_2","Okay, back to you, Ms. A: Teach them more about my stunningly effective technique."); if(__map_reserved["TNT_RBIN_SAT_INTRO_2"] != null) { map.setReserved("TNT_RBIN_SAT_INTRO_2",value113); } else { map.h["TNT_RBIN_SAT_INTRO_2"] = value113; } var value114 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_2-1","Sure thing. Let’s review, Q #1: What's the bias? This helps you remember the kind of thinking associated with each bias - in this case, Representativeness Bias."); if(__map_reserved["TNT_RBIN_SAT_2-1"] != null) { map.setReserved("TNT_RBIN_SAT_2-1",value114); } else { map.h["TNT_RBIN_SAT_2-1"] = value114; } var value115 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_2-2","Take a look at the notebook to see how Mr. Q's tricky example of Rudy and the lawyers works."); if(__map_reserved["TNT_RBIN_SAT_2-2"] != null) { map.setReserved("TNT_RBIN_SAT_2-2",value115); } else { map.h["TNT_RBIN_SAT_2-2"] = value115; } var value116 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_OUTRO_2","Fabulous, Ms. A. \n\nAll right, I’ll give you all an even better scenario."); if(__map_reserved["TNT_RBIN_SAT_OUTRO_2"] != null) { map.setReserved("TNT_RBIN_SAT_OUTRO_2",value116); } else { map.h["TNT_RBIN_SAT_OUTRO_2"] = value116; } var value117 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_EX2_HEADER","Q #1"); if(__map_reserved["TNT_RBIN_SAT_EX2_HEADER"] != null) { map.setReserved("TNT_RBIN_SAT_EX2_HEADER",value117); } else { map.h["TNT_RBIN_SAT_EX2_HEADER"] = value117; } var value118 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q1_Q2","Q #1: What's the Bias?"); if(__map_reserved["TNT_RBIN_SAT_Q1_Q2"] != null) { map.setReserved("TNT_RBIN_SAT_Q1_Q2",value118); } else { map.h["TNT_RBIN_SAT_Q1_Q2"] = value118; } var value119 = new assets_strings_PaistStringsXmlElement("TNT_RBIN_SAT_Q1_A2","Thinking Rudy looks and acts more like your idea of a trapeze artist than a lawyer."); if(__map_reserved["TNT_RBIN_SAT_Q1_A2"] != null) { map.setReserved("TNT_RBIN_SAT_Q1_A2",value119); } else { map.h["TNT_RBIN_SAT_Q1_A2"] = value119; } var value120 = new assets_strings_PaistStringsXmlElement("INFO_ANCHORING_TITLE","ANCHORING BIAS"); if(__map_reserved["INFO_ANCHORING_TITLE"] != null) { map.setReserved("INFO_ANCHORING_TITLE",value120); } else { map.h["INFO_ANCHORING_TITLE"] = value120; } var value121 = new assets_strings_PaistStringsXmlElement("INFO_ANCHORING_DEFINITION","Unconsciously relying on the first piece of information you encounter when making a decision"); if(__map_reserved["INFO_ANCHORING_DEFINITION"] != null) { map.setReserved("INFO_ANCHORING_DEFINITION",value121); } else { map.h["INFO_ANCHORING_DEFINITION"] = value121; } var value122 = new assets_strings_PaistStringsXmlElement("INFO_ANCHORING_SLOGAN","Anchors weigh down your thinking."); if(__map_reserved["INFO_ANCHORING_SLOGAN"] != null) { map.setReserved("INFO_ANCHORING_SLOGAN",value122); } else { map.h["INFO_ANCHORING_SLOGAN"] = value122; } var value123 = new assets_strings_PaistStringsXmlElement("INFO_NUMERIC_MANIFESTATION","The last number you saw can pull your thinking to it."); if(__map_reserved["INFO_NUMERIC_MANIFESTATION"] != null) { map.setReserved("INFO_NUMERIC_MANIFESTATION",value123); } else { map.h["INFO_NUMERIC_MANIFESTATION"] = value123; } var value124 = new assets_strings_PaistStringsXmlElement("INFO_NUMERIC_MITIGATION","Think of reasonably high and low estimates and then find the midpoint."); if(__map_reserved["INFO_NUMERIC_MITIGATION"] != null) { map.setReserved("INFO_NUMERIC_MITIGATION",value124); } else { map.h["INFO_NUMERIC_MITIGATION"] = value124; } var value125 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_1","7"); if(__map_reserved["TNT_ABNU_1"] != null) { map.setReserved("TNT_ABNU_1",value125); } else { map.h["TNT_ABNU_1"] = value125; } var value126 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_2","It's been"); if(__map_reserved["TNT_ABNU_2"] != null) { map.setReserved("TNT_ABNU_2",value126); } else { map.h["TNT_ABNU_2"] = value126; } var value127 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_3","days since our last trainee fatality!"); if(__map_reserved["TNT_ABNU_3"] != null) { map.setReserved("TNT_ABNU_3",value127); } else { map.h["TNT_ABNU_3"] = value127; } var value128 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_4","700"); if(__map_reserved["TNT_ABNU_4"] != null) { map.setReserved("TNT_ABNU_4",value128); } else { map.h["TNT_ABNU_4"] = value128; } var value129 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_5","2 mph"); if(__map_reserved["TNT_ABNU_5"] != null) { map.setReserved("TNT_ABNU_5",value129); } else { map.h["TNT_ABNU_5"] = value129; } var value130 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_6","20 mph"); if(__map_reserved["TNT_ABNU_6"] != null) { map.setReserved("TNT_ABNU_6",value130); } else { map.h["TNT_ABNU_6"] = value130; } var value131 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_7","50 mph"); if(__map_reserved["TNT_ABNU_7"] != null) { map.setReserved("TNT_ABNU_7",value131); } else { map.h["TNT_ABNU_7"] = value131; } var value132 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_8","100 mph"); if(__map_reserved["TNT_ABNU_8"] != null) { map.setReserved("TNT_ABNU_8",value132); } else { map.h["TNT_ABNU_8"] = value132; } var value133 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_9","Most Popular:"); if(__map_reserved["TNT_ABNU_9"] != null) { map.setReserved("TNT_ABNU_9",value133); } else { map.h["TNT_ABNU_9"] = value133; } var value134 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_10","Less Popular Ferris Wheel:"); if(__map_reserved["TNT_ABNU_10"] != null) { map.setReserved("TNT_ABNU_10",value134); } else { map.h["TNT_ABNU_10"] = value134; } var value135 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_11","?"); if(__map_reserved["TNT_ABNU_11"] != null) { map.setReserved("TNT_ABNU_11",value135); } else { map.h["TNT_ABNU_11"] = value135; } var value136 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_12","531"); if(__map_reserved["TNT_ABNU_12"] != null) { map.setReserved("TNT_ABNU_12",value136); } else { map.h["TNT_ABNU_12"] = value136; } var value137 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_14","1"); if(__map_reserved["TNT_ABNU_14"] != null) { map.setReserved("TNT_ABNU_14",value137); } else { map.h["TNT_ABNU_14"] = value137; } var value138 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_15","2"); if(__map_reserved["TNT_ABNU_15"] != null) { map.setReserved("TNT_ABNU_15",value138); } else { map.h["TNT_ABNU_15"] = value138; } var value139 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_16","3"); if(__map_reserved["TNT_ABNU_16"] != null) { map.setReserved("TNT_ABNU_16",value139); } else { map.h["TNT_ABNU_16"] = value139; } var value140 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_17","4"); if(__map_reserved["TNT_ABNU_17"] != null) { map.setReserved("TNT_ABNU_17",value140); } else { map.h["TNT_ABNU_17"] = value140; } var value141 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_13","Guests"); if(__map_reserved["TNT_ABNU_13"] != null) { map.setReserved("TNT_ABNU_13",value141); } else { map.h["TNT_ABNU_13"] = value141; } var value142 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_01","Listen up, people! It’s been SEVEN whole days since our last trainee death!  \n\n"); if(__map_reserved["TNT_ABNU_INTRO_01"] != null) { map.setReserved("TNT_ABNU_INTRO_01",value142); } else { map.h["TNT_ABNU_INTRO_01"] = value142; } var value143 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_02","Hah, gotcha!! You’re anchored RIGHT NOW!\nSee that sign on the wall? It’s already affected your thinking."); if(__map_reserved["TNT_ABNU_INTRO_02"] != null) { map.setReserved("TNT_ABNU_INTRO_02",value143); } else { map.h["TNT_ABNU_INTRO_02"] = value143; } var value144 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_03","Oh, heh. Looks like I forgot a few zeros! \n\nNOW how long do you think you’ll last?"); if(__map_reserved["TNT_ABNU_INTRO_03"] != null) { map.setReserved("TNT_ABNU_INTRO_03",value144); } else { map.h["TNT_ABNU_INTRO_03"] = value144; } var value145 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_04","Unfortunately \"7\" was correct. We've added your workbooks for you to make notes, bought more insurance, and ... Oh, back to anchoring."); if(__map_reserved["TNT_ABNU_INTRO_04"] != null) { map.setReserved("TNT_ABNU_INTRO_04",value145); } else { map.h["TNT_ABNU_INTRO_04"] = value145; } var value146 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_05","This number will keep affecting your thinking unless you have tools to protect yourself! Bonus points to the first person who answers this question: “What is the top speed of a housecat?”\n"); if(__map_reserved["TNT_ABNU_INTRO_05"] != null) { map.setReserved("TNT_ABNU_INTRO_05",value146); } else { map.h["TNT_ABNU_INTRO_05"] = value146; } var value147 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_06","WRONG! You know why you’re wrong? Because you answered TOO FAST!\n"); if(__map_reserved["TNT_ABNU_INTRO_06"] != null) { map.setReserved("TNT_ABNU_INTRO_06",value147); } else { map.h["TNT_ABNU_INTRO_06"] = value147; } var value148 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_07","That number 7 is still stuck in your brain like spinach in my mother-in-law’s teeth."); if(__map_reserved["TNT_ABNU_INTRO_07"] != null) { map.setReserved("TNT_ABNU_INTRO_07",value148); } else { map.h["TNT_ABNU_INTRO_07"] = value148; } var value149 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_INTRO_08","Any number unrelated to your decision can anchor you, even a birth date or a telephone number!"); if(__map_reserved["TNT_ABNU_INTRO_08"] != null) { map.setReserved("TNT_ABNU_INTRO_08",value149); } else { map.h["TNT_ABNU_INTRO_08"] = value149; } var value150 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX01_01","Look at all this junk – most of it isn’t dangerous. Keep in mind what you've learned so far. Select the object most likely to anchor you."); if(__map_reserved["TNT_ABNU_EX01_01"] != null) { map.setReserved("TNT_ABNU_EX01_01",value150); } else { map.h["TNT_ABNU_EX01_01"] = value150; } var value151 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX01_WRONG","Okay. It's going to be a LOOOONG hour if you’re not paying attention. Now what in here is likely to anchor you?"); if(__map_reserved["TNT_ABNU_EX01_WRONG"] != null) { map.setReserved("TNT_ABNU_EX01_WRONG",value151); } else { map.h["TNT_ABNU_EX01_WRONG"] = value151; } var value152 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX01_RIGHT","All right! Someone’s listening after all!\nThe number 16 would impact your next numerical decision.\n"); if(__map_reserved["TNT_ABNU_EX01_RIGHT"] != null) { map.setReserved("TNT_ABNU_EX01_RIGHT",value152); } else { map.h["TNT_ABNU_EX01_RIGHT"] = value152; } var value153 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI1_01","Back to the cat question! “What is the maximum speed of a housecat?”"); if(__map_reserved["TNT_ABNU_MITI1_01"] != null) { map.setReserved("TNT_ABNU_MITI1_01",value153); } else { map.h["TNT_ABNU_MITI1_01"] = value153; } var value154 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI1_02","See how this boat is stuck near the anchor of seven? It’s stuck. That’s YOUR BRAIN ON ANCHORS!"); if(__map_reserved["TNT_ABNU_MITI1_02"] != null) { map.setReserved("TNT_ABNU_MITI1_02",value154); } else { map.h["TNT_ABNU_MITI1_02"] = value154; } var value155 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI1_03","Anchors limit your range, and you need a new range. Not just any range – a REASONABLE range!"); if(__map_reserved["TNT_ABNU_MITI1_03"] != null) { map.setReserved("TNT_ABNU_MITI1_03",value155); } else { map.h["TNT_ABNU_MITI1_03"] = value155; } var value156 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX02_01","So hurry up and think slow: Picture a lazy, fat cat. Like my drinking buddy Mr. Leadbottom here. What's the minimum speed you think he can go? \n\n"); if(__map_reserved["TNT_ABNU_EX02_01"] != null) { map.setReserved("TNT_ABNU_EX02_01",value156); } else { map.h["TNT_ABNU_EX02_01"] = value156; } var value157 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX02_WRONG","That’s not extreme enough. 20 MPH is still quite fast. Think reeeallly lazy."); if(__map_reserved["TNT_ABNU_EX02_WRONG"] != null) { map.setReserved("TNT_ABNU_EX02_WRONG",value157); } else { map.h["TNT_ABNU_EX02_WRONG"] = value157; } var value158 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX02_RIGHT","2 MPH might just be plausible."); if(__map_reserved["TNT_ABNU_EX02_RIGHT"] != null) { map.setReserved("TNT_ABNU_EX02_RIGHT",value158); } else { map.h["TNT_ABNU_EX02_RIGHT"] = value158; } var value159 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI2_01","Now we start redefining our range!"); if(__map_reserved["TNT_ABNU_MITI2_01"] != null) { map.setReserved("TNT_ABNU_MITI2_01",value159); } else { map.h["TNT_ABNU_MITI2_01"] = value159; } var value160 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX03_01","Keep going! \n\nHow about an extremely fast cat like lean, mean, furry speed machine Kitty Lightning here? What's her max speed? \n"); if(__map_reserved["TNT_ABNU_EX03_01"] != null) { map.setReserved("TNT_ABNU_EX03_01",value160); } else { map.h["TNT_ABNU_EX03_01"] = value160; } var value161 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX03_WRONG","Not plausible. You ever seen a cat outrun a car on the AutoBahn? \n\nIt makes no sense. It’s not REASONABLE.\n"); if(__map_reserved["TNT_ABNU_EX03_WRONG"] != null) { map.setReserved("TNT_ABNU_EX03_WRONG",value161); } else { map.h["TNT_ABNU_EX03_WRONG"] = value161; } var value162 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX03_RIGHT","Could be reasonable. Some large cats may be able to run 50 MPH in small bursts. It’s a plausible extreme because we're unsure about the speed of house cats.\n"); if(__map_reserved["TNT_ABNU_EX03_RIGHT"] != null) { map.setReserved("TNT_ABNU_EX03_RIGHT",value162); } else { map.h["TNT_ABNU_EX03_RIGHT"] = value162; } var value163 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI3_01","Look at this new range."); if(__map_reserved["TNT_ABNU_MITI3_01"] != null) { map.setReserved("TNT_ABNU_MITI3_01",value163); } else { map.h["TNT_ABNU_MITI3_01"] = value163; } var value164 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI3_02","See what you did? You found a whole new range!\nBut you gotta moor your boat to some answer. Dock right at the MIDPOINT, which is the average of the two end points you've identified.\n"); if(__map_reserved["TNT_ABNU_MITI3_02"] != null) { map.setReserved("TNT_ABNU_MITI3_02",value164); } else { map.h["TNT_ABNU_MITI3_02"] = value164; } var value165 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI3_03","I love sailing with the kitties."); if(__map_reserved["TNT_ABNU_MITI3_03"] != null) { map.setReserved("TNT_ABNU_MITI3_03",value165); } else { map.h["TNT_ABNU_MITI3_03"] = value165; } var value166 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI3_05","I think you may have figured this out. Let’s see if you can do the next one by yourself."); if(__map_reserved["TNT_ABNU_MITI3_05"] != null) { map.setReserved("TNT_ABNU_MITI3_05",value166); } else { map.h["TNT_ABNU_MITI3_05"] = value166; } var value167 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_01","Our most popular carnival ride had 531 guests yesterday. \n\nHow many guests rode the less popular Ferris wheel?"); if(__map_reserved["TNT_ABNU_EX04_01"] != null) { map.setReserved("TNT_ABNU_EX04_01",value167); } else { map.h["TNT_ABNU_EX04_01"] = value167; } var value168 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_02","What is a REASONABLY low extreme number of people who rode the Ferris wheel?\n\nNo one gets a bathroom break until you answer!"); if(__map_reserved["TNT_ABNU_EX04_02"] != null) { map.setReserved("TNT_ABNU_EX04_02",value168); } else { map.h["TNT_ABNU_EX04_02"] = value168; } var value169 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_WRONG1","That’s not even possible! The most popular ride had fewer riders than this! Pay attention and enter the LOWEST POSSIBLE NUMBER of riders for the Ferris wheel."); if(__map_reserved["TNT_ABNU_EX04_WRONG1"] != null) { map.setReserved("TNT_ABNU_EX04_WRONG1",value169); } else { map.h["TNT_ABNU_EX04_WRONG1"] = value169; } var value170 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_WRONG2","That’s how many people rode the most popular ride! Pay attention and enter the LOWEST POSSIBLE NUMBER of people to ride the Ferris\nwheel."); if(__map_reserved["TNT_ABNU_EX04_WRONG2"] != null) { map.setReserved("TNT_ABNU_EX04_WRONG2",value170); } else { map.h["TNT_ABNU_EX04_WRONG2"] = value170; } var value171 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_WRONG3","Too close to the anchor – think low reasonable extremes!"); if(__map_reserved["TNT_ABNU_EX04_WRONG3"] != null) { map.setReserved("TNT_ABNU_EX04_WRONG3",value171); } else { map.h["TNT_ABNU_EX04_WRONG3"] = value171; } var value172 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_WRONG4","Think much lower."); if(__map_reserved["TNT_ABNU_EX04_WRONG4"] != null) { map.setReserved("TNT_ABNU_EX04_WRONG4",value172); } else { map.h["TNT_ABNU_EX04_WRONG4"] = value172; } var value173 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_WRONG5","Think even lower. What if nobody rode the Ferris wheel?"); if(__map_reserved["TNT_ABNU_EX04_WRONG5"] != null) { map.setReserved("TNT_ABNU_EX04_WRONG5",value173); } else { map.h["TNT_ABNU_EX04_WRONG5"] = value173; } var value174 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_WRONG6","Plausible, but not LOWEST plausible. What if nobody rode the Ferris wheel? What if it was closed?"); if(__map_reserved["TNT_ABNU_EX04_WRONG6"] != null) { map.setReserved("TNT_ABNU_EX04_WRONG6",value174); } else { map.h["TNT_ABNU_EX04_WRONG6"] = value174; } var value175 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX04_RIGHT","Great! It is plausible that nobody or a handful of people rode the Ferris wheel."); if(__map_reserved["TNT_ABNU_EX04_RIGHT"] != null) { map.setReserved("TNT_ABNU_EX04_RIGHT",value175); } else { map.h["TNT_ABNU_EX04_RIGHT"] = value175; } var value176 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_01","Now select a reasonably high value for the number of guests that rode the Ferris wheel yesterday."); if(__map_reserved["TNT_ABNU_EX05_01"] != null) { map.setReserved("TNT_ABNU_EX05_01",value176); } else { map.h["TNT_ABNU_EX05_01"] = value176; } var value177 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_WRONG1","That would be the LOWEST number of people who could ride the Ferris wheel. Stop texting and do it again!"); if(__map_reserved["TNT_ABNU_EX05_WRONG1"] != null) { map.setReserved("TNT_ABNU_EX05_WRONG1",value177); } else { map.h["TNT_ABNU_EX05_WRONG1"] = value177; } var value178 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_WRONG2","This is only a small fraction of the number who rode the most popular ride. It’s plausible there were many more."); if(__map_reserved["TNT_ABNU_EX05_WRONG2"] != null) { map.setReserved("TNT_ABNU_EX05_WRONG2",value178); } else { map.h["TNT_ABNU_EX05_WRONG2"] = value178; } var value179 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_WRONG3","Think higher! The most popular ride had 531 riders. The Ferris wheel didn't have that many, but it’s possible that it had more than what you just entered."); if(__map_reserved["TNT_ABNU_EX05_WRONG3"] != null) { map.setReserved("TNT_ABNU_EX05_WRONG3",value179); } else { map.h["TNT_ABNU_EX05_WRONG3"] = value179; } var value180 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_WRONG4","Is this really the highest possible? What if the Ferris wheel was the second most popular ride?"); if(__map_reserved["TNT_ABNU_EX05_WRONG4"] != null) { map.setReserved("TNT_ABNU_EX05_WRONG4",value180); } else { map.h["TNT_ABNU_EX05_WRONG4"] = value180; } var value181 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_WRONG5","Close, but is this really the highest possible? What if the Ferris wheel was the second most popular ride?"); if(__map_reserved["TNT_ABNU_EX05_WRONG5"] != null) { map.setReserved("TNT_ABNU_EX05_WRONG5",value181); } else { map.h["TNT_ABNU_EX05_WRONG5"] = value181; } var value182 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_WRONG6","Too high. That's the number who rode the most popular ride."); if(__map_reserved["TNT_ABNU_EX05_WRONG6"] != null) { map.setReserved("TNT_ABNU_EX05_WRONG6",value182); } else { map.h["TNT_ABNU_EX05_WRONG6"] = value182; } var value183 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_WRONG7","Too high. That's more than the number who rode the most popular ride."); if(__map_reserved["TNT_ABNU_EX05_WRONG7"] != null) { map.setReserved("TNT_ABNU_EX05_WRONG7",value183); } else { map.h["TNT_ABNU_EX05_WRONG7"] = value183; } var value184 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX05_RIGHT","Good going! You're working hard to avoid biases here. That’s a number nearly as high as the most popular ride."); if(__map_reserved["TNT_ABNU_EX05_RIGHT"] != null) { map.setReserved("TNT_ABNU_EX05_RIGHT",value184); } else { map.h["TNT_ABNU_EX05_RIGHT"] = value184; } var value185 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_MITI4_01","All right, let's look at the new range you made.\n"); if(__map_reserved["TNT_ABNU_MITI4_01"] != null) { map.setReserved("TNT_ABNU_MITI4_01",value185); } else { map.h["TNT_ABNU_MITI4_01"] = value185; } var value186 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX06_01","Calculate the midpoint of your two end points—give me the average of this range."); if(__map_reserved["TNT_ABNU_EX06_01"] != null) { map.setReserved("TNT_ABNU_EX06_01",value186); } else { map.h["TNT_ABNU_EX06_01"] = value186; } var value187 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX06_WRONG","That's not the midpoint. Calculate the average of the range you found - high number plus low number, then divide by 2. \n(High+Low)/2."); if(__map_reserved["TNT_ABNU_EX06_WRONG"] != null) { map.setReserved("TNT_ABNU_EX06_WRONG",value187); } else { map.h["TNT_ABNU_EX06_WRONG"] = value187; } var value188 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX06_ALMOST","Not quite the midpoint, but it's close enough. In case you were curious, the actual midpoint is *MIDPOINT_TOKEN. \n"); if(__map_reserved["TNT_ABNU_EX06_ALMOST"] != null) { map.setReserved("TNT_ABNU_EX06_ALMOST",value188); } else { map.h["TNT_ABNU_EX06_ALMOST"] = value188; } var value189 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX06_RIGHT","On the nose! Do you want to balance my checkbook after class?"); if(__map_reserved["TNT_ABNU_EX06_RIGHT"] != null) { map.setReserved("TNT_ABNU_EX06_RIGHT",value189); } else { map.h["TNT_ABNU_EX06_RIGHT"] = value189; } var value190 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_EX06_SKIP","Hm. Tricky arithmetic, I know. Better luck on the next one."); if(__map_reserved["TNT_ABNU_EX06_SKIP"] != null) { map.setReserved("TNT_ABNU_EX06_SKIP",value190); } else { map.h["TNT_ABNU_EX06_SKIP"] = value190; } var value191 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_END_01","Remember this stuff—it's the only way you're going to make it off this rock alive."); if(__map_reserved["TNT_ABNU_END_01"] != null) { map.setReserved("TNT_ABNU_END_01",value191); } else { map.h["TNT_ABNU_END_01"] = value191; } var value192 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_INTRO1-1","Now, where is that Ms. A? Reviewing our liability disclaimers, again? Enough with the paperwork, I need her help here."); if(__map_reserved["TNT_ABNU_SAT_INTRO1-1"] != null) { map.setReserved("TNT_ABNU_SAT_INTRO1-1",value192); } else { map.h["TNT_ABNU_SAT_INTRO1-1"] = value192; } var value193 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_1-1","Paperwork is the one thing between you and .. Nevermind. \"What's the trigger?\" The trigger is the word or aspect that causes you to fall for the bias. For the type of Anchoring Bias Mr. Q showed you, the trigger is a number."); if(__map_reserved["TNT_ABNU_SAT_1-1"] != null) { map.setReserved("TNT_ABNU_SAT_1-1",value193); } else { map.h["TNT_ABNU_SAT_1-1"] = value193; } var value194 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_INTRO2-1","Ms. A's got more up her sleeve. Ms. A? Take it away! (I'm a poet and I didn't know it.)"); if(__map_reserved["TNT_ABNU_SAT_INTRO2-1"] != null) { map.setReserved("TNT_ABNU_SAT_INTRO2-1",value194); } else { map.h["TNT_ABNU_SAT_INTRO2-1"] = value194; } var value195 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_2-1","Um. Okay, Mr. Q. Anyway, so, now you have something else to consider. Can you spot the triggers? They are the numbers and number questions."); if(__map_reserved["TNT_ABNU_SAT_2-1"] != null) { map.setReserved("TNT_ABNU_SAT_2-1",value195); } else { map.h["TNT_ABNU_SAT_2-1"] = value195; } var value196 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_2-2","So what is the trigger in this challenge? Take a look at the workbook to find out."); if(__map_reserved["TNT_ABNU_SAT_2-2"] != null) { map.setReserved("TNT_ABNU_SAT_2-2",value196); } else { map.h["TNT_ABNU_SAT_2-2"] = value196; } var value197 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_OUTRO2-1","On to the next exercise! Come join me."); if(__map_reserved["TNT_ABNU_SAT_OUTRO2-1"] != null) { map.setReserved("TNT_ABNU_SAT_OUTRO2-1",value197); } else { map.h["TNT_ABNU_SAT_OUTRO2-1"] = value197; } var value198 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_EX1_HEADER","Q #1 and Q #2"); if(__map_reserved["TNT_ABNU_SAT_EX1_HEADER"] != null) { map.setReserved("TNT_ABNU_SAT_EX1_HEADER",value198); } else { map.h["TNT_ABNU_SAT_EX1_HEADER"] = value198; } var value199 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q1_Q1","Q #1: What's the Bias?"); if(__map_reserved["TNT_ABNU_SAT_Q1_Q1"] != null) { map.setReserved("TNT_ABNU_SAT_Q1_Q1",value199); } else { map.h["TNT_ABNU_SAT_Q1_Q1"] = value199; } var value200 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q1_A1","Letting my guess be influenced by a number they've shown me first"); if(__map_reserved["TNT_ABNU_SAT_Q1_A1"] != null) { map.setReserved("TNT_ABNU_SAT_Q1_A1",value200); } else { map.h["TNT_ABNU_SAT_Q1_A1"] = value200; } var value201 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q2_Q1","Q #2: What's the Trigger?"); if(__map_reserved["TNT_ABNU_SAT_Q2_Q1"] != null) { map.setReserved("TNT_ABNU_SAT_Q2_Q1",value201); } else { map.h["TNT_ABNU_SAT_Q2_Q1"] = value201; } var value202 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q2_A1","The number 7."); if(__map_reserved["TNT_ABNU_SAT_Q2_A1"] != null) { map.setReserved("TNT_ABNU_SAT_Q2_A1",value202); } else { map.h["TNT_ABNU_SAT_Q2_A1"] = value202; } var value203 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_EX2_HEADER","Q #1 and Q #2"); if(__map_reserved["TNT_ABNU_SAT_EX2_HEADER"] != null) { map.setReserved("TNT_ABNU_SAT_EX2_HEADER",value203); } else { map.h["TNT_ABNU_SAT_EX2_HEADER"] = value203; } var value204 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q1b_Q1","Q #1: What's the Bias?"); if(__map_reserved["TNT_ABNU_SAT_Q1b_Q1"] != null) { map.setReserved("TNT_ABNU_SAT_Q1b_Q1",value204); } else { map.h["TNT_ABNU_SAT_Q1b_Q1"] = value204; } var value205 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q1b_A1","Letting your guess be influenced by a number they've shown you first"); if(__map_reserved["TNT_ABNU_SAT_Q1b_A1"] != null) { map.setReserved("TNT_ABNU_SAT_Q1b_A1",value205); } else { map.h["TNT_ABNU_SAT_Q1b_A1"] = value205; } var value206 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q2b_Q1","Q #2: What's the Trigger?"); if(__map_reserved["TNT_ABNU_SAT_Q2b_Q1"] != null) { map.setReserved("TNT_ABNU_SAT_Q2b_Q1",value206); } else { map.h["TNT_ABNU_SAT_Q2b_Q1"] = value206; } var value207 = new assets_strings_PaistStringsXmlElement("TNT_ABNU_SAT_Q2b_A1","How many guests? 531 on the carousel."); if(__map_reserved["TNT_ABNU_SAT_Q2b_A1"] != null) { map.setReserved("TNT_ABNU_SAT_Q2b_A1",value207); } else { map.h["TNT_ABNU_SAT_Q2b_A1"] = value207; } return map; }; var com_firstplayable_hxlib_Severity = $hxClasses["com.firstplayable.hxlib.Severity"] = { __ename__ : ["com","firstplayable","hxlib","Severity"], __constructs__ : ["Info","Warn","Error"] }; com_firstplayable_hxlib_Severity.Info = ["Info",0]; com_firstplayable_hxlib_Severity.Info.toString = $estr; com_firstplayable_hxlib_Severity.Info.__enum__ = com_firstplayable_hxlib_Severity; com_firstplayable_hxlib_Severity.Warn = ["Warn",1]; com_firstplayable_hxlib_Severity.Warn.toString = $estr; com_firstplayable_hxlib_Severity.Warn.__enum__ = com_firstplayable_hxlib_Severity; com_firstplayable_hxlib_Severity.Error = ["Error",2]; com_firstplayable_hxlib_Severity.Error.toString = $estr; com_firstplayable_hxlib_Severity.Error.__enum__ = com_firstplayable_hxlib_Severity; com_firstplayable_hxlib_Severity.__empty_constructs__ = [com_firstplayable_hxlib_Severity.Info,com_firstplayable_hxlib_Severity.Warn,com_firstplayable_hxlib_Severity.Error]; var com_firstplayable_hxlib_Debug = function() { }; $hxClasses["com.firstplayable.hxlib.Debug"] = com_firstplayable_hxlib_Debug; com_firstplayable_hxlib_Debug.__name__ = ["com","firstplayable","hxlib","Debug"]; com_firstplayable_hxlib_Debug.stream = function() { return com_firstplayable_hxlib_Debug.m_outStream.b; }; com_firstplayable_hxlib_Debug.hush = function(severity,codePos) { if(severity == null) { severity = com_firstplayable_hxlib_Severity.Info; } var key = codePos.className; var _this = com_firstplayable_hxlib_Debug.hushes; if(__map_reserved[key] != null) { _this.setReserved(key,severity); } else { _this.h[key] = severity; } return true; }; com_firstplayable_hxlib_Debug.warn = function(msg,codePos) { com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,codePos); }; com_firstplayable_hxlib_Debug.error = function(msg,codePos) { com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Error,codePos); }; com_firstplayable_hxlib_Debug.log_if = function(condition,msg,codePos) { if(condition) { com_firstplayable_hxlib_Debug.logHelper(msg,null,codePos); } return condition; }; com_firstplayable_hxlib_Debug.warn_if = function(condition,msg,codePos) { if(condition) { com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,codePos); } return condition; }; com_firstplayable_hxlib_Debug.error_if = function(condition,msg,codePos) { if(condition) { com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Error,codePos); } return condition; }; com_firstplayable_hxlib_Debug.log = function(msg,severity,codePos) { com_firstplayable_hxlib_Debug.logHelper(msg,severity,codePos); }; com_firstplayable_hxlib_Debug.logHelper = function(msg,severity,codePos,logPos) { if(msg == null) { msg = "null"; } if(severity == null) { severity = com_firstplayable_hxlib_Severity.Info; } var tmp; if(codePos != null) { var key = codePos.className; var _this = com_firstplayable_hxlib_Debug.hushes; if(__map_reserved[key] != null) { tmp = _this.existsReserved(key); } else { tmp = _this.h.hasOwnProperty(key); } } else { tmp = false; } if(tmp) { var key1 = codePos.className; var _this1 = com_firstplayable_hxlib_Debug.hushes; if((__map_reserved[key1] != null ? _this1.getReserved(key1) : _this1.h[key1])[1] >= severity[1]) { return; } } var warnType = ""; var logColor = 0; if(severity == com_firstplayable_hxlib_Severity.Error) { logColor = 14090240; warnType = "!!! ERROR: "; if(logPos == null) { logPos = true; } } else if(severity == com_firstplayable_hxlib_Severity.Warn) { logColor = 15775499; warnType = "??? WARNING: "; if(logPos == null) { logPos = true; } } var methodPrefix = ""; var fileLinePrefix = ""; if(logPos && codePos != null) { var fileNameRaw = codePos.fileName == null ? "null" : "" + codePos.fileName; var fileNameLastSlash = fileNameRaw.lastIndexOf("/"); if(fileNameLastSlash >= 0) { ++fileNameLastSlash; } var fileName = fileNameRaw.substring(fileNameLastSlash); fileNameLastSlash = fileName.lastIndexOf("\\"); if(fileNameLastSlash >= 0) { ++fileNameLastSlash; } fileName = fileName.substring(fileNameLastSlash); fileLinePrefix = fileName + ":" + (codePos.lineNumber == null ? "null" : "" + codePos.lineNumber) + ": "; var classNameRaw = codePos.className == null ? "null" : "" + codePos.className; var classNameLastDot = classNameRaw.lastIndexOf("."); if(classNameLastDot >= 0) { ++classNameLastDot; } var className = classNameRaw.substring(classNameLastDot); methodPrefix = className + "." + (codePos.methodName == null ? "null" : "" + codePos.methodName) + ": "; } var stringMsg = msg == null ? "null" : "" + msg; var logMsg = warnType + methodPrefix + stringMsg; var alertBoxMsg = warnType + fileLinePrefix + methodPrefix + stringMsg; }; com_firstplayable_hxlib_Debug.trin = function(codePos) { com_firstplayable_hxlib_Debug.logHelper("==>",com_firstplayable_hxlib_Severity.Info,codePos); }; com_firstplayable_hxlib_Debug.trout = function(codePos) { com_firstplayable_hxlib_Debug.logHelper("<==",com_firstplayable_hxlib_Severity.Info,codePos); }; com_firstplayable_hxlib_Debug.trhere = function(codePos) { com_firstplayable_hxlib_Debug.logHelper("<@>",com_firstplayable_hxlib_Severity.Info,codePos,true); }; com_firstplayable_hxlib_Debug.exists = function(val,severity,varname,codePos) { if(varname == null) { varname = "variable"; } if(severity == null) { severity = com_firstplayable_hxlib_Severity.Warn; } if(val != null) { return true; } else { com_firstplayable_hxlib_Debug.logHelper(varname + " is null!",severity,codePos); return false; } }; var com_firstplayable_hxlib_StdX = function() { }; $hxClasses["com.firstplayable.hxlib.StdX"] = com_firstplayable_hxlib_StdX; com_firstplayable_hxlib_StdX.__name__ = ["com","firstplayable","hxlib","StdX"]; com_firstplayable_hxlib_StdX["as"] = function(obj,type) { if(js_Boot.__instanceof(obj,type)) { return obj; } else { return null; } }; com_firstplayable_hxlib_StdX.to = function(obj,type) { return obj; }; com_firstplayable_hxlib_StdX.isNull = function(obj) { return obj == null; }; com_firstplayable_hxlib_StdX.isValid = function(obj) { return obj != null; }; com_firstplayable_hxlib_StdX.parseBool = function(value,trueSet,falseSet,errorReturn) { if(errorReturn == null) { errorReturn = false; } if(value.length <= 0) { com_firstplayable_hxlib_Debug.logHelper("Parsed bool( \"\" ) is an unexpected/invalid value. Returning " + (errorReturn == null ? "null" : "" + errorReturn) + ".",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StdX.hx", lineNumber : 84, className : "com.firstplayable.hxlib.StdX", methodName : "parseBool"}); return errorReturn; } if(trueSet != null) { var _g = 0; while(_g < trueSet.length) { var knownTrue = trueSet[_g]; ++_g; if(knownTrue != value) { continue; } return true; } } if(falseSet != null) { var _g1 = 0; while(_g1 < falseSet.length) { var knownFalse = falseSet[_g1]; ++_g1; if(knownFalse != value) { continue; } return false; } } var normalizedString = value.toLowerCase(); if(trueSet == null && normalizedString == "true" || normalizedString == "yes") { return true; } else if(falseSet == null && normalizedString == "false" || normalizedString == "no") { return false; } com_firstplayable_hxlib_Debug.logHelper("Parsed bool( '" + value + "' ) is an unexpected/invalid value. Returning " + (errorReturn == null ? "null" : "" + errorReturn) + ".",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StdX.hx", lineNumber : 129, className : "com.firstplayable.hxlib.StdX", methodName : "parseBool"}); return errorReturn; }; com_firstplayable_hxlib_StdX["int"] = function(bool) { if(bool) { return 1; } else { return 0; } }; com_firstplayable_hxlib_StdX.bool = function($int) { if($int > 0) { return true; } else { return false; } }; com_firstplayable_hxlib_StdX.parseFloat = function(input,warnOnNaN) { if(warnOnNaN == null) { warnOnNaN = true; } var fl = parseFloat(input); var isValid = !isNaN(fl); if(!isValid && warnOnNaN) { com_firstplayable_hxlib_Debug.logHelper("Value could not be casted to float: '" + input + "'.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StdX.hx", lineNumber : 164, className : "com.firstplayable.hxlib.StdX", methodName : "parseFloat"}); } if(isValid) { return fl; } else { return 0.0; } }; com_firstplayable_hxlib_StdX.__super__ = Std; com_firstplayable_hxlib_StdX.prototype = $extend(Std.prototype,{ __class__: com_firstplayable_hxlib_StdX }); var com_firstplayable_hxlib_app_ScaleMode = $hxClasses["com.firstplayable.hxlib.app.ScaleMode"] = { __ename__ : ["com","firstplayable","hxlib","app","ScaleMode"], __constructs__ : ["NONE","FIT","CROP","WIDTH","HEIGHT"] }; com_firstplayable_hxlib_app_ScaleMode.NONE = ["NONE",0]; com_firstplayable_hxlib_app_ScaleMode.NONE.toString = $estr; com_firstplayable_hxlib_app_ScaleMode.NONE.__enum__ = com_firstplayable_hxlib_app_ScaleMode; com_firstplayable_hxlib_app_ScaleMode.FIT = ["FIT",1]; com_firstplayable_hxlib_app_ScaleMode.FIT.toString = $estr; com_firstplayable_hxlib_app_ScaleMode.FIT.__enum__ = com_firstplayable_hxlib_app_ScaleMode; com_firstplayable_hxlib_app_ScaleMode.CROP = ["CROP",2]; com_firstplayable_hxlib_app_ScaleMode.CROP.toString = $estr; com_firstplayable_hxlib_app_ScaleMode.CROP.__enum__ = com_firstplayable_hxlib_app_ScaleMode; com_firstplayable_hxlib_app_ScaleMode.WIDTH = ["WIDTH",3]; com_firstplayable_hxlib_app_ScaleMode.WIDTH.toString = $estr; com_firstplayable_hxlib_app_ScaleMode.WIDTH.__enum__ = com_firstplayable_hxlib_app_ScaleMode; com_firstplayable_hxlib_app_ScaleMode.HEIGHT = ["HEIGHT",4]; com_firstplayable_hxlib_app_ScaleMode.HEIGHT.toString = $estr; com_firstplayable_hxlib_app_ScaleMode.HEIGHT.__enum__ = com_firstplayable_hxlib_app_ScaleMode; com_firstplayable_hxlib_app_ScaleMode.__empty_constructs__ = [com_firstplayable_hxlib_app_ScaleMode.NONE,com_firstplayable_hxlib_app_ScaleMode.FIT,com_firstplayable_hxlib_app_ScaleMode.CROP,com_firstplayable_hxlib_app_ScaleMode.WIDTH,com_firstplayable_hxlib_app_ScaleMode.HEIGHT]; var com_firstplayable_hxlib_app_MainLoop = function() { }; $hxClasses["com.firstplayable.hxlib.app.MainLoop"] = com_firstplayable_hxlib_app_MainLoop; com_firstplayable_hxlib_app_MainLoop.__name__ = ["com","firstplayable","hxlib","app","MainLoop"]; com_firstplayable_hxlib_app_MainLoop.getPhase = function(phaseId) { if(com_firstplayable_hxlib_app_MainLoop.isValid(phaseId)) { return com_firstplayable_hxlib_app_MainLoop.m_phases[phaseId]; } else { return null; } }; com_firstplayable_hxlib_app_MainLoop.init = function(fps) { if(fps == null) { fps = openfl_Lib.current.stage.get_frameRate(); } com_firstplayable_hxlib_app_MainLoop.updatePeriod = Math.ceil(1000 / fps); com_firstplayable_hxlib_app_MainLoop.m_phases = []; com_firstplayable_hxlib_app_MainLoop.m_phases.push(new com_firstplayable_hxlib_app_UpdatePhase(0,com_firstplayable_hxlib_app_MainLoop.updatePeriod)); com_firstplayable_hxlib_app_MainLoop.m_phases.push(new com_firstplayable_hxlib_app_UpdatePhase(1,com_firstplayable_hxlib_app_MainLoop.updatePeriod)); com_firstplayable_hxlib_app_MainLoop.m_phases.push(new com_firstplayable_hxlib_app_UpdatePhase(2,com_firstplayable_hxlib_app_MainLoop.updatePeriod)); var condition = com_firstplayable_hxlib_app_MainLoop.m_phases.length != 3; if(condition) { com_firstplayable_hxlib_Debug.logHelper("Incorrect number of Update Phases initialized!",com_firstplayable_hxlib_Severity.Error,{ fileName : "MainLoop.hx", lineNumber : 75, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "init"}); } var _g = 0; while(_g < 3) { var phaseId = _g++; var condition1 = com_firstplayable_hxlib_app_MainLoop.m_phases[phaseId] == null; if(condition1) { com_firstplayable_hxlib_Debug.logHelper("Update Phase " + phaseId + " is not initialized!",com_firstplayable_hxlib_Severity.Error,{ fileName : "MainLoop.hx", lineNumber : 79, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "init"}); } } com_firstplayable_hxlib_app_MainLoop.isReady = true; com_firstplayable_hxlib_app_MainLoop.resume(); }; com_firstplayable_hxlib_app_MainLoop.pause = function() { openfl_Lib.current.stage.removeEventListener("enterFrame",com_firstplayable_hxlib_app_MainLoop.doUpdates); }; com_firstplayable_hxlib_app_MainLoop.resume = function() { com_firstplayable_hxlib_app_MainLoop.lastUpdateTime = com_firstplayable_hxlib_app_MonotonicTime.get(); openfl_Lib.current.stage.addEventListener("enterFrame",com_firstplayable_hxlib_app_MainLoop.doUpdates); }; com_firstplayable_hxlib_app_MainLoop.isValid = function(phaseId) { if(phaseId == -1) { com_firstplayable_hxlib_Debug.logHelper("NO_PHASE cannot be used as an UpdatePhaseId in this context.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MainLoop.hx", lineNumber : 103, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "isValid"}); return false; } else if(phaseId == 3) { com_firstplayable_hxlib_Debug.logHelper("NUM_UPDATE_PHASES cannot be used as an UpdatePhaseId.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MainLoop.hx", lineNumber : 108, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "isValid"}); return false; } return true; }; com_firstplayable_hxlib_app_MainLoop.runUpdate = function(updateableObject,phaseId) { if(phaseId == null) { phaseId = 1; } if(!com_firstplayable_hxlib_app_MainLoop.isReady) { return; } var severity = null; if(severity == null) { severity = com_firstplayable_hxlib_Severity.Warn; } var tmp; if(updateableObject != null) { tmp = true; } else { com_firstplayable_hxlib_Debug.logHelper("variable" + " is null!",severity,{ fileName : "MainLoop.hx", lineNumber : 123, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "runUpdate"}); tmp = false; } if(tmp) { com_firstplayable_hxlib_app_MainLoop.runUpdateFunction($bind(updateableObject,updateableObject.update),phaseId); } }; com_firstplayable_hxlib_app_MainLoop.stopUpdate = function(updateableObject,phaseId) { if(phaseId == null) { phaseId = 1; } if(!com_firstplayable_hxlib_app_MainLoop.isReady) { com_firstplayable_hxlib_Debug.logHelper("MainLoop.init() has not been run!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MainLoop.hx", lineNumber : 133, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "stopUpdate"}); return; } var severity = null; if(severity == null) { severity = com_firstplayable_hxlib_Severity.Warn; } var tmp; if(updateableObject != null) { tmp = true; } else { com_firstplayable_hxlib_Debug.logHelper("variable" + " is null!",severity,{ fileName : "MainLoop.hx", lineNumber : 135, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "stopUpdate"}); tmp = false; } if(tmp) { com_firstplayable_hxlib_app_MainLoop.stopUpdateFunction($bind(updateableObject,updateableObject.update),phaseId); } }; com_firstplayable_hxlib_app_MainLoop.runUpdateFunction = function(updateFunction,phaseId) { if(phaseId == null) { phaseId = 1; } if(!com_firstplayable_hxlib_app_MainLoop.isReady) { com_firstplayable_hxlib_Debug.logHelper("MainLoop.init() has not been run!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MainLoop.hx", lineNumber : 145, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "runUpdateFunction"}); return; } var tmp; if(com_firstplayable_hxlib_app_MainLoop.isValid(phaseId)) { var severity = null; if(severity == null) { severity = com_firstplayable_hxlib_Severity.Warn; } if(updateFunction != null) { tmp = true; } else { com_firstplayable_hxlib_Debug.logHelper("variable" + " is null!",severity,{ fileName : "MainLoop.hx", lineNumber : 147, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "runUpdateFunction"}); tmp = false; } } else { tmp = false; } if(tmp) { com_firstplayable_hxlib_app_MainLoop.m_phases[phaseId].runUpdateFunction(updateFunction); } }; com_firstplayable_hxlib_app_MainLoop.stopUpdateFunction = function(updateFunction,phaseId) { if(phaseId == null) { phaseId = 1; } if(!com_firstplayable_hxlib_app_MainLoop.isReady) { com_firstplayable_hxlib_Debug.logHelper("MainLoop.init() has not been run!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MainLoop.hx", lineNumber : 157, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "stopUpdateFunction"}); return; } var tmp; if(com_firstplayable_hxlib_app_MainLoop.isValid(phaseId)) { var severity = null; if(severity == null) { severity = com_firstplayable_hxlib_Severity.Warn; } if(updateFunction != null) { tmp = true; } else { com_firstplayable_hxlib_Debug.logHelper("variable" + " is null!",severity,{ fileName : "MainLoop.hx", lineNumber : 159, className : "com.firstplayable.hxlib.app.MainLoop", methodName : "stopUpdateFunction"}); tmp = false; } } else { tmp = false; } if(tmp) { com_firstplayable_hxlib_app_MainLoop.m_phases[phaseId].stopUpdateFunction(updateFunction); } }; com_firstplayable_hxlib_app_MainLoop.doUpdates = function(e) { com_firstplayable_hxlib_app_MainLoop.now = com_firstplayable_hxlib_app_MonotonicTime.get(); var frameTime = com_firstplayable_hxlib_app_MainLoop.now - com_firstplayable_hxlib_app_MainLoop.lastUpdateTime; if(frameTime > 250) { frameTime = 250; } com_firstplayable_hxlib_app_MainLoop.isUpdating = true; var _g = 0; var _g1 = com_firstplayable_hxlib_app_MainLoop.m_phases; while(_g < _g1.length) { var phase = _g1[_g]; ++_g; com_firstplayable_hxlib_app_MainLoop.currentPhase = phase.id; phase.update(frameTime); } com_firstplayable_hxlib_app_MainLoop.lastUpdateTime = com_firstplayable_hxlib_app_MainLoop.now; com_firstplayable_hxlib_app_MainLoop.isUpdating = false; com_firstplayable_hxlib_app_MainLoop.currentPhase = -1; }; var com_firstplayable_hxlib_app__$Time_Seconds_$Impl_$ = {}; $hxClasses["com.firstplayable.hxlib.app._Time.Seconds_Impl_"] = com_firstplayable_hxlib_app__$Time_Seconds_$Impl_$; com_firstplayable_hxlib_app__$Time_Seconds_$Impl_$.__name__ = ["com","firstplayable","hxlib","app","_Time","Seconds_Impl_"]; com_firstplayable_hxlib_app__$Time_Seconds_$Impl_$._new = function(seconds) { var this1 = seconds * 1000; return this1; }; var com_firstplayable_hxlib_app__$Time_Minutes_$Impl_$ = {}; $hxClasses["com.firstplayable.hxlib.app._Time.Minutes_Impl_"] = com_firstplayable_hxlib_app__$Time_Minutes_$Impl_$; com_firstplayable_hxlib_app__$Time_Minutes_$Impl_$.__name__ = ["com","firstplayable","hxlib","app","_Time","Minutes_Impl_"]; com_firstplayable_hxlib_app__$Time_Minutes_$Impl_$._new = function(minutes) { var this1 = minutes * 60000; return this1; }; var com_firstplayable_hxlib_app_MonotonicTime = function() { }; $hxClasses["com.firstplayable.hxlib.app.MonotonicTime"] = com_firstplayable_hxlib_app_MonotonicTime; com_firstplayable_hxlib_app_MonotonicTime.__name__ = ["com","firstplayable","hxlib","app","MonotonicTime"]; com_firstplayable_hxlib_app_MonotonicTime.get = function() { if(window.performance != null) { return window.performance.now(); } else { return new Date().getTime(); } }; var com_firstplayable_hxlib_app_UpdatePhase = function(phaseId,updatePeriod) { this.id = phaseId; this.set_enabled(true); this.period = updatePeriod; this.init(); this.updateFunctions = new List(); }; $hxClasses["com.firstplayable.hxlib.app.UpdatePhase"] = com_firstplayable_hxlib_app_UpdatePhase; com_firstplayable_hxlib_app_UpdatePhase.__name__ = ["com","firstplayable","hxlib","app","UpdatePhase"]; com_firstplayable_hxlib_app_UpdatePhase.prototype = { id: null ,enabled: null ,period: null ,now: null ,timeLeft: null ,currentUpdateWillRender: null ,frameTime: null ,updateFunctions: null ,init: function() { this.now = 0; this.timeLeft = 0; } ,runUpdateFunction: function(updateFunction) { if(!Lambda.has(this.updateFunctions,updateFunction)) { this.updateFunctions.push(updateFunction); } } ,stopUpdateFunction: function(updateFunction) { this.updateFunctions.remove(updateFunction); } ,set_enabled: function(enable) { if(enable) { this.init(); } return this.enabled = enable; } ,get_currentUpdateWillRender: function() { return this.timeLeft - this.period < this.period; } ,update: function(aFrameTime) { this.frameTime = aFrameTime; if(!this.enabled) { return; } this.timeLeft += aFrameTime; while(this.timeLeft >= this.period) { var _g_head = this.updateFunctions.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var updateFuntion = val; updateFuntion({ phase : this}); } this.timeLeft -= this.period; this.now += this.period; } } ,__class__: com_firstplayable_hxlib_app_UpdatePhase ,__properties__: {get_currentUpdateWillRender:"get_currentUpdateWillRender",set_enabled:"set_enabled"} }; var com_firstplayable_hxlib_app_Updateable = function() { }; $hxClasses["com.firstplayable.hxlib.app.Updateable"] = com_firstplayable_hxlib_app_Updateable; com_firstplayable_hxlib_app_Updateable.__name__ = ["com","firstplayable","hxlib","app","Updateable"]; com_firstplayable_hxlib_app_Updateable.prototype = { update: null ,__class__: com_firstplayable_hxlib_app_Updateable }; var com_firstplayable_hxlib_audio_WebAudio = function() { this.qLimit = 0; this.m_audioOptions = new haxe_ds_StringMap(); this.m_audioLoads = new haxe_ds_StringMap(); this.m_audioQ = []; this.event = new openfl_events_EventDispatcher(); }; $hxClasses["com.firstplayable.hxlib.audio.WebAudio"] = com_firstplayable_hxlib_audio_WebAudio; com_firstplayable_hxlib_audio_WebAudio.__name__ = ["com","firstplayable","hxlib","audio","WebAudio"]; com_firstplayable_hxlib_audio_WebAudio.__properties__ = {set_movieVolume:"set_movieVolume",set_bgmVolume:"set_bgmVolume",set_volume:"set_volume",set_muteMovie:"set_muteMovie",set_muteBgm:"set_muteBgm",set_mute:"set_mute",get_instance:"get_instance"}; com_firstplayable_hxlib_audio_WebAudio.get_instance = function() { if(com_firstplayable_hxlib_audio_WebAudio.instance == null) { com_firstplayable_hxlib_audio_WebAudio.instance = new com_firstplayable_hxlib_audio_WebAudio(); com_firstplayable_hxlib_audio_WebAudio.set_mute(false); } return com_firstplayable_hxlib_audio_WebAudio.instance; }; com_firstplayable_hxlib_audio_WebAudio.set_mute = function(muted) { if(muted) { Howler.volume(0); } else { Howler.volume(1); } return com_firstplayable_hxlib_audio_WebAudio.mute = muted; }; com_firstplayable_hxlib_audio_WebAudio.set_muteBgm = function(muted) { com_firstplayable_hxlib_audio_WebAudio.set_bgmVolume(muted ? 0 : 0.65); return com_firstplayable_hxlib_audio_WebAudio.muteBgm = muted; }; com_firstplayable_hxlib_audio_WebAudio.set_muteMovie = function(muted) { com_firstplayable_hxlib_audio_WebAudio.set_movieVolume(muted ? 0 : 1.0); return com_firstplayable_hxlib_audio_WebAudio.muteMovie = muted; }; com_firstplayable_hxlib_audio_WebAudio.set_volume = function(newVolume) { return com_firstplayable_hxlib_audio_WebAudio.volume = Howler.volume(newVolume); }; com_firstplayable_hxlib_audio_WebAudio.set_bgmVolume = function(vol) { if(com_firstplayable_hxlib_audio_WebAudio.m_curBgm != null && com_firstplayable_hxlib_audio_WebAudioObject.isValid(com_firstplayable_hxlib_audio_WebAudio.m_curBgm)) { com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.volume(Math.max(0,Math.min(vol,1.0))); } return com_firstplayable_hxlib_audio_WebAudio.bgmVolume = vol; }; com_firstplayable_hxlib_audio_WebAudio.set_movieVolume = function(vol) { com_firstplayable_hxlib_audio_WebAudio.get_instance().event.dispatchEvent(new com_firstplayable_hxlib_events_VolumeChangedEvent("VolumeChanged_MOVIE",vol)); return com_firstplayable_hxlib_audio_WebAudio.movieVolume = vol; }; com_firstplayable_hxlib_audio_WebAudio.prototype = { qLimit: null ,m_audioOptions: null ,m_audioLoads: null ,m_audioQ: null ,m_curSnd: null ,m_doneCallback: null ,event: null ,interrupt: function() { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("interrupting sounds..." + Std.string(this.m_audioQ),null,{ fileName : "WebAudio.hx", lineNumber : 264, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "interrupt"}); } this.m_audioQ = []; if(this.m_curSnd != null && com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { this.m_curSnd.sound.off("end",null); this.m_curSnd.sound.pause(); this.m_curSnd.sound.seek(0); } this.stop(); } ,clearQueue: function() { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("Clearing audio queue..." + Std.string(this.m_audioQ),null,{ fileName : "WebAudio.hx", lineNumber : 292, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "clearQueue"}); } this.m_audioQ = []; } ,stopAllSounds: function() { var _this = this.m_audioLoads; var loads = new haxe_ds__$StringMap_StringMapIterator(_this,_this.arrayKeys()); while(loads.hasNext()) { var loads1 = loads.next(); if(!com_firstplayable_hxlib_audio_WebAudioObject.isValid(loads1)) { continue; } if(loads1 == com_firstplayable_hxlib_audio_WebAudio.m_curBgm) { continue; } loads1.sound.off("end",null); loads1.sound.stop(); } } ,register: function(url,id) { this.multiRegister([url],id); } ,multiRegister: function(urls,id) { var _gthis = this; var sndName = id == null ? urls[0] : id; sndName = sndName.toLowerCase(); var options = { src : urls}; options.onplay = $bind(this,this.onPlay); options.onpause = $bind(this,this.onPause); options.onload = function() { _gthis.onLoad(sndName); }; options.onloaderror = function() { _gthis.onLoadError(sndName); }; options.autoplay = false; var _this = this.m_audioOptions; if(__map_reserved[sndName] != null ? _this.existsReserved(sndName) : _this.h.hasOwnProperty(sndName)) { com_firstplayable_hxlib_Debug.logHelper("Failed to register sound with duplicate id: " + sndName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "WebAudio.hx", lineNumber : 356, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "multiRegister"}); } else { var _this1 = this.m_audioOptions; if(__map_reserved[sndName] != null) { _this1.setReserved(sndName,options); } else { _this1.h[sndName] = options; } } } ,has: function(id) { var _this = this.m_audioLoads; return (__map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]) != null; } ,duration: function(id) { id = id.toLowerCase(); var _this = this.m_audioLoads; var sound = __map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]; if(sound == null) { return 0; } else { return sound.sound.duration(); } } ,unload: function(ids) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("unloading " + Std.string(ids),null,{ fileName : "WebAudio.hx", lineNumber : 410, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "unload"}); } var _g = 0; while(_g < ids.length) { var id = ids[_g]; ++_g; id = id.toLowerCase(); var _this = this.m_audioLoads; var sound = __map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]; if(!com_firstplayable_hxlib_audio_WebAudioObject.isValid(sound)) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound '" + id + "' not available - load it first",null,{ fileName : "WebAudio.hx", lineNumber : 419, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "unload"}); } continue; } sound.sound.unload(); this.m_audioLoads.remove(id); } } ,load: function(ids,onDone) { this.m_doneCallback = onDone; if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("loading " + Std.string(ids),null,{ fileName : "WebAudio.hx", lineNumber : 442, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "load"}); } var _g = 0; while(_g < ids.length) { var id = ids[_g]; ++_g; id = id.toLowerCase(); var _this = this.m_audioLoads; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound '" + id + "' is already loaded - skipping...",null,{ fileName : "WebAudio.hx", lineNumber : 448, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "load"}); } continue; } var _this1 = this.m_audioOptions; var opts = __map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]; if(opts == null) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound '" + id + "' not available - register it first",null,{ fileName : "WebAudio.hx", lineNumber : 456, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "load"}); } continue; } var snd = new com_firstplayable_hxlib_audio_WebAudioObject(id,new Howl(opts)); var _this2 = this.m_audioLoads; if(__map_reserved[id] != null) { _this2.setReserved(id,snd); } else { _this2.h[id] = snd; } } this.checkDoneLoading(); } ,onLoad: function(id) { if(id != null) { var _this = this.m_audioLoads; var wao = __map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]; if(wao == null) { com_firstplayable_hxlib_Debug.log("A sound loaded that we are not tracking: " + id,null,{ fileName : "WebAudio.hx", lineNumber : 489, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onLoad"}); } } else { com_firstplayable_hxlib_Debug.log("A sound loaded with id=null.",null,{ fileName : "WebAudio.hx", lineNumber : 494, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onLoad"}); } this.checkDoneLoading(); } ,onLoadError: function(id) { com_firstplayable_hxlib_Debug.log("A sound failed to load: " + id,null,{ fileName : "WebAudio.hx", lineNumber : 507, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onLoadError"}); this.m_audioLoads.remove(id); this.checkDoneLoading(); } ,checkDoneLoading: function() { var _this = this.m_audioLoads; var audioObj = new haxe_ds__$StringMap_StringMapIterator(_this,_this.arrayKeys()); while(audioObj.hasNext()) { var audioObj1 = audioObj.next(); if(audioObj1.sound.state() == "loading") { return; } } this.onLoadsComplete(); } ,onLoadsComplete: function() { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sounds loaded",null,{ fileName : "WebAudio.hx", lineNumber : 549, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onLoadsComplete"}); } var failed = []; var id = this.m_audioOptions.keys(); while(id.hasNext()) { var id1 = id.next(); var _this = this.m_audioLoads; if(!(__map_reserved[id1] != null ? _this.existsReserved(id1) : _this.h.hasOwnProperty(id1))) { failed.push(id1); } } var _this1 = this.m_audioLoads; var webAudioObj = new haxe_ds__$StringMap_StringMapIterator(_this1,_this1.arrayKeys()); while(webAudioObj.hasNext()) { var webAudioObj1 = webAudioObj.next(); if(webAudioObj1.sound == null || webAudioObj1.sound.state() != "loaded") { failed.push(webAudioObj1.id); } } if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("The following sounds failed to load... " + Std.string(failed),null,{ fileName : "WebAudio.hx", lineNumber : 570, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onLoadsComplete"}); } if(this.m_doneCallback != null) { this.m_doneCallback(); } } ,onPlay: function(id) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound start " + id,null,{ fileName : "WebAudio.hx", lineNumber : 598, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onPlay"}); } if(!com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("m_curSnd is null",null,{ fileName : "WebAudio.hx", lineNumber : 602, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onPlay"}); } return; } } ,onPause: function(id) { if(!com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { return; } if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound paused " + id,null,{ fileName : "WebAudio.hx", lineNumber : 615, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onPause"}); } } ,onEnd: function(id) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound ended " + id,null,{ fileName : "WebAudio.hx", lineNumber : 622, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onEnd"}); } if(!com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("m_curSnd is null",null,{ fileName : "WebAudio.hx", lineNumber : 626, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "onEnd"}); } return; } this.playNext(); } ,playNext: function() { if(com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd) && this.m_curSnd.sound.playing()) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("still playing, skipping...",null,{ fileName : "WebAudio.hx", lineNumber : 639, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "playNext"}); } return; } this.m_curSnd = this.m_audioQ.shift(); if(com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { this.m_curSnd.sound.play(); } } ,pause: function() { if(com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { this.m_curSnd.sound.pause(); } this.pauseBGM(); } ,resume: function() { this.resumeBGM(); if(!com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { return; } this.m_curSnd.sound.play(); if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound resumed; duration = " + Std.string(($_=this.m_curSnd.sound,$bind($_,$_.duration))),null,{ fileName : "WebAudio.hx", lineNumber : 700, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "resume"}); } } ,stop: function(id) { if(id != null) { this.stopID(id); } else { if(!com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd)) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("m_curSnd is null",null,{ fileName : "WebAudio.hx", lineNumber : 720, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "stop"}); } return; } if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("stopping sound ",null,{ fileName : "WebAudio.hx", lineNumber : 724, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "stop"}); } this.m_curSnd.sound.stop(); this.onEnd(); } } ,stopID: function(id) { id = id.toLowerCase(); var _this = this.m_audioLoads; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.m_audioLoads; var sound = __map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]; sound.sound.stop(); if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("stopping sound " + id,null,{ fileName : "WebAudio.hx", lineNumber : 754, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "stopID"}); } } } ,play: function(id,callback,vol,bgmduck) { if(bgmduck == null) { bgmduck = false; } if(vol == null) { vol = 0.85; } id = id.toLowerCase(); var _this = this.m_audioLoads; var sound = __map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]; if(sound == null) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("sound '" + id + "' not available - load it first",null,{ fileName : "WebAudio.hx", lineNumber : 790, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "play"}); } if(callback != null) { callback(); } return; } if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("Playing sound " + id + " with volume " + (vol == null ? "null" : "" + vol),null,{ fileName : "WebAudio.hx", lineNumber : 800, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "play"}); } var isSFX = id.indexOf("sfx") > -1; if(vol != null) { sound.sound.volume(Math.max(0,Math.min(vol,1.0))); } if(callback != null) { sound.sound.once("end",callback); } if(bgmduck) { this.duckBGM(); sound.sound.once("end",$bind(this,this.unDuckBGM)); } if(!isSFX) { sound.sound.once("end",$bind(this,this.onEnd)); } if(isSFX) { if(com_firstplayable_hxlib_audio_WebAudio.muteSfx) { sound.sound.volume(0); } sound.sound.play(); return; } if(this.m_audioQ.length == this.qLimit) { this.m_audioQ.pop(); } this.m_audioQ.push(sound); this.playNext(); } ,playVO: function(id,callback,vol,bgmduck) { if(bgmduck == null) { bgmduck = true; } if(vol == null) { vol = 1.0; } this.play(id,callback,vol,bgmduck); } ,playJingle: function(id,callback,vol,bgmduck) { if(bgmduck == null) { bgmduck = true; } if(vol == null) { vol = 0.9; } this.play(id,callback,vol,bgmduck); } ,isSoundPlaying: function(id) { if(com_firstplayable_hxlib_audio_WebAudioObject.isValid(this.m_curSnd) && this.m_curSnd.id == id && this.m_curSnd.sound.playing()) { return true; } return false; } ,isVOPlaying: function() { if(this.m_curSnd == null) { return false; } if(this.isSoundPlaying(this.m_curSnd.id)) { var lowerId = this.m_curSnd.id.toLowerCase(); var isVO = lowerId.indexOf("vo_") == 0; if(isVO) { return true; } } return false; } ,playBGM: function(id,restart,vol) { if(restart == null) { restart = true; } id = id.toLowerCase(); var tmp; if(!restart && com_firstplayable_hxlib_audio_WebAudio.m_curBgm != null) { var _this = this.m_audioLoads; tmp = (__map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]) == com_firstplayable_hxlib_audio_WebAudio.m_curBgm; } else { tmp = false; } if(tmp) { return; } if(vol == null) { vol = com_firstplayable_hxlib_audio_WebAudio.bgmVolume; } this.stopBGM(); var _this1 = this.m_audioLoads; com_firstplayable_hxlib_audio_WebAudio.m_curBgm = __map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]; if(com_firstplayable_hxlib_audio_WebAudio.m_curBgm == null) { if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.logHelper("music '" + id + "' not available - load it first",com_firstplayable_hxlib_Severity.Warn,{ fileName : "WebAudio.hx", lineNumber : 990, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "playBGM"}); } return; } if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("play music " + id,null,{ fileName : "WebAudio.hx", lineNumber : 995, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "playBGM"}); } com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.volume(Math.max(0,Math.min(vol,1.0))); com_firstplayable_hxlib_audio_WebAudio.m_curBgmID = com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.play(); com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.loop(true,com_firstplayable_hxlib_audio_WebAudio.m_curBgmID); } ,resumeBGMTimer: function() { } ,loopBGM: function() { this.playBGM(com_firstplayable_hxlib_audio_WebAudio.m_curBgm.id,true,com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.volume()); } ,stopBGM: function() { if(com_firstplayable_hxlib_audio_WebAudioObject.isValid(com_firstplayable_hxlib_audio_WebAudio.m_curBgm)) { com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.stop(); } } ,pauseBGM: function() { this.stopBGM(); } ,resumeBGM: function() { if(com_firstplayable_hxlib_audio_WebAudioObject.isValid(com_firstplayable_hxlib_audio_WebAudio.m_curBgm)) { if(com_firstplayable_hxlib_audio_WebAudioObject.isValid(com_firstplayable_hxlib_audio_WebAudio.m_curBgm)) { com_firstplayable_hxlib_audio_WebAudio.m_curBgmID = com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.play(); com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.loop(true,com_firstplayable_hxlib_audio_WebAudio.m_curBgmID); } } } ,toggleBGM: function(play) { if(com_firstplayable_hxlib_audio_WebAudio.m_curBgm == null) { var condition = !com_firstplayable_hxlib_audio_WebAudio.HUSH; if(condition) { com_firstplayable_hxlib_Debug.logHelper("No BGM to toggle!",null,{ fileName : "WebAudio.hx", lineNumber : 1089, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "toggleBGM"}); } return false; } if(play == null) { play = !com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.playing(); } if(play) { this.resumeBGM(); } else { this.stopBGM(); } return play; } ,duckBGM: function() { if(com_firstplayable_hxlib_audio_WebAudio.m_curBgm == null || com_firstplayable_hxlib_audio_WebAudio.muteBgm) { var condition = !com_firstplayable_hxlib_audio_WebAudio.HUSH; if(condition) { com_firstplayable_hxlib_Debug.logHelper("No BGM to duck!",null,{ fileName : "WebAudio.hx", lineNumber : 1119, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "duckBGM"}); } return; } var volume = com_firstplayable_hxlib_audio_WebAudio.bgmVolume; if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("Ducking BGM from " + com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.volume() + " to " + com_firstplayable_hxlib_audio_WebAudio.duckedBgmVolume,null,{ fileName : "WebAudio.hx", lineNumber : 1124, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "duckBGM"}); } com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.fade(volume,com_firstplayable_hxlib_audio_WebAudio.duckedBgmVolume,8); } ,unDuckBGM: function() { if(com_firstplayable_hxlib_audio_WebAudio.m_curBgm == null || com_firstplayable_hxlib_audio_WebAudio.muteBgm) { var condition = !com_firstplayable_hxlib_audio_WebAudio.HUSH; if(condition) { com_firstplayable_hxlib_Debug.logHelper("No BGM to unduck!",null,{ fileName : "WebAudio.hx", lineNumber : 1136, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "unDuckBGM"}); } return; } var volume = com_firstplayable_hxlib_audio_WebAudio.bgmVolume; if(!com_firstplayable_hxlib_audio_WebAudio.HUSH) { com_firstplayable_hxlib_Debug.log("Unducking BGM from " + com_firstplayable_hxlib_audio_WebAudio.duckedBgmVolume + " to " + com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.volume(),null,{ fileName : "WebAudio.hx", lineNumber : 1142, className : "com.firstplayable.hxlib.audio.WebAudio", methodName : "unDuckBGM"}); } com_firstplayable_hxlib_audio_WebAudio.m_curBgm.sound.fade(com_firstplayable_hxlib_audio_WebAudio.duckedBgmVolume,volume,12); } ,__class__: com_firstplayable_hxlib_audio_WebAudio }; var com_firstplayable_hxlib_audio_WebAudioObject = function(sndID,snd) { this.id = sndID; this.sound = snd; }; $hxClasses["com.firstplayable.hxlib.audio.WebAudioObject"] = com_firstplayable_hxlib_audio_WebAudioObject; com_firstplayable_hxlib_audio_WebAudioObject.__name__ = ["com","firstplayable","hxlib","audio","WebAudioObject"]; com_firstplayable_hxlib_audio_WebAudioObject.isValid = function(sound) { if(sound != null) { return sound.sound != null; } else { return false; } }; com_firstplayable_hxlib_audio_WebAudioObject.prototype = { id: null ,sound: null ,__class__: com_firstplayable_hxlib_audio_WebAudioObject }; var lime_math_Vector2 = function(x,y) { if(y == null) { y = 0; } if(x == null) { x = 0; } this.x = x; this.y = y; }; $hxClasses["lime.math.Vector2"] = lime_math_Vector2; lime_math_Vector2.__name__ = ["lime","math","Vector2"]; lime_math_Vector2.distance = function(pt1,pt2) { var dx = pt1.x - pt2.x; var dy = pt1.y - pt2.y; return Math.sqrt(dx * dx + dy * dy); }; lime_math_Vector2.interpolate = function(pt1,pt2,f) { return new lime_math_Vector2(pt2.x + f * (pt1.x - pt2.x),pt2.y + f * (pt1.y - pt2.y)); }; lime_math_Vector2.polar = function(len,angle) { return new lime_math_Vector2(len * Math.cos(angle),len * Math.sin(angle)); }; lime_math_Vector2.prototype = { length: null ,x: null ,y: null ,add: function(v) { return new lime_math_Vector2(v.x + this.x,v.y + this.y); } ,clone: function() { return new lime_math_Vector2(this.x,this.y); } ,equals: function(toCompare) { if(toCompare != null && toCompare.x == this.x) { return toCompare.y == this.y; } else { return false; } } ,normalize: function(thickness) { if(this.x == 0 && this.y == 0) { return; } else { var norm = thickness / Math.sqrt(this.x * this.x + this.y * this.y); this.x *= norm; this.y *= norm; } } ,offset: function(dx,dy) { this.x += dx; this.y += dy; } ,setTo: function(xa,ya) { this.x = xa; this.y = ya; } ,subtract: function(v) { return new lime_math_Vector2(this.x - v.x,this.y - v.y); } ,__toFlashPoint: function() { return null; } ,get_length: function() { return Math.sqrt(this.x * this.x + this.y * this.y); } ,__class__: lime_math_Vector2 ,__properties__: {get_length:"get_length"} }; var openfl_display_BitmapData = function(width,height,transparent,fillColor) { if(fillColor == null) { fillColor = -1; } if(transparent == null) { transparent = true; } this.transparent = transparent; if(width == null) { width = 0; } else { width = width; } if(height == null) { height = 0; } else { height = height; } if(width < 0) { width = 0; } else { width = width; } if(height < 0) { height = 0; } else { height = height; } this.width = width; this.height = height; this.rect = new openfl_geom_Rectangle(0,0,width,height); if(width > 0 && height > 0) { if(transparent) { if((fillColor & -16777216) == 0) { fillColor = 0; } } else { fillColor = -16777216 | fillColor & 16777215; } fillColor = fillColor << 8 | fillColor >>> 24 & 255; this.image = new lime_graphics_Image(null,0,0,width,height,fillColor); this.image.set_transparent(transparent); this.__isValid = true; this.readable = true; } this.__worldTransform = new openfl_geom_Matrix(); this.__worldColorTransform = new openfl_geom_ColorTransform(); }; $hxClasses["openfl.display.BitmapData"] = openfl_display_BitmapData; openfl_display_BitmapData.__name__ = ["openfl","display","BitmapData"]; openfl_display_BitmapData.__interfaces__ = [openfl_display_IBitmapDrawable]; openfl_display_BitmapData.fromBase64 = function(base64,type) { var bitmapData = new openfl_display_BitmapData(0,0,true,0); var image = lime_graphics_Image.fromBase64(base64,type); bitmapData.__fromImage(image); return bitmapData; }; openfl_display_BitmapData.fromBytes = function(bytes,rawAlpha) { var bitmapData = new openfl_display_BitmapData(0,0,true,0); var image = lime_graphics_Image.fromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes)); bitmapData.__fromImage(image); if(rawAlpha != null) { bitmapData.__applyAlpha(rawAlpha); } return bitmapData; }; openfl_display_BitmapData.fromCanvas = function(canvas,transparent) { if(transparent == null) { transparent = true; } if(canvas == null) { return null; } var bitmapData = new openfl_display_BitmapData(0,0,transparent,0); bitmapData.__fromImage(lime_graphics_Image.fromCanvas(canvas)); bitmapData.image.set_transparent(transparent); return bitmapData; }; openfl_display_BitmapData.fromFile = function(path) { var bitmapData = new openfl_display_BitmapData(0,0,true,0); bitmapData.__fromFile(path); return bitmapData; }; openfl_display_BitmapData.fromImage = function(image,transparent) { if(transparent == null) { transparent = true; } if(image == null || image.buffer == null) { return null; } var bitmapData = new openfl_display_BitmapData(0,0,transparent,0); bitmapData.__fromImage(image); bitmapData.image.set_transparent(transparent); return bitmapData; }; openfl_display_BitmapData.fromTexture = function(texture) { if(texture == null) { return null; } var bitmapData = new openfl_display_BitmapData(texture.__width,texture.__height,true,0); bitmapData.readable = false; bitmapData.__texture = texture.__textureID; bitmapData.__textureContext = texture.__textureContext; bitmapData.image = null; return bitmapData; }; openfl_display_BitmapData.loadFromBase64 = function(base64,type) { return lime_graphics_Image.loadFromBase64(base64,type).then(function(image) { return lime_app_Future.withValue(openfl_display_BitmapData.fromImage(image)); }); }; openfl_display_BitmapData.loadFromBytes = function(bytes,rawAlpha) { return lime_graphics_Image.loadFromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes)).then(function(image) { var bitmapData = openfl_display_BitmapData.fromImage(image); if(rawAlpha != null) { bitmapData.__applyAlpha(rawAlpha); } return lime_app_Future.withValue(bitmapData); }); }; openfl_display_BitmapData.loadFromFile = function(path) { return lime_graphics_Image.loadFromFile(path).then(function(image) { return lime_app_Future.withValue(openfl_display_BitmapData.fromImage(image)); }); }; openfl_display_BitmapData.prototype = { height: null ,image: null ,readable: null ,rect: null ,transparent: null ,width: null ,__blendMode: null ,__buffer: null ,__bufferColorTransform: null ,__bufferContext: null ,__bufferAlpha: null ,__bufferData: null ,__framebuffer: null ,__framebufferContext: null ,__isValid: null ,__surface: null ,__texture: null ,__textureContext: null ,__textureVersion: null ,__transform: null ,__worldColorTransform: null ,__worldTransform: null ,applyFilter: function(sourceBitmapData,sourceRect,destPoint,filter) { if(!this.readable || sourceBitmapData == null || !sourceBitmapData.readable) { return; } filter.__applyFilter(this,sourceBitmapData,sourceRect,destPoint); } ,clone: function() { if(!this.__isValid) { return new openfl_display_BitmapData(this.width,this.height,this.transparent,0); } else if(!this.readable && this.image == null) { var bitmapData = new openfl_display_BitmapData(0,0,this.transparent,0); bitmapData.width = this.width; bitmapData.height = this.height; bitmapData.rect.copyFrom(this.rect); bitmapData.__framebuffer = this.__framebuffer; bitmapData.__framebufferContext = this.__framebufferContext; bitmapData.__texture = this.__texture; bitmapData.__textureContext = this.__textureContext; bitmapData.__isValid = true; return bitmapData; } else { return openfl_display_BitmapData.fromImage(this.image.clone(),this.transparent); } } ,colorTransform: function(rect,colorTransform) { if(!this.readable) { return; } this.image.colorTransform(rect.__toLimeRectangle(),colorTransform.__toLimeColorMatrix()); } ,compare: function(otherBitmapData) { if(otherBitmapData == this) { return 0; } else if(otherBitmapData == null) { return -1; } else if(this.readable == false || otherBitmapData.readable == false) { return -2; } else if(this.width != otherBitmapData.width) { return -3; } else if(this.height != otherBitmapData.height) { return -4; } if(this.image != null && otherBitmapData.image != null && this.image.get_format() == otherBitmapData.image.get_format()) { var bytes = this.image.get_data(); var otherBytes = otherBitmapData.image.get_data(); var equal = true; var _g1 = 0; var _g = bytes.length; while(_g1 < _g) { var i = _g1++; if(bytes[i] != otherBytes[i]) { equal = false; break; } } if(equal) { return 0; } } var bitmapData = null; var foundDifference; var pixel; var otherPixel; var comparePixel; var r; var g; var b; var a; var _g11 = 0; var _g2 = this.height; while(_g11 < _g2) { var y = _g11++; var _g3 = 0; var _g21 = this.width; while(_g3 < _g21) { var x = _g3++; foundDifference = false; pixel = this.getPixel32(x,y); otherPixel = otherBitmapData.getPixel32(x,y); comparePixel = 0; if(pixel != otherPixel) { r = (pixel >>> 16 & 255) - (otherPixel >>> 16 & 255); g = (pixel >>> 8 & 255) - (otherPixel >>> 8 & 255); b = (pixel & 255) - (otherPixel & 255); if(r < 0) { r *= -1; } if(g < 0) { g *= -1; } if(b < 0) { b *= -1; } if(r == 0 && g == 0 && b == 0) { a = (pixel >>> 24 & 255) - (otherPixel >>> 24 & 255); if(a != 0) { comparePixel = (comparePixel >>> 24 & 255 & 255) << 24 | 16711680 | (comparePixel >>> 8 & 255 & 255) << 8 | comparePixel & 255 & 255; comparePixel = (comparePixel >>> 24 & 255 & 255) << 24 | (comparePixel >>> 16 & 255 & 255) << 16 | 65280 | comparePixel & 255 & 255; comparePixel = (comparePixel >>> 24 & 255 & 255) << 24 | (comparePixel >>> 16 & 255 & 255) << 16 | (comparePixel >>> 8 & 255 & 255) << 8 | 255; comparePixel = (a & 255) << 24 | (comparePixel >>> 16 & 255 & 255) << 16 | (comparePixel >>> 8 & 255 & 255) << 8 | comparePixel & 255 & 255; foundDifference = true; } } else { comparePixel = (comparePixel >>> 24 & 255 & 255) << 24 | (r & 255) << 16 | (comparePixel >>> 8 & 255 & 255) << 8 | comparePixel & 255 & 255; comparePixel = (comparePixel >>> 24 & 255 & 255) << 24 | (comparePixel >>> 16 & 255 & 255) << 16 | (g & 255) << 8 | comparePixel & 255 & 255; comparePixel = (comparePixel >>> 24 & 255 & 255) << 24 | (comparePixel >>> 16 & 255 & 255) << 16 | (comparePixel >>> 8 & 255 & 255) << 8 | b & 255; comparePixel = -16777216 | (comparePixel >>> 16 & 255 & 255) << 16 | (comparePixel >>> 8 & 255 & 255) << 8 | comparePixel & 255 & 255; foundDifference = true; } } if(foundDifference) { if(bitmapData == null) { bitmapData = new openfl_display_BitmapData(this.width,this.height,this.transparent || otherBitmapData.transparent,0); } bitmapData.setPixel32(x,y,comparePixel); } } } if(bitmapData == null) { return 0; } return bitmapData; } ,copyChannel: function(sourceBitmapData,sourceRect,destPoint,sourceChannel,destChannel) { if(!this.readable) { return; } var sourceChannel1; switch(sourceChannel) { case 1: sourceChannel1 = lime_graphics_ImageChannel.RED; break; case 2: sourceChannel1 = lime_graphics_ImageChannel.GREEN; break; case 4: sourceChannel1 = lime_graphics_ImageChannel.BLUE; break; case 8: sourceChannel1 = lime_graphics_ImageChannel.ALPHA; break; default: return; } var destChannel1; switch(destChannel) { case 1: destChannel1 = lime_graphics_ImageChannel.RED; break; case 2: destChannel1 = lime_graphics_ImageChannel.GREEN; break; case 4: destChannel1 = lime_graphics_ImageChannel.BLUE; break; case 8: destChannel1 = lime_graphics_ImageChannel.ALPHA; break; default: return; } this.image.copyChannel(sourceBitmapData.image,sourceRect.__toLimeRectangle(),destPoint.__toLimeVector2(),sourceChannel1,destChannel1); } ,copyPixels: function(sourceBitmapData,sourceRect,destPoint,alphaBitmapData,alphaPoint,mergeAlpha) { if(mergeAlpha == null) { mergeAlpha = false; } if(!this.readable || sourceBitmapData == null) { return; } if(alphaPoint != null) { openfl_display_BitmapData.__tempVector.x = alphaPoint.x; openfl_display_BitmapData.__tempVector.y = alphaPoint.y; } this.image.copyPixels(sourceBitmapData.image,sourceRect.__toLimeRectangle(),destPoint.__toLimeVector2(),alphaBitmapData != null ? alphaBitmapData.image : null,alphaPoint != null ? openfl_display_BitmapData.__tempVector : null,mergeAlpha); } ,dispose: function() { this.image = null; this.width = 0; this.height = 0; this.rect = null; this.__isValid = false; this.readable = false; this.__surface = null; this.__buffer = null; this.__framebuffer = null; this.__framebufferContext = null; this.__texture = null; this.__textureContext = null; } ,disposeImage: function() { this.readable = false; } ,draw: function(source,matrix,colorTransform,blendMode,clipRect,smoothing) { if(smoothing == null) { smoothing = false; } if(matrix == null) { matrix = new openfl_geom_Matrix(); if(source.__transform != null) { matrix.copyFrom(source.__transform); matrix.tx = 0; matrix.ty = 0; } } if(!this.readable) { if(lime_graphics_opengl_GL.context != null) { var gl = lime_graphics_opengl_GL.context; var target = gl.FRAMEBUFFER; var framebuffer = this.__getFramebuffer(gl); gl.__context.bindFramebuffer(target,framebuffer); gl.__context.viewport(0,0,this.width,this.height); var renderer = new openfl__$internal_renderer_opengl_GLRenderer(openfl_Lib.current.stage,gl,this); var renderSession = renderer.renderSession; renderSession.clearRenderDirty = false; renderSession.shaderManager = (js_Boot.__cast(openfl_Lib.current.stage.__renderer , openfl__$internal_renderer_opengl_GLRenderer)).renderSession.shaderManager; var matrixCache = source.__worldTransform; source.__updateTransforms(matrix); source.__updateChildren(false); source.__renderGL(renderer.renderSession); source.__updateTransforms(matrixCache); source.__updateChildren(true); gl.__context.bindFramebuffer(gl.FRAMEBUFFER,null); } } else { if(colorTransform != null) { var bounds = openfl_geom_Rectangle.__pool.get(); var boundsMatrix = openfl_geom_Matrix.__pool.get(); source.__getBounds(bounds,boundsMatrix); var width = Math.ceil(bounds.width); var height = Math.ceil(bounds.height); var copy = new openfl_display_BitmapData(width,height,true,0); copy.draw(source); copy.colorTransform(copy.rect,colorTransform); source = copy; openfl_geom_Rectangle.__pool.release(bounds); openfl_geom_Matrix.__pool.release(boundsMatrix); } lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this.image); var buffer = this.image.buffer; var renderSession1 = new openfl__$internal_renderer_RenderSession(); renderSession1.lockTransform = true; renderSession1.clearRenderDirty = false; renderSession1.context = buffer.__srcContext; renderSession1.allowSmoothing = smoothing; renderSession1.maskManager = new openfl__$internal_renderer_canvas_CanvasMaskManager(renderSession1); renderSession1.blendModeManager = new openfl__$internal_renderer_canvas_CanvasBlendModeManager(renderSession1); renderSession1.blendModeManager.setBlendMode(blendMode); if(!smoothing) { buffer.__srcContext.mozImageSmoothingEnabled = false; buffer.__srcContext.msImageSmoothingEnabled = false; buffer.__srcContext.imageSmoothingEnabled = false; } if(clipRect != null) { renderSession1.maskManager.pushRect(clipRect,new openfl_geom_Matrix()); } var matrixCache1 = source.__worldTransform; source.__updateTransforms(matrix); source.__updateChildren(false); source.__renderCanvas(renderSession1); source.__updateTransforms(matrixCache1); source.__updateChildren(true); if(!smoothing) { buffer.__srcContext.mozImageSmoothingEnabled = true; buffer.__srcContext.msImageSmoothingEnabled = true; buffer.__srcContext.imageSmoothingEnabled = true; } if(clipRect != null) { renderSession1.maskManager.popRect(); } buffer.__srcContext.setTransform(1,0,0,1,0,0); buffer.__srcImageData = null; buffer.data = null; this.image.dirty = true; this.image.version++; } } ,drawWithQuality: function(source,matrix,colorTransform,blendMode,clipRect,smoothing,quality) { if(smoothing == null) { smoothing = false; } this.draw(source,matrix,colorTransform,blendMode,clipRect,quality != 2 && smoothing); } ,encode: function(rect,compressor,byteArray) { if(!this.readable || rect == null) { byteArray = null; return byteArray; } if(byteArray == null) { var this1 = new openfl_utils_ByteArrayData(0); byteArray = this1; } var image = this.image; if(!rect.equals(this.rect)) { var matrix = openfl_geom_Matrix.__pool.get(); matrix.tx = Math.round(-rect.x); matrix.ty = Math.round(-rect.y); var bitmapData = new openfl_display_BitmapData(Math.ceil(rect.width),Math.ceil(rect.height),true,0); bitmapData.draw(this,matrix); image = bitmapData.image; openfl_geom_Matrix.__pool.release(matrix); } if(js_Boot.__instanceof(compressor,openfl_display_PNGEncoderOptions)) { byteArray.writeBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(image.encode("png"))); return byteArray; } else if(js_Boot.__instanceof(compressor,openfl_display_JPEGEncoderOptions)) { byteArray.writeBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(image.encode("jpg",(js_Boot.__cast(compressor , openfl_display_JPEGEncoderOptions)).quality))); return byteArray; } byteArray = null; return byteArray; } ,fillRect: function(rect,color) { if(rect == null) { return; } if(this.transparent && (color & -16777216) == 0) { color = 0; } if(this.readable) { this.image.fillRect(rect.__toLimeRectangle(),color,1); } else if(this.__framebuffer != null) { var gl = lime_graphics_opengl_GL.context; var color1 = color; var useScissor = !this.rect.equals(rect); gl.__context.bindFramebuffer(gl.FRAMEBUFFER,this.__framebuffer); if(useScissor) { gl.__context.enable(gl.SCISSOR_TEST); gl.__context.scissor(Math.round(rect.x),Math.round(rect.y),Math.round(rect.width),Math.round(rect.height)); } gl.__context.clearColor((color1 >>> 16 & 255) / 255,(color1 >>> 8 & 255) / 255,(color1 & 255) / 255,(color1 >>> 24 & 255) / 255); gl.__context.clear(gl.COLOR_BUFFER_BIT); if(useScissor) { gl.__context.disable(gl.SCISSOR_TEST); } gl.__context.bindFramebuffer(gl.FRAMEBUFFER,null); } } ,floodFill: function(x,y,color) { if(!this.readable) { return; } this.image.floodFill(x,y,color,1); } ,generateFilterRect: function(sourceRect,filter) { return sourceRect.clone(); } ,getBuffer: function(gl,alpha,colorTransform) { if(this.__buffer == null || this.__bufferContext != gl) { var uvWidth = 1; var uvHeight = 1; var this1 = new Float32Array(104); this.__bufferData = this1; this.__bufferData[0] = this.width; this.__bufferData[1] = this.height; this.__bufferData[3] = uvWidth; this.__bufferData[4] = uvHeight; this.__bufferData[27] = this.height; this.__bufferData[30] = uvHeight; this.__bufferData[52] = this.width; this.__bufferData[55] = uvWidth; var _g = 0; while(_g < 4) { var i = _g++; this.__bufferData[26 * i + 5] = alpha; if(colorTransform != null) { this.__bufferData[26 * i + 6] = colorTransform.redMultiplier; this.__bufferData[26 * i + 11] = colorTransform.greenMultiplier; this.__bufferData[26 * i + 16] = colorTransform.blueMultiplier; this.__bufferData[26 * i + 21] = colorTransform.alphaMultiplier; this.__bufferData[26 * i + 22] = colorTransform.redOffset / 255; this.__bufferData[26 * i + 23] = colorTransform.greenOffset / 255; this.__bufferData[26 * i + 24] = colorTransform.blueOffset / 255; this.__bufferData[26 * i + 25] = colorTransform.alphaOffset / 255; } else { this.__bufferData[26 * i + 6] = 1; this.__bufferData[26 * i + 11] = 1; this.__bufferData[26 * i + 16] = 1; this.__bufferData[26 * i + 21] = 1; } } this.__bufferAlpha = alpha; this.__bufferColorTransform = colorTransform != null ? colorTransform.__clone() : null; this.__bufferContext = gl; this.__buffer = gl.__context.createBuffer(); gl.__context.bindBuffer(gl.ARRAY_BUFFER,this.__buffer); lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.bufferData(gl,gl.ARRAY_BUFFER,this.__bufferData,gl.STATIC_DRAW); } else { if(this.__bufferAlpha != alpha) { var _g1 = 0; while(_g1 < 4) { var i1 = _g1++; this.__bufferData[26 * i1 + 5] = alpha; } this.__bufferAlpha = alpha; } if(this.__bufferColorTransform == null && colorTransform != null || this.__bufferColorTransform != null && !this.__bufferColorTransform.__equals(colorTransform)) { if(colorTransform != null) { if(this.__bufferColorTransform == null) { this.__bufferColorTransform = colorTransform.__clone(); } else { this.__bufferColorTransform.__copyFrom(colorTransform); } var _g2 = 0; while(_g2 < 4) { var i2 = _g2++; this.__bufferData[26 * i2 + 6] = colorTransform.redMultiplier; this.__bufferData[26 * i2 + 11] = colorTransform.greenMultiplier; this.__bufferData[26 * i2 + 16] = colorTransform.blueMultiplier; this.__bufferData[26 * i2 + 21] = colorTransform.alphaMultiplier; this.__bufferData[26 * i2 + 22] = colorTransform.redOffset / 255; this.__bufferData[26 * i2 + 23] = colorTransform.greenOffset / 255; this.__bufferData[26 * i2 + 24] = colorTransform.blueOffset / 255; this.__bufferData[26 * i2 + 25] = colorTransform.alphaOffset / 255; } } else { var _g3 = 0; while(_g3 < 4) { var i3 = _g3++; this.__bufferData[26 * i3 + 6] = 1; this.__bufferData[26 * i3 + 11] = 1; this.__bufferData[26 * i3 + 16] = 1; this.__bufferData[26 * i3 + 21] = 1; this.__bufferData[26 * i3 + 22] = 0; this.__bufferData[26 * i3 + 23] = 0; this.__bufferData[26 * i3 + 24] = 0; this.__bufferData[26 * i3 + 25] = 0; } } } gl.__context.bindBuffer(gl.ARRAY_BUFFER,this.__buffer); var target = gl.ARRAY_BUFFER; var size = this.__bufferData.byteLength; var data = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(this.__bufferData); var usage = gl.STATIC_DRAW; gl.__context.bufferData(target,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,size),usage); } return this.__buffer; } ,getColorBoundsRect: function(mask,color,findColor) { if(findColor == null) { findColor = true; } if(!this.readable) { return new openfl_geom_Rectangle(0,0,this.width,this.height); } if(!this.transparent || (mask >> 24 & 255) > 0) { var color1 = color; if((color1 >>> 24 & 255) == 0) { color1 = 0; } } var rect = this.image.getColorBoundsRect(mask,color,findColor,1); return new openfl_geom_Rectangle(rect.x,rect.y,rect.width,rect.height); } ,getPixel: function(x,y) { if(!this.readable) { return 0; } return this.image.getPixel(x,y,1); } ,getPixel32: function(x,y) { if(!this.readable) { return 0; } return this.image.getPixel32(x,y,1); } ,getPixels: function(rect) { if(!this.readable) { return null; } if(rect == null) { rect = this.rect; } var byteArray = openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(this.image.getPixels(rect.__toLimeRectangle(),1)); byteArray.__endian = 0; return byteArray; } ,getSurface: function() { if(!this.readable) { return null; } if(this.__surface == null) { this.__surface = lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.fromImage(this.image); } return this.__surface; } ,getTexture: function(gl) { if(!this.__isValid) { return null; } if(this.__texture == null || this.__textureContext != gl) { this.__textureContext = gl; this.__texture = gl.__context.createTexture(); gl.__context.bindTexture(gl.TEXTURE_2D,this.__texture); gl.__context.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE); gl.__context.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE); gl.__context.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MAG_FILTER,gl.NEAREST); gl.__context.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.NEAREST); this.__textureVersion = -1; } lime_graphics_utils_ImageCanvasUtil.sync(this.image,false); if(this.image != null && this.image.version != this.__textureVersion) { var internalFormat; var format; if(this.__surface != null) { lime_graphics_cairo__$CairoSurface_CairoSurface_$Impl_$.flush(this.__surface); } if(this.image.buffer.bitsPerPixel == 1) { internalFormat = gl.ALPHA; format = gl.ALPHA; } else { if(openfl_display_BitmapData.__supportsBGRA == null) { openfl_display_BitmapData.__textureInternalFormat = gl.RGBA; var bgraExtension = null; if(bgraExtension != null) { openfl_display_BitmapData.__supportsBGRA = true; openfl_display_BitmapData.__textureFormat = bgraExtension.BGRA_EXT; if(gl.type == lime_graphics_opengl_GLContextType.GLES) { openfl_display_BitmapData.__textureInternalFormat = bgraExtension.BGRA_EXT; } } else { openfl_display_BitmapData.__supportsBGRA = false; openfl_display_BitmapData.__textureFormat = gl.RGBA; } } internalFormat = openfl_display_BitmapData.__textureInternalFormat; format = openfl_display_BitmapData.__textureFormat; } gl.__context.bindTexture(gl.TEXTURE_2D,this.__texture); var textureImage = this.image; if(textureImage.type != lime_graphics_ImageType.DATA && !textureImage.get_premultiplied()) { gl.__context.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1); } else if(!textureImage.get_premultiplied() && textureImage.get_transparent()) { gl.__context.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1); } if(!openfl_display_BitmapData.__supportsBGRA && textureImage.get_format() != 0) { textureImage = textureImage.clone(); textureImage.set_format(0); } if(textureImage.type == lime_graphics_ImageType.DATA) { var target = gl.TEXTURE_2D; var width = textureImage.buffer.width; var height = textureImage.buffer.height; var type = gl.UNSIGNED_BYTE; var data = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(textureImage.get_data()); gl.__context.texImage2D(target,0,internalFormat,width,height,0,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); } else { lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.texImage2D(gl,gl.TEXTURE_2D,0,internalFormat,format,gl.UNSIGNED_BYTE,textureImage.get_src()); } gl.__context.bindTexture(gl.TEXTURE_2D,null); this.__textureVersion = this.image.version; } if(!this.readable && this.image != null) { this.__surface = null; this.image = null; } return this.__texture; } ,getVector: function(rect) { var pixels = this.getPixels(rect); var length = openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(pixels) / 4 | 0; var result = openfl__$Vector_Vector_$Impl_$.toIntVector(null,length,true); var _g1 = 0; var _g = length; while(_g1 < _g) { var i = _g1++; var value = pixels.readUnsignedInt(); result.data.set(i,value); } return result; } ,histogram: function(hRect) { var rect = hRect != null ? hRect : new openfl_geom_Rectangle(0,0,this.width,this.height); var pixels = this.getPixels(rect); var _g = []; var _g1 = 0; while(_g1 < 4) { var i = _g1++; var _g2 = []; var _g3 = 0; while(_g3 < 256) { var j = _g3++; _g2.push(0); } _g.push(_g2); } var result = _g; var _g21 = 0; var _g11 = openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(pixels); while(_g21 < _g11) { var i1 = _g21++; ++result[i1 % 4][pixels.readUnsignedByte()]; } return result; } ,hitTest: function(firstPoint,firstAlphaThreshold,secondObject,secondBitmapDataPoint,secondAlphaThreshold) { if(secondAlphaThreshold == null) { secondAlphaThreshold = 1; } if(!this.readable) { return false; } if(js_Boot.__instanceof(secondObject,openfl_display_Bitmap)) { secondObject = (js_Boot.__cast(secondObject , openfl_display_Bitmap)).bitmapData; } if(js_Boot.__instanceof(secondObject,openfl_geom_Point)) { var secondPoint = secondObject; var x = secondPoint.x - firstPoint.x | 0; var y = secondPoint.y - firstPoint.y | 0; if(this.rect.contains(x,y)) { var pixel = this.getPixel32(x,y); if((pixel >> 24 & 255) > firstAlphaThreshold) { return true; } } } else if(js_Boot.__instanceof(secondObject,openfl_display_BitmapData)) { var secondBitmapData = secondObject; var x1; var y1; if(secondBitmapDataPoint == null) { x1 = 0; y1 = 0; } else { x1 = secondBitmapDataPoint.x - firstPoint.x | 0; y1 = secondBitmapDataPoint.y - firstPoint.y | 0; } if(this.rect.contains(x1,y1)) { var hitRect = openfl_geom_Rectangle.__pool.get(); hitRect.setTo(x1,y1,Math.min(secondBitmapData.width,this.width - x1),Math.min(secondBitmapData.height,this.height - y1)); var pixels = this.getPixels(hitRect); hitRect.offset(-x1,-y1); var testPixels = secondBitmapData.getPixels(hitRect); var length = hitRect.width * hitRect.height | 0; var pixel1; var testPixel; openfl_geom_Rectangle.__pool.release(hitRect); var _g1 = 0; var _g = length; while(_g1 < _g) { var i = _g1++; pixel1 = pixels.readUnsignedInt(); testPixel = testPixels.readUnsignedInt(); if((pixel1 >> 24 & 255) > firstAlphaThreshold && (testPixel >> 24 & 255) > secondAlphaThreshold) { return true; } } return false; } } else if(js_Boot.__instanceof(secondObject,openfl_geom_Rectangle)) { var secondRectangle = openfl_geom_Rectangle.__pool.get(); secondRectangle.copyFrom(secondObject); secondRectangle.offset(-firstPoint.x,-firstPoint.y); secondRectangle.__contract(0,0,this.width,this.height); if(secondRectangle.width > 0 && secondRectangle.height > 0) { var pixels1 = this.getPixels(secondRectangle); var length1 = openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(pixels1) / 4 | 0; var pixel2; var _g11 = 0; var _g2 = length1; while(_g11 < _g2) { var i1 = _g11++; pixel2 = pixels1.readUnsignedInt(); if((pixel2 >> 24 & 255) > firstAlphaThreshold) { openfl_geom_Rectangle.__pool.release(secondRectangle); return true; } } } openfl_geom_Rectangle.__pool.release(secondRectangle); } return false; } ,lock: function() { } ,merge: function(sourceBitmapData,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) { if(!this.readable || sourceBitmapData == null || !sourceBitmapData.readable || sourceRect == null || destPoint == null) { return; } this.image.merge(sourceBitmapData.image,sourceRect.__toLimeRectangle(),destPoint.__toLimeVector2(),redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier); } ,noise: function(randomSeed,low,high,channelOptions,grayScale) { if(grayScale == null) { grayScale = false; } if(channelOptions == null) { channelOptions = 7; } if(high == null) { high = 255; } if(low == null) { low = 0; } if(!this.readable) { return; } var func = function() { randomSeed = randomSeed * 1103515245 + 12345; return (Math.abs(randomSeed / 65536) | 0) % 32768; }; var rand = func; rand(); var range = high - low; var this1 = new openfl_utils_ByteArrayData(0); var data = this1; var redChannel = (channelOptions & 1) == 1; var greenChannel = (channelOptions & 2) >> 1 == 1; var blueChannel = (channelOptions & 4) >> 2 == 1; var alphaChannel = (channelOptions & 8) >> 3 == 1; var _g1 = 0; var _g = this.height; while(_g1 < _g) { var y = _g1++; var _g3 = 0; var _g2 = this.width; while(_g3 < _g2) { var x = _g3++; var red = 0; var blue = 0; var green = 0; var alpha = 255; if(grayScale) { blue = low + rand() % range; green = blue; red = green; alpha = 255; } else { if(redChannel) { red = low + rand() % range; } if(greenChannel) { green = low + rand() % range; } if(blueChannel) { blue = low + rand() % range; } if(alphaChannel) { alpha = low + rand() % range; } } var rgb = alpha; rgb = (rgb << 8) + red; rgb = (rgb << 8) + green; rgb = (rgb << 8) + blue; this.setPixel32(x,y,rgb); } } } ,paletteMap: function(sourceBitmapData,sourceRect,destPoint,redArray,greenArray,blueArray,alphaArray) { var sw = sourceRect.width | 0; var sh = sourceRect.height | 0; var pixels = sourceBitmapData.getPixels(sourceRect); var pixelValue; var r; var g; var b; var a; var color; var _g1 = 0; var _g = sh * sw; while(_g1 < _g) { var i = _g1++; pixelValue = pixels.readUnsignedInt(); if(alphaArray == null) { a = pixelValue & -16777216; } else { a = alphaArray[pixelValue >> 24 & 255]; } if(redArray == null) { r = pixelValue & 16711680; } else { r = redArray[pixelValue >> 16 & 255]; } if(greenArray == null) { g = pixelValue & 65280; } else { g = greenArray[pixelValue >> 8 & 255]; } if(blueArray == null) { b = pixelValue & 255; } else { b = blueArray[pixelValue & 255]; } color = a + r + g + b; pixels.position = i * 4; pixels.writeUnsignedInt(color); } pixels.position = 0; var destRect = openfl_geom_Rectangle.__pool.get(); destRect.setTo(destPoint.x,destPoint.y,sw,sh); this.setPixels(destRect,pixels); openfl_geom_Rectangle.__pool.release(destRect); } ,perlinNoise: function(baseX,baseY,numOctaves,randomSeed,stitch,fractalNoise,channelOptions,grayScale,offsets) { if(grayScale == null) { grayScale = false; } if(channelOptions == null) { channelOptions = 7; } if(!this.readable) { return; } var noise = new openfl__$internal_utils_PerlinNoise(randomSeed,numOctaves,0.01); noise.fill(this,baseX,baseY,0); } ,scroll: function(x,y) { if(!this.readable) { return; } this.image.scroll(x,y); } ,setPixel: function(x,y,color) { if(!this.readable) { return; } this.image.setPixel(x,y,color,1); } ,setPixel32: function(x,y,color) { if(!this.readable) { return; } this.image.setPixel32(x,y,color,1); } ,setPixels: function(rect,byteArray) { if(!this.readable || rect == null) { return; } var length = rect.width * rect.height * 4; if(_$UInt_UInt_$Impl_$.toFloat(byteArray.length - byteArray.position) < length) { throw new js__$Boot_HaxeError(new openfl_errors_Error("End of file was encountered.",2030)); } this.image.setPixels(rect.__toLimeRectangle(),openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytePointer(byteArray),1,openfl_utils__$Endian_Endian_$Impl_$.toLimeEndian(byteArray.__endian)); } ,setVector: function(rect,inputVector) { var this1 = new openfl_utils_ByteArrayData(0); var byteArray = this1; openfl_utils__$ByteArray_ByteArray_$Impl_$.set_length(byteArray,inputVector.data.get_length() * 4); var _g = 0; while(_g < inputVector.data.get_length()) { var color = inputVector.data.get(_g); ++_g; byteArray.writeUnsignedInt(color); } byteArray.position = 0; this.setPixels(rect,byteArray); } ,threshold: function(sourceBitmapData,sourceRect,destPoint,operation,threshold,color,mask,copySource) { if(copySource == null) { copySource = false; } if(mask == null) { mask = -1; } if(color == null) { color = 0; } if(sourceBitmapData == null || sourceRect == null || destPoint == null || sourceRect.x > sourceBitmapData.width || sourceRect.y > sourceBitmapData.height || destPoint.x > this.width || destPoint.y > this.height) { return 0; } return this.image.threshold(sourceBitmapData.image,sourceRect.__toLimeRectangle(),destPoint.__toLimeVector2(),operation,threshold,color,mask,copySource,1); } ,unlock: function(changeRect) { } ,__applyAlpha: function(alpha) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this.image); lime_graphics_utils_ImageCanvasUtil.createImageData(this.image); var data = this.image.buffer.data; var _g1 = 0; var _g = openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(alpha); while(_g1 < _g) { var i = _g1++; data[i * 4 + 3] = alpha.readUnsignedByte(); } this.image.version++; } ,__draw: function(source,matrix,colorTransform,blendMode,clipRect,smoothing) { if(smoothing == null) { smoothing = false; } if(matrix == null) { matrix = new openfl_geom_Matrix(); if(source.__transform != null) { matrix.copyFrom(source.__transform); matrix.tx = 0; matrix.ty = 0; } } if(!this.readable) { if(lime_graphics_opengl_GL.context != null) { var gl = lime_graphics_opengl_GL.context; var target = gl.FRAMEBUFFER; var framebuffer = this.__getFramebuffer(gl); gl.__context.bindFramebuffer(target,framebuffer); gl.__context.viewport(0,0,this.width,this.height); var renderer = new openfl__$internal_renderer_opengl_GLRenderer(openfl_Lib.current.stage,gl,this); var renderSession = renderer.renderSession; renderSession.clearRenderDirty = true; renderSession.shaderManager = (js_Boot.__cast(openfl_Lib.current.stage.__renderer , openfl__$internal_renderer_opengl_GLRenderer)).renderSession.shaderManager; var matrixCache = source.__worldTransform; source.__updateTransforms(matrix); source.__updateChildren(false); source.__renderGL(renderer.renderSession); source.__updateTransforms(matrixCache); source.__updateChildren(true); gl.__context.bindFramebuffer(gl.FRAMEBUFFER,null); } } else { if(colorTransform != null) { var bounds = openfl_geom_Rectangle.__pool.get(); var boundsMatrix = openfl_geom_Matrix.__pool.get(); source.__getBounds(bounds,boundsMatrix); var width = Math.ceil(bounds.width); var height = Math.ceil(bounds.height); var copy = new openfl_display_BitmapData(width,height,true,0); copy.draw(source); copy.colorTransform(copy.rect,colorTransform); source = copy; openfl_geom_Rectangle.__pool.release(bounds); openfl_geom_Matrix.__pool.release(boundsMatrix); } lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this.image); var buffer = this.image.buffer; var renderSession1 = new openfl__$internal_renderer_RenderSession(); renderSession1.lockTransform = true; renderSession1.clearRenderDirty = true; renderSession1.context = buffer.__srcContext; renderSession1.allowSmoothing = smoothing; renderSession1.maskManager = new openfl__$internal_renderer_canvas_CanvasMaskManager(renderSession1); renderSession1.blendModeManager = new openfl__$internal_renderer_canvas_CanvasBlendModeManager(renderSession1); if(!smoothing) { buffer.__srcContext.mozImageSmoothingEnabled = false; buffer.__srcContext.msImageSmoothingEnabled = false; buffer.__srcContext.imageSmoothingEnabled = false; } if(clipRect != null) { renderSession1.maskManager.pushRect(clipRect,new openfl_geom_Matrix()); } var matrixCache1 = source.__worldTransform; source.__updateTransforms(matrix); source.__updateChildren(false); source.__renderCanvas(renderSession1); source.__updateTransforms(matrixCache1); source.__updateChildren(true); if(!smoothing) { buffer.__srcContext.mozImageSmoothingEnabled = true; buffer.__srcContext.msImageSmoothingEnabled = true; buffer.__srcContext.imageSmoothingEnabled = true; } if(clipRect != null) { renderSession1.maskManager.popRect(); } buffer.__srcContext.setTransform(1,0,0,1,0,0); buffer.__srcImageData = null; buffer.data = null; this.image.dirty = true; this.image.version++; } } ,__fromBase64: function(base64,type) { var image = lime_graphics_Image.fromBase64(base64,type); this.__fromImage(image); } ,__fromBytes: function(bytes,rawAlpha) { var image = lime_graphics_Image.fromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes)); this.__fromImage(image); if(rawAlpha != null) { this.__applyAlpha(rawAlpha); } } ,__fromFile: function(path) { var image = lime_graphics_Image.fromFile(path); this.__fromImage(image); } ,__fromImage: function(image) { if(image != null && image.buffer != null) { this.image = image; this.width = image.width; this.height = image.height; this.rect = new openfl_geom_Rectangle(0,0,image.width,image.height); this.readable = true; this.__isValid = true; } } ,__getBounds: function(rect,matrix) { var bounds = openfl_geom_Rectangle.__pool.get(); this.rect.__transform(bounds,matrix); rect.__expand(bounds.x,bounds.y,bounds.width,bounds.height); openfl_geom_Rectangle.__pool.release(bounds); } ,__getFramebuffer: function(gl) { if(this.__framebuffer == null || this.__framebufferContext != gl) { this.getTexture(gl); this.__framebufferContext = gl; this.__framebuffer = gl.__context.createFramebuffer(); gl.__context.bindFramebuffer(gl.FRAMEBUFFER,this.__framebuffer); gl.__context.framebufferTexture2D(gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0,gl.TEXTURE_2D,this.__texture,0); } return this.__framebuffer; } ,__loadFromBase64: function(base64,type) { var _gthis = this; return lime_graphics_Image.loadFromBase64(base64,type).then(function(image) { _gthis.__fromImage(image); return lime_app_Future.withValue(_gthis); }); } ,__loadFromBytes: function(bytes,rawAlpha) { var _gthis = this; return lime_graphics_Image.loadFromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes)).then(function(image) { _gthis.__fromImage(image); if(rawAlpha != null) { _gthis.__applyAlpha(rawAlpha); } return lime_app_Future.withValue(_gthis); }); } ,__loadFromFile: function(path) { var _gthis = this; return lime_graphics_Image.loadFromFile(path).then(function(image) { _gthis.__fromImage(image); return lime_app_Future.withValue(_gthis); }); } ,__renderCairo: function(renderSession) { } ,__renderCairoMask: function(renderSession) { } ,__renderCanvas: function(renderSession) { if(!this.readable) { return; } if(this.image.type == lime_graphics_ImageType.DATA) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this.image); } var context = renderSession.context; if(this.__worldTransform == null) { this.__worldTransform = new openfl_geom_Matrix(); } context.globalAlpha = 1; var transform = this.__worldTransform; if(renderSession.roundPixels) { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx | 0,transform.ty | 0); } else { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); } context.drawImage(this.image.get_src(),0,0); } ,__renderCanvasMask: function(renderSession) { } ,__renderGL: function(renderSession) { var renderer = renderSession.renderer; var gl = renderSession.gl; renderSession.blendModeManager.setBlendMode(10); var shader = renderSession.shaderManager.defaultShader; shader.get_data().uImage0.input = this; var tmp = renderSession.allowSmoothing && renderSession.upscaled; shader.get_data().uImage0.smoothing = tmp; shader.get_data().uMatrix.value = renderer.getMatrix(this.__worldTransform); renderSession.shaderManager.setShader(shader); var target = gl.ARRAY_BUFFER; var buffer = this.getBuffer(gl,1,this.__worldColorTransform); gl.__context.bindBuffer(target,buffer); var index = shader.get_data().aPosition.index; var type = gl.FLOAT; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); gl.__context.vertexAttribPointer(index,3,type,false,24,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); var index1 = shader.get_data().aTexCoord.index; var type1 = gl.FLOAT; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(12); gl.__context.vertexAttribPointer(index1,2,type1,false,24,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); var index2 = shader.get_data().aAlpha.index; var type2 = gl.FLOAT; var offset2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(20); gl.__context.vertexAttribPointer(index2,1,type2,false,24,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset2)); gl.__context.drawArrays(gl.TRIANGLE_STRIP,0,4); } ,__resize: function(width,height) { this.width = width; this.height = height; this.rect.width = width; this.rect.height = height; } ,__sync: function() { lime_graphics_utils_ImageCanvasUtil.sync(this.image,false); } ,__updateChildren: function(transformOnly) { } ,__updateMask: function(maskGraphics) { } ,__updateTransforms: function(overrideTransform) { if(overrideTransform == null) { this.__worldTransform.identity(); } else { this.__worldTransform = overrideTransform; } } ,__class__: openfl_display_BitmapData }; var com_firstplayable_hxlib_display_HasParams = function() { }; $hxClasses["com.firstplayable.hxlib.display.HasParams"] = com_firstplayable_hxlib_display_HasParams; com_firstplayable_hxlib_display_HasParams.__name__ = ["com","firstplayable","hxlib","display","HasParams"]; com_firstplayable_hxlib_display_HasParams.prototype = { getParams: null ,__class__: com_firstplayable_hxlib_display_HasParams }; var com_firstplayable_hxlib_display_BitmapDataWithParams = function(params,width,height,transparent,fillColor) { if(fillColor == null) { fillColor = -1; } if(transparent == null) { transparent = true; } openfl_display_BitmapData.call(this,width,height,transparent,fillColor); this.params = params; this.animFrameIndex = -1; }; $hxClasses["com.firstplayable.hxlib.display.BitmapDataWithParams"] = com_firstplayable_hxlib_display_BitmapDataWithParams; com_firstplayable_hxlib_display_BitmapDataWithParams.__name__ = ["com","firstplayable","hxlib","display","BitmapDataWithParams"]; com_firstplayable_hxlib_display_BitmapDataWithParams.__interfaces__ = [com_firstplayable_hxlib_display_HasParams]; com_firstplayable_hxlib_display_BitmapDataWithParams.fromImageWithParams = function(params,image,transparent) { if(transparent == null) { transparent = true; } if(image == null || image.buffer == null) { return null; } var bitmapData = new com_firstplayable_hxlib_display_BitmapDataWithParams(params,0,0,transparent); bitmapData.__fromImage(image); bitmapData.image.set_transparent(transparent); return bitmapData; }; com_firstplayable_hxlib_display_BitmapDataWithParams.fromAnimParamsAndBitmapData = function(animFrameIndex,params,bitmapData) { var bdwp; if(!bitmapData.__isValid) { bdwp = new com_firstplayable_hxlib_display_BitmapDataWithParams(params,bitmapData.width,bitmapData.height,bitmapData.transparent); } else { bdwp = com_firstplayable_hxlib_display_BitmapDataWithParams.fromImageWithParams(params,bitmapData.image,bitmapData.transparent); } bdwp.animFrameIndex = animFrameIndex; return bdwp; }; com_firstplayable_hxlib_display_BitmapDataWithParams.__super__ = openfl_display_BitmapData; com_firstplayable_hxlib_display_BitmapDataWithParams.prototype = $extend(openfl_display_BitmapData.prototype,{ params: null ,animFrameIndex: null ,getParams: function() { return this.params; } ,clone: function() { var bdwp; if(!this.__isValid) { bdwp = new com_firstplayable_hxlib_display_BitmapDataWithParams(this.params,this.width,this.height,this.transparent); } else { bdwp = com_firstplayable_hxlib_display_BitmapDataWithParams.fromImageWithParams(this.params,this.image.clone(),this.transparent); } bdwp.animFrameIndex = this.animFrameIndex; return bdwp; } ,__class__: com_firstplayable_hxlib_display_BitmapDataWithParams }); var com_firstplayable_hxlib_display_OriginX = $hxClasses["com.firstplayable.hxlib.display.OriginX"] = { __ename__ : ["com","firstplayable","hxlib","display","OriginX"], __constructs__ : ["Left","Center","Right"] }; com_firstplayable_hxlib_display_OriginX.Left = ["Left",0]; com_firstplayable_hxlib_display_OriginX.Left.toString = $estr; com_firstplayable_hxlib_display_OriginX.Left.__enum__ = com_firstplayable_hxlib_display_OriginX; com_firstplayable_hxlib_display_OriginX.Center = ["Center",1]; com_firstplayable_hxlib_display_OriginX.Center.toString = $estr; com_firstplayable_hxlib_display_OriginX.Center.__enum__ = com_firstplayable_hxlib_display_OriginX; com_firstplayable_hxlib_display_OriginX.Right = ["Right",2]; com_firstplayable_hxlib_display_OriginX.Right.toString = $estr; com_firstplayable_hxlib_display_OriginX.Right.__enum__ = com_firstplayable_hxlib_display_OriginX; com_firstplayable_hxlib_display_OriginX.__empty_constructs__ = [com_firstplayable_hxlib_display_OriginX.Left,com_firstplayable_hxlib_display_OriginX.Center,com_firstplayable_hxlib_display_OriginX.Right]; var com_firstplayable_hxlib_display_OriginY = $hxClasses["com.firstplayable.hxlib.display.OriginY"] = { __ename__ : ["com","firstplayable","hxlib","display","OriginY"], __constructs__ : ["Top","Middle","Bottom"] }; com_firstplayable_hxlib_display_OriginY.Top = ["Top",0]; com_firstplayable_hxlib_display_OriginY.Top.toString = $estr; com_firstplayable_hxlib_display_OriginY.Top.__enum__ = com_firstplayable_hxlib_display_OriginY; com_firstplayable_hxlib_display_OriginY.Middle = ["Middle",1]; com_firstplayable_hxlib_display_OriginY.Middle.toString = $estr; com_firstplayable_hxlib_display_OriginY.Middle.__enum__ = com_firstplayable_hxlib_display_OriginY; com_firstplayable_hxlib_display_OriginY.Bottom = ["Bottom",2]; com_firstplayable_hxlib_display_OriginY.Bottom.toString = $estr; com_firstplayable_hxlib_display_OriginY.Bottom.__enum__ = com_firstplayable_hxlib_display_OriginY; com_firstplayable_hxlib_display_OriginY.__empty_constructs__ = [com_firstplayable_hxlib_display_OriginY.Top,com_firstplayable_hxlib_display_OriginY.Middle,com_firstplayable_hxlib_display_OriginY.Bottom]; var com_firstplayable_hxlib_display_DisplayTools = function() { }; $hxClasses["com.firstplayable.hxlib.display.DisplayTools"] = com_firstplayable_hxlib_display_DisplayTools; com_firstplayable_hxlib_display_DisplayTools.__name__ = ["com","firstplayable","hxlib","display","DisplayTools"]; com_firstplayable_hxlib_display_DisplayTools.setOrigin = function(d,o) { var _g = o.x; var tmp; switch(_g[1]) { case 0: tmp = 0; break; case 1: tmp = -d.get_width() * 0.5; break; case 2: tmp = -d.get_width(); break; } d.set_x(tmp); var _g1 = o.y; var tmp1; switch(_g1[1]) { case 0: tmp1 = 0; break; case 1: tmp1 = -d.get_height() * 0.5; break; case 2: tmp1 = -d.get_height(); break; } d.set_y(tmp1); }; com_firstplayable_hxlib_display_DisplayTools.setOriginPos = function(d,o) { d.set_x(-o.x); d.set_y(-o.y); }; var openfl__$Vector_Vector_$Impl_$ = {}; $hxClasses["openfl._Vector.Vector_Impl_"] = openfl__$Vector_Vector_$Impl_$; openfl__$Vector_Vector_$Impl_$.__name__ = ["openfl","_Vector","Vector_Impl_"]; openfl__$Vector_Vector_$Impl_$.__properties__ = {set_length:"set_length",get_length:"get_length",set_fixed:"set_fixed",get_fixed:"get_fixed"}; openfl__$Vector_Vector_$Impl_$.concat = function(this1,a) { var data = a != null ? a.data : null; return new openfl__$Vector_AbstractVector(this1.data.concat(data)); }; openfl__$Vector_Vector_$Impl_$.copy = function(this1) { return new openfl__$Vector_AbstractVector(this1.data.copy()); }; openfl__$Vector_Vector_$Impl_$.get = function(this1,index) { return this1.data.get(index); }; openfl__$Vector_Vector_$Impl_$.indexOf = function(this1,x,from) { if(from == null) { from = 0; } return this1.data.indexOf(x,from); }; openfl__$Vector_Vector_$Impl_$.insertAt = function(this1,index,element) { this1.data.insertAt(index,element); }; openfl__$Vector_Vector_$Impl_$.iterator = function(this1) { return this1.data.iterator(); }; openfl__$Vector_Vector_$Impl_$.join = function(this1,sep) { if(sep == null) { sep = ","; } return this1.data.join(sep); }; openfl__$Vector_Vector_$Impl_$.lastIndexOf = function(this1,x,from) { if(from == null) { from = 0; } return this1.data.lastIndexOf(x,from); }; openfl__$Vector_Vector_$Impl_$.pop = function(this1) { return this1.data.pop(); }; openfl__$Vector_Vector_$Impl_$.push = function(this1,x) { return this1.data.push(x); }; openfl__$Vector_Vector_$Impl_$.removeAt = function(this1,index) { return this1.data.removeAt(index); }; openfl__$Vector_Vector_$Impl_$.reverse = function(this1) { return new openfl__$Vector_AbstractVector(this1.data.reverse()); }; openfl__$Vector_Vector_$Impl_$.set = function(this1,index,value) { return this1.data.set(index,value); }; openfl__$Vector_Vector_$Impl_$.shift = function(this1) { return this1.data.shift(); }; openfl__$Vector_Vector_$Impl_$.slice = function(this1,pos,end) { return new openfl__$Vector_AbstractVector(this1.data.slice(pos,end)); }; openfl__$Vector_Vector_$Impl_$.sort = function(this1,f) { this1.data.sort(f); }; openfl__$Vector_Vector_$Impl_$.splice = function(this1,pos,len) { return new openfl__$Vector_AbstractVector(this1.data.splice(pos,len)); }; openfl__$Vector_Vector_$Impl_$.toString = function(this1) { if(this1 != null && this1.data != null) { return this1.data.toString(); } else { return null; } }; openfl__$Vector_Vector_$Impl_$.unshift = function(this1,x) { this1.data.unshift(x); }; openfl__$Vector_Vector_$Impl_$.ofArray = function(a) { var vector = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } return vector; }; openfl__$Vector_Vector_$Impl_$.convert = function(v) { return v; }; openfl__$Vector_Vector_$Impl_$.toBoolVector = function(t,length,fixed,array) { return new openfl__$Vector_AbstractVector(new openfl__$Vector_BoolVector(length,fixed),array); }; openfl__$Vector_Vector_$Impl_$.toIntVector = function(t,length,fixed,array) { return new openfl__$Vector_AbstractVector(new openfl__$Vector_IntVector(length,fixed),array); }; openfl__$Vector_Vector_$Impl_$.toFloatVector = function(t,length,fixed,array) { return new openfl__$Vector_AbstractVector(new openfl__$Vector_FloatVector(length,fixed),array); }; openfl__$Vector_Vector_$Impl_$.toFunctionVector = function(t,length,fixed,array) { return new openfl__$Vector_AbstractVector(new openfl__$Vector_FunctionVector(length,fixed),array); }; openfl__$Vector_Vector_$Impl_$.toObjectVector = function(t,length,fixed,array) { return new openfl__$Vector_AbstractVector(new openfl__$Vector_ObjectVector(length,fixed),array); }; openfl__$Vector_Vector_$Impl_$.get_fixed = function(this1) { return this1.data.fixed; }; openfl__$Vector_Vector_$Impl_$.set_fixed = function(this1,value) { return this1.data.fixed = value; }; openfl__$Vector_Vector_$Impl_$.get_length = function(this1) { return this1.data.get_length(); }; openfl__$Vector_Vector_$Impl_$.set_length = function(this1,value) { return this1.data.set_length(value); }; var lime_math_Matrix3 = function(a,b,c,d,tx,ty) { if(ty == null) { ty = 0; } if(tx == null) { tx = 0; } if(d == null) { d = 1; } if(c == null) { c = 0; } if(b == null) { b = 0; } if(a == null) { a = 1; } this.a = a; this.b = b; this.c = c; this.d = d; this.tx = tx; this.ty = ty; }; $hxClasses["lime.math.Matrix3"] = lime_math_Matrix3; lime_math_Matrix3.__name__ = ["lime","math","Matrix3"]; lime_math_Matrix3.prototype = { a: null ,b: null ,c: null ,d: null ,tx: null ,ty: null ,clone: function() { return new lime_math_Matrix3(this.a,this.b,this.c,this.d,this.tx,this.ty); } ,concat: function(m) { var a1 = this.a * m.a + this.b * m.c; this.b = this.a * m.b + this.b * m.d; this.a = a1; var c1 = this.c * m.a + this.d * m.c; this.d = this.c * m.b + this.d * m.d; this.c = c1; var tx1 = this.tx * m.a + this.ty * m.c + m.tx; this.ty = this.tx * m.b + this.ty * m.d + m.ty; this.tx = tx1; } ,copyColumnFrom: function(column,vector4) { if(column > 2) { throw new js__$Boot_HaxeError("Column " + column + " out of bounds (2)"); } else if(column == 0) { this.a = vector4.x; this.c = vector4.y; } else if(column == 1) { this.b = vector4.x; this.d = vector4.y; } else { this.tx = vector4.x; this.ty = vector4.y; } } ,copyColumnTo: function(column,vector4) { if(column > 2) { throw new js__$Boot_HaxeError("Column " + column + " out of bounds (2)"); } else if(column == 0) { vector4.x = this.a; vector4.y = this.c; vector4.z = 0; } else if(column == 1) { vector4.x = this.b; vector4.y = this.d; vector4.z = 0; } else { vector4.x = this.tx; vector4.y = this.ty; vector4.z = 1; } } ,copyFrom: function(sourceMatrix3) { this.a = sourceMatrix3.a; this.b = sourceMatrix3.b; this.c = sourceMatrix3.c; this.d = sourceMatrix3.d; this.tx = sourceMatrix3.tx; this.ty = sourceMatrix3.ty; } ,copyRowFrom: function(row,vector4) { if(row > 2) { throw new js__$Boot_HaxeError("Row " + row + " out of bounds (2)"); } else if(row == 0) { this.a = vector4.x; this.c = vector4.y; } else if(row == 1) { this.b = vector4.x; this.d = vector4.y; } else { this.tx = vector4.x; this.ty = vector4.y; } } ,copyRowTo: function(row,vector4) { if(row > 2) { throw new js__$Boot_HaxeError("Row " + row + " out of bounds (2)"); } else if(row == 0) { vector4.x = this.a; vector4.y = this.b; vector4.z = this.tx; } else if(row == 1) { vector4.x = this.c; vector4.y = this.d; vector4.z = this.ty; } else { vector4.x = 0; vector4.y = 0; vector4.z = 1; } } ,createBox: function(scaleX,scaleY,rotation,tx,ty) { if(ty == null) { ty = 0; } if(tx == null) { tx = 0; } if(rotation == null) { rotation = 0; } this.a = scaleX; this.d = scaleY; this.b = rotation; this.tx = tx; this.ty = ty; } ,createGradientBox: function(width,height,rotation,tx,ty) { if(ty == null) { ty = 0; } if(tx == null) { tx = 0; } if(rotation == null) { rotation = 0; } this.a = width / 1638.4; this.d = height / 1638.4; if(rotation != 0) { var cos = Math.cos(rotation); var sin = Math.sin(rotation); this.b = sin * this.d; this.c = -sin * this.a; this.a *= cos; this.d *= cos; } else { this.b = 0; this.c = 0; } this.tx = tx + width / 2; this.ty = ty + height / 2; } ,equals: function(Matrix3) { if(Matrix3 != null && this.tx == Matrix3.tx && this.ty == Matrix3.ty && this.a == Matrix3.a && this.b == Matrix3.b && this.c == Matrix3.c) { return this.d == Matrix3.d; } else { return false; } } ,deltaTransformVector2: function(Vector2) { return new lime_math_Vector2(Vector2.x * this.a + Vector2.y * this.c,Vector2.x * this.b + Vector2.y * this.d); } ,identity: function() { this.a = 1; this.b = 0; this.c = 0; this.d = 1; this.tx = 0; this.ty = 0; } ,invert: function() { var norm = this.a * this.d - this.b * this.c; if(norm == 0) { this.a = this.b = this.c = this.d = 0; this.tx = -this.tx; this.ty = -this.ty; } else { norm = 1.0 / norm; var a1 = this.d * norm; this.d = this.a * norm; this.a = a1; this.b *= -norm; this.c *= -norm; var tx1 = -this.a * this.tx - this.c * this.ty; this.ty = -this.b * this.tx - this.d * this.ty; this.tx = tx1; } return this; } ,mult: function(m) { var result = new lime_math_Matrix3(this.a,this.b,this.c,this.d,this.tx,this.ty); result.concat(m); return result; } ,rotate: function(theta) { var cos = Math.cos(theta); var sin = Math.sin(theta); var a1 = this.a * cos - this.b * sin; this.b = this.a * sin + this.b * cos; this.a = a1; var c1 = this.c * cos - this.d * sin; this.d = this.c * sin + this.d * cos; this.c = c1; var tx1 = this.tx * cos - this.ty * sin; this.ty = this.tx * sin + this.ty * cos; this.tx = tx1; } ,scale: function(sx,sy) { this.a *= sx; this.b *= sy; this.c *= sx; this.d *= sy; this.tx *= sx; this.ty *= sy; } ,setRotation: function(theta,scale) { if(scale == null) { scale = 1; } this.a = Math.cos(theta) * scale; this.c = Math.sin(theta) * scale; this.b = -this.c; this.d = this.a; } ,setTo: function(a,b,c,d,tx,ty) { this.a = a; this.b = b; this.c = c; this.d = d; this.tx = tx; this.ty = ty; } ,to3DString: function(roundPixels) { if(roundPixels == null) { roundPixels = false; } if(roundPixels) { return "Matrix33d(" + this.a + ", " + this.b + ", " + "0, 0, " + this.c + ", " + this.d + ", " + "0, 0, 0, 0, 1, 0, " + (this.tx | 0) + ", " + (this.ty | 0) + ", 0, 1)"; } else { return "Matrix33d(" + this.a + ", " + this.b + ", " + "0, 0, " + this.c + ", " + this.d + ", " + "0, 0, 0, 0, 1, 0, " + this.tx + ", " + this.ty + ", 0, 1)"; } } ,toMozString: function() { return "Matrix3(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + "px, " + this.ty + "px)"; } ,toString: function() { return "Matrix3(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + ", " + this.ty + ")"; } ,transformVector2: function(pos) { return new lime_math_Vector2(pos.x * this.a + pos.y * this.c + this.tx,pos.x * this.b + pos.y * this.d + this.ty); } ,translate: function(dx,dy) { this.tx += dx; this.ty += dy; } ,__cleanValues: function() { this.a = Math.round(this.a * 1000) / 1000; this.b = Math.round(this.b * 1000) / 1000; this.c = Math.round(this.c * 1000) / 1000; this.d = Math.round(this.d * 1000) / 1000; this.tx = Math.round(this.tx * 10) / 10; this.ty = Math.round(this.ty * 10) / 10; } ,__transformX: function(pos) { return pos.x * this.a + pos.y * this.c + this.tx; } ,__transformY: function(pos) { return pos.x * this.b + pos.y * this.d + this.ty; } ,__translateTransformed: function(pos) { this.tx = pos.x * this.a + pos.y * this.c + this.tx; this.ty = pos.x * this.b + pos.y * this.d + this.ty; } ,__class__: lime_math_Matrix3 }; var lime_utils_ObjectPool_$openfl_$geom_$Matrix = function(create,clean,size) { if(create != null) { this.create = create; } if(clean != null) { this.clean = clean; } if(size != null) { this.set_size(size); } this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList = new List(); }; $hxClasses["lime.utils.ObjectPool_openfl_geom_Matrix"] = lime_utils_ObjectPool_$openfl_$geom_$Matrix; lime_utils_ObjectPool_$openfl_$geom_$Matrix.__name__ = ["lime","utils","ObjectPool_openfl_geom_Matrix"]; lime_utils_ObjectPool_$openfl_$geom_$Matrix.prototype = { activeObjects: null ,inactiveObjects: null ,__inactiveObject0: null ,__inactiveObject1: null ,__inactiveObjectList: null ,__pool: null ,__size: null ,add: function(object) { if(!this.__pool.exists(object)) { this.__pool.set(object,false); this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } } ,clean: function(object) { } ,clear: function() { this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList.clear(); } ,create: function() { return null; } ,get: function() { var object = null; if(this.inactiveObjects > 0) { var object1 = null; if(this.__inactiveObject0 != null) { object1 = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object1 = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object1 = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; object = object1; } else if(this.__size == null || this.activeObjects < this.__size) { object = this.create(); if(object != null) { this.__pool.set(object,true); this.activeObjects++; } } return object; } ,release: function(object) { this.activeObjects--; if(this.__size == null || this.activeObjects + this.inactiveObjects < this.__size) { this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } else { this.__pool.remove(object); } } ,__addInactive: function(object) { if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } ,__getInactive: function() { var object = null; if(this.__inactiveObject0 != null) { object = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; return object; } ,__removeInactive: function(count) { if(count <= 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject0 != null) { this.__pool.remove(this.__inactiveObject0); this.__inactiveObject0 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject1 != null) { this.__pool.remove(this.__inactiveObject1); this.__inactiveObject1 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } var _g_head = this.__inactiveObjectList.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var object = val; this.__pool.remove(object); this.__inactiveObjectList.remove(object); this.inactiveObjects--; --count; if(count == 0 || this.inactiveObjects == 0) { return; } } } ,get_size: function() { return this.__size; } ,set_size: function(value) { if(value == null) { this.__size = null; } else { var current = this.inactiveObjects + this.activeObjects; this.__size = value; if(current > value) { this.__removeInactive(current - value); } else if(value > current) { var object; var _g1 = 0; var _g = value - current; while(_g1 < _g) { var i = _g1++; object = this.create(); if(object != null) { this.__pool.set(object,false); this.__inactiveObjectList.add(object); this.inactiveObjects++; } else { break; } } } } return value; } ,__class__: lime_utils_ObjectPool_$openfl_$geom_$Matrix ,__properties__: {set_size:"set_size",get_size:"get_size"} }; var openfl_geom_Matrix = function(a,b,c,d,tx,ty) { if(ty == null) { ty = 0; } if(tx == null) { tx = 0; } if(d == null) { d = 1; } if(c == null) { c = 0; } if(b == null) { b = 0; } if(a == null) { a = 1; } this.a = a; this.b = b; this.c = c; this.d = d; this.tx = tx; this.ty = ty; }; $hxClasses["openfl.geom.Matrix"] = openfl_geom_Matrix; openfl_geom_Matrix.__name__ = ["openfl","geom","Matrix"]; openfl_geom_Matrix.prototype = { a: null ,b: null ,c: null ,d: null ,tx: null ,ty: null ,__array: null ,clone: function() { return new openfl_geom_Matrix(this.a,this.b,this.c,this.d,this.tx,this.ty); } ,concat: function(m) { var a1 = this.a * m.a + this.b * m.c; this.b = this.a * m.b + this.b * m.d; this.a = a1; var c1 = this.c * m.a + this.d * m.c; this.d = this.c * m.b + this.d * m.d; this.c = c1; var tx1 = this.tx * m.a + this.ty * m.c + m.tx; this.ty = this.tx * m.b + this.ty * m.d + m.ty; this.tx = tx1; } ,copyColumnFrom: function(column,vector3D) { if(column > 2) { throw new js__$Boot_HaxeError("Column " + column + " out of bounds (2)"); } else if(column == 0) { this.a = vector3D.x; this.c = vector3D.y; } else if(column == 1) { this.b = vector3D.x; this.d = vector3D.y; } else { this.tx = vector3D.x; this.ty = vector3D.y; } } ,copyColumnTo: function(column,vector3D) { if(column > 2) { throw new js__$Boot_HaxeError("Column " + column + " out of bounds (2)"); } else if(column == 0) { vector3D.x = this.a; vector3D.y = this.c; vector3D.z = 0; } else if(column == 1) { vector3D.x = this.b; vector3D.y = this.d; vector3D.z = 0; } else { vector3D.x = this.tx; vector3D.y = this.ty; vector3D.z = 1; } } ,copyFrom: function(sourceMatrix) { this.a = sourceMatrix.a; this.b = sourceMatrix.b; this.c = sourceMatrix.c; this.d = sourceMatrix.d; this.tx = sourceMatrix.tx; this.ty = sourceMatrix.ty; } ,copyRowFrom: function(row,vector3D) { if(row > 2) { throw new js__$Boot_HaxeError("Row " + row + " out of bounds (2)"); } else if(row == 0) { this.a = vector3D.x; this.c = vector3D.y; } else if(row == 1) { this.b = vector3D.x; this.d = vector3D.y; } else { this.tx = vector3D.x; this.ty = vector3D.y; } } ,copyRowTo: function(row,vector3D) { if(row > 2) { throw new js__$Boot_HaxeError("Row " + row + " out of bounds (2)"); } else if(row == 0) { vector3D.x = this.a; vector3D.y = this.b; vector3D.z = this.tx; } else if(row == 1) { vector3D.x = this.c; vector3D.y = this.d; vector3D.z = this.ty; } else { vector3D.setTo(0,0,1); } } ,createBox: function(scaleX,scaleY,rotation,tx,ty) { if(ty == null) { ty = 0; } if(tx == null) { tx = 0; } if(rotation == null) { rotation = 0; } if(rotation != 0) { var cos = Math.cos(rotation); var sin = Math.sin(rotation); this.a = cos * scaleX; this.b = sin * scaleY; this.c = -sin * scaleX; this.d = cos * scaleY; } else { this.a = scaleX; this.b = 0; this.c = 0; this.d = scaleY; } this.tx = tx; this.ty = ty; } ,createGradientBox: function(width,height,rotation,tx,ty) { if(ty == null) { ty = 0; } if(tx == null) { tx = 0; } if(rotation == null) { rotation = 0; } this.a = width / 1638.4; this.d = height / 1638.4; if(rotation != 0) { var cos = Math.cos(rotation); var sin = Math.sin(rotation); this.b = sin * this.d; this.c = -sin * this.a; this.a *= cos; this.d *= cos; } else { this.b = 0; this.c = 0; } this.tx = tx + width / 2; this.ty = ty + height / 2; } ,deltaTransformPoint: function(point) { return new openfl_geom_Point(point.x * this.a + point.y * this.c,point.x * this.b + point.y * this.d); } ,equals: function(matrix) { if(matrix != null && this.tx == matrix.tx && this.ty == matrix.ty && this.a == matrix.a && this.b == matrix.b && this.c == matrix.c) { return this.d == matrix.d; } else { return false; } } ,identity: function() { this.a = 1; this.b = 0; this.c = 0; this.d = 1; this.tx = 0; this.ty = 0; } ,invert: function() { var norm = this.a * this.d - this.b * this.c; if(norm == 0) { this.a = this.b = this.c = this.d = 0; this.tx = -this.tx; this.ty = -this.ty; } else { norm = 1.0 / norm; var a1 = this.d * norm; this.d = this.a * norm; this.a = a1; this.b *= -norm; this.c *= -norm; var tx1 = -this.a * this.tx - this.c * this.ty; this.ty = -this.b * this.tx - this.d * this.ty; this.tx = tx1; } return this; } ,rotate: function(theta) { var cos = Math.cos(theta); var sin = Math.sin(theta); var a1 = this.a * cos - this.b * sin; this.b = this.a * sin + this.b * cos; this.a = a1; var c1 = this.c * cos - this.d * sin; this.d = this.c * sin + this.d * cos; this.c = c1; var tx1 = this.tx * cos - this.ty * sin; this.ty = this.tx * sin + this.ty * cos; this.tx = tx1; } ,scale: function(sx,sy) { this.a *= sx; this.b *= sy; this.c *= sx; this.d *= sy; this.tx *= sx; this.ty *= sy; } ,setRotation: function(theta,scale) { if(scale == null) { scale = 1; } this.a = Math.cos(theta) * scale; this.c = Math.sin(theta) * scale; this.b = -this.c; this.d = this.a; } ,setTo: function(a,b,c,d,tx,ty) { this.a = a; this.b = b; this.c = c; this.d = d; this.tx = tx; this.ty = ty; } ,to3DString: function(roundPixels) { if(roundPixels == null) { roundPixels = false; } if(roundPixels) { return "matrix3d(" + this.a + ", " + this.b + ", 0, 0, " + this.c + ", " + this.d + ", 0, 0, 0, 0, 1, 0, " + (this.tx | 0) + ", " + (this.ty | 0) + ", 0, 1)"; } else { return "matrix3d(" + this.a + ", " + this.b + ", 0, 0, " + this.c + ", " + this.d + ", 0, 0, 0, 0, 1, 0, " + this.tx + ", " + this.ty + ", 0, 1)"; } } ,toMozString: function() { return "matrix(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + "px, " + this.ty + "px)"; } ,toString: function() { return "matrix(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + ", " + this.ty + ")"; } ,transformPoint: function(pos) { return new openfl_geom_Point(pos.x * this.a + pos.y * this.c + this.tx,pos.x * this.b + pos.y * this.d + this.ty); } ,translate: function(dx,dy) { this.tx += dx; this.ty += dy; } ,toArray: function(transpose) { if(transpose == null) { transpose = false; } if(this.__array == null) { var this1 = new Float32Array(9); this.__array = this1; } if(transpose) { this.__array[0] = this.a; this.__array[1] = this.b; this.__array[2] = 0; this.__array[3] = this.c; this.__array[4] = this.d; this.__array[5] = 0; this.__array[6] = this.tx; this.__array[7] = this.ty; this.__array[8] = 1; } else { this.__array[0] = this.a; this.__array[1] = this.c; this.__array[2] = this.tx; this.__array[3] = this.b; this.__array[4] = this.d; this.__array[5] = this.ty; this.__array[6] = 0; this.__array[7] = 0; this.__array[8] = 1; } return this.__array; } ,__cleanValues: function() { this.a = Math.round(this.a * 1000) / 1000; this.b = Math.round(this.b * 1000) / 1000; this.c = Math.round(this.c * 1000) / 1000; this.d = Math.round(this.d * 1000) / 1000; this.tx = Math.round(this.tx * 10) / 10; this.ty = Math.round(this.ty * 10) / 10; } ,__toMatrix3: function() { openfl_geom_Matrix.__matrix3.setTo(this.a,this.b,this.c,this.d,this.tx,this.ty); return openfl_geom_Matrix.__matrix3; } ,__transformInversePoint: function(point) { var norm = this.a * this.d - this.b * this.c; if(norm == 0) { point.x = -this.tx; point.y = -this.ty; } else { var px = 1.0 / norm * (this.c * (this.ty - point.y) + this.d * (point.x - this.tx)); point.y = 1.0 / norm * (this.a * (point.y - this.ty) + this.b * (this.tx - point.x)); point.x = px; } } ,__transformInverseX: function(px,py) { var norm = this.a * this.d - this.b * this.c; if(norm == 0) { return -this.tx; } else { return 1.0 / norm * (this.c * (this.ty - py) + this.d * (px - this.tx)); } } ,__transformInverseY: function(px,py) { var norm = this.a * this.d - this.b * this.c; if(norm == 0) { return -this.ty; } else { return 1.0 / norm * (this.a * (py - this.ty) + this.b * (this.tx - px)); } } ,__transformPoint: function(point) { var px = point.x; var py = point.y; point.x = px * this.a + py * this.c + this.tx; point.y = px * this.b + py * this.d + this.ty; } ,__transformX: function(px,py) { return px * this.a + py * this.c + this.tx; } ,__transformY: function(px,py) { return px * this.b + py * this.d + this.ty; } ,__translateTransformed: function(px,py) { this.tx = px * this.a + py * this.c + this.tx; this.ty = px * this.b + py * this.d + this.ty; } ,__class__: openfl_geom_Matrix }; var openfl_geom_ColorTransform = function(redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset) { if(alphaOffset == null) { alphaOffset = 0; } if(blueOffset == null) { blueOffset = 0; } if(greenOffset == null) { greenOffset = 0; } if(redOffset == null) { redOffset = 0; } if(alphaMultiplier == null) { alphaMultiplier = 1; } if(blueMultiplier == null) { blueMultiplier = 1; } if(greenMultiplier == null) { greenMultiplier = 1; } if(redMultiplier == null) { redMultiplier = 1; } this.redMultiplier = redMultiplier; this.greenMultiplier = greenMultiplier; this.blueMultiplier = blueMultiplier; this.alphaMultiplier = alphaMultiplier; this.redOffset = redOffset; this.greenOffset = greenOffset; this.blueOffset = blueOffset; this.alphaOffset = alphaOffset; }; $hxClasses["openfl.geom.ColorTransform"] = openfl_geom_ColorTransform; openfl_geom_ColorTransform.__name__ = ["openfl","geom","ColorTransform"]; openfl_geom_ColorTransform.prototype = { alphaMultiplier: null ,alphaOffset: null ,blueMultiplier: null ,blueOffset: null ,greenMultiplier: null ,greenOffset: null ,redMultiplier: null ,redOffset: null ,concat: function(second) { this.redMultiplier *= second.redMultiplier; this.greenMultiplier *= second.greenMultiplier; this.blueMultiplier *= second.blueMultiplier; this.alphaMultiplier *= second.alphaMultiplier; this.redOffset = second.redMultiplier * this.redOffset + second.redOffset; this.greenOffset = second.greenMultiplier * this.greenOffset + second.greenOffset; this.blueOffset = second.blueMultiplier * this.blueOffset + second.blueOffset; this.alphaOffset = second.alphaMultiplier * this.alphaOffset + second.alphaOffset; } ,toString: function() { return "(redMultiplier=" + this.redMultiplier + ", greenMultiplier=" + this.greenMultiplier + ", blueMultiplier=" + this.blueMultiplier + ", alphaMultiplier=" + this.alphaMultiplier + ", redOffset=" + this.redOffset + ", greenOffset=" + this.greenOffset + ", blueOffset=" + this.blueOffset + ", alphaOffset=" + this.alphaOffset + ")"; } ,__clone: function() { return new openfl_geom_ColorTransform(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset); } ,__copyFrom: function(ct) { this.redMultiplier = ct.redMultiplier; this.greenMultiplier = ct.greenMultiplier; this.blueMultiplier = ct.blueMultiplier; this.alphaMultiplier = ct.alphaMultiplier; this.redOffset = ct.redOffset; this.greenOffset = ct.greenOffset; this.blueOffset = ct.blueOffset; this.alphaOffset = ct.alphaOffset; } ,__combine: function(ct) { this.redMultiplier *= ct.redMultiplier; this.greenMultiplier *= ct.greenMultiplier; this.blueMultiplier *= ct.blueMultiplier; this.alphaMultiplier *= ct.alphaMultiplier; this.redOffset += ct.redOffset; this.greenOffset += ct.greenOffset; this.blueOffset += ct.blueOffset; this.alphaOffset += ct.alphaOffset; } ,__identity: function() { this.redMultiplier = 1; this.greenMultiplier = 1; this.blueMultiplier = 1; this.alphaMultiplier = 1; this.redOffset = 0; this.greenOffset = 0; this.blueOffset = 0; this.alphaOffset = 0; } ,__equals: function(ct,skipAlphaMultiplier) { if(skipAlphaMultiplier == null) { skipAlphaMultiplier = false; } if(ct != null && this.redMultiplier == ct.redMultiplier && this.greenMultiplier == ct.greenMultiplier && this.blueMultiplier == ct.blueMultiplier && (skipAlphaMultiplier || this.alphaMultiplier == ct.alphaMultiplier) && this.redOffset == ct.redOffset && this.greenOffset == ct.greenOffset && this.blueOffset == ct.blueOffset) { return this.alphaOffset == ct.alphaOffset; } else { return false; } } ,__isDefault: function() { if(this.redMultiplier == 1 && this.greenMultiplier == 1 && this.blueMultiplier == 1 && this.alphaMultiplier == 1 && this.redOffset == 0 && this.greenOffset == 0 && this.blueOffset == 0) { return this.alphaOffset == 0; } else { return false; } } ,get_color: function() { return (this.redOffset | 0) << 16 | (this.greenOffset | 0) << 8 | (this.blueOffset | 0); } ,set_color: function(value) { this.redOffset = value >> 16 & 255; this.greenOffset = value >> 8 & 255; this.blueOffset = value & 255; this.redMultiplier = 0; this.greenMultiplier = 0; this.blueMultiplier = 0; return this.get_color(); } ,__toLimeColorMatrix: function() { if(openfl_geom_ColorTransform.__limeColorMatrix == null) { var this1 = new Float32Array(20); openfl_geom_ColorTransform.__limeColorMatrix = this1; } openfl_geom_ColorTransform.__limeColorMatrix[0] = this.redMultiplier; openfl_geom_ColorTransform.__limeColorMatrix[4] = this.redOffset / 255; openfl_geom_ColorTransform.__limeColorMatrix[6] = this.greenMultiplier; openfl_geom_ColorTransform.__limeColorMatrix[9] = this.greenOffset / 255; openfl_geom_ColorTransform.__limeColorMatrix[12] = this.blueMultiplier; openfl_geom_ColorTransform.__limeColorMatrix[14] = this.blueOffset / 255; openfl_geom_ColorTransform.__limeColorMatrix[18] = this.alphaMultiplier; openfl_geom_ColorTransform.__limeColorMatrix[19] = this.alphaOffset / 255; return openfl_geom_ColorTransform.__limeColorMatrix; } ,__class__: openfl_geom_ColorTransform ,__properties__: {set_color:"set_color",get_color:"get_color"} }; var haxe_IMap = function() { }; $hxClasses["haxe.IMap"] = haxe_IMap; haxe_IMap.__name__ = ["haxe","IMap"]; haxe_IMap.prototype = { get: null ,set: null ,exists: null ,remove: null ,__class__: haxe_IMap }; var haxe_ds_StringMap = function() { this.h = { }; }; $hxClasses["haxe.ds.StringMap"] = haxe_ds_StringMap; haxe_ds_StringMap.__name__ = ["haxe","ds","StringMap"]; haxe_ds_StringMap.__interfaces__ = [haxe_IMap]; haxe_ds_StringMap.prototype = { h: null ,rh: null ,set: function(key,value) { if(__map_reserved[key] != null) { this.setReserved(key,value); } else { this.h[key] = value; } } ,get: function(key) { if(__map_reserved[key] != null) { return this.getReserved(key); } return this.h[key]; } ,exists: function(key) { if(__map_reserved[key] != null) { return this.existsReserved(key); } return this.h.hasOwnProperty(key); } ,setReserved: function(key,value) { if(this.rh == null) { this.rh = { }; } this.rh["$" + key] = value; } ,getReserved: function(key) { if(this.rh == null) { return null; } else { return this.rh["$" + key]; } } ,existsReserved: function(key) { if(this.rh == null) { return false; } return this.rh.hasOwnProperty("$" + key); } ,remove: function(key) { if(__map_reserved[key] != null) { key = "$" + key; if(this.rh == null || !this.rh.hasOwnProperty(key)) { return false; } delete(this.rh[key]); return true; } else { if(!this.h.hasOwnProperty(key)) { return false; } delete(this.h[key]); return true; } } ,keys: function() { return HxOverrides.iter(this.arrayKeys()); } ,arrayKeys: function() { var out = []; for( var key in this.h ) { if(this.h.hasOwnProperty(key)) { out.push(key); } } if(this.rh != null) { for( var key in this.rh ) { if(key.charCodeAt(0) == 36) { out.push(key.substr(1)); } } } return out; } ,toString: function() { var s_b = ""; s_b += "{"; var keys = this.arrayKeys(); var _g1 = 0; var _g = keys.length; while(_g1 < _g) { var i = _g1++; var k = keys[i]; s_b += k == null ? "null" : "" + k; s_b += " => "; s_b += Std.string(Std.string(__map_reserved[k] != null ? this.getReserved(k) : this.h[k])); if(i < keys.length - 1) { s_b += ", "; } } s_b += "}"; return s_b; } ,__class__: haxe_ds_StringMap }; var com_firstplayable_hxlib_display_GameDisplay = function() { }; $hxClasses["com.firstplayable.hxlib.display.GameDisplay"] = com_firstplayable_hxlib_display_GameDisplay; com_firstplayable_hxlib_display_GameDisplay.__name__ = ["com","firstplayable","hxlib","display","GameDisplay"]; com_firstplayable_hxlib_display_GameDisplay.__properties__ = {set_enableMasking:"set_enableMasking",set_backgroundColor:"set_backgroundColor"}; com_firstplayable_hxlib_display_GameDisplay.set_backgroundColor = function(color) { var stage = openfl_Lib.current.stage; stage.addChildAt(com_firstplayable_hxlib_display_GameDisplay.ms_bgFill,0); com_firstplayable_hxlib_display_GameDisplay.ms_bgFill.get_graphics().clear(); com_firstplayable_hxlib_display_GameDisplay.ms_bgFill.get_graphics().beginFill(color); com_firstplayable_hxlib_display_GameDisplay.ms_bgFill.get_graphics().drawRect(0,0,stage.stageWidth,stage.stageHeight); com_firstplayable_hxlib_display_GameDisplay.ms_bgFill.get_graphics().endFill(); return color; }; com_firstplayable_hxlib_display_GameDisplay.set_enableMasking = function(enable) { com_firstplayable_hxlib_Debug.logHelper("enableMasking() is currently not implemented!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 67, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "set_enableMasking"}); return false; }; com_firstplayable_hxlib_display_GameDisplay.addLayer = function(name,layerObj,priority) { if(priority == null) { priority = -1; } var layerName = name; var layer = layerObj == null ? new openfl_display_Sprite() : layerObj; if(com_firstplayable_hxlib_app_Application.app != null) { if(priority > -1) { com_firstplayable_hxlib_app_Application.app.addChildAt(layer,priority); } else { com_firstplayable_hxlib_app_Application.app.addChild(layer); } } else if(priority > -1) { openfl_Lib.current.stage.addChildAt(layer,priority); } else { openfl_Lib.current.stage.addChild(layer); } var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(__map_reserved[layerName] != null) { _this.setReserved(layerName,layer); } else { _this.h[layerName] = layer; } return layer; }; com_firstplayable_hxlib_display_GameDisplay.removeLayer = function(layerName) { var tmp; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[layerName] != null ? _this.existsReserved(layerName) : _this.h.hasOwnProperty(layerName))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + layerName + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); tmp = false; } else { tmp = true; } if(!tmp) { return; } var _this1 = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layer = __map_reserved[layerName] != null ? _this1.getReserved(layerName) : _this1.h[layerName]; layer.parent.removeChild(layer); com_firstplayable_hxlib_display_GameDisplay.ms_layers.remove(layerName); }; com_firstplayable_hxlib_display_GameDisplay.getLayer = function(layerName) { var tmp; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[layerName] != null ? _this.existsReserved(layerName) : _this.h.hasOwnProperty(layerName))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + layerName + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); tmp = false; } else { tmp = true; } if(!tmp) { return null; } var _this1 = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(__map_reserved[layerName] != null) { return _this1.getReserved(layerName); } else { return _this1.h[layerName]; } }; com_firstplayable_hxlib_display_GameDisplay.resetLayer = function(name) { var layerName = name; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layerSpr = __map_reserved[layerName] != null ? _this.getReserved(layerName) : _this.h[layerName]; var layerScale = 1.0; var layerIndex = -1; if(layerSpr != null) { layerScale = layerSpr.get_scaleX(); if(layerSpr.parent != null) { layerIndex = layerSpr.parent.getChildIndex(layerSpr); } } com_firstplayable_hxlib_display_GameDisplay.removeLayer(layerName); var newLayer = com_firstplayable_hxlib_display_GameDisplay.addLayer(layerName,null,layerIndex); var condition = newLayer.get_scaleX() != layerScale; if(condition) { com_firstplayable_hxlib_Debug.logHelper("The scale for layer '" + Std.string(name) + "' has changed after resetLayer(); did you mean to use clearLayer() instead?",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 181, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "resetLayer"}); } }; com_firstplayable_hxlib_display_GameDisplay.clearLayer = function(name) { var layerName = name; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layerSpr = __map_reserved[layerName] != null ? _this.getReserved(layerName) : _this.h[layerName]; if(layerSpr != null) { layerSpr.get_graphics().clear(); layerSpr.removeChildren(); } }; com_firstplayable_hxlib_display_GameDisplay.attach = function(layerName,dObj,push) { if(push == null) { push = true; } var name = layerName; var tmp; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[name] != null ? _this.existsReserved(name) : _this.h.hasOwnProperty(name))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + name + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); tmp = false; } else { tmp = true; } if(!tmp) { return; } var _this1 = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layer = __map_reserved[name] != null ? _this1.getReserved(name) : _this1.h[name]; if(push) { layer.addChild(dObj); } else { layer.addChildAt(dObj,0); } }; com_firstplayable_hxlib_display_GameDisplay.remove = function(layerName,dObj) { var name = layerName; var tmp; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[name] != null ? _this.existsReserved(name) : _this.h.hasOwnProperty(name))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + name + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); tmp = false; } else { tmp = true; } if(!tmp) { return; } var _this1 = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layer = __map_reserved[name] != null ? _this1.getReserved(name) : _this1.h[name]; if(dObj != null && dObj.parent == layer) { layer.removeChild(dObj); } else { com_firstplayable_hxlib_Debug.log("Child does not exist! \"" + Std.string(dObj) + "\"",null,{ fileName : "GameDisplay.hx", lineNumber : 241, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "remove"}); } }; com_firstplayable_hxlib_display_GameDisplay.showLayer = function(name,visibility) { var layerName = name; var tmp; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[layerName] != null ? _this.existsReserved(layerName) : _this.h.hasOwnProperty(layerName))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + layerName + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); tmp = false; } else { tmp = true; } if(!tmp) { return; } var _this1 = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layer = __map_reserved[layerName] != null ? _this1.getReserved(layerName) : _this1.h[layerName]; layer.set_visible(visibility == null ? !layer.get_visible() : visibility); }; com_firstplayable_hxlib_display_GameDisplay.enableLayer = function(layerName,enabled) { var tmp; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[layerName] != null ? _this.existsReserved(layerName) : _this.h.hasOwnProperty(layerName))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + layerName + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); tmp = false; } else { tmp = true; } if(!tmp) { return; } var _this1 = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layer = __map_reserved[layerName] != null ? _this1.getReserved(layerName) : _this1.h[layerName]; layer.mouseEnabled = enabled == null ? !layer.mouseEnabled : enabled; layer.mouseChildren = enabled == null ? !layer.mouseChildren : enabled; }; com_firstplayable_hxlib_display_GameDisplay.setLayerMask = function(layerName,layerMask) { var tmp; var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[layerName] != null ? _this.existsReserved(layerName) : _this.h.hasOwnProperty(layerName))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + layerName + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); tmp = false; } else { tmp = true; } if(!tmp) { return; } var _this1 = com_firstplayable_hxlib_display_GameDisplay.ms_layers; var layer = __map_reserved[layerName] != null ? _this1.getReserved(layerName) : _this1.h[layerName]; if(layer.get_mask() != null && layer.get_mask().parent != null) { layer.get_mask().parent.removeChild(layer.get_mask()); } if(layerMask != null) { layer.addChild(layerMask); layerMask.mouseEnabled = false; layerMask.mouseChildren = false; } layer.set_cacheAsBitmap(false); layer.set_mask(layerMask); }; com_firstplayable_hxlib_display_GameDisplay.verifyLayer = function(layerName) { var _this = com_firstplayable_hxlib_display_GameDisplay.ms_layers; if(!(__map_reserved[layerName] != null ? _this.existsReserved(layerName) : _this.h.hasOwnProperty(layerName))) { com_firstplayable_hxlib_Debug.logHelper("Layer does not exist! \"" + layerName + "\"",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameDisplay.hx", lineNumber : 309, className : "com.firstplayable.hxlib.display.GameDisplay", methodName : "verifyLayer"}); return false; } else { return true; } }; var com_firstplayable_hxlib_utils_json_IJsonClient = function() { }; $hxClasses["com.firstplayable.hxlib.utils.json.IJsonClient"] = com_firstplayable_hxlib_utils_json_IJsonClient; com_firstplayable_hxlib_utils_json_IJsonClient.__name__ = ["com","firstplayable","hxlib","utils","json","IJsonClient"]; com_firstplayable_hxlib_utils_json_IJsonClient.prototype = { getType: null ,onButtonHit: null ,onButtonDown: null ,onButtonUp: null ,onButtonOver: null ,onButtonOut: null ,addButton: null ,addChild: null ,__class__: com_firstplayable_hxlib_utils_json_IJsonClient }; var com_firstplayable_hxlib_display_GenericMenu = function(menuName) { this.m_isInited = false; openfl_display_Sprite.call(this); this.m_menuName = menuName; var jsonFile = com_firstplayable_hxlib_loader_ResMan.get_instance().getPaistFileByName(this.m_menuName); if(this.m_isInited) { com_firstplayable_hxlib_Debug.logHelper("Menu (" + this.m_menuName + ") tied to JsonFile( " + jsonFile + " ) already inited!!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 59, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "new"}); return; } this.m_btnMap = []; this.m_objectMap = new haxe_ds_StringMap(); if(jsonFile == "") { return; } var jof = com_firstplayable_hxlib_utils_json_JsonObjectFactory.getInstance(); if(!jof.populate(jsonFile,this)) { com_firstplayable_hxlib_Debug.logHelper("Menu (" + this.m_menuName + ") tied to JsonFile(" + jsonFile + ") failed to populate properly",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 74, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "new"}); return; } this.m_isInited = true; }; $hxClasses["com.firstplayable.hxlib.display.GenericMenu"] = com_firstplayable_hxlib_display_GenericMenu; com_firstplayable_hxlib_display_GenericMenu.__name__ = ["com","firstplayable","hxlib","display","GenericMenu"]; com_firstplayable_hxlib_display_GenericMenu.__interfaces__ = [com_firstplayable_hxlib_utils_json_IJsonClient]; com_firstplayable_hxlib_display_GenericMenu.__super__ = openfl_display_Sprite; com_firstplayable_hxlib_display_GenericMenu.prototype = $extend(openfl_display_Sprite.prototype,{ m_isInited: null ,m_menuName: null ,m_btnMap: null ,m_objectMap: null ,get_menuName: function() { return this.m_menuName; } ,doGetChildByName: function(name) { var obj = null; var _this = this.m_objectMap; if(__map_reserved[name] != null ? _this.existsReserved(name) : _this.h.hasOwnProperty(name)) { var _this1 = this.m_objectMap; if(__map_reserved[name] != null) { obj = _this1.getReserved(name); } else { obj = _this1.h[name]; } } else { obj = openfl_display_Sprite.prototype.getChildByName.call(this,name); } return obj; } ,getChildByName: function(name) { var obj = this.doGetChildByName(name); if(obj == null) { var msg = "GenericMenu: could not get child named '" + name + "' on menu '" + this.m_menuName + "'" + "(Check hasObject or use getChildAs(name, type, IGNORE_FAILURE) to suppress if you are handling errors.)"; com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 105, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "getChildByName"}); } return obj; } ,getChildAs: function(name,type,failResponse) { if(failResponse == null) { failResponse = 0; } var obj = this.doGetChildByName(name); if(obj != null && js_Boot.__instanceof(obj,type)) { return obj; } else if(failResponse != 2) { var msg = "GenericMenu: could not get child named '" + name + "' as type '" + Std.string(type) + "' on menu '" + this.m_menuName + "'"; if(obj != null) { msg += "\n\tNote: child by that name exists, but its type is '" + Type.getClassName(obj == null ? null : js_Boot.getClass(obj)) + "'"; } com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 128, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "getChildAs"}); } return null; } ,getButtonById: function(id) { var condition = id >= this.m_btnMap.length; if(condition) { com_firstplayable_hxlib_Debug.logHelper("Warning: '" + id + "' is not a valid button ID on menu '" + this.m_menuName + "'",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 139, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "getButtonById"}); } if(condition) { return null; } return this.m_btnMap[id]; } ,hasObject: function(name) { var obj = this.doGetChildByName(name); return obj != null; } ,showObject: function(name,failResponse) { if(failResponse == null) { failResponse = 0; } var obj = this.getChildAs(name,openfl_display_DisplayObject,failResponse); if(obj != null) { obj.set_visible(true); } } ,hideObject: function(name,failResponse) { if(failResponse == null) { failResponse = 0; } var obj = this.getChildAs(name,openfl_display_DisplayObject,failResponse); if(obj != null) { obj.set_visible(false); } } ,toggleObjectVisibility: function(name,visible) { if(visible) { this.showObject(name); } else { this.hideObject(name); } } ,positionObjectByRef: function(obj,refName) { var ref = this.doGetChildByName(refName); if(ref == null || obj == null) { var msg = "Cannot position obj by refName '" + refName + "' on menu '" + this.m_menuName + "';"; msg += "ref exists? " + Std.string(ref != null) + "; obj exists? " + Std.string(obj != null); com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 188, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "positionObjectByRef"}); return; } obj.set_x(ref.get_x()); obj.set_y(ref.get_y()); this.addChildAt(obj,this.getChildIndex(ref)); ref.set_visible(false); } ,replaceRefWithObject: function(obj,refName,props) { var ref = this.doGetChildByName(refName); if(ref == null || obj == null) { var msg = "Cannot position obj by refName '" + refName + "' on menu '" + this.m_menuName + "';"; msg += "ref exists? " + Std.string(ref != null) + "; obj exists? " + Std.string(obj != null); com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 208, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "replaceRefWithObject"}); return; } this.addChildAt(obj,this.getChildIndex(ref)); ref.set_visible(false); if(props != null) { var _g = 0; while(_g < props.length) { var prop = props[_g]; ++_g; if(Object.prototype.hasOwnProperty.call(ref,prop) && Object.prototype.hasOwnProperty.call(ref,prop)) { var propValue = Reflect.getProperty(ref,prop); obj[prop] = propValue; } } } } ,setTextInField: function(tfName,strID,forceText) { if(forceText == null) { forceText = false; } var tf = this.getChildAs(tfName,openfl_text_TextField); var condition = tf == null; if(condition) { com_firstplayable_hxlib_Debug.logHelper("Cannot setTextInField; specified field was null",null,{ fileName : "GenericMenu.hx", lineNumber : 240, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "setTextInField"}); } if(condition) { return; } var text = com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().get(strID); if(text == strID && !forceText) { com_firstplayable_hxlib_Debug.log("No string found for strID '" + strID + "'; not displaying this (use forceText=true to display)",null,{ fileName : "GenericMenu.hx", lineNumber : 249, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "setTextInField"}); return; } if(text == null) { com_firstplayable_hxlib_Debug.log("String found but was null for strID '" + strID + "'",null,{ fileName : "GenericMenu.hx", lineNumber : 257, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "setTextInField"}); text = ""; } tf.set_text(text); } ,setCursorForObject: function(name,cursor) { var obj = this.getChildByName(name); if(obj != null) { if(js_Boot.__instanceof(obj,com_firstplayable_hxlib_display_OPSprite)) { var spriteObj = obj; spriteObj.cursor = cursor; } else if(js_Boot.__instanceof(obj,com_firstplayable_hxlib_display_anim_SpritesheetAnim)) { var spriteObj1 = obj; spriteObj1.cursor = cursor; } else { com_firstplayable_hxlib_Debug.logHelper("Can't set cursor for objects of this type!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 286, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "setCursorForObject"}); } } } ,getType: function() { return com_firstplayable_hxlib_utils_json_ClientType.GENERIC_MENU; } ,onButtonHit: function(caller) { } ,onButtonDown: function(caller) { } ,onButtonUp: function(caller) { } ,onButtonOver: function(caller) { } ,onButtonOut: function(caller) { } ,addButton: function(button) { var id = button.id; if(this.m_btnMap[id] != null) { var msg = "Button with ID " + id + " already exists on menu '" + this.m_menuName + "'; old name: '" + this.m_btnMap[id].get_name() + "', new name: '" + button.get_name() + "'"; if(id != 0) { com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,{ fileName : "GenericMenu.hx", lineNumber : 328, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "addButton"}); } else { com_firstplayable_hxlib_Debug.log(msg,null,{ fileName : "GenericMenu.hx", lineNumber : 332, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "addButton"}); } return; } this.m_btnMap[id] = button; } ,addObjectByName: function(obj,name) { var _this = this.m_objectMap; if(__map_reserved[name] != null ? _this.existsReserved(name) : _this.h.hasOwnProperty(name)) { com_firstplayable_hxlib_Debug.log("Object with name " + name + " already exists on menu '" + this.m_menuName + "'; overwriting.",null,{ fileName : "GenericMenu.hx", lineNumber : 346, className : "com.firstplayable.hxlib.display.GenericMenu", methodName : "addObjectByName"}); } var _this1 = this.m_objectMap; if(__map_reserved[name] != null) { _this1.setReserved(name,obj); } else { _this1.h[name] = obj; } } ,__class__: com_firstplayable_hxlib_display_GenericMenu ,__properties__: $extend(openfl_display_Sprite.prototype.__properties__,{get_menuName:"get_menuName"}) }); var com_firstplayable_hxlib_display_GraphicButtonState = $hxClasses["com.firstplayable.hxlib.display.GraphicButtonState"] = { __ename__ : ["com","firstplayable","hxlib","display","GraphicButtonState"], __constructs__ : ["UP","DOWN","OVER","OUT","DISABLED"] }; com_firstplayable_hxlib_display_GraphicButtonState.UP = ["UP",0]; com_firstplayable_hxlib_display_GraphicButtonState.UP.toString = $estr; com_firstplayable_hxlib_display_GraphicButtonState.UP.__enum__ = com_firstplayable_hxlib_display_GraphicButtonState; com_firstplayable_hxlib_display_GraphicButtonState.DOWN = ["DOWN",1]; com_firstplayable_hxlib_display_GraphicButtonState.DOWN.toString = $estr; com_firstplayable_hxlib_display_GraphicButtonState.DOWN.__enum__ = com_firstplayable_hxlib_display_GraphicButtonState; com_firstplayable_hxlib_display_GraphicButtonState.OVER = ["OVER",2]; com_firstplayable_hxlib_display_GraphicButtonState.OVER.toString = $estr; com_firstplayable_hxlib_display_GraphicButtonState.OVER.__enum__ = com_firstplayable_hxlib_display_GraphicButtonState; com_firstplayable_hxlib_display_GraphicButtonState.OUT = ["OUT",3]; com_firstplayable_hxlib_display_GraphicButtonState.OUT.toString = $estr; com_firstplayable_hxlib_display_GraphicButtonState.OUT.__enum__ = com_firstplayable_hxlib_display_GraphicButtonState; com_firstplayable_hxlib_display_GraphicButtonState.DISABLED = ["DISABLED",4]; com_firstplayable_hxlib_display_GraphicButtonState.DISABLED.toString = $estr; com_firstplayable_hxlib_display_GraphicButtonState.DISABLED.__enum__ = com_firstplayable_hxlib_display_GraphicButtonState; com_firstplayable_hxlib_display_GraphicButtonState.__empty_constructs__ = [com_firstplayable_hxlib_display_GraphicButtonState.UP,com_firstplayable_hxlib_display_GraphicButtonState.DOWN,com_firstplayable_hxlib_display_GraphicButtonState.OVER,com_firstplayable_hxlib_display_GraphicButtonState.OUT,com_firstplayable_hxlib_display_GraphicButtonState.DISABLED]; var lime_utils_ObjectPool_$openfl_$geom_$Rectangle = function(create,clean,size) { if(create != null) { this.create = create; } if(clean != null) { this.clean = clean; } if(size != null) { this.set_size(size); } this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList = new List(); }; $hxClasses["lime.utils.ObjectPool_openfl_geom_Rectangle"] = lime_utils_ObjectPool_$openfl_$geom_$Rectangle; lime_utils_ObjectPool_$openfl_$geom_$Rectangle.__name__ = ["lime","utils","ObjectPool_openfl_geom_Rectangle"]; lime_utils_ObjectPool_$openfl_$geom_$Rectangle.prototype = { activeObjects: null ,inactiveObjects: null ,__inactiveObject0: null ,__inactiveObject1: null ,__inactiveObjectList: null ,__pool: null ,__size: null ,add: function(object) { if(!this.__pool.exists(object)) { this.__pool.set(object,false); this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } } ,clean: function(object) { } ,clear: function() { this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList.clear(); } ,create: function() { return null; } ,get: function() { var object = null; if(this.inactiveObjects > 0) { var object1 = null; if(this.__inactiveObject0 != null) { object1 = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object1 = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object1 = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; object = object1; } else if(this.__size == null || this.activeObjects < this.__size) { object = this.create(); if(object != null) { this.__pool.set(object,true); this.activeObjects++; } } return object; } ,release: function(object) { this.activeObjects--; if(this.__size == null || this.activeObjects + this.inactiveObjects < this.__size) { this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } else { this.__pool.remove(object); } } ,__addInactive: function(object) { if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } ,__getInactive: function() { var object = null; if(this.__inactiveObject0 != null) { object = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; return object; } ,__removeInactive: function(count) { if(count <= 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject0 != null) { this.__pool.remove(this.__inactiveObject0); this.__inactiveObject0 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject1 != null) { this.__pool.remove(this.__inactiveObject1); this.__inactiveObject1 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } var _g_head = this.__inactiveObjectList.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var object = val; this.__pool.remove(object); this.__inactiveObjectList.remove(object); this.inactiveObjects--; --count; if(count == 0 || this.inactiveObjects == 0) { return; } } } ,get_size: function() { return this.__size; } ,set_size: function(value) { if(value == null) { this.__size = null; } else { var current = this.inactiveObjects + this.activeObjects; this.__size = value; if(current > value) { this.__removeInactive(current - value); } else if(value > current) { var object; var _g1 = 0; var _g = value - current; while(_g1 < _g) { var i = _g1++; object = this.create(); if(object != null) { this.__pool.set(object,false); this.__inactiveObjectList.add(object); this.inactiveObjects++; } else { break; } } } } return value; } ,__class__: lime_utils_ObjectPool_$openfl_$geom_$Rectangle ,__properties__: {set_size:"set_size",get_size:"get_size"} }; var openfl_geom_Rectangle = function(x,y,width,height) { if(height == null) { height = 0; } if(width == null) { width = 0; } if(y == null) { y = 0; } if(x == null) { x = 0; } this.x = x; this.y = y; this.width = width; this.height = height; }; $hxClasses["openfl.geom.Rectangle"] = openfl_geom_Rectangle; openfl_geom_Rectangle.__name__ = ["openfl","geom","Rectangle"]; openfl_geom_Rectangle.prototype = { height: null ,width: null ,x: null ,y: null ,clone: function() { return new openfl_geom_Rectangle(this.x,this.y,this.width,this.height); } ,contains: function(x,y) { if(x >= this.x && y >= this.y && x < this.get_right()) { return y < this.get_bottom(); } else { return false; } } ,containsPoint: function(point) { return this.contains(point.x,point.y); } ,containsRect: function(rect) { if(rect.width <= 0 || rect.height <= 0) { if(rect.x > this.x && rect.y > this.y && rect.get_right() < this.get_right()) { return rect.get_bottom() < this.get_bottom(); } else { return false; } } else if(rect.x >= this.x && rect.y >= this.y && rect.get_right() <= this.get_right()) { return rect.get_bottom() <= this.get_bottom(); } else { return false; } } ,copyFrom: function(sourceRect) { this.x = sourceRect.x; this.y = sourceRect.y; this.width = sourceRect.width; this.height = sourceRect.height; } ,equals: function(toCompare) { if(toCompare == this) { return true; } else if(toCompare != null && this.x == toCompare.x && this.y == toCompare.y && this.width == toCompare.width) { return this.height == toCompare.height; } else { return false; } } ,inflate: function(dx,dy) { this.x -= dx; this.width += dx * 2; this.y -= dy; this.height += dy * 2; } ,inflatePoint: function(point) { this.inflate(point.x,point.y); } ,intersection: function(toIntersect) { var x0 = this.x < toIntersect.x ? toIntersect.x : this.x; var x1 = this.get_right() > toIntersect.get_right() ? toIntersect.get_right() : this.get_right(); if(x1 <= x0) { return new openfl_geom_Rectangle(); } var y0 = this.y < toIntersect.y ? toIntersect.y : this.y; var y1 = this.get_bottom() > toIntersect.get_bottom() ? toIntersect.get_bottom() : this.get_bottom(); if(y1 <= y0) { return new openfl_geom_Rectangle(); } return new openfl_geom_Rectangle(x0,y0,x1 - x0,y1 - y0); } ,intersects: function(toIntersect) { var x0 = this.x < toIntersect.x ? toIntersect.x : this.x; var x1 = this.get_right() > toIntersect.get_right() ? toIntersect.get_right() : this.get_right(); if(x1 <= x0) { return false; } var y0 = this.y < toIntersect.y ? toIntersect.y : this.y; var y1 = this.get_bottom() > toIntersect.get_bottom() ? toIntersect.get_bottom() : this.get_bottom(); return y1 > y0; } ,isEmpty: function() { if(!(this.width <= 0)) { return this.height <= 0; } else { return true; } } ,offset: function(dx,dy) { this.x += dx; this.y += dy; } ,offsetPoint: function(point) { this.x += point.x; this.y += point.y; } ,setEmpty: function() { this.x = this.y = this.width = this.height = 0; } ,setTo: function(xa,ya,widtha,heighta) { this.x = xa; this.y = ya; this.width = widtha; this.height = heighta; } ,toString: function() { return "(x=" + this.x + ", y=" + this.y + ", width=" + this.width + ", height=" + this.height + ")"; } ,union: function(toUnion) { if(this.width == 0 || this.height == 0) { return toUnion.clone(); } else if(toUnion.width == 0 || toUnion.height == 0) { return this.clone(); } var x0 = this.x > toUnion.x ? toUnion.x : this.x; var x1 = this.get_right() < toUnion.get_right() ? toUnion.get_right() : this.get_right(); var y0 = this.y > toUnion.y ? toUnion.y : this.y; var y1 = this.get_bottom() < toUnion.get_bottom() ? toUnion.get_bottom() : this.get_bottom(); return new openfl_geom_Rectangle(x0,y0,x1 - x0,y1 - y0); } ,__contract: function(x,y,width,height) { if(this.width == 0 && this.height == 0) { return; } var offsetX = 0.0; var offsetY = 0.0; var offsetRight = 0.0; var offsetBottom = 0.0; if(this.x < x) { offsetX = x - this.x; } if(this.y < y) { offsetY = y - this.y; } if(this.get_right() > x + width) { offsetRight = x + width - this.get_right(); } if(this.get_bottom() > y + height) { offsetBottom = y + height - this.get_bottom(); } this.x += offsetX; this.y += offsetY; this.width += offsetRight - offsetX; this.height += offsetBottom - offsetY; } ,__expand: function(x,y,width,height) { if(this.width == 0 && this.height == 0) { this.x = x; this.y = y; this.width = width; this.height = height; return; } var cacheRight = this.get_right(); var cacheBottom = this.get_bottom(); if(this.x > x) { this.x = x; this.width = cacheRight - x; } if(this.y > y) { this.y = y; this.height = cacheBottom - y; } if(cacheRight < x + width) { this.width = x + width - this.x; } if(cacheBottom < y + height) { this.height = y + height - this.y; } } ,__toLimeRectangle: function() { if(openfl_geom_Rectangle.__limeRectangle == null) { openfl_geom_Rectangle.__limeRectangle = new lime_math_Rectangle(); } openfl_geom_Rectangle.__limeRectangle.setTo(this.x,this.y,this.width,this.height); return openfl_geom_Rectangle.__limeRectangle; } ,__transform: function(rect,m) { var tx0 = m.a * this.x + m.c * this.y; var tx1 = tx0; var ty0 = m.b * this.x + m.d * this.y; var ty1 = ty0; var tx = m.a * (this.x + this.width) + m.c * this.y; var ty = m.b * (this.x + this.width) + m.d * this.y; if(tx < tx0) { tx0 = tx; } if(ty < ty0) { ty0 = ty; } if(tx > tx1) { tx1 = tx; } if(ty > ty1) { ty1 = ty; } tx = m.a * (this.x + this.width) + m.c * (this.y + this.height); ty = m.b * (this.x + this.width) + m.d * (this.y + this.height); if(tx < tx0) { tx0 = tx; } if(ty < ty0) { ty0 = ty; } if(tx > tx1) { tx1 = tx; } if(ty > ty1) { ty1 = ty; } tx = m.a * this.x + m.c * (this.y + this.height); ty = m.b * this.x + m.d * (this.y + this.height); if(tx < tx0) { tx0 = tx; } if(ty < ty0) { ty0 = ty; } if(tx > tx1) { tx1 = tx; } if(ty > ty1) { ty1 = ty; } rect.setTo(tx0 + m.tx,ty0 + m.ty,tx1 - tx0,ty1 - ty0); } ,get_bottom: function() { return this.y + this.height; } ,set_bottom: function(b) { this.height = b - this.y; return b; } ,get_bottomRight: function() { return new openfl_geom_Point(this.x + this.width,this.y + this.height); } ,set_bottomRight: function(p) { this.width = p.x - this.x; this.height = p.y - this.y; return p.clone(); } ,get_left: function() { return this.x; } ,set_left: function(l) { this.width -= l - this.x; this.x = l; return l; } ,get_right: function() { return this.x + this.width; } ,set_right: function(r) { this.width = r - this.x; return r; } ,get_size: function() { return new openfl_geom_Point(this.width,this.height); } ,set_size: function(p) { this.width = p.x; this.height = p.y; return p.clone(); } ,get_top: function() { return this.y; } ,set_top: function(t) { this.height -= t - this.y; this.y = t; return t; } ,get_topLeft: function() { return new openfl_geom_Point(this.x,this.y); } ,set_topLeft: function(p) { this.x = p.x; this.y = p.y; return p.clone(); } ,__class__: openfl_geom_Rectangle ,__properties__: {set_topLeft:"set_topLeft",get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"} }; var lime_utils_ObjectPool_$openfl_$geom_$Point = function(create,clean,size) { if(create != null) { this.create = create; } if(clean != null) { this.clean = clean; } if(size != null) { this.set_size(size); } this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList = new List(); }; $hxClasses["lime.utils.ObjectPool_openfl_geom_Point"] = lime_utils_ObjectPool_$openfl_$geom_$Point; lime_utils_ObjectPool_$openfl_$geom_$Point.__name__ = ["lime","utils","ObjectPool_openfl_geom_Point"]; lime_utils_ObjectPool_$openfl_$geom_$Point.prototype = { activeObjects: null ,inactiveObjects: null ,__inactiveObject0: null ,__inactiveObject1: null ,__inactiveObjectList: null ,__pool: null ,__size: null ,add: function(object) { if(!this.__pool.exists(object)) { this.__pool.set(object,false); this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } } ,clean: function(object) { } ,clear: function() { this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList.clear(); } ,create: function() { return null; } ,get: function() { var object = null; if(this.inactiveObjects > 0) { var object1 = null; if(this.__inactiveObject0 != null) { object1 = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object1 = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object1 = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; object = object1; } else if(this.__size == null || this.activeObjects < this.__size) { object = this.create(); if(object != null) { this.__pool.set(object,true); this.activeObjects++; } } return object; } ,release: function(object) { this.activeObjects--; if(this.__size == null || this.activeObjects + this.inactiveObjects < this.__size) { this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } else { this.__pool.remove(object); } } ,__addInactive: function(object) { if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } ,__getInactive: function() { var object = null; if(this.__inactiveObject0 != null) { object = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; return object; } ,__removeInactive: function(count) { if(count <= 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject0 != null) { this.__pool.remove(this.__inactiveObject0); this.__inactiveObject0 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject1 != null) { this.__pool.remove(this.__inactiveObject1); this.__inactiveObject1 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } var _g_head = this.__inactiveObjectList.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var object = val; this.__pool.remove(object); this.__inactiveObjectList.remove(object); this.inactiveObjects--; --count; if(count == 0 || this.inactiveObjects == 0) { return; } } } ,get_size: function() { return this.__size; } ,set_size: function(value) { if(value == null) { this.__size = null; } else { var current = this.inactiveObjects + this.activeObjects; this.__size = value; if(current > value) { this.__removeInactive(current - value); } else if(value > current) { var object; var _g1 = 0; var _g = value - current; while(_g1 < _g) { var i = _g1++; object = this.create(); if(object != null) { this.__pool.set(object,false); this.__inactiveObjectList.add(object); this.inactiveObjects++; } else { break; } } } } return value; } ,__class__: lime_utils_ObjectPool_$openfl_$geom_$Point ,__properties__: {set_size:"set_size",get_size:"get_size"} }; var openfl_geom_Point = function(x,y) { if(y == null) { y = 0; } if(x == null) { x = 0; } this.x = x; this.y = y; }; $hxClasses["openfl.geom.Point"] = openfl_geom_Point; openfl_geom_Point.__name__ = ["openfl","geom","Point"]; openfl_geom_Point.distance = function(pt1,pt2) { var dx = pt1.x - pt2.x; var dy = pt1.y - pt2.y; return Math.sqrt(dx * dx + dy * dy); }; openfl_geom_Point.interpolate = function(pt1,pt2,f) { return new openfl_geom_Point(pt2.x + f * (pt1.x - pt2.x),pt2.y + f * (pt1.y - pt2.y)); }; openfl_geom_Point.polar = function(len,angle) { return new openfl_geom_Point(len * Math.cos(angle),len * Math.sin(angle)); }; openfl_geom_Point.prototype = { x: null ,y: null ,add: function(v) { return new openfl_geom_Point(v.x + this.x,v.y + this.y); } ,clone: function() { return new openfl_geom_Point(this.x,this.y); } ,copyFrom: function(sourcePoint) { this.x = sourcePoint.x; this.y = sourcePoint.y; } ,equals: function(toCompare) { if(toCompare != null && toCompare.x == this.x) { return toCompare.y == this.y; } else { return false; } } ,normalize: function(thickness) { if(this.x == 0 && this.y == 0) { return; } else { var norm = thickness / Math.sqrt(this.x * this.x + this.y * this.y); this.x *= norm; this.y *= norm; } } ,offset: function(dx,dy) { this.x += dx; this.y += dy; } ,setTo: function(xa,ya) { this.x = xa; this.y = ya; } ,subtract: function(v) { return new openfl_geom_Point(this.x - v.x,this.y - v.y); } ,toString: function() { return "(x=" + this.x + ", y=" + this.y + ")"; } ,__toLimeVector2: function() { if(openfl_geom_Point.__limeVector2 == null) { openfl_geom_Point.__limeVector2 = new lime_math_Vector2(); } var _this = openfl_geom_Point.__limeVector2; _this.x = this.x; _this.y = this.y; return openfl_geom_Point.__limeVector2; } ,get_length: function() { return Math.sqrt(this.x * this.x + this.y * this.y); } ,__class__: openfl_geom_Point ,__properties__: {get_length:"get_length"} }; var com_firstplayable_hxlib_display_OPSprite = function(img,boxData) { this.m_advertisedScaleY = 1.0; this.m_advertisedScaleX = 1.0; this.m_paramsYDivs = null; this.m_paramsXDivs = null; this.m_userYDivs = null; this.m_userXDivs = null; this.m_originalBitmapData = null; this.m_scaledBoxData = null; this.m_paramsData = null; this.m_userData = null; this.m_img = null; this.smoothing = false; openfl_display_DisplayObjectContainer.call(this); if(!com_firstplayable_hxlib_display_OPSprite.ms_forceSmoothingOn) { var value = img != null && img.smoothing; if(com_firstplayable_hxlib_display_OPSprite.ms_forceSmoothingOn) { value = true; } if(this.m_img != null) { this.m_img.smoothing = value; } this.smoothing = value; } else { var value1 = true; if(com_firstplayable_hxlib_display_OPSprite.ms_forceSmoothingOn) { value1 = true; } if(this.m_img != null) { this.m_img.smoothing = value1; } this.smoothing = value1; } this.set_m_img(img); if(this.m_img != null) { this.m_img.smoothing = this.smoothing; } this.updateBounds(boxData); }; $hxClasses["com.firstplayable.hxlib.display.OPSprite"] = com_firstplayable_hxlib_display_OPSprite; com_firstplayable_hxlib_display_OPSprite.__name__ = ["com","firstplayable","hxlib","display","OPSprite"]; com_firstplayable_hxlib_display_OPSprite.create = function(imgData,boxData) { return new com_firstplayable_hxlib_display_OPSprite(new openfl_display_Bitmap(imgData),boxData); }; com_firstplayable_hxlib_display_OPSprite.showSpriteBoundingBoxes = function() { com_firstplayable_hxlib_display_OPSprite.enableDebugDrawFlag(com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_BOUNDS_BOX); }; com_firstplayable_hxlib_display_OPSprite.hideSpriteBoundingBoxes = function() { com_firstplayable_hxlib_display_OPSprite.disableDebugDrawFlag(com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_BOUNDS_BOX); }; com_firstplayable_hxlib_display_OPSprite.enableDebugDrawFlag = function(flag) { com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingFlags |= 1 << flag[1]; com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingEnabled = true; }; com_firstplayable_hxlib_display_OPSprite.disableDebugDrawFlag = function(flag) { com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingFlags &= -1 - (1 << flag[1]); }; com_firstplayable_hxlib_display_OPSprite.shouldShowAnyParamBoxType = function() { var shouldShow = false; var boxTypes = com_firstplayable_hxlib_display_ParamBoxType.__empty_constructs__; var _g = 0; while(_g < boxTypes.length) { var boxType = boxTypes[_g]; ++_g; if(com_firstplayable_hxlib_display_OPSprite.shouldDrawParamBoxType(boxType)) { shouldShow = true; break; } } return shouldShow; }; com_firstplayable_hxlib_display_OPSprite.shouldDrawParamBoxType = function(boxType) { var flagType = com_firstplayable_hxlib_display_DebugDrawingFlag.INVALID_FLAG; switch(boxType[1]) { case 0: flagType = com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_VULNERABLE_BOX; break; case 1: flagType = com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_BOX; break; case 2: flagType = com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_SELECT_BOX; break; } return (com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingFlags & 1 << flagType[1]) != 0; }; com_firstplayable_hxlib_display_OPSprite.calcStretchySrcPixels = function(divIter,dim) { var numStretchyPixels = 0; divIter.reset(); while(divIter.hasNext()) { var divStart = divIter.cursor; var divEnd = divIter.next(); if(!divIter.isFixed) { var sectionPx = divEnd - divStart; numStretchyPixels += sectionPx; } } return numStretchyPixels; }; com_firstplayable_hxlib_display_OPSprite.calcStretchyDim = function(srcSectionDim,dstSectionBgn,dstDim,numFixedSrcRemaining,numStretchySrcRemaining) { var dstTotalSpaceRemaining = dstDim - dstSectionBgn; var dstStretchySpaceRemaining = dstTotalSpaceRemaining - numFixedSrcRemaining; var dstStrechySectionDim = 0; if(numStretchySrcRemaining > 0) { dstStrechySectionDim = Math.round(dstStretchySpaceRemaining * srcSectionDim / numStretchySrcRemaining); } else { var condition = dstStretchySpaceRemaining != 0; if(condition) { com_firstplayable_hxlib_Debug.logHelper("9-slice: dst had " + dstStretchySpaceRemaining + " stretchy px remaining, but src had " + numStretchySrcRemaining,com_firstplayable_hxlib_Severity.Warn,{ fileName : "OPSprite.hx", lineNumber : 957, className : "com.firstplayable.hxlib.display.OPSprite", methodName : "calcStretchyDim"}); } dstStrechySectionDim = dstStretchySpaceRemaining; } if(dstStrechySectionDim > dstStretchySpaceRemaining) { dstStrechySectionDim = dstStretchySpaceRemaining; } if(dstStrechySectionDim < 0) { dstStrechySectionDim = 0; } return dstStrechySectionDim; }; com_firstplayable_hxlib_display_OPSprite.__super__ = openfl_display_DisplayObjectContainer; com_firstplayable_hxlib_display_OPSprite.prototype = $extend(openfl_display_DisplayObjectContainer.prototype,{ smoothing: null ,m_boundsDataShape: null ,m_paramBoxShapes: null ,m_img: null ,m_userData: null ,m_paramsData: null ,m_scaledBoxData: null ,cursor: null ,m_originalBitmapData: null ,m_userXDivs: null ,m_userYDivs: null ,m_paramsXDivs: null ,m_paramsYDivs: null ,m_advertisedScaleX: null ,m_advertisedScaleY: null ,getBitmap: function() { return this.m_img; } ,getBitmapData: function() { if(this.m_originalBitmapData != null) { return this.m_originalBitmapData; } else if(this.m_img != null) { return this.m_img.bitmapData; } else { return null; } } ,getBoxData: function() { if(this.m_userData != null) { return this.m_userData; } else { return this.m_paramsData; } } ,getMungedBoxData: function() { var unscaledBoxData = this.getBoxData(); var scaleDiffX = this.m_advertisedScaleX / openfl_display_DisplayObjectContainer.prototype.get_scaleX.call(this); var scaleDiffY = this.m_advertisedScaleY / openfl_display_DisplayObjectContainer.prototype.get_scaleY.call(this); var scaleIsAccountedFor = scaleDiffX == 1.0 && scaleDiffY == 1.0; if(unscaledBoxData == null || scaleIsAccountedFor) { return unscaledBoxData; } else { var scaledRefX = unscaledBoxData.refPoint.x * scaleDiffX; var scaledRefY = unscaledBoxData.refPoint.y * scaleDiffY; var scaledBoxX = unscaledBoxData.bounds.x * scaleDiffX; var scaledBoxY = unscaledBoxData.bounds.y * scaleDiffY; var scaledBoxW = unscaledBoxData.bounds.width * scaleDiffX; var scaledBoxH = unscaledBoxData.bounds.height * scaleDiffY; if(this.m_scaledBoxData != null) { this.m_scaledBoxData.refPoint.x = scaledRefX; this.m_scaledBoxData.refPoint.y = scaledRefY; this.m_scaledBoxData.bounds.x = scaledBoxX; this.m_scaledBoxData.bounds.y = scaledBoxY; this.m_scaledBoxData.bounds.width = scaledBoxW; this.m_scaledBoxData.bounds.height = scaledBoxH; } else { var scaledRef = new openfl_geom_Point(scaledRefX,scaledRefY); var scaledBox = new openfl_geom_Rectangle(scaledBoxX,scaledBoxY,scaledBoxW,scaledBoxH); this.m_scaledBoxData = new com_firstplayable_hxlib_display_SpriteBoxData(scaledRef,scaledBox); } } return this.m_scaledBoxData; } ,updateBounds: function(boxData,force) { if(force == null) { force = false; } if(this.m_userData != boxData) { this.m_userData = boxData; force = true; } if(force == true) { this.updateBoxDataAndDivs(); this.updateRenderOffset(); this.updateDebugDrawing(); } } ,getParamBoxes: function(boxType) { var vulnBoxes = []; var animFrameIdx = -1; if(js_Boot.__instanceof(this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_BitmapDataWithParams)) { var bdwp = this.m_img != null ? this.m_img.bitmapData : null; animFrameIdx = bdwp.animFrameIndex; } var offset = com_firstplayable_hxlib_display_OPSprite._staticDrawZeroPoint; var boxData = this.getBoxData(); if(boxData != null) { offset = boxData.refPoint; } if(js_Boot.__instanceof(this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_HasParams)) { var objWithParams = this.m_img != null ? this.m_img.bitmapData : null; var params = objWithParams.getParams(); if(params != null) { var paramName = com_firstplayable_hxlib_display_ParamBoxData.getParamBoxNameFromType(boxType); var vulnParamIter = params.getAll(paramName,animFrameIdx,4); while(vulnParamIter.hasNext()) { var param = vulnParamIter.next(); var rect = com_firstplayable_hxlib_display_Params.getParamBox(param); if(rect == null) { com_firstplayable_hxlib_Debug.logHelper("Non-box found while searching for " + paramName + " for anim frame idx " + animFrameIdx,com_firstplayable_hxlib_Severity.Warn,{ fileName : "OPSprite.hx", lineNumber : 283, className : "com.firstplayable.hxlib.display.OPSprite", methodName : "getParamBoxes"}); continue; } rect.x -= offset.x; rect.y -= offset.y; var v = Reflect.field(param,"id"); var id = typeof(v) == "number" && ((v | 0) === v) ? v : null; var v1 = Reflect.field(param,"frame"); var frame = typeof(v1) == "number" && ((v1 | 0) === v1) ? v1 : null; var v2 = Reflect.field(param,"lastFrame"); var lastFrame = typeof(v2) == "number" && ((v2 | 0) === v2) ? v2 : null; var nextVulnBox = new com_firstplayable_hxlib_display_ParamBoxData(boxType,rect,id,frame,lastFrame); vulnBoxes.push(nextVulnBox); } } } return vulnBoxes; } ,loadDivs: function(divParamIter,array) { if(divParamIter == null || !divParamIter.hasNext()) { return null; } array = []; while(divParamIter.hasNext()) { var param = divParamIter.next(); var div = com_firstplayable_hxlib_display_Params.getParamValueInt(param); if(div != null) { array.push(div); } } array.sort(function(a,b) { if(a < b) { return -1; } else if(a > b) { return 1; } else { return 0; } }); return array; } ,updateBoxDataAndDivs: function() { var animFrameIdx = -1; if(js_Boot.__instanceof(this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_BitmapDataWithParams)) { var bdwp = this.m_img != null ? this.m_img.bitmapData : null; animFrameIdx = bdwp.animFrameIndex; } var center = com_firstplayable_hxlib_display_Params.getWithDefault(null,this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_Params.getParamVector,"center",animFrameIdx,-1,2); var bounds = com_firstplayable_hxlib_display_Params.getWithDefault(null,this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_Params.getParamBox,"bounds",animFrameIdx,-1,2); if(center != null || bounds != null) { this.m_paramsData = new com_firstplayable_hxlib_display_SpriteBoxData(center,bounds); } else { this.m_paramsData = null; } if(js_Boot.__instanceof(this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_HasParams)) { var objWithParams = this.m_img != null ? this.m_img.bitmapData : null; var params = objWithParams.getParams(); if(params != null) { this.m_paramsXDivs = this.loadDivs(params.getAll("xDivs",animFrameIdx,2),this.m_paramsXDivs); this.m_paramsYDivs = this.loadDivs(params.getAll("yDivs",animFrameIdx,2),this.m_paramsYDivs); } } } ,updateRenderOffset: function(inAnimFrameIdx) { var animFrameIdx = -1; if(js_Boot.__instanceof(this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_BitmapDataWithParams)) { var bdwp = this.m_img != null ? this.m_img.bitmapData : null; animFrameIdx = bdwp.animFrameIndex; } var boxData = this.getMungedBoxData(); if(this.m_img != null) { var renderX = 0; var renderY = 0; if(boxData != null) { var refPt = boxData.refPoint; if(refPt != null) { renderX = -refPt.x; renderY = -refPt.y; } } var offset = com_firstplayable_hxlib_display_Params.getWithDefault(null,this.m_img != null ? this.m_img.bitmapData : null,com_firstplayable_hxlib_display_Params.getParamVector,"offset",animFrameIdx,-1,2); if(offset != null) { renderX += offset.x; renderY += offset.y; } this.m_img.set_x(renderX); this.m_img.set_y(renderY); } } ,updateDebugDrawing: function() { if(com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingEnabled) { if(this.m_boundsDataShape != null) { this.removeChild(this.m_boundsDataShape); this.m_boundsDataShape = null; } if((com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingFlags & 1 << com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_BOUNDS_BOX[1]) != 0) { var boxData = this.getMungedBoxData(); if(boxData != null) { this.m_boundsDataShape = new openfl_display_Shape(); this.addChild(this.m_boundsDataShape); var boundsAlpha = 0.3; var refPtAlpha = 0.5; var refPtSize = 8.0; var absScaleX = Math.abs(this.get_scaleX()); var absScaleY = Math.abs(this.get_scaleY()); this.m_boundsDataShape.get_graphics().clear(); var bounds = boxData.get_offsetBounds(); if(bounds != null) { this.m_boundsDataShape.set_blendMode(0); this.m_boundsDataShape.get_graphics().beginFill(65280,boundsAlpha); this.m_boundsDataShape.get_graphics().drawRect(bounds.get_left(),bounds.get_top(),bounds.width,bounds.height); this.m_boundsDataShape.get_graphics().endFill(); } this.m_boundsDataShape.get_graphics().beginFill(16711680,refPtAlpha); this.m_boundsDataShape.get_graphics().drawRect(-(refPtSize * 0.5) / absScaleX,-(refPtSize * 0.5) / absScaleY,refPtSize / absScaleX,refPtSize / absScaleY); this.m_boundsDataShape.get_graphics().endFill(); } } if(this.m_paramBoxShapes != null) { var _g = 0; var _g1 = this.m_paramBoxShapes; while(_g < _g1.length) { var shape = _g1[_g]; ++_g; this.removeChild(shape); } } this.m_paramBoxShapes = []; if(com_firstplayable_hxlib_display_OPSprite.shouldShowAnyParamBoxType()) { var boxTypes = com_firstplayable_hxlib_display_ParamBoxType.__empty_constructs__; var _g2 = 0; while(_g2 < boxTypes.length) { var boxType = boxTypes[_g2]; ++_g2; if(com_firstplayable_hxlib_display_OPSprite.shouldDrawParamBoxType(boxType)) { var boxColor = com_firstplayable_hxlib_display_ParamBoxData.getDebugColorForBoxType(boxType); var paramBoxes = this.getParamBoxes(boxType); if(paramBoxes.length > 0) { var _g11 = 0; while(_g11 < paramBoxes.length) { var paramBox = paramBoxes[_g11]; ++_g11; var box = paramBox.box; var boxTopLeftX = box.x; var boxTopLeftY = box.y; var nextBox = new openfl_display_Shape(); this.addChild(nextBox); nextBox.get_graphics().clear(); nextBox.set_blendMode(0); nextBox.get_graphics().beginFill(boxColor,0.3); nextBox.get_graphics().drawRect(boxTopLeftX,boxTopLeftY,box.width,box.height); nextBox.get_graphics().endFill(); this.m_paramBoxShapes.push(nextBox); } } } } } } } ,__getBounds: function(rect,matrix) { var boxData = this.getMungedBoxData(); if(boxData != null && boxData.bounds != null) { var boundsToUse = boxData.bounds; if(boxData.refPoint != null) { com_firstplayable_hxlib_display_OPSprite.__tempBounds.copyFrom(boundsToUse); com_firstplayable_hxlib_display_OPSprite.__tempBounds.offset(-boxData.refPoint.x,-boxData.refPoint.y); boundsToUse = com_firstplayable_hxlib_display_OPSprite.__tempBounds; } var transformedBounds = new openfl_geom_Rectangle(); boundsToUse.__transform(transformedBounds,matrix); rect.__expand(transformedBounds.x,transformedBounds.y,transformedBounds.width,transformedBounds.height); } else { openfl_display_DisplayObjectContainer.prototype.__getBounds.call(this,rect,matrix); } } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { var boxData = this.getMungedBoxData(); if(boxData != null && boxData.bounds != null) { if(!hitObject.get_visible() || this.__isMask || (this.m_img != null ? this.m_img.bitmapData : null) == null || interactiveOnly && !this.mouseEnabled && !this.mouseChildren) { return false; } if(this.get_mask() != null && !this.get_mask().__hitTestMask(x,y)) { return false; } this.__getWorldTransform(); var _this = this.__worldTransform; var norm = _this.a * _this.d - _this.b * _this.c; var px = norm == 0 ? -_this.tx : 1.0 / norm * (_this.c * (_this.ty - y) + _this.d * (x - _this.tx)); var _this1 = this.__worldTransform; var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; var py = norm1 == 0 ? -_this1.ty : 1.0 / norm1 * (_this1.a * (y - _this1.ty) + _this1.b * (_this1.tx - x)); if(boxData.refPoint != null) { px += boxData.refPoint.x; py += boxData.refPoint.y; } if(boxData.bounds.contains(px,py)) { if(stack != null) { stack.push(hitObject); } return true; } return false; } else { return openfl_display_DisplayObjectContainer.prototype.__hitTest.call(this,x,y,shapeFlag,stack,interactiveOnly,hitObject); } } ,getBoundsData: function() { var boxData = this.getBoxData(); if(boxData != null) { return boxData.copy(); } else { return null; } } ,changeImage: function(img) { this.changeImageData(img != null ? img.bitmapData : null); } ,isBitmapDataChanged: function(newBitmapData) { var oldBitmapData = this.m_img != null ? this.m_img.bitmapData : null; if(newBitmapData == null) { return oldBitmapData != null; } if(this.m_originalBitmapData != null) { return this.m_originalBitmapData != newBitmapData; } return oldBitmapData != newBitmapData; } ,changeImageData: function(imgData) { if(this.m_img != null) { if(this.isBitmapDataChanged(imgData)) { this.m_img.set_bitmapData(imgData); this.m_img.smoothing = this.smoothing; this.updateBoxDataAndDivs(); this.scaleGridInvalidate(); this.updateRenderOffset(); this.updateDebugDrawing(); } } else { this.set_m_img(new openfl_display_Bitmap(imgData)); this.m_img.smoothing = this.smoothing; } } ,get_bitmapData: function() { if(this.m_img != null) { return this.m_img.bitmapData; } else { return null; } } ,set_bitmapData: function(value) { this.changeImageData(value); return value; } ,set_smoothing: function(value) { if(com_firstplayable_hxlib_display_OPSprite.ms_forceSmoothingOn) { value = true; } if(this.m_img != null) { this.m_img.smoothing = value; } return this.smoothing = value; } ,set_m_img: function(img) { if(this.m_img != null) { if(this.m_img.parent != null) { this.m_img.parent.removeChild(this.m_img); } this.m_img = null; } this.m_img = img; this.updateBoxDataAndDivs(); this.scaleGridInvalidate(); this.updateRenderOffset(); if(this.m_img != null) { this.addChild(this.m_img); } this.updateDebugDrawing(); return this.m_img; } ,setScale: function(size) { this.scaleGridUpdate(size,size); this.updateRenderOffset(); this.updateDebugDrawing(); } ,set_scaleY: function(value) { this.scaleGridUpdate(this.m_advertisedScaleX,value); this.updateRenderOffset(); this.updateDebugDrawing(); return this.m_advertisedScaleY; } ,set_scaleX: function(value) { this.scaleGridUpdate(value,this.m_advertisedScaleY); this.updateRenderOffset(); this.updateDebugDrawing(); return this.m_advertisedScaleX; } ,get_scaleX: function() { return this.m_advertisedScaleX; } ,get_scaleY: function() { return this.m_advertisedScaleY; } ,__getCursor: function() { return this.cursor; } ,set_divs: function(newXDivs,newYDivs) { this.m_userXDivs = newXDivs; this.m_userYDivs = newYDivs; this.scaleGridUpdate(this.m_advertisedScaleX,this.m_advertisedScaleY); } ,get_xDivs: function() { if(this.m_userXDivs != null) { return this.m_userXDivs; } else { return this.m_paramsXDivs; } } ,get_yDivs: function() { if(this.m_userYDivs != null) { return this.m_userYDivs; } else { return this.m_paramsYDivs; } } ,set_xDivs: function(value) { var ret = this.m_userXDivs = value; this.scaleGridUpdate(this.m_advertisedScaleX,this.m_advertisedScaleY); return ret; } ,set_yDivs: function(value) { var ret = this.m_userYDivs = value; this.scaleGridUpdate(this.m_advertisedScaleX,this.m_advertisedScaleY); return ret; } ,scaleGridInvalidate: function() { this.m_originalBitmapData = null; this.scaleGridUpdate(this.m_advertisedScaleX,this.m_advertisedScaleY); } ,scaleGridUpdate: function(desiredScaleX,desiredScaleY) { if(this.m_originalBitmapData != null && desiredScaleX == this.m_advertisedScaleX && desiredScaleY == this.m_advertisedScaleY) { return; } this.m_advertisedScaleX = desiredScaleX; this.m_advertisedScaleY = desiredScaleY; var srcBitmapData = this.m_originalBitmapData; if(srcBitmapData == null && this.m_img != null) { srcBitmapData = this.m_img.bitmapData; } if(srcBitmapData == null) { openfl_display_DisplayObjectContainer.prototype.set_scaleX.call(this,desiredScaleX); openfl_display_DisplayObjectContainer.prototype.set_scaleY.call(this,desiredScaleY); return; } var srcWidth = srcBitmapData.width; var srcHeight = srcBitmapData.height; var myXDivs = this.get_xDivs(); var myYDivs = this.get_yDivs(); var noXDivs = myXDivs == null || myXDivs.length < 1 || myXDivs[0] >= srcWidth; var noYDivs = myYDivs == null || myYDivs.length < 1 || myYDivs[0] >= srcHeight; if(noXDivs && noYDivs) { openfl_display_DisplayObjectContainer.prototype.set_scaleX.call(this,desiredScaleX); openfl_display_DisplayObjectContainer.prototype.set_scaleY.call(this,desiredScaleY); return; } var effectiveScaleX = Math.max(Math.abs(desiredScaleX),1.0); var effectiveScaleY = Math.max(Math.abs(desiredScaleY),1.0); if(effectiveScaleX == 1.0 && effectiveScaleY == 1.0) { openfl_display_DisplayObjectContainer.prototype.set_scaleX.call(this,desiredScaleX); openfl_display_DisplayObjectContainer.prototype.set_scaleY.call(this,desiredScaleY); return; } var dstWidth = Math.ceil(srcBitmapData.width * effectiveScaleX); var dstHeight = Math.ceil(srcBitmapData.height * effectiveScaleY); var dstBitmapData = null; if(js_Boot.__instanceof(srcBitmapData,com_firstplayable_hxlib_display_HasParams)) { var srcWithParams = srcBitmapData; var params = srcWithParams.getParams(); if(params != null) { dstBitmapData = new com_firstplayable_hxlib_display_BitmapDataWithParams(params,dstWidth,dstHeight,srcBitmapData.transparent,0); } } if(dstBitmapData == null) { dstBitmapData = new openfl_display_BitmapData(dstWidth,dstHeight,srcBitmapData.transparent,0); } var iterX = new com_firstplayable_hxlib_display_DivIterator(myXDivs,srcWidth); var iterY = new com_firstplayable_hxlib_display_DivIterator(myYDivs,srcHeight); var numStretchyXSrcPixels = com_firstplayable_hxlib_display_OPSprite.calcStretchySrcPixels(iterX,srcWidth); var numStretchyYSrcPixels = com_firstplayable_hxlib_display_OPSprite.calcStretchySrcPixels(iterY,srcHeight); var numFixedXSrcPixels = srcWidth - numStretchyXSrcPixels; var numFixedYSrcPixels = srcHeight - numStretchyYSrcPixels; var numStretchyYSrcPixelsRemaining = numStretchyYSrcPixels; var numFixedYSrcPixelsRemaining = numFixedYSrcPixels; var dstSectionBgnY = 0; iterY.reset(); while(iterY.hasNext()) { var srcSectionBgnY = iterY.cursor; var srcSectionEndY = iterY.next(); var srcSectionDimY = srcSectionEndY - srcSectionBgnY; var isFixedY = iterY.isFixed; var dstSectionDimY = isFixedY ? srcSectionDimY : com_firstplayable_hxlib_display_OPSprite.calcStretchyDim(srcSectionDimY,dstSectionBgnY,dstHeight,numFixedYSrcPixelsRemaining,numStretchyYSrcPixelsRemaining); var dstSectionEndY = dstSectionBgnY + dstSectionDimY; var numStretchyXSrcPixelsRemaining = numStretchyXSrcPixels; var numFixedXSrcPixelsRemaining = numFixedXSrcPixels; var dstSectionBgnX = 0; iterX.reset(); while(iterX.hasNext()) { var srcSectionBgnX = iterX.cursor; var srcSectionEndX = iterX.next(); var srcSectionDimX = srcSectionEndX - srcSectionBgnX; var isFixedX = iterX.isFixed; var dstSectionDimX = isFixedX ? srcSectionDimX : com_firstplayable_hxlib_display_OPSprite.calcStretchyDim(srcSectionDimX,dstSectionBgnX,dstWidth,numFixedXSrcPixelsRemaining,numStretchyXSrcPixelsRemaining); var dstSectionEndX = dstSectionBgnX + dstSectionDimX; this.drawSubrect(dstBitmapData,srcBitmapData,dstSectionBgnX,dstSectionBgnY,dstSectionDimX,dstSectionDimY,srcSectionBgnX,srcSectionBgnY,srcSectionDimX,srcSectionDimY); numStretchyXSrcPixelsRemaining -= isFixedX ? 0 : srcSectionDimX; numFixedXSrcPixelsRemaining -= isFixedX ? srcSectionDimX : 0; dstSectionBgnX = dstSectionEndX; } numStretchyYSrcPixelsRemaining -= isFixedY ? 0 : srcSectionDimY; numFixedYSrcPixelsRemaining -= isFixedY ? srcSectionDimY : 0; dstSectionBgnY = dstSectionEndY; } this.m_originalBitmapData = srcBitmapData; this.m_img.set_bitmapData(dstBitmapData); this.m_img.smoothing = this.smoothing; openfl_display_DisplayObjectContainer.prototype.set_scaleX.call(this,effectiveScaleX > 1.0 ? desiredScaleX > 0.0 ? 1.0 : desiredScaleX < 0.0 ? -1.0 : desiredScaleX : desiredScaleX); openfl_display_DisplayObjectContainer.prototype.set_scaleY.call(this,effectiveScaleY > 1.0 ? desiredScaleY > 0.0 ? 1.0 : desiredScaleY < 0.0 ? -1.0 : desiredScaleY : desiredScaleY); } ,drawSubrect: function(dstBitmapData,srcBitmapData,dstSectionBgnX,dstSectionBgnY,dstSectionDimX,dstSectionDimY,srcSectionBgnX,srcSectionBgnY,srcSectionDimX,srcSectionDimY) { if(srcBitmapData == null || dstBitmapData == null) { com_firstplayable_hxlib_Debug.logHelper("9-slice: missing src or dst BitmapData",com_firstplayable_hxlib_Severity.Warn,{ fileName : "OPSprite.hx", lineNumber : 1154, className : "com.firstplayable.hxlib.display.OPSprite", methodName : "drawSubrect"}); return; } if(dstSectionDimX == 0 || dstSectionDimY == 0) { return; } if(srcSectionDimX == 0 || srcSectionDimY == 0) { return; } var fixed = srcSectionDimX == dstSectionDimX && srcSectionDimY == dstSectionDimY; if(fixed) { var srcRect = com_firstplayable_hxlib_display_OPSprite._staticDrawRect; srcRect.x = srcSectionBgnX; srcRect.y = srcSectionBgnY; srcRect.width = srcSectionDimX; srcRect.height = srcSectionDimY; var dstPoint = com_firstplayable_hxlib_display_OPSprite._staticDrawPoint; dstPoint.x = dstSectionBgnX; dstPoint.y = dstSectionBgnY; dstBitmapData.copyPixels(srcBitmapData,srcRect,dstPoint); } else { var mtx = com_firstplayable_hxlib_display_OPSprite._staticDrawMatrix; mtx.identity(); mtx.translate(-srcSectionBgnX,-srcSectionBgnY); mtx.scale(dstSectionDimX / srcSectionDimX,dstSectionDimY / srcSectionDimY); mtx.translate(dstSectionBgnX,dstSectionBgnY); var clipRect = com_firstplayable_hxlib_display_OPSprite._staticDrawRect; clipRect.x = dstSectionBgnX; clipRect.y = dstSectionBgnY; clipRect.width = dstSectionDimX; clipRect.height = dstSectionDimY; dstBitmapData.draw(srcBitmapData,mtx,null,null,clipRect,this.smoothing); } } ,__class__: com_firstplayable_hxlib_display_OPSprite ,__properties__: $extend(openfl_display_DisplayObjectContainer.prototype.__properties__,{set_bitmapData:"set_bitmapData",get_bitmapData:"get_bitmapData",set_yDivs:"set_yDivs",get_yDivs:"get_yDivs",set_xDivs:"set_xDivs",get_xDivs:"get_xDivs",set_m_img:"set_m_img",set_smoothing:"set_smoothing"}) }); var com_firstplayable_hxlib_display_GraphicButton = function(up,down,over,disabled,labelField,onPressed,btnID,bounds) { com_firstplayable_hxlib_display_OPSprite.call(this,null,bounds); this.set_upState(up); this.set_downState(this.validateButtonState(down)); this.set_overState(this.validateButtonState(over)); this.set_disabledState(disabled); this.set_label(labelField); this.id = btnID == null ? -1 : btnID; if(onPressed != null) { this.onHit = onPressed; } this.set_enabled(true); this.verify(); this.onUp(); }; $hxClasses["com.firstplayable.hxlib.display.GraphicButton"] = com_firstplayable_hxlib_display_GraphicButton; com_firstplayable_hxlib_display_GraphicButton.__name__ = ["com","firstplayable","hxlib","display","GraphicButton"]; com_firstplayable_hxlib_display_GraphicButton.__super__ = com_firstplayable_hxlib_display_OPSprite; com_firstplayable_hxlib_display_GraphicButton.prototype = $extend(com_firstplayable_hxlib_display_OPSprite.prototype,{ upState: null ,downState: null ,overState: null ,disabledState: null ,label: null ,enabled: null ,id: null ,m_curState: null ,set_upState: function(d) { if(d == null) { d = new openfl_display_Bitmap(); } if(this.m_curState == com_firstplayable_hxlib_display_GraphicButtonState.UP) { this.changeImage(d); } return this.upState = d; } ,set_downState: function(d) { if(d == null) { d = this.upState; } if(this.m_curState == com_firstplayable_hxlib_display_GraphicButtonState.DOWN) { this.changeImage(d); } return this.downState = d; } ,set_overState: function(d) { if(d == null) { d = this.upState; } if(this.m_curState == com_firstplayable_hxlib_display_GraphicButtonState.OVER) { this.changeImage(d); } return this.overState = d; } ,set_disabledState: function(d) { if(d == null) { d = this.upState; } if(this.m_curState == com_firstplayable_hxlib_display_GraphicButtonState.DISABLED) { this.changeImage(d); } return this.disabledState = d; } ,set_label: function(t) { if(t != null) { this.addChild(t); t.mouseEnabled = false; t.set_width(this.upState.get_width()); t.set_height(this.upState.get_height() - t.get_y()); t.set_multiline(true); t.set_wordWrap(false); t.set_autoSize(1); t.set_x(0.5 * (this.upState.get_width() - t.get_textWidth())); t.set_y(0.5 * (this.upState.get_height() - t.get_textHeight())); } else if(this.label != null && this.label.parent == this) { this.label.parent.removeChild(this.label); } return this.label = t; } ,set_enabled: function(enable) { if(enable) { this.onEnable(); } else { this.onDisable(); } return this.enabled = enable; } ,validateButtonState: function(state) { var bitmap = js_Boot.__instanceof(state,openfl_display_Bitmap) ? state : null; if(bitmap != null && bitmap.bitmapData == null) { return null; } return state; } ,verify: function() { if(this.upState == null) { this.set_upState(new openfl_display_Bitmap()); } if(this.downState == null) { this.set_downState(this.upState); } if(this.overState == null) { this.set_overState(this.upState); } if(this.disabledState == null) { this.set_disabledState(this.upState); } } ,addLabel: function() { if(this.label != null) { this.addChild(this.label); } } ,setLabelText: function(text) { var condition = this.label == null; var msg = "Can't set text on btn '" + this.get_name() + "'; it doesn't have a label"; if(condition) { com_firstplayable_hxlib_Debug.logHelper(msg,null,{ fileName : "GraphicButton.hx", lineNumber : 263, className : "com.firstplayable.hxlib.display.GraphicButton", methodName : "setLabelText"}); } if(condition) { return; } this.label.set_text(text); } ,clearListeners: function() { com_firstplayable_hxlib_utils_Utils.safeRemoveListener(this.stage,"mouseUp",$bind(this,this.onUp)); com_firstplayable_hxlib_utils_Utils.safeRemoveListener(this,"mouseDown",$bind(this,this.onDown)); if(!com_firstplayable_hxlib_display_GraphicButton.m_isMobile) { com_firstplayable_hxlib_utils_Utils.safeRemoveListener(this,"mouseOver",$bind(this,this.onOver)); com_firstplayable_hxlib_utils_Utils.safeRemoveListener(this,"mouseMove",$bind(this,this.onMove)); com_firstplayable_hxlib_utils_Utils.safeRemoveListener(this,"mouseOut",$bind(this,this.onOut)); } } ,clearGraphics: function() { if(this.upState.parent != null) { this.removeChild(this.upState); } if(this.downState.parent != null) { this.removeChild(this.downState); } if(this.overState.parent != null) { this.removeChild(this.overState); } if(this.disabledState.parent != null) { this.removeChild(this.disabledState); } if(this.label != null && this.label.parent != null) { this.removeChild(this.label); } } ,onUp: function(e) { this.clearListeners(); this.clearGraphics(); this.changeImage(this.upState); this.addLabel(); com_firstplayable_hxlib_utils_Utils.safeAddListener(this,"mouseDown",$bind(this,this.onDown)); if(!com_firstplayable_hxlib_display_GraphicButton.m_isMobile) { com_firstplayable_hxlib_utils_Utils.safeAddListener(this,"mouseOver",$bind(this,this.onOver)); com_firstplayable_hxlib_utils_Utils.safeAddListener(this,"mouseMove",$bind(this,this.onMove)); } var prevState = this.m_curState; this.m_curState = com_firstplayable_hxlib_display_GraphicButtonState.UP; this.onButtonUp(this); if(prevState == com_firstplayable_hxlib_display_GraphicButtonState.DOWN && e != null && (e.target == this || e.target == null)) { this.trigger(); } } ,onDown: function(e) { this.clearListeners(); this.clearGraphics(); this.changeImage(this.downState); this.addLabel(); com_firstplayable_hxlib_utils_Utils.safeAddListener(this.stage,"mouseUp",$bind(this,this.onUp)); this.m_curState = com_firstplayable_hxlib_display_GraphicButtonState.DOWN; this.onButtonDown(this); } ,onOver: function(e) { if(this.m_curState != com_firstplayable_hxlib_display_GraphicButtonState.OVER) { this.clearListeners(); this.clearGraphics(); this.changeImage(this.overState); this.addLabel(); com_firstplayable_hxlib_utils_Utils.safeAddListener(this,"mouseDown",$bind(this,this.onDown)); if(!com_firstplayable_hxlib_display_GraphicButton.m_isMobile) { com_firstplayable_hxlib_utils_Utils.safeAddListener(this,"mouseOut",$bind(this,this.onOut)); } this.m_curState = com_firstplayable_hxlib_display_GraphicButtonState.OVER; this.onButtonOver(this); } } ,onOut: function(e) { if(this.m_curState == com_firstplayable_hxlib_display_GraphicButtonState.OVER) { this.onButtonOut(this); this.onUp(); } } ,onMove: function(e) { if(this.m_curState == com_firstplayable_hxlib_display_GraphicButtonState.UP) { this.onOver(e); } } ,onDisable: function() { this.clearListeners(); this.clearGraphics(); this.changeImage(this.disabledState); this.addLabel(); this.m_curState = com_firstplayable_hxlib_display_GraphicButtonState.DISABLED; } ,onEnable: function() { this.onUp(); } ,trigger: function() { this.onHit(this); } ,onHit: function(caller) { } ,onButtonDown: function(caller) { } ,onButtonUp: function(caller) { } ,onButtonOver: function(caller) { } ,onButtonOut: function(caller) { } ,__class__: com_firstplayable_hxlib_display_GraphicButton ,__properties__: $extend(com_firstplayable_hxlib_display_OPSprite.prototype.__properties__,{set_enabled:"set_enabled",set_label:"set_label",set_disabledState:"set_disabledState",set_overState:"set_overState",set_downState:"set_downState",set_upState:"set_upState"}) }); var com_firstplayable_hxlib_display_LayerName = $hxClasses["com.firstplayable.hxlib.display.LayerName"] = { __ename__ : ["com","firstplayable","hxlib","display","LayerName"], __constructs__ : ["BACKGROUND","PRIMARY","FOREGROUND","HUD","DEBUG","BUILDSTAMP","LETTERBOX"] }; com_firstplayable_hxlib_display_LayerName.BACKGROUND = ["BACKGROUND",0]; com_firstplayable_hxlib_display_LayerName.BACKGROUND.toString = $estr; com_firstplayable_hxlib_display_LayerName.BACKGROUND.__enum__ = com_firstplayable_hxlib_display_LayerName; com_firstplayable_hxlib_display_LayerName.PRIMARY = ["PRIMARY",1]; com_firstplayable_hxlib_display_LayerName.PRIMARY.toString = $estr; com_firstplayable_hxlib_display_LayerName.PRIMARY.__enum__ = com_firstplayable_hxlib_display_LayerName; com_firstplayable_hxlib_display_LayerName.FOREGROUND = ["FOREGROUND",2]; com_firstplayable_hxlib_display_LayerName.FOREGROUND.toString = $estr; com_firstplayable_hxlib_display_LayerName.FOREGROUND.__enum__ = com_firstplayable_hxlib_display_LayerName; com_firstplayable_hxlib_display_LayerName.HUD = ["HUD",3]; com_firstplayable_hxlib_display_LayerName.HUD.toString = $estr; com_firstplayable_hxlib_display_LayerName.HUD.__enum__ = com_firstplayable_hxlib_display_LayerName; com_firstplayable_hxlib_display_LayerName.DEBUG = ["DEBUG",4]; com_firstplayable_hxlib_display_LayerName.DEBUG.toString = $estr; com_firstplayable_hxlib_display_LayerName.DEBUG.__enum__ = com_firstplayable_hxlib_display_LayerName; com_firstplayable_hxlib_display_LayerName.BUILDSTAMP = ["BUILDSTAMP",5]; com_firstplayable_hxlib_display_LayerName.BUILDSTAMP.toString = $estr; com_firstplayable_hxlib_display_LayerName.BUILDSTAMP.__enum__ = com_firstplayable_hxlib_display_LayerName; com_firstplayable_hxlib_display_LayerName.LETTERBOX = ["LETTERBOX",6]; com_firstplayable_hxlib_display_LayerName.LETTERBOX.toString = $estr; com_firstplayable_hxlib_display_LayerName.LETTERBOX.__enum__ = com_firstplayable_hxlib_display_LayerName; com_firstplayable_hxlib_display_LayerName.__empty_constructs__ = [com_firstplayable_hxlib_display_LayerName.BACKGROUND,com_firstplayable_hxlib_display_LayerName.PRIMARY,com_firstplayable_hxlib_display_LayerName.FOREGROUND,com_firstplayable_hxlib_display_LayerName.HUD,com_firstplayable_hxlib_display_LayerName.DEBUG,com_firstplayable_hxlib_display_LayerName.BUILDSTAMP,com_firstplayable_hxlib_display_LayerName.LETTERBOX]; var com_firstplayable_hxlib_display_NinePatchPanel = function(resourceName,initialWidth,initialHeight) { openfl_display_DisplayObjectContainer.call(this); if(resourceName == null) { this.panelSprite = this.createReferenceZone(initialWidth,initialHeight); } else { this.panelSprite = com_firstplayable_hxlib_loader_ResMan.get_instance().getSprite(resourceName); } this.panelSprite.set_scaleX(initialWidth / this.panelSprite.get_width()); this.panelSprite.set_scaleY(initialHeight / this.panelSprite.get_height()); this.addChild(this.panelSprite); }; $hxClasses["com.firstplayable.hxlib.display.NinePatchPanel"] = com_firstplayable_hxlib_display_NinePatchPanel; com_firstplayable_hxlib_display_NinePatchPanel.__name__ = ["com","firstplayable","hxlib","display","NinePatchPanel"]; com_firstplayable_hxlib_display_NinePatchPanel.__super__ = openfl_display_DisplayObjectContainer; com_firstplayable_hxlib_display_NinePatchPanel.prototype = $extend(openfl_display_DisplayObjectContainer.prototype,{ panelSprite: null ,createReferenceZone: function(width,height) { var boxObj = new openfl_display_Sprite(); boxObj.get_graphics().beginFill(16744640,0); boxObj.get_graphics().drawRect(0,0,width,height); boxObj.get_graphics().endFill(); boxObj.set_visible(false); return boxObj; } ,setPanelSize: function(width,height) { this.panelSprite.set_scaleX(1.0); this.panelSprite.set_scaleY(1.0); this.panelSprite.set_scaleX(width / this.panelSprite.get_width()); this.panelSprite.set_scaleY(height / this.panelSprite.get_height()); } ,__class__: com_firstplayable_hxlib_display_NinePatchPanel }); var com_firstplayable_hxlib_display_DebugDrawingFlag = $hxClasses["com.firstplayable.hxlib.display.DebugDrawingFlag"] = { __ename__ : ["com","firstplayable","hxlib","display","DebugDrawingFlag"], __constructs__ : ["DRAW_BOUNDS_BOX","DRAW_VULNERABLE_BOX","DRAW_ATTACK_BOX","DRAW_ATTACK_SELECT_BOX","INVALID_FLAG"] }; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_BOUNDS_BOX = ["DRAW_BOUNDS_BOX",0]; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_BOUNDS_BOX.toString = $estr; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_BOUNDS_BOX.__enum__ = com_firstplayable_hxlib_display_DebugDrawingFlag; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_VULNERABLE_BOX = ["DRAW_VULNERABLE_BOX",1]; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_VULNERABLE_BOX.toString = $estr; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_VULNERABLE_BOX.__enum__ = com_firstplayable_hxlib_display_DebugDrawingFlag; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_BOX = ["DRAW_ATTACK_BOX",2]; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_BOX.toString = $estr; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_BOX.__enum__ = com_firstplayable_hxlib_display_DebugDrawingFlag; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_SELECT_BOX = ["DRAW_ATTACK_SELECT_BOX",3]; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_SELECT_BOX.toString = $estr; com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_SELECT_BOX.__enum__ = com_firstplayable_hxlib_display_DebugDrawingFlag; com_firstplayable_hxlib_display_DebugDrawingFlag.INVALID_FLAG = ["INVALID_FLAG",4]; com_firstplayable_hxlib_display_DebugDrawingFlag.INVALID_FLAG.toString = $estr; com_firstplayable_hxlib_display_DebugDrawingFlag.INVALID_FLAG.__enum__ = com_firstplayable_hxlib_display_DebugDrawingFlag; com_firstplayable_hxlib_display_DebugDrawingFlag.__empty_constructs__ = [com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_BOUNDS_BOX,com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_VULNERABLE_BOX,com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_BOX,com_firstplayable_hxlib_display_DebugDrawingFlag.DRAW_ATTACK_SELECT_BOX,com_firstplayable_hxlib_display_DebugDrawingFlag.INVALID_FLAG]; var com_firstplayable_hxlib_display_DivIterator = function(aDivs,aDim) { this.isFixed = false; this.cursor = 0; this.idx = 0; this.dim = 0; this.divs = null; this.divs = aDivs; this.dim = aDim >= 0 ? aDim : 0; }; $hxClasses["com.firstplayable.hxlib.display.DivIterator"] = com_firstplayable_hxlib_display_DivIterator; com_firstplayable_hxlib_display_DivIterator.__name__ = ["com","firstplayable","hxlib","display","DivIterator"]; com_firstplayable_hxlib_display_DivIterator.prototype = { divs: null ,dim: null ,idx: null ,cursor: null ,isFixed: null ,reset: function() { this.idx = 0; this.cursor = 0; this.isFixed = false; } ,hasNext: function() { if(!(this.divs != null && this.idx < this.divs.length)) { return this.cursor < this.dim; } else { return true; } } ,next: function() { var val; this.isFixed = (this.idx & 1) == 0; if(this.divs != null && this.idx < this.divs.length) { val = this.divs[this.idx++]; if(val < this.cursor) { com_firstplayable_hxlib_Debug.logHelper("9-slice: bad div array (non-monontonic increasing): " + val + " < " + this.cursor,com_firstplayable_hxlib_Severity.Warn,{ fileName : "OPSprite.hx", lineNumber : 1273, className : "com.firstplayable.hxlib.display.DivIterator", methodName : "next"}); val = this.cursor; } } else { val = this.dim; } if(val > this.dim) { com_firstplayable_hxlib_Debug.logHelper("9-slice: bad div array (out-of-bounds high): " + val + " > " + this.dim,com_firstplayable_hxlib_Severity.Warn,{ fileName : "OPSprite.hx", lineNumber : 1287, className : "com.firstplayable.hxlib.display.DivIterator", methodName : "next"}); val = this.dim; } if(val < 0) { com_firstplayable_hxlib_Debug.logHelper("9-slice: bad div array (out-of-bounds low): " + val + " < 0",com_firstplayable_hxlib_Severity.Warn,{ fileName : "OPSprite.hx", lineNumber : 1292, className : "com.firstplayable.hxlib.display.DivIterator", methodName : "next"}); val = 0; } this.cursor = val; return val; } ,__class__: com_firstplayable_hxlib_display_DivIterator }; var com_firstplayable_hxlib_display_ParamBoxType = $hxClasses["com.firstplayable.hxlib.display.ParamBoxType"] = { __ename__ : ["com","firstplayable","hxlib","display","ParamBoxType"], __constructs__ : ["VULNERABLE","ATTACK","ATTACK_SELECT"] }; com_firstplayable_hxlib_display_ParamBoxType.VULNERABLE = ["VULNERABLE",0]; com_firstplayable_hxlib_display_ParamBoxType.VULNERABLE.toString = $estr; com_firstplayable_hxlib_display_ParamBoxType.VULNERABLE.__enum__ = com_firstplayable_hxlib_display_ParamBoxType; com_firstplayable_hxlib_display_ParamBoxType.ATTACK = ["ATTACK",1]; com_firstplayable_hxlib_display_ParamBoxType.ATTACK.toString = $estr; com_firstplayable_hxlib_display_ParamBoxType.ATTACK.__enum__ = com_firstplayable_hxlib_display_ParamBoxType; com_firstplayable_hxlib_display_ParamBoxType.ATTACK_SELECT = ["ATTACK_SELECT",2]; com_firstplayable_hxlib_display_ParamBoxType.ATTACK_SELECT.toString = $estr; com_firstplayable_hxlib_display_ParamBoxType.ATTACK_SELECT.__enum__ = com_firstplayable_hxlib_display_ParamBoxType; com_firstplayable_hxlib_display_ParamBoxType.__empty_constructs__ = [com_firstplayable_hxlib_display_ParamBoxType.VULNERABLE,com_firstplayable_hxlib_display_ParamBoxType.ATTACK,com_firstplayable_hxlib_display_ParamBoxType.ATTACK_SELECT]; var com_firstplayable_hxlib_display_ParamBoxData = function(tp,bx,i,fr,endFr) { this.type = tp; this.box = bx != null ? bx : new openfl_geom_Rectangle(); this.id = i != null ? i : -1; this.frame = fr != null ? fr : -1; this.endFrame = endFr != null ? endFr : -1; }; $hxClasses["com.firstplayable.hxlib.display.ParamBoxData"] = com_firstplayable_hxlib_display_ParamBoxData; com_firstplayable_hxlib_display_ParamBoxData.__name__ = ["com","firstplayable","hxlib","display","ParamBoxData"]; com_firstplayable_hxlib_display_ParamBoxData.getParamBoxNameFromType = function(boxType) { switch(boxType[1]) { case 0: return "vulnerablebox"; case 1: return "attackbox"; case 2: return "attackselectbox"; } }; com_firstplayable_hxlib_display_ParamBoxData.getDebugColorForBoxType = function(boxType) { switch(boxType[1]) { case 0: return 8454143; case 1: return 16711680; case 2: return 16744448; } }; com_firstplayable_hxlib_display_ParamBoxData.prototype = { type: null ,box: null ,id: null ,frame: null ,endFrame: null ,copy: function() { return new com_firstplayable_hxlib_display_ParamBoxData(this.type,this.box.clone(),this.id,this.frame,this.endFrame); } ,toString: function() { return "[ParamBoxData type=" + Std.string(this.type) + " box=" + Std.string(this.box) + " id=" + this.id + " frame=" + this.frame + " endFrame=" + this.endFrame + "]"; } ,print: function() { com_firstplayable_hxlib_Debug.log(this.toString(),null,{ fileName : "ParamBoxData.hx", lineNumber : 81, className : "com.firstplayable.hxlib.display.ParamBoxData", methodName : "print"}); } ,__class__: com_firstplayable_hxlib_display_ParamBoxData }; var com_firstplayable_hxlib_display_Params = function(paramsData) { this.nameFrameMap = paramsData; if(this.nameFrameMap == null) { this.nameFrameMap = { }; } }; $hxClasses["com.firstplayable.hxlib.display.Params"] = com_firstplayable_hxlib_display_Params; com_firstplayable_hxlib_display_Params.__name__ = ["com","firstplayable","hxlib","display","Params"]; com_firstplayable_hxlib_display_Params.getWithDefault = function(fallbackValue,obj,func,name,frame,id,behaviorFlags) { if(behaviorFlags == null) { behaviorFlags = 0; } if(id == null) { id = -1; } if(frame == null) { frame = -1; } if(!js_Boot.__instanceof(obj,com_firstplayable_hxlib_display_HasParams)) { return fallbackValue; } var objWithParams = obj; var params = objWithParams.getParams(); if(params == null) { return fallbackValue; } var param = params.get(name,frame,id,behaviorFlags); if(param == null) { return fallbackValue; } var retVal = func(param); if(retVal == null) { return fallbackValue; } return retVal; }; com_firstplayable_hxlib_display_Params.getParamFieldAsInt = function(param,field) { var v = Reflect.field(param,field); if(typeof(v) == "number" && ((v | 0) === v)) { return v; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamFieldAsBool = function(param,field) { var v = Reflect.field(param,field); if(typeof(v) == "boolean") { return v; } else if(typeof(v) == "number" && ((v | 0) === v)) { var vAsInt = v; return vAsInt != 0; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamFieldAsString = function(param,field) { var v = Reflect.field(param,field); if(typeof(v) == "string") { return v; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamName = function(param) { return param.name; }; com_firstplayable_hxlib_display_Params.getParamFrame = function(param) { var v = Reflect.field(param,"frame"); if(typeof(v) == "number" && ((v | 0) === v)) { return v; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamFrameOrDefault = function(param) { var v = Reflect.field(param,"frame"); var frameOrNull = typeof(v) == "number" && ((v | 0) === v) ? v : null; if(frameOrNull != null) { var frame = frameOrNull; return frame; } else { return -1; } }; com_firstplayable_hxlib_display_Params.getParamLastFrame = function(param) { var v = Reflect.field(param,"lastFrame"); if(typeof(v) == "number" && ((v | 0) === v)) { return v; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamLastFrameOrDefault = function(param) { var v = Reflect.field(param,"lastFrame"); var lastFrameOrNull = typeof(v) == "number" && ((v | 0) === v) ? v : null; if(lastFrameOrNull != null) { var lastFrame = lastFrameOrNull; return lastFrame; } else { return -1; } }; com_firstplayable_hxlib_display_Params.getParamId = function(param) { var v = Reflect.field(param,"id"); if(typeof(v) == "number" && ((v | 0) === v)) { return v; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamIdOrDefault = function(param) { var v = Reflect.field(param,"id"); var idOrNull = typeof(v) == "number" && ((v | 0) === v) ? v : null; if(idOrNull != null) { var id = idOrNull; return id; } else { return -1; } }; com_firstplayable_hxlib_display_Params.getParamBox = function(param) { var v = Reflect.field(param,"width"); var w = typeof(v) == "number" && ((v | 0) === v) ? v : null; if(w == null) { return null; } var v1 = Reflect.field(param,"height"); var h = typeof(v1) == "number" && ((v1 | 0) === v1) ? v1 : null; if(h == null) { return null; } var v2 = Reflect.field(param,"x"); var x = typeof(v2) == "number" && ((v2 | 0) === v2) ? v2 : null; if(x == null) { return null; } var v3 = Reflect.field(param,"y"); var y = typeof(v3) == "number" && ((v3 | 0) === v3) ? v3 : null; if(y == null) { return null; } return new openfl_geom_Rectangle(x,y,w,h); }; com_firstplayable_hxlib_display_Params.getParamVector = function(param) { var v = Reflect.field(param,"x"); var x = typeof(v) == "number" && ((v | 0) === v) ? v : null; if(x == null) { return null; } var v1 = Reflect.field(param,"y"); var y = typeof(v1) == "number" && ((v1 | 0) === v1) ? v1 : null; if(y == null) { return null; } return new openfl_geom_Point(x,y); }; com_firstplayable_hxlib_display_Params.getParamValueBool = function(param) { var v = Reflect.field(param,"value"); if(typeof(v) == "boolean") { return v; } else if(typeof(v) == "number" && ((v | 0) === v)) { var vAsInt = v; return vAsInt != 0; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamValueInt = function(param) { var v = Reflect.field(param,"value"); if(typeof(v) == "number" && ((v | 0) === v)) { return v; } else { return null; } }; com_firstplayable_hxlib_display_Params.getParamValueString = function(param) { var v = Reflect.field(param,"value"); if(typeof(v) == "string") { return v; } else { return null; } }; com_firstplayable_hxlib_display_Params.prototype = { nameFrameMap: null ,has: function(name,frame,id,behaviorFlags) { if(behaviorFlags == null) { behaviorFlags = 0; } if(id == null) { id = -1; } if(frame == null) { frame = -1; } return this.get(name,frame,id,behaviorFlags) != null; } ,get: function(name,frame,id,behaviorFlags) { if(behaviorFlags == null) { behaviorFlags = 0; } if(id == null) { id = -1; } if(frame == null) { frame = -1; } var frameMap = Reflect.field(this.nameFrameMap,name); if(frameMap != null) { var frameStr = frame == null ? "null" : "" + frame; var idStr = id == null ? "null" : "" + id; var paramList = Reflect.field(frameMap,frameStr); if(paramList != null) { var _g1 = 0; var _g = paramList.length; while(_g1 < _g) { var i = _g1++; var param = paramList[i]; var tmp; if(id != -1) { var v = Reflect.field(param,"id"); var idOrNull = typeof(v) == "number" && ((v | 0) === v) ? v : null; var tmp1; if(idOrNull != null) { var id1 = idOrNull; tmp1 = id1; } else { tmp1 = -1; } tmp = tmp1 == id; } else { tmp = true; } if(tmp) { return param; } } } if(frame != -1 && (behaviorFlags & 2) != 0) { paramList = Reflect.field(frameMap,"-1"); if(paramList != null) { var _g11 = 0; var _g2 = paramList.length; while(_g11 < _g2) { var i1 = _g11++; var param1 = paramList[i1]; var tmp2; if(id != -1) { var v1 = Reflect.field(param1,"id"); var idOrNull1 = typeof(v1) == "number" && ((v1 | 0) === v1) ? v1 : null; var tmp3; if(idOrNull1 != null) { var id2 = idOrNull1; tmp3 = id2; } else { tmp3 = -1; } tmp2 = tmp3 == id; } else { tmp2 = true; } if(tmp2) { return param1; } } } } } return null; } ,getAll: function(name,frame,behaviorFlags) { if(behaviorFlags == null) { behaviorFlags = 0; } var frameMap = Reflect.field(this.nameFrameMap,name); return new com_firstplayable_hxlib_display_ParamsIter(frameMap,frame,behaviorFlags); } ,replaceSubtree: function(name,subtree) { this.nameFrameMap[name] = subtree; } ,__class__: com_firstplayable_hxlib_display_Params }; var com_firstplayable_hxlib_display_ParamsIter = function(frameMap,frame,behaviorFlags) { if(behaviorFlags == null) { behaviorFlags = 0; } this.behaviorFlags = behaviorFlags; this.frameMap = frameMap; this.frameInt = frame; this.nextFrameToCheck = this.frameInt != -1 && (this.behaviorFlags & 4) != 0 ? 0 : frame; this.paramList = null; this.paramIdx = 0; this.curr = null; this.findNext(); var useFrameFallback = (behaviorFlags & 2) != 0; if(this.curr == null && frame != -1 && useFrameFallback) { this.frameInt = -1; this.nextFrameToCheck = -1; this.paramList = null; this.paramIdx = 0; this.findNext(); } }; $hxClasses["com.firstplayable.hxlib.display.ParamsIter"] = com_firstplayable_hxlib_display_ParamsIter; com_firstplayable_hxlib_display_ParamsIter.__name__ = ["com","firstplayable","hxlib","display","ParamsIter"]; com_firstplayable_hxlib_display_ParamsIter.prototype = { behaviorFlags: null ,frameMap: null ,frameInt: null ,nextFrameToCheck: null ,paramList: null ,paramIdx: null ,curr: null ,shouldLookForOverlap: function() { if(this.frameInt != -1) { return (this.behaviorFlags & 4) != 0; } else { return false; } } ,hasNextInThisFrame: function() { if(this.paramList != null) { return this.paramIdx < this.paramList.length; } else { return false; } } ,findNext: function() { var lookForOverlap = this.frameInt != -1 && (this.behaviorFlags & 4) != 0; while(this.paramList != null && this.paramIdx < this.paramList.length || this.nextFrameToCheck <= this.frameInt) { if(!(this.paramList != null && this.paramIdx < this.paramList.length)) { this.paramIdx = 0; this.paramList = null; if(this.frameMap != null) { this.paramList = Reflect.field(this.frameMap,Std.string(this.nextFrameToCheck)); } ++this.nextFrameToCheck; } var currentFrameInt = this.nextFrameToCheck - 1; if(!lookForOverlap) { if(this.paramList != null && this.paramIdx < this.paramList.length) { this.curr = this.paramList[this.paramIdx++]; return; } } else { while(this.paramList != null && this.paramIdx < this.paramList.length) { var param = this.paramList[this.paramIdx++]; var v = Reflect.field(param,"lastFrame"); var lastFrameOrNull = typeof(v) == "number" && ((v | 0) === v) ? v : null; var lastFrameInt; if(lastFrameOrNull != null) { var lastFrame = lastFrameOrNull; lastFrameInt = lastFrame; } else { lastFrameInt = -1; } if(this.frameInt <= lastFrameInt) { this.curr = param; return; } else if(lastFrameInt == -1) { if(this.frameInt == currentFrameInt) { this.curr = param; return; } } } } } this.curr = null; } ,hasNext: function() { return this.curr != null; } ,next: function() { var toReturn = this.curr; this.findNext(); return toReturn; } ,__class__: com_firstplayable_hxlib_display_ParamsIter }; var com_firstplayable_hxlib_display_FontType = $hxClasses["com.firstplayable.hxlib.display.FontType"] = { __ename__ : ["com","firstplayable","hxlib","display","FontType"], __constructs__ : ["STANDARD","BITMAP"] }; com_firstplayable_hxlib_display_FontType.STANDARD = ["STANDARD",0]; com_firstplayable_hxlib_display_FontType.STANDARD.toString = $estr; com_firstplayable_hxlib_display_FontType.STANDARD.__enum__ = com_firstplayable_hxlib_display_FontType; com_firstplayable_hxlib_display_FontType.BITMAP = ["BITMAP",1]; com_firstplayable_hxlib_display_FontType.BITMAP.toString = $estr; com_firstplayable_hxlib_display_FontType.BITMAP.__enum__ = com_firstplayable_hxlib_display_FontType; com_firstplayable_hxlib_display_FontType.__empty_constructs__ = [com_firstplayable_hxlib_display_FontType.STANDARD,com_firstplayable_hxlib_display_FontType.BITMAP]; var com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$ = {}; $hxClasses["com.firstplayable.hxlib.display._SmartLabel.VerticalAlign_Impl_"] = com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$; com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$.__name__ = ["com","firstplayable","hxlib","display","_SmartLabel","VerticalAlign_Impl_"]; com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$.fromString = function(value) { switch(value) { case "bottom": return 2; case "center": return 0; case "top": return 1; default: return null; } }; com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$.toString = function(value) { switch(value) { case 0: return "center"; case 1: return "top"; case 2: return "bottom"; default: return null; } }; var com_firstplayable_hxlib_display_SmartLabel = function() { openfl_display_DisplayObjectContainer.call(this); this.set_updatesEnabled(false); this.set_scaleTextToFit(false); this.set_horizontalAlign(0); this.set_verticalAlign(0); this.set_fontType(com_firstplayable_hxlib_display_FontType.STANDARD); this.set_fontPath(""); this.m_recentFontPath = ""; this.set_wordWrap(true); this.set_fillContainer(false); this.m_isUpdating = false; }; $hxClasses["com.firstplayable.hxlib.display.SmartLabel"] = com_firstplayable_hxlib_display_SmartLabel; com_firstplayable_hxlib_display_SmartLabel.__name__ = ["com","firstplayable","hxlib","display","SmartLabel"]; com_firstplayable_hxlib_display_SmartLabel.setOffsetInfo = function(font,offset) { var _this = com_firstplayable_hxlib_display_SmartLabel.ms_fontMetricOffsets; if(__map_reserved[font] != null) { _this.setReserved(font,offset); } else { _this.h[font] = offset; } }; com_firstplayable_hxlib_display_SmartLabel.getOffsetInfo = function(font) { var _this = com_firstplayable_hxlib_display_SmartLabel.ms_fontMetricOffsets; if(__map_reserved[font] != null ? _this.existsReserved(font) : _this.h.hasOwnProperty(font)) { var _this1 = com_firstplayable_hxlib_display_SmartLabel.ms_fontMetricOffsets; var info = __map_reserved[font] != null ? _this1.getReserved(font) : _this1.h[font]; return { width : info.width == null ? com_firstplayable_hxlib_display_SmartLabel.ms_defaultOffset.width : info.width, height : info.height == null ? com_firstplayable_hxlib_display_SmartLabel.ms_defaultOffset.height : info.height, xOffset : info.xOffset == null ? com_firstplayable_hxlib_display_SmartLabel.ms_defaultOffset.xOffset : info.xOffset, yOffset : info.yOffset == null ? com_firstplayable_hxlib_display_SmartLabel.ms_defaultOffset.yOffset : info.yOffset}; } else { return com_firstplayable_hxlib_display_SmartLabel.ms_defaultOffset; } }; com_firstplayable_hxlib_display_SmartLabel.__super__ = openfl_display_DisplayObjectContainer; com_firstplayable_hxlib_display_SmartLabel.prototype = $extend(openfl_display_DisplayObjectContainer.prototype,{ text: null ,htmlText: null ,scaleTextToFit: null ,horizontalAlign: null ,verticalAlign: null ,wordWrap: null ,textColor: null ,fontSize: null ,letterSpacing: null ,lineSpacing: null ,fontPath: null ,m_recentFontPath: null ,fontType: null ,updatesEnabled: null ,fillContainer: null ,m_isUpdating: null ,m_container: null ,m_standardField: null ,m_bitmapField: null ,set_updatesEnabled: function(enabled) { this.updatesEnabled = enabled; if(enabled) { this.updateField(); } return enabled; } ,updateField: function() { if(!this.updatesEnabled || this.m_isUpdating) { return; } this.m_isUpdating = true; this.updateFieldSettings(); if(this.scaleTextToFit) { this.updateFontSizeToFit(); } else { this.updateTextFieldSize(); } this.updateFieldPosition(); this.m_isUpdating = false; } ,updateFieldSettings: function() { if(this.fontType == com_firstplayable_hxlib_display_FontType.STANDARD && this.m_bitmapField != null) { this.m_bitmapField.dispose(); if(this.m_bitmapField.parent != null) { this.m_bitmapField.parent.removeChild(this.m_bitmapField); } this.m_bitmapField = null; this.m_recentFontPath = null; } else if(this.fontType == com_firstplayable_hxlib_display_FontType.BITMAP && this.m_standardField != null) { if(this.m_standardField.parent != null) { this.m_standardField.parent.removeChild(this.m_standardField); } this.m_standardField = null; } if(this.fontType == com_firstplayable_hxlib_display_FontType.BITMAP && this.m_bitmapField != null && this.m_recentFontPath != this.fontPath) { this.m_bitmapField.dispose(); if(this.m_bitmapField.parent != null) { this.m_bitmapField.parent.removeChild(this.m_bitmapField); } this.m_bitmapField = null; this.m_recentFontPath = null; } if(this.fontType == com_firstplayable_hxlib_display_FontType.STANDARD && this.m_standardField == null) { this.m_standardField = new openfl_text_TextField(); this.m_standardField.mouseEnabled = false; this.m_standardField.set_autoSize(2); this.addChild(this.m_standardField); } else if(this.fontType == com_firstplayable_hxlib_display_FontType.BITMAP && this.m_bitmapField == null) { this.m_recentFontPath = this.fontPath; var newfontPath = new haxe_io_Path(this.fontPath); var fontName = "fnt/" + newfontPath.file + ".fnt"; var fontXMLString = com_firstplayable_hxlib_loader_ResMan.get_instance().getText(fontName); var fontXML = Xml.parse(fontXMLString); var fontBitmapName = "2d/" + newfontPath.file + ".png"; var fontImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImageData(fontBitmapName); var angelCodeFont = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fromAngelCode(fontImage,fontXML); if(this.text == null) { this.set_text(""); } else if(com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().has(this.text)) { this.set_text(com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().get(this.text)); } this.m_bitmapField = new com_firstplayable_hxlib_display_bitmapFont_BitmapTextField(angelCodeFont,this.text); this.m_bitmapField.set_updateImmediately(false); this.m_bitmapField.set_autoSize(true); this.addChild(this.m_bitmapField); } var _g = this.fontType; switch(_g[1]) { case 0: var format = new openfl_text_TextFormat(this.fontPath,this.fontSize,this.textColor,null,null,null,openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.toString(this.horizontalAlign)); format.letterSpacing = this.letterSpacing; this.m_standardField.setTextFormat(format); this.m_standardField.set_wordWrap(this.wordWrap); if(this.htmlText != null && this.htmlText != "") { this.m_standardField.set_text(""); this.m_standardField.set_htmlText(this.htmlText); } else { this.m_standardField.set_htmlText(""); this.m_standardField.set_text(this.text); } break; case 1: this.m_bitmapField.set_updateImmediately(false); this.m_bitmapField.set_autoSize(true); this.m_bitmapField.set_wordWrap(this.wordWrap); this.m_bitmapField.set_letterSpacing(this.letterSpacing); this.m_bitmapField.set_lineSpacing(this.lineSpacing); this.m_bitmapField.set_textColor(-16777216 | this.textColor); this.m_bitmapField.set_useTextColor(true); this.m_bitmapField.set_alignment(openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.toString(this.horizontalAlign)); this.m_bitmapField.set_text(this.text); this.m_bitmapField.set_updateImmediately(true); break; } } ,updateFieldPosition: function() { var targetField = null; var textWidth = 0.0; var textHeight = 0.0; var xOffset = 0.0; var yOffset = 0.0; if(this.m_standardField != null) { targetField = this.m_standardField; textWidth = this.getCorrectedTextWidth(); textHeight = this.getCorrectedTextHeight(); } else if(this.m_bitmapField != null) { targetField = this.m_bitmapField; textWidth = this.getCorrectedTextWidth(); textHeight = this.getCorrectedTextHeight(); } var fontInfo = com_firstplayable_hxlib_display_SmartLabel.getOffsetInfo(this.fontPath); xOffset = textWidth * fontInfo.xOffset; yOffset = textHeight * fontInfo.yOffset; if(targetField != null) { if(this.m_container == null) { return; } var _g = this.horizontalAlign; switch(_g) { case 0: targetField.set_x(xOffset + (this.m_container.get_width() - textWidth) / 2); break; case 3: targetField.set_x(xOffset); break; case 4: targetField.set_x(xOffset + this.m_container.get_width() - textWidth); break; default: targetField.set_x(xOffset); } var _g1 = this.verticalAlign; switch(_g1) { case 0: targetField.set_y(yOffset + (this.m_container.get_height() - textHeight) / 2); break; case 1: targetField.set_y(yOffset); break; case 2: targetField.set_y(yOffset + this.m_container.get_height() - textHeight); break; default: targetField.set_y(yOffset); } } } ,updateFontSizeToFit: function() { if(this.m_container == null) { return; } var _g = this.fontType; switch(_g[1]) { case 0: if(this.m_standardField == null) { return; } var fontFormat = this.m_standardField.getTextFormat(); if(this.wordWrap) { while(this.m_standardField.get_textHeight() >= this.m_container.get_height() && fontFormat.size > 1) { fontFormat.size -= 1; this.m_standardField.setTextFormat(fontFormat); this.updateTextFieldSize(); } } else { while(this.m_standardField.get_width() >= this.m_container.get_width() && fontFormat.size > 1) { fontFormat.size -= 1; this.m_standardField.setTextFormat(fontFormat); this.updateTextFieldSize(); } } break; case 1: if(this.m_bitmapField == null) { return; } if(this.wordWrap) { this.updateTextFieldSize(); } else { this.updateTextFieldSize(); } break; } } ,updateTextFieldSize: function() { if(this.m_container == null) { return; } var _g = this.fontType; switch(_g[1]) { case 0: if(this.m_standardField == null) { return; } this.m_standardField.set_width(this.m_container.get_width()); this.m_standardField.set_height(this.m_container.get_height()); this.m_standardField.set_text(this.text); var targetWidth = this.getCorrectedTextWidth(); var targetHeight = this.getCorrectedTextHeight(); this.m_standardField.set_width(targetWidth); this.m_standardField.set_height(targetHeight); break; case 1: if(this.m_bitmapField == null) { return; } this.m_bitmapField.set_width(this.m_container.get_width()); this.m_bitmapField.set_height(this.m_container.get_height()); this.m_bitmapField.set_text(this.text); break; } } ,getCorrectedTextWidth: function() { var _g = this.fontType; switch(_g[1]) { case 0: if(this.m_standardField == null) { return 1.0; } var maxWidth = 1.0; var numLines = this.m_standardField.get_numLines(); var _g1 = 0; var _g2 = numLines; while(_g1 < _g2) { var line = _g1++; var nextLineWidth = this.m_standardField.getLineMetrics(line).width; if(nextLineWidth > maxWidth) { maxWidth = nextLineWidth; } } var offsetInfo = com_firstplayable_hxlib_display_SmartLabel.getOffsetInfo(this.m_standardField.getTextFormat().font); return maxWidth * offsetInfo.width; case 1: if(this.m_bitmapField == null) { return 1.0; } var maxWidth1 = 1.0; var numLines1 = this.m_bitmapField.get_numLines(); var _g11 = 0; var _g3 = numLines1; while(_g11 < _g3) { var line1 = _g11++; var nextLineWidth1 = this.m_bitmapField.getLineWidth(line1); if(nextLineWidth1 > maxWidth1) { maxWidth1 = nextLineWidth1; } } var offsetInfo1 = com_firstplayable_hxlib_display_SmartLabel.getOffsetInfo(this.m_bitmapField.font.fontName); return maxWidth1 * offsetInfo1.width; } } ,getCorrectedTextHeight: function() { var _g = this.fontType; switch(_g[1]) { case 0: if(this.m_standardField == null) { return 1.0; } var heightSum = 0.0; var numLines = this.m_standardField.get_numLines(); var _g1 = 0; var _g2 = numLines; while(_g1 < _g2) { var line = _g1++; heightSum += this.m_standardField.getLineMetrics(line).height; } var offsetInfo = com_firstplayable_hxlib_display_SmartLabel.getOffsetInfo(this.m_standardField.getTextFormat().font); return heightSum * offsetInfo.height; case 1: if(this.m_bitmapField == null) { return 1.0; } var heightSum1 = this.m_bitmapField.get_numLines() * this.m_bitmapField.get_lineHeight(); var offsetInfo1 = com_firstplayable_hxlib_display_SmartLabel.getOffsetInfo(this.m_bitmapField.font.fontName); return heightSum1 * offsetInfo1.height; } } ,setSize: function(newWidth,newHeight) { if(this.m_container == null) { var boxObj = new openfl_display_Sprite(); boxObj.set_visible(false); this.addChild(boxObj); this.m_container = boxObj; } var alpha = 0; this.m_container.get_graphics().clear(); this.m_container.get_graphics().beginFill(16744640,alpha); this.m_container.get_graphics().drawRect(0,0,newWidth,newHeight); this.m_container.get_graphics().endFill(); this.updateField(); } ,set_text: function(newText) { this.text = newText; this.updateField(); return this.text; } ,set_htmlText: function(newText) { this.htmlText = newText; this.updateField(); return this.htmlText; } ,set_scaleTextToFit: function(shouldScale) { this.scaleTextToFit = shouldScale; this.updateField(); return this.scaleTextToFit; } ,set_horizontalAlign: function(newAlign) { this.horizontalAlign = newAlign; this.updateField(); return this.horizontalAlign; } ,set_verticalAlign: function(newAlign) { this.verticalAlign = newAlign; this.updateField(); return this.verticalAlign; } ,set_wordWrap: function(newWrap) { this.wordWrap = newWrap; this.updateField(); return this.wordWrap; } ,set_textColor: function(newColor) { this.textColor = newColor; this.updateField(); return this.textColor; } ,set_fontSize: function(newSize) { this.fontSize = newSize; this.updateField(); return this.fontSize; } ,set_letterSpacing: function(newSize) { this.letterSpacing = newSize; this.updateField(); return this.letterSpacing; } ,set_lineSpacing: function(newSize) { this.lineSpacing = newSize; this.updateField(); return this.lineSpacing; } ,set_fontPath: function(newPath) { this.fontPath = newPath; this.updateField(); return newPath; } ,set_fontType: function(newFontType) { this.fontType = newFontType; this.updateField(); return this.fontType; } ,set_fillContainer: function(fill) { if(fill) { this.addEventListener("addedToStage",$bind(this,this.onAddedToScreen)); if(this.parent != null) { this.setSize(this.parent.get_width(),this.parent.get_height()); this.fillContainer = false; } else { this.fillContainer = true; } } else { this.removeEventListener("addedToStage",$bind(this,this.onAddedToScreen)); this.fillContainer = false; } return this.fillContainer; } ,onAddedToScreen: function(e) { this.set_fillContainer(false); if(this.parent != null) { this.setSize(this.parent.get_width(),this.parent.get_height()); } } ,__class__: com_firstplayable_hxlib_display_SmartLabel ,__properties__: $extend(openfl_display_DisplayObjectContainer.prototype.__properties__,{set_fillContainer:"set_fillContainer",set_updatesEnabled:"set_updatesEnabled",set_fontType:"set_fontType",set_fontPath:"set_fontPath",set_lineSpacing:"set_lineSpacing",set_letterSpacing:"set_letterSpacing",set_fontSize:"set_fontSize",set_textColor:"set_textColor",set_wordWrap:"set_wordWrap",set_verticalAlign:"set_verticalAlign",set_horizontalAlign:"set_horizontalAlign",set_scaleTextToFit:"set_scaleTextToFit",set_htmlText:"set_htmlText",set_text:"set_text"}) }); var com_firstplayable_hxlib_display_SpriteBoxData = function(ref,bnds) { this.refPoint = ref != null ? ref : new openfl_geom_Point(); this.bounds = bnds != null ? bnds : new openfl_geom_Rectangle(); }; $hxClasses["com.firstplayable.hxlib.display.SpriteBoxData"] = com_firstplayable_hxlib_display_SpriteBoxData; com_firstplayable_hxlib_display_SpriteBoxData.__name__ = ["com","firstplayable","hxlib","display","SpriteBoxData"]; com_firstplayable_hxlib_display_SpriteBoxData.prototype = { refPoint: null ,bounds: null ,offsetBounds: null ,get_offsetBounds: function() { var offset = new openfl_geom_Point(); if(this.refPoint != null) { offset = this.refPoint; } var bnds = this.bounds.clone(); bnds.x -= offset.x; bnds.y -= offset.y; return bnds; } ,copy: function() { return new com_firstplayable_hxlib_display_SpriteBoxData(this.refPoint.clone(),this.bounds.clone()); } ,toString: function() { return "[SpriteBoxData refPoint=" + Std.string(this.refPoint) + " bounds=" + Std.string(this.bounds) + "]"; } ,print: function() { com_firstplayable_hxlib_Debug.log(this.toString(),null,{ fileName : "SpriteBoxData.hx", lineNumber : 72, className : "com.firstplayable.hxlib.display.SpriteBoxData", methodName : "print"}); } ,__class__: com_firstplayable_hxlib_display_SpriteBoxData ,__properties__: {get_offsetBounds:"get_offsetBounds"} }; var com_firstplayable_hxlib_display_SpritesheetBounds = function(sheet,resPath) { this.m_frameBoxData = null; this.m_frameBoxData = new haxe_ds_StringMap(); if(sheet == null || resPath == null) { com_firstplayable_hxlib_Debug.logHelper("Cannot construct spritesheet bounds",com_firstplayable_hxlib_Severity.Warn,{ fileName : "SpritesheetBounds.hx", lineNumber : 30, className : "com.firstplayable.hxlib.display.SpritesheetBounds", methodName : "new"}); } else { this.setRpjData(sheet.behaviors,resPath); } }; $hxClasses["com.firstplayable.hxlib.display.SpritesheetBounds"] = com_firstplayable_hxlib_display_SpritesheetBounds; com_firstplayable_hxlib_display_SpritesheetBounds.__name__ = ["com","firstplayable","hxlib","display","SpritesheetBounds"]; com_firstplayable_hxlib_display_SpritesheetBounds.prototype = { m_frameBoxData: null ,getBounds: function(currentFrameLabel) { var _this = this.m_frameBoxData; var bnds = __map_reserved[currentFrameLabel] != null ? _this.getReserved(currentFrameLabel) : _this.h[currentFrameLabel]; if(bnds != null) { bnds = bnds.copy(); } return bnds; } ,setRpjData: function(frames,resPath) { var frame = new haxe_ds__$StringMap_StringMapIterator(frames,frames.arrayKeys()); while(frame.hasNext()) { var frame1 = frame.next(); var frameImagePath = resPath + frame1.name + ".png"; var d = com_firstplayable_hxlib_loader_SpriteDataManager.get_instance().get(frameImagePath); if(d != null) { var key = frame1.name; var _this = this.m_frameBoxData; if(__map_reserved[key] != null) { _this.setReserved(key,d); } else { _this.h[key] = d; } } else { com_firstplayable_hxlib_Debug.log("No sprite box data found for '" + frameImagePath + "'",null,{ fileName : "SpritesheetBounds.hx", lineNumber : 60, className : "com.firstplayable.hxlib.display.SpritesheetBounds", methodName : "setRpjData"}); } } } ,__class__: com_firstplayable_hxlib_display_SpritesheetBounds }; var spritesheet_Spritesheet = function(image,frames,behaviors,imageAlpha) { this.sourceImage = image; this.sourceImageAlpha = imageAlpha; if(frames == null) { this.frames = []; this.totalFrames = 0; } else { this.frames = frames; this.totalFrames = frames.length; } if(behaviors == null) { this.behaviors = new haxe_ds_StringMap(); } else { this.behaviors = behaviors; } }; $hxClasses["spritesheet.Spritesheet"] = spritesheet_Spritesheet; spritesheet_Spritesheet.__name__ = ["spritesheet","Spritesheet"]; spritesheet_Spritesheet.prototype = { behaviors: null ,name: null ,totalFrames: null ,frames: null ,sourceImage: null ,sourceImageAlpha: null ,addBehavior: function(behavior) { var key = behavior.name; var _this = this.behaviors; if(__map_reserved[key] != null) { _this.setReserved(key,behavior); } else { _this.h[key] = behavior; } } ,addFrame: function(frame) { this.frames.push(frame); this.totalFrames++; } ,generateBitmaps: function() { var _g1 = 0; var _g = this.totalFrames; while(_g1 < _g) { var i = _g1++; this.generateBitmap(i); } } ,generateBitmap: function(index) { var frame = this.frames[index]; if(frame.x == 0 && frame.y == 0 && frame.width == this.sourceImage.width && frame.height == this.sourceImage.height && this.sourceImageAlpha == null) { frame.bitmapData = this.sourceImage; } else { var bitmapData = new openfl_display_BitmapData(frame.width,frame.height,true); var sourceRectangle = new openfl_geom_Rectangle(frame.x,frame.y,frame.width,frame.height); var targetPoint = new openfl_geom_Point(); bitmapData.copyPixels(this.sourceImage,sourceRectangle,targetPoint); if(this.sourceImageAlpha != null) { bitmapData.copyChannel(this.sourceImageAlpha,sourceRectangle,targetPoint,2,8); } frame.bitmapData = bitmapData; } var hasGeneratedAllFrames = true; var _g1 = 0; var _g = this.totalFrames; while(_g1 < _g) { var i = _g1++; if(this.frames[i].bitmapData == null) { hasGeneratedAllFrames = false; break; } } if(hasGeneratedAllFrames) { this.sourceImage = null; this.sourceImageAlpha = null; } } ,getFrame: function(index,autoGenerate) { if(autoGenerate == null) { autoGenerate = true; } var frame = this.frames[index]; if(frame != null && frame.bitmapData == null && autoGenerate) { this.generateBitmap(index); } return frame; } ,getFrameIDs: function() { var ids = []; var _g1 = 0; var _g = this.totalFrames; while(_g1 < _g) { var i = _g1++; ids.push(i); } return ids; } ,getFrames: function() { return this.frames.slice(); } ,merge: function(spritesheet1) { var cacheTotalFrames = this.totalFrames; var _g1 = 0; var _g = spritesheet1.frames.length; while(_g1 < _g) { var i = _g1++; if(spritesheet1.frames[i].bitmapData == null && (spritesheet1.sourceImage != this.sourceImage || spritesheet1.sourceImageAlpha != this.sourceImageAlpha)) { spritesheet1.generateBitmap(i); } this.addFrame(spritesheet1.frames[i]); } var _this = spritesheet1.behaviors; var behavior = new haxe_ds__$StringMap_StringMapIterator(_this,_this.arrayKeys()); while(behavior.hasNext()) { var behavior1 = behavior.next(); var key = behavior1.name; var _this1 = this.behaviors; if(!(__map_reserved[key] != null ? _this1.existsReserved(key) : _this1.h.hasOwnProperty(key))) { var clone = behavior1.clone(); clone.name = behavior1.name; var _g11 = 0; var _g2 = behavior1.frames.length; while(_g11 < _g2) { var i1 = _g11++; behavior1.frames[i1] += cacheTotalFrames; } this.addBehavior(behavior1); } } var ids = []; var _g12 = cacheTotalFrames; var _g3 = this.totalFrames; while(_g12 < _g3) { var i2 = _g12++; ids.push(i2); } return ids; } ,updateImage: function(image,imageAlpha) { this.sourceImage = image; this.sourceImageAlpha = imageAlpha; var _g = 0; var _g1 = this.frames; while(_g < _g1.length) { var frame = _g1[_g]; ++_g; if(frame.bitmapData != null) { frame.bitmapData = null; } } } ,__class__: spritesheet_Spritesheet }; var com_firstplayable_hxlib_display_SpritesheetWithParams = function(image,frames,behaviors,imageAlpha) { spritesheet_Spritesheet.call(this,image,frames,behaviors,imageAlpha); }; $hxClasses["com.firstplayable.hxlib.display.SpritesheetWithParams"] = com_firstplayable_hxlib_display_SpritesheetWithParams; com_firstplayable_hxlib_display_SpritesheetWithParams.__name__ = ["com","firstplayable","hxlib","display","SpritesheetWithParams"]; com_firstplayable_hxlib_display_SpritesheetWithParams.__super__ = spritesheet_Spritesheet; com_firstplayable_hxlib_display_SpritesheetWithParams.prototype = $extend(spritesheet_Spritesheet.prototype,{ updateImage: function(image,imageAlpha) { spritesheet_Spritesheet.prototype.updateImage.call(this,image,imageAlpha); var _this = this.behaviors; var bd = new haxe_ds__$StringMap_StringMapIterator(_this,_this.arrayKeys()); while(bd.hasNext()) { var bd1 = bd.next(); var bdwp = js_Boot.__instanceof(bd1,com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams) ? bd1 : null; if(bdwp != null) { bdwp.resetCache(); } } } ,__class__: com_firstplayable_hxlib_display_SpritesheetWithParams }); var com_firstplayable_hxlib_display_anim_ActuateChain = function() { this.m_iter = -1; }; $hxClasses["com.firstplayable.hxlib.display.anim.ActuateChain"] = com_firstplayable_hxlib_display_anim_ActuateChain; com_firstplayable_hxlib_display_anim_ActuateChain.__name__ = ["com","firstplayable","hxlib","display","anim","ActuateChain"]; com_firstplayable_hxlib_display_anim_ActuateChain.__properties__ = {get_create:"get_create"}; com_firstplayable_hxlib_display_anim_ActuateChain.get_create = function() { return new com_firstplayable_hxlib_display_anim_ActuateChain(); }; com_firstplayable_hxlib_display_anim_ActuateChain.prototype = { m_iter: null ,m_tweens: null ,m_onComplete: null ,tween: function(tweens,onComplete) { this.m_tweens = tweens; this.m_onComplete = onComplete; this.next(); } ,next: function() { ++this.m_iter; if(this.m_iter > 0 && this.m_iter < this.m_tweens.length) { var lastAnim = this.m_tweens[this.m_iter - 1]; if(lastAnim.onComplete != null) { lastAnim.onComplete(); } } if(this.m_iter < this.m_tweens.length) { var curAnim = this.m_tweens[this.m_iter]; if(curAnim.ease == null) { curAnim.ease = motion_easing_Linear.get_easeNone(); } motion_Actuate.tween(curAnim.target,curAnim.duration,curAnim.properties).ease(curAnim.ease).onComplete($bind(this,this.next)); } else if(this.m_onComplete != null) { this.m_onComplete(); } } ,__class__: com_firstplayable_hxlib_display_anim_ActuateChain }; var com_firstplayable_hxlib_display_anim_MovieAnim = function() { openfl_display_Sprite.call(this); this.currentFrame = 0; this.framesLoaded = 0; this.totalFrames = 0; this.originPos = new openfl_geom_Point(); this.addEventListener("addedToStage",$bind(this,this.init)); }; $hxClasses["com.firstplayable.hxlib.display.anim.MovieAnim"] = com_firstplayable_hxlib_display_anim_MovieAnim; com_firstplayable_hxlib_display_anim_MovieAnim.__name__ = ["com","firstplayable","hxlib","display","anim","MovieAnim"]; com_firstplayable_hxlib_display_anim_MovieAnim.__interfaces__ = [com_firstplayable_hxlib_app_Updateable]; com_firstplayable_hxlib_display_anim_MovieAnim.__super__ = openfl_display_Sprite; com_firstplayable_hxlib_display_anim_MovieAnim.prototype = $extend(openfl_display_Sprite.prototype,{ m_animSrc: null ,isPlaying: null ,isLooping: null ,smoothing: null ,origin: null ,originPos: null ,currentFrame: null ,currentFrameLabel: null ,framesLoaded: null ,totalFrames: null ,init: function(e) { this.removeEventListener("addedToStage",$bind(this,this.init)); this.addChild(this.m_animSrc); this.set_origin({ x : com_firstplayable_hxlib_display_OriginX.Left, y : com_firstplayable_hxlib_display_OriginY.Top}); this.onAddedToStage(e); } ,onAddedToStage: function(e) { this.removeEventListener("addedToStage",$bind(this,this.onAddedToStage)); this.addEventListener("removedFromStage",$bind(this,this.onRemovedFromStage)); com_firstplayable_hxlib_app_MainLoop.runUpdate(this,2); } ,onRemovedFromStage: function(e) { this.removeEventListener("removedFromStage",$bind(this,this.onRemovedFromStage)); this.addEventListener("addedToStage",$bind(this,this.onAddedToStage)); com_firstplayable_hxlib_app_MainLoop.stopUpdate(this,2); } ,set_smoothing: function(s) { this.smoothing = s; return s; } ,set_origin: function(o) { com_firstplayable_hxlib_display_DisplayTools.setOrigin(this.m_animSrc,o); this.originPos.x = -this.m_animSrc.get_x(); this.originPos.y = -this.m_animSrc.get_y(); return o; } ,setOrigin: function(x,y) { this.originPos.x = x; this.originPos.y = y; com_firstplayable_hxlib_display_DisplayTools.setOriginPos(this.m_animSrc,{ x : this.originPos.x, y : this.originPos.y}); } ,update: function(context) { if(!this.isPlaying) { return; } if(!this.isLooping) { if(this.currentFrame == this.totalFrames - 1) { this.dispatchEvent(new com_firstplayable_hxlib_events_AnimEvent("animcomplete")); } if(this.currentFrame == this.framesLoaded - 1) { this.dispatchEvent(new com_firstplayable_hxlib_events_AnimEvent("animlastframe")); } } } ,play: function() { this.isPlaying = true; } ,stop: function() { this.isPlaying = false; } ,gotoAndPlay: function(frame,loop) { this.gotoFrame(frame,loop); this.play(); } ,gotoAndStop: function(frame) { this.gotoFrame(frame); this.stop(); } ,nextFrame: function() { this.gotoFrameIndex(this.currentFrame + 1); } ,prevFrame: function() { this.gotoFrameIndex(this.currentFrame - 1); } ,gotoFrame: function(frame,loop) { if(typeof(frame) == "string") { this.gotoFrameLabel(frame,loop); } else if(typeof(frame) == "number" && ((frame | 0) === frame)) { this.gotoFrameIndex(frame); } else if(typeof(frame) == "number") { this.gotoFrameIndex(frame | 0); } else { com_firstplayable_hxlib_Debug.logHelper("frame is invalid",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MovieAnim.hx", lineNumber : 229, className : "com.firstplayable.hxlib.display.anim.MovieAnim", methodName : "gotoFrame"}); } } ,gotoFrameLabel: function(frame,loop) { } ,gotoFrameIndex: function(frame) { } ,__class__: com_firstplayable_hxlib_display_anim_MovieAnim ,__properties__: $extend(openfl_display_Sprite.prototype.__properties__,{set_origin:"set_origin",set_smoothing:"set_smoothing"}) }); var com_firstplayable_hxlib_display_anim_SpritesheetAnim = function(s,resPath) { this.shouldLoop = false; this.currentBehavior = null; this.timeElapsedMS = 0; this.loopTimeMS = 0; this.m_spritesheet = null; com_firstplayable_hxlib_display_anim_MovieAnim.call(this); this.m_spritesheet = s; this.m_animSrc = new com_firstplayable_hxlib_display_OPSprite(new openfl_display_Bitmap()); this.framesLoaded = s.totalFrames; var allframes = []; var _g1 = 0; var _g = this.framesLoaded; while(_g1 < _g) { var i = _g1++; allframes.push(i); } this.define("_timeline",allframes); this.gotoAndStop("_timeline"); }; $hxClasses["com.firstplayable.hxlib.display.anim.SpritesheetAnim"] = com_firstplayable_hxlib_display_anim_SpritesheetAnim; com_firstplayable_hxlib_display_anim_SpritesheetAnim.__name__ = ["com","firstplayable","hxlib","display","anim","SpritesheetAnim"]; com_firstplayable_hxlib_display_anim_SpritesheetAnim.__super__ = com_firstplayable_hxlib_display_anim_MovieAnim; com_firstplayable_hxlib_display_anim_SpritesheetAnim.prototype = $extend(com_firstplayable_hxlib_display_anim_MovieAnim.prototype,{ m_spritesheet: null ,loopTimeMS: null ,timeElapsedMS: null ,currentBehavior: null ,shouldLoop: null ,cursor: null ,define: function(name,frames,loop,fps) { if(fps == null) { fps = 60; } if(loop == null) { loop = true; } this.m_spritesheet.addBehavior(new spritesheet_data_BehaviorData(name,frames,loop,fps)); } ,hasFrameLabel: function(frame) { var _this = this.m_spritesheet.behaviors; if(__map_reserved[frame] != null) { return _this.existsReserved(frame); } else { return _this.h.hasOwnProperty(frame); } } ,getAnimLength: function(animName) { var _this = this.m_spritesheet.behaviors; var bd = __map_reserved[animName] != null ? _this.getReserved(animName) : _this.h[animName]; if(bd == null) { return 0; } return bd.frames.length; } ,getFrameImg: function(frame) { this.gotoAndStop(frame); var sprite = this.m_animSrc; return sprite.getBitmap(); } ,gotoFrameLabel: function(frame,loop) { com_firstplayable_hxlib_display_anim_MovieAnim.prototype.gotoFrameLabel.call(this,frame,loop); var sprite = this.m_animSrc; frame = com_firstplayable_hxlib_loader_ResMan.get_instance().verifyPath(frame); var _this = this.m_spritesheet.behaviors; var behavior = __map_reserved[frame] != null ? _this.getReserved(frame) : _this.h[frame]; if(behavior != null) { this.currentBehavior = behavior; this.timeElapsedMS = 0; this.loopTimeMS = behavior.frames.length / behavior.frameRate * 1000; this.advanceAnim(0,true); if(loop != null) { this.shouldLoop = loop; } else { var defaultLoop = false; this.shouldLoop = com_firstplayable_hxlib_display_Params.getWithDefault(defaultLoop,behavior,com_firstplayable_hxlib_display_Params.getParamValueBool,"looping"); } } this.updateFrames(); } ,getCurrentFrameIndex: function() { var ratio = this.timeElapsedMS / this.loopTimeMS; var lastFrameIdx = 0; if(this.currentBehavior != null && this.currentBehavior.frames != null) { lastFrameIdx = this.currentBehavior.frames.length - 1; } var frameIdx = Math.round(ratio * lastFrameIdx); if(frameIdx > lastFrameIdx) { frameIdx = lastFrameIdx; } if(frameIdx < 0) { frameIdx = 0; } return frameIdx; } ,advanceAnim: function(deltaTimeMS,forceUpdate) { if(forceUpdate == null) { forceUpdate = false; } var oldRatio = this.timeElapsedMS / this.loopTimeMS; var behaviorComplete = !this.shouldLoop && oldRatio >= 1; if(!behaviorComplete || forceUpdate) { this.timeElapsedMS += deltaTimeMS; var ratio = this.timeElapsedMS / this.loopTimeMS; if(ratio >= 1) { if(this.shouldLoop) { this.timeElapsedMS %= this.loopTimeMS; } else { behaviorComplete = true; this.timeElapsedMS = this.loopTimeMS; } } var currentFrameIndex = this.getCurrentFrameIndex(); if(this.currentBehavior != null && this.currentBehavior.frames != null && this.currentBehavior.frames.length > currentFrameIndex) { var frameData = com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams.getCacheData(this.currentBehavior,this.m_spritesheet,currentFrameIndex); var sprite = this.m_animSrc; sprite.changeImageData(frameData); var value = this.smoothing; if(com_firstplayable_hxlib_display_OPSprite.ms_forceSmoothingOn) { value = true; } if(sprite.m_img != null) { sprite.m_img.smoothing = value; } sprite.smoothing = value; } else { com_firstplayable_hxlib_Debug.log("advanceAnim: frame index out of bounds; behavior " + Std.string(this.currentBehavior) + " currentFrameIndex " + currentFrameIndex,null,{ fileName : "SpritesheetAnim.hx", lineNumber : 225, className : "com.firstplayable.hxlib.display.anim.SpritesheetAnim", methodName : "advanceAnim"}); } if(behaviorComplete) { if(this.hasEventListener("complete")) { this.dispatchEvent(new openfl_events_Event("complete")); } } } } ,gotoFrameIndex: function(frame) { com_firstplayable_hxlib_display_anim_MovieAnim.prototype.gotoFrameIndex.call(this,frame); if(this.currentBehavior != null && this.currentBehavior.frames != null && this.currentBehavior.frames.length > 0) { this.timeElapsedMS = Math.ceil(frame * this.loopTimeMS / (this.currentBehavior.frames.length - 1)); } else { this.timeElapsedMS = 0; } this.advanceAnim(0,true); this.updateFrames(); } ,updateFrames: function() { var sprite = this.m_animSrc; this.currentFrame = this.getCurrentFrameIndex(); if(this.currentBehavior != null) { this.currentFrameLabel = this.currentBehavior.name; this.totalFrames = this.currentBehavior.frames != null ? this.currentBehavior.frames.length : 0; } else { this.currentFrameLabel = null; this.totalFrames = this.framesLoaded; } this.updateBounds(); } ,updateBounds: function() { } ,update: function(context) { com_firstplayable_hxlib_display_anim_MovieAnim.prototype.update.call(this,context); if(!this.isPlaying) { return; } this.advanceAnim(context.phase.period); this.updateFrames(); } ,set_smoothing: function(s) { var sprite = this.m_animSrc; var value = s; if(com_firstplayable_hxlib_display_OPSprite.ms_forceSmoothingOn) { value = true; } if(sprite.m_img != null) { sprite.m_img.smoothing = value; } sprite.smoothing = value; return com_firstplayable_hxlib_display_anim_MovieAnim.prototype.set_smoothing.call(this,s); } ,getBoundsData: function() { if(this.m_animSrc != null) { var sprite = this.m_animSrc; return sprite.getBoundsData(); } return null; } ,getParamBoxes: function(type) { var boxes = []; if(this.m_animSrc != null) { var sprite = this.m_animSrc; boxes = sprite.getParamBoxes(type); } return boxes; } ,__getCursor: function() { if(this.cursor == null) { return com_firstplayable_hxlib_display_anim_MovieAnim.prototype.__getCursor.call(this); } return this.cursor; } ,__class__: com_firstplayable_hxlib_display_anim_SpritesheetAnim }); var spritesheet_data_BehaviorData = function(name,frames,loop,frameRate,originX,originY) { if(originY == null) { originY = 0; } if(originX == null) { originX = 0; } if(frameRate == null) { frameRate = 30; } if(loop == null) { loop = false; } if(name == null) { name = ""; } if(name == "") { name = "behavior" + spritesheet_data_BehaviorData.uniqueID++; } if(frames == null) { frames = []; } this.name = name; this.frames = frames; this.loop = loop; this.frameRate = frameRate; this.originX = originX; this.originY = originY; this.frameData = []; var _g1 = 0; var _g = this.frames.length; while(_g1 < _g) { var i = _g1++; this.frameData.push(null); } }; $hxClasses["spritesheet.data.BehaviorData"] = spritesheet_data_BehaviorData; spritesheet_data_BehaviorData.__name__ = ["spritesheet","data","BehaviorData"]; spritesheet_data_BehaviorData.prototype = { frameData: null ,frameRate: null ,frames: null ,loop: null ,name: null ,originX: null ,originY: null ,clone: function() { return new spritesheet_data_BehaviorData("behavior" + spritesheet_data_BehaviorData.uniqueID++,this.frames.slice(),this.loop,this.frameRate,this.originX,this.originY); } ,__class__: spritesheet_data_BehaviorData }; var com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams = function(paramsData,ssFrames,name,frames,loop,frameRate,originX,originY) { if(originY == null) { originY = 0; } if(originX == null) { originX = 0; } if(frameRate == null) { frameRate = 30; } if(loop == null) { loop = false; } if(name == null) { name = ""; } this.params = null; spritesheet_data_BehaviorData.call(this,name,frames,loop,frameRate,originX,originY); if(paramsData != null) { this.params = new com_firstplayable_hxlib_display_Params(paramsData); } if(ssFrames != null) { if(this.params == null) { this.params = new com_firstplayable_hxlib_display_Params(null); } var paramSubtree = { }; var paramsCount = 0; var animFrameIdx = 0; var _g = 0; while(_g < frames.length) { var ssFrameIdxIter = frames[_g]; ++_g; var ssFrameIdx = ssFrameIdxIter; var ssFrame = ssFrames[ssFrameIdx]; if(ssFrame != null) { if(ssFrame.offsetX != 0 || ssFrame.offsetY != 0) { var animFrameStr = animFrameIdx == null ? "null" : "" + animFrameIdx; paramSubtree[animFrameStr] = [{ "name" : "offset", "type" : "vector", "frame" : animFrameIdx, "x" : ssFrame.offsetX, "y" : ssFrame.offsetY}]; ++paramsCount; } } ++animFrameIdx; } if(paramsCount > 0) { this.params.replaceSubtree("offset",paramSubtree); } } this.resetCache(); }; $hxClasses["com.firstplayable.hxlib.display.anim.importers.BehaviorDataWithParams"] = com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams; com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams.__name__ = ["com","firstplayable","hxlib","display","anim","importers","BehaviorDataWithParams"]; com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams.__interfaces__ = [com_firstplayable_hxlib_display_HasParams]; com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams.getCacheData = function(data,sheet,animFrameIndex) { if(data == null || sheet == null || animFrameIndex >= data.frames.length) { return null; } var frameData = null; var dataWithParams = js_Boot.__instanceof(data,com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams) ? data : null; if(dataWithParams != null && dataWithParams.params != null) { var cachedBitmapData = dataWithParams.bitmapData[animFrameIndex]; if(cachedBitmapData != null) { frameData = cachedBitmapData; } else { var sheetFrameIndex = data.frames[animFrameIndex]; var frame = sheet.getFrame(sheetFrameIndex,false); if(frame != null) { var bmd = frame.bitmapData; if(bmd == null) { var _g1 = 0; var _g = data.frames.length; while(_g1 < _g) { var otherAnimFrameIndex = _g1++; var otherSheetFrameIndex = data.frames[otherAnimFrameIndex]; if(sheetFrameIndex == otherSheetFrameIndex) { bmd = dataWithParams.bitmapData[otherAnimFrameIndex]; if(bmd != null) { break; } } } } if(bmd == null) { frame = sheet.getFrame(sheetFrameIndex,true); bmd = frame.bitmapData; } frameData = com_firstplayable_hxlib_display_BitmapDataWithParams.fromAnimParamsAndBitmapData(animFrameIndex,dataWithParams.params,bmd); dataWithParams.bitmapData[animFrameIndex] = frameData; lime_graphics_utils_ImageCanvasUtil.convertToCanvas(frameData.image); lime_graphics_utils_ImageCanvasUtil.sync(frameData.image,true); } } } else { var sheetFrameIndex1 = data.frames[animFrameIndex]; var frame1 = sheet.getFrame(sheetFrameIndex1); if(frame1 != null) { frameData = frame1.bitmapData; } } return frameData; }; com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams.__super__ = spritesheet_data_BehaviorData; com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams.prototype = $extend(spritesheet_data_BehaviorData.prototype,{ params: null ,bitmapData: null ,getParams: function() { return this.params; } ,resetCache: function() { this.bitmapData = []; if(this.frames.length > 0) { this.bitmapData[this.frames.length - 1] = null; } } ,clone: function() { var cloned = new com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams(null,null,"",this.frames.slice(),this.loop,this.frameRate,this.originX,this.originY); cloned.params = this.params; return cloned; } ,__class__: com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams }); var com_firstplayable_hxlib_display_anim_importers_ZoeImporterPlus = function() { }; $hxClasses["com.firstplayable.hxlib.display.anim.importers.ZoeImporterPlus"] = com_firstplayable_hxlib_display_anim_importers_ZoeImporterPlus; com_firstplayable_hxlib_display_anim_importers_ZoeImporterPlus.__name__ = ["com","firstplayable","hxlib","display","anim","importers","ZoeImporterPlus"]; com_firstplayable_hxlib_display_anim_importers_ZoeImporterPlus.parse = function(data,basePath) { var padding = 2; var json = null; if(typeof(data) == "string") { json = new haxe_format_JsonParser(data).parseRec(); } else { json = data; } var obj = Reflect.field(json,"images"); var images = (obj instanceof Array) && obj.__enum__ == null ? obj : null; if(images == null) { com_firstplayable_hxlib_Debug.logHelper("Spritesheet 'images' array not found (aborting), basePath: " + basePath,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ZoeImporterPlus.hx", lineNumber : 64, className : "com.firstplayable.hxlib.display.anim.importers.ZoeImporterPlus", methodName : "parse"}); return null; } if(images.length < 1) { com_firstplayable_hxlib_Debug.logHelper("Spritesheet 'images' array empty (aborting), basePath: " + basePath,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ZoeImporterPlus.hx", lineNumber : 69, className : "com.firstplayable.hxlib.display.anim.importers.ZoeImporterPlus", methodName : "parse"}); return null; } var sheetsData = []; var _g = 0; while(_g < images.length) { var image = images[_g]; ++_g; sheetsData.push(com_firstplayable_hxlib_loader_ResMan.get_instance().getImageData(basePath + Std.string(image))); } var obj1 = Reflect.field(json,"frames"); var jsonFrames = (obj1 instanceof Array) && obj1.__enum__ == null ? obj1 : null; if(jsonFrames == null) { com_firstplayable_hxlib_Debug.logHelper("Spritesheet 'frames' not found (aborting), first image: " + Std.string(images[0]),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ZoeImporterPlus.hx", lineNumber : 82, className : "com.firstplayable.hxlib.display.anim.importers.ZoeImporterPlus", methodName : "parse"}); return null; } var frames = []; var _g1 = 0; while(_g1 < jsonFrames.length) { var frameIter = jsonFrames[_g1]; ++_g1; var frame = (frameIter instanceof Array) && frameIter.__enum__ == null ? frameIter : null; if(frame == null || frame.length < 7) { com_firstplayable_hxlib_Debug.logHelper("Spritesheet has malformed 'frames' entry (aborting); first image: " + Std.string(images[0]) + ", offending frame: " + Std.string(frame),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ZoeImporterPlus.hx", lineNumber : 93, className : "com.firstplayable.hxlib.display.anim.importers.ZoeImporterPlus", methodName : "parse"}); return null; } var sheetIdx = frame[4]; var sheetYOffset = 0; var _g2 = 0; var _g11 = sheetIdx; while(_g2 < _g11) { var i = _g2++; sheetYOffset += sheetsData[i].height | 0; } var x = frame[0]; var y = frame[1] + sheetYOffset + padding * sheetIdx | 0; var width = frame[2]; var height = frame[3]; var offsetX = -frame[5] | 0; var offsetY = -frame[6] | 0; frames.push(new spritesheet_data_SpritesheetFrame(x,y,width,height,offsetX,offsetY)); } var bigW = 0; var bigH = 0; var _g3 = 0; while(_g3 < sheetsData.length) { var sheetData = sheetsData[_g3]; ++_g3; if(sheetData.width > bigW) { bigW = sheetData.width | 0; } bigH += (sheetData.height | 0) + padding; } var bigsheet = null; if(sheetsData.length > 1) { bigsheet = new openfl_display_BitmapData(bigW,bigH,true,-256); var curH = 0; var _g4 = 0; while(_g4 < sheetsData.length) { var sheetData1 = sheetsData[_g4]; ++_g4; bigsheet.copyPixels(sheetData1,new openfl_geom_Rectangle(0,0,sheetData1.width,sheetData1.height),new openfl_geom_Point(0,curH)); curH += (sheetData1.height | 0) + padding; } } else { bigsheet = sheetsData[0]; } if(bigsheet != null) { lime_graphics_utils_ImageCanvasUtil.convertToData(bigsheet.image,true); } var spritesheet1 = new com_firstplayable_hxlib_display_SpritesheetWithParams(bigsheet,frames); var animNames = Reflect.fields(json.animations); var _g5 = 0; while(_g5 < animNames.length) { var animName = animNames[_g5]; ++_g5; var state = Reflect.field(json.animations,animName); var behaviorJsonFrames = Reflect.field(state,"frames"); var behaviorFrames = null; if((behaviorJsonFrames instanceof Array) && behaviorJsonFrames.__enum__ == null) { behaviorFrames = behaviorJsonFrames; } else if((state instanceof Array) && state.__enum__ == null) { behaviorFrames = state; } else { com_firstplayable_hxlib_Debug.logHelper("Unable to find frames in spritesheet for anim (format change?): " + (animName == null ? "null" : "" + animName),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ZoeImporterPlus.hx", lineNumber : 181, className : "com.firstplayable.hxlib.display.anim.importers.ZoeImporterPlus", methodName : "parse"}); } var behaviorFramesInt = behaviorFrames; var hasAnyOffsets = false; var _g12 = 0; while(_g12 < behaviorFramesInt.length) { var frameIter1 = behaviorFramesInt[_g12]; ++_g12; var frameIdx = frameIter1; var ssFrame = frames[frameIdx]; if(ssFrame != null) { if(ssFrame.offsetX != 0 || ssFrame.offsetY != 0) { hasAnyOffsets = true; break; } } } var params = Reflect.field(state,"params"); var behavior = null; if(hasAnyOffsets || params != null) { behavior = new com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams(params,frames,animName,behaviorFramesInt,true,48); } else { behavior = new spritesheet_data_BehaviorData(animName,behaviorFramesInt,true,48); } spritesheet1.addBehavior(behavior); } var spritesheetName = Std.string(images[0]).split(".")[0]; spritesheet1.name = spritesheetName.length > 0 ? spritesheetName : "undefined"; return spritesheet1; }; var com_firstplayable_hxlib_display_bitmapFont_BitmapFont = function(name,bitmap) { this.spaceWidth = 0; this.minOffsetX = 0; this.italic = false; this.bold = false; this.lineHeight = 0; this.size = 0; this.bitmap = bitmap; this.fontName = name; this.glyphs = new haxe_ds_IntMap(); com_firstplayable_hxlib_display_bitmapFont_BitmapFont.store(name,this); this.registerCount = 0; }; $hxClasses["com.firstplayable.hxlib.display.bitmapFont.BitmapFont"] = com_firstplayable_hxlib_display_bitmapFont_BitmapFont; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.__name__ = ["com","firstplayable","hxlib","display","bitmapFont","BitmapFont"]; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.store = function(fontKey,font) { var _this = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts; if(!(__map_reserved[fontKey] != null ? _this.existsReserved(fontKey) : _this.h.hasOwnProperty(fontKey))) { var _this1 = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts; if(__map_reserved[fontKey] != null) { _this1.setReserved(fontKey,font); } else { _this1.h[fontKey] = font; } } }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.get = function(fontKey) { var _this = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts; if(__map_reserved[fontKey] != null) { return _this.getReserved(fontKey); } else { return _this.h[fontKey]; } }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.remove = function(fontKey) { var _this = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts; var font = __map_reserved[fontKey] != null ? _this.getReserved(fontKey) : _this.h[fontKey]; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts.remove(fontKey); if(font != null) { font.dispose(); } }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.clearFonts = function() { var _this = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts; var font = new haxe_ds__$StringMap_StringMapIterator(_this,_this.arrayKeys()); while(font.hasNext()) { var font1 = font.next(); font1.dispose(); } com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts = new haxe_ds_StringMap(); }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.getDefaultFont = function() { var font = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.get("defaultFontKey"); if(font != null) { return font; } var letters = ""; var bd = new openfl_display_BitmapData(700,9,true,-7829368); var letterPos = 0; var i = 0; while(i < " 36000000000000000000!26101010001000\"46101010100000000000000000#66010100111110010100111110010100000000$56001000111011000001101110000100%66100100000100001000010000010010000000&66011000100000011010100100011010000000'26101000000000(36010100100100010000)36100010010010100000*46000010100100101000000000+46000001001110010000000000,36000000000000010100-46000000001110000000000000.26000000001000/66000010000100001000010000100000000000056011001001010010100100110000000156011000010000100001000010000000256111000001001100100001111000000356111000001001100000101110000000456100101001010010011100001000000556111101000011100000101110000000656011001000011100100100110000000756111000001000010001100001000000856011001001001100100100110000000956011001001010010011100001000000:26001000100000;26001000101000<46001001001000010000100000=46000011100000111000000000>46100001000010010010000000?56111000001001100000000100000000@66011100100010101110101010011100000000A56011001001010010111101001000000B56111001001011100100101110000000C56011001001010000100100110000000D56111001001010010100101110000000E56111101000011000100001111000000F56111101000010000110001000000000G56011001000010110100100111000000H56100101001011110100101001000000I26101010101000J56000100001000010100100110000000K56100101001010010111001001000000L46100010001000100011100000M66100010100010110110101010100010000000N56100101001011010101101001000000O56011001001010010100100110000000P56111001001010010111001000000000Q56011001001010010100100110000010R56111001001010010111001001000000S56011101000001100000101110000000T46111001000100010001000000U56100101001010010100100110000000V56100101001010010101000100000000W66100010100010101010110110100010000000X56100101001001100100101001000000Y56100101001010010011100001001100Z56111100001001100100001111000000[36110100100100110000}46110001000010010011000000]36110010010010110000^46010010100000000000000000_46000000000000000011110000'26101000000000a56000000111010010100100111000000b56100001110010010100101110000000c46000001101000100001100000d56000100111010010100100111000000e56000000110010110110000110000000f46011010001000110010000000g5700000011001001010010011100001001100h56100001110010010100101001000000i26100010101000j37010000010010010010100k56100001001010010111001001000000l26101010101000m66000000111100101010101010101010000000n56000001110010010100101001000000o56000000110010010100100110000000p5700000111001001010010111001000010000q5700000011101001010010011100001000010r46000010101100100010000000s56000000111011000001101110000000t46100011001000100001100000u56000001001010010100100111000000v56000001001010010101000100000000w66000000101010101010101010011110000000x56000001001010010011001001000000y5700000100101001010010011100001001100z56000001111000100010001111000000{46011001001000010001100000|26101010101000}46110001000010010011000000~56010101010000000000000000000000\\46111010101010101011100000".length) { letters += HxOverrides.substr(" 36000000000000000000!26101010001000\"46101010100000000000000000#66010100111110010100111110010100000000$56001000111011000001101110000100%66100100000100001000010000010010000000&66011000100000011010100100011010000000'26101000000000(36010100100100010000)36100010010010100000*46000010100100101000000000+46000001001110010000000000,36000000000000010100-46000000001110000000000000.26000000001000/66000010000100001000010000100000000000056011001001010010100100110000000156011000010000100001000010000000256111000001001100100001111000000356111000001001100000101110000000456100101001010010011100001000000556111101000011100000101110000000656011001000011100100100110000000756111000001000010001100001000000856011001001001100100100110000000956011001001010010011100001000000:26001000100000;26001000101000<46001001001000010000100000=46000011100000111000000000>46100001000010010010000000?56111000001001100000000100000000@66011100100010101110101010011100000000A56011001001010010111101001000000B56111001001011100100101110000000C56011001001010000100100110000000D56111001001010010100101110000000E56111101000011000100001111000000F56111101000010000110001000000000G56011001000010110100100111000000H56100101001011110100101001000000I26101010101000J56000100001000010100100110000000K56100101001010010111001001000000L46100010001000100011100000M66100010100010110110101010100010000000N56100101001011010101101001000000O56011001001010010100100110000000P56111001001010010111001000000000Q56011001001010010100100110000010R56111001001010010111001001000000S56011101000001100000101110000000T46111001000100010001000000U56100101001010010100100110000000V56100101001010010101000100000000W66100010100010101010110110100010000000X56100101001001100100101001000000Y56100101001010010011100001001100Z56111100001001100100001111000000[36110100100100110000}46110001000010010011000000]36110010010010110000^46010010100000000000000000_46000000000000000011110000'26101000000000a56000000111010010100100111000000b56100001110010010100101110000000c46000001101000100001100000d56000100111010010100100111000000e56000000110010110110000110000000f46011010001000110010000000g5700000011001001010010011100001001100h56100001110010010100101001000000i26100010101000j37010000010010010010100k56100001001010010111001001000000l26101010101000m66000000111100101010101010101010000000n56000001110010010100101001000000o56000000110010010100100110000000p5700000111001001010010111001000010000q5700000011101001010010011100001000010r46000010101100100010000000s56000000111011000001101110000000t46100011001000100001100000u56000001001010010100100111000000v56000001001010010101000100000000w66000000101010101010101010011110000000x56000001001010010011001001000000y5700000100101001010010011100001001100z56000001111000100010001111000000{46011001001000010001100000|26101010101000}46110001000010010011000000~56010101010000000000000000000000\\46111010101010101011100000",i,1); var gw = Std.parseInt(HxOverrides.substr(" 36000000000000000000!26101010001000\"46101010100000000000000000#66010100111110010100111110010100000000$56001000111011000001101110000100%66100100000100001000010000010010000000&66011000100000011010100100011010000000'26101000000000(36010100100100010000)36100010010010100000*46000010100100101000000000+46000001001110010000000000,36000000000000010100-46000000001110000000000000.26000000001000/66000010000100001000010000100000000000056011001001010010100100110000000156011000010000100001000010000000256111000001001100100001111000000356111000001001100000101110000000456100101001010010011100001000000556111101000011100000101110000000656011001000011100100100110000000756111000001000010001100001000000856011001001001100100100110000000956011001001010010011100001000000:26001000100000;26001000101000<46001001001000010000100000=46000011100000111000000000>46100001000010010010000000?56111000001001100000000100000000@66011100100010101110101010011100000000A56011001001010010111101001000000B56111001001011100100101110000000C56011001001010000100100110000000D56111001001010010100101110000000E56111101000011000100001111000000F56111101000010000110001000000000G56011001000010110100100111000000H56100101001011110100101001000000I26101010101000J56000100001000010100100110000000K56100101001010010111001001000000L46100010001000100011100000M66100010100010110110101010100010000000N56100101001011010101101001000000O56011001001010010100100110000000P56111001001010010111001000000000Q56011001001010010100100110000010R56111001001010010111001001000000S56011101000001100000101110000000T46111001000100010001000000U56100101001010010100100110000000V56100101001010010101000100000000W66100010100010101010110110100010000000X56100101001001100100101001000000Y56100101001010010011100001001100Z56111100001001100100001111000000[36110100100100110000}46110001000010010011000000]36110010010010110000^46010010100000000000000000_46000000000000000011110000'26101000000000a56000000111010010100100111000000b56100001110010010100101110000000c46000001101000100001100000d56000100111010010100100111000000e56000000110010110110000110000000f46011010001000110010000000g5700000011001001010010011100001001100h56100001110010010100101001000000i26100010101000j37010000010010010010100k56100001001010010111001001000000l26101010101000m66000000111100101010101010101010000000n56000001110010010100101001000000o56000000110010010100100110000000p5700000111001001010010111001000010000q5700000011101001010010011100001000010r46000010101100100010000000s56000000111011000001101110000000t46100011001000100001100000u56000001001010010100100111000000v56000001001010010101000100000000w66000000101010101010101010011110000000x56000001001010010011001001000000y5700000100101001010010011100001001100z56000001111000100010001111000000{46011001001000010001100000|26101010101000}46110001000010010011000000~56010101010000000000000000000000\\46111010101010101011100000",++i,1)); var gh = Std.parseInt(HxOverrides.substr(" 36000000000000000000!26101010001000\"46101010100000000000000000#66010100111110010100111110010100000000$56001000111011000001101110000100%66100100000100001000010000010010000000&66011000100000011010100100011010000000'26101000000000(36010100100100010000)36100010010010100000*46000010100100101000000000+46000001001110010000000000,36000000000000010100-46000000001110000000000000.26000000001000/66000010000100001000010000100000000000056011001001010010100100110000000156011000010000100001000010000000256111000001001100100001111000000356111000001001100000101110000000456100101001010010011100001000000556111101000011100000101110000000656011001000011100100100110000000756111000001000010001100001000000856011001001001100100100110000000956011001001010010011100001000000:26001000100000;26001000101000<46001001001000010000100000=46000011100000111000000000>46100001000010010010000000?56111000001001100000000100000000@66011100100010101110101010011100000000A56011001001010010111101001000000B56111001001011100100101110000000C56011001001010000100100110000000D56111001001010010100101110000000E56111101000011000100001111000000F56111101000010000110001000000000G56011001000010110100100111000000H56100101001011110100101001000000I26101010101000J56000100001000010100100110000000K56100101001010010111001001000000L46100010001000100011100000M66100010100010110110101010100010000000N56100101001011010101101001000000O56011001001010010100100110000000P56111001001010010111001000000000Q56011001001010010100100110000010R56111001001010010111001001000000S56011101000001100000101110000000T46111001000100010001000000U56100101001010010100100110000000V56100101001010010101000100000000W66100010100010101010110110100010000000X56100101001001100100101001000000Y56100101001010010011100001001100Z56111100001001100100001111000000[36110100100100110000}46110001000010010011000000]36110010010010110000^46010010100000000000000000_46000000000000000011110000'26101000000000a56000000111010010100100111000000b56100001110010010100101110000000c46000001101000100001100000d56000100111010010100100111000000e56000000110010110110000110000000f46011010001000110010000000g5700000011001001010010011100001001100h56100001110010010100101001000000i26100010101000j37010000010010010010100k56100001001010010111001001000000l26101010101000m66000000111100101010101010101010000000n56000001110010010100101001000000o56000000110010010100100110000000p5700000111001001010010111001000010000q5700000011101001010010011100001000010r46000010101100100010000000s56000000111011000001101110000000t46100011001000100001100000u56000001001010010100100111000000v56000001001010010101000100000000w66000000101010101010101010011110000000x56000001001010010011001001000000y5700000100101001010010011100001001100z56000001111000100010001111000000{46011001001000010001100000|26101010101000}46110001000010010011000000~56010101010000000000000000000000\\46111010101010101011100000",++i,1)); var _g1 = 0; var _g = gh; while(_g1 < _g) { var py = _g1++; var _g3 = 0; var _g2 = gw; while(_g3 < _g2) { var px = _g3++; ++i; if(HxOverrides.substr(" 36000000000000000000!26101010001000\"46101010100000000000000000#66010100111110010100111110010100000000$56001000111011000001101110000100%66100100000100001000010000010010000000&66011000100000011010100100011010000000'26101000000000(36010100100100010000)36100010010010100000*46000010100100101000000000+46000001001110010000000000,36000000000000010100-46000000001110000000000000.26000000001000/66000010000100001000010000100000000000056011001001010010100100110000000156011000010000100001000010000000256111000001001100100001111000000356111000001001100000101110000000456100101001010010011100001000000556111101000011100000101110000000656011001000011100100100110000000756111000001000010001100001000000856011001001001100100100110000000956011001001010010011100001000000:26001000100000;26001000101000<46001001001000010000100000=46000011100000111000000000>46100001000010010010000000?56111000001001100000000100000000@66011100100010101110101010011100000000A56011001001010010111101001000000B56111001001011100100101110000000C56011001001010000100100110000000D56111001001010010100101110000000E56111101000011000100001111000000F56111101000010000110001000000000G56011001000010110100100111000000H56100101001011110100101001000000I26101010101000J56000100001000010100100110000000K56100101001010010111001001000000L46100010001000100011100000M66100010100010110110101010100010000000N56100101001011010101101001000000O56011001001010010100100110000000P56111001001010010111001000000000Q56011001001010010100100110000010R56111001001010010111001001000000S56011101000001100000101110000000T46111001000100010001000000U56100101001010010100100110000000V56100101001010010101000100000000W66100010100010101010110110100010000000X56100101001001100100101001000000Y56100101001010010011100001001100Z56111100001001100100001111000000[36110100100100110000}46110001000010010011000000]36110010010010110000^46010010100000000000000000_46000000000000000011110000'26101000000000a56000000111010010100100111000000b56100001110010010100101110000000c46000001101000100001100000d56000100111010010100100111000000e56000000110010110110000110000000f46011010001000110010000000g5700000011001001010010011100001001100h56100001110010010100101001000000i26100010101000j37010000010010010010100k56100001001010010111001001000000l26101010101000m66000000111100101010101010101010000000n56000001110010010100101001000000o56000000110010010100100110000000p5700000111001001010010111001000010000q5700000011101001010010011100001000010r46000010101100100010000000s56000000111011000001101110000000t46100011001000100001100000u56000001001010010100100111000000v56000001001010010101000100000000w66000000101010101010101010011110000000x56000001001010010011001001000000y5700000100101001010010011100001001100z56000001111000100010001111000000{46011001001000010001100000|26101010101000}46110001000010010011000000~56010101010000000000000000000000\\46111010101010101011100000",i,1) == "1") { bd.setPixel32(1 + letterPos * 7 + px,1 + py,-1); } else { bd.setPixel32(1 + letterPos * 7 + px,1 + py,0); } } } ++i; ++letterPos; } return com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fromXNA("defaultFontKey",bd,letters); }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.getFontName = function(Data) { var fast = new haxe_xml_Fast(Data.firstElement()); var fontName = Std.string(fast.node.resolve("pages").node.resolve("page").att.resolve("file")); return fontName; }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.doesAngelCodeFontExist = function(Data) { var fontName = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.getFontName(Data); var font = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.get(fontName); return font != null; }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.getAngelCodeFont = function(Data) { var fontName = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.getFontName(Data); return com_firstplayable_hxlib_display_bitmapFont_BitmapFont.get(fontName); }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fromAngelCode = function(Source,Data) { var fast = new haxe_xml_Fast(Data.firstElement()); var fontName = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.getFontName(Data); var font = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.get(fontName); if(font != null) { return font; } font = new com_firstplayable_hxlib_display_bitmapFont_BitmapFont(fontName,Source); font.lineHeight = Std.parseInt(fast.node.resolve("common").att.resolve("lineHeight")); font.size = Std.parseInt(fast.node.resolve("info").att.resolve("size")); font.fontName = Std.string(fast.node.resolve("info").att.resolve("face")); font.bold = Std.parseInt(fast.node.resolve("info").att.resolve("bold")) != 0; font.italic = Std.parseInt(fast.node.resolve("info").att.resolve("italic")) != 0; var frame; var glyph; var charCode; var spaceCharCode = HxOverrides.cca(" ",0); var xOffset; var yOffset; var xAdvance; var frameHeight; var chars = fast.node.resolve("chars"); var _g_head = chars.nodes.resolve("char").h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var $char = val; frame = new openfl_geom_Rectangle(); frame.x = Std.parseInt($char.att.resolve("x")); frame.y = Std.parseInt($char.att.resolve("y")); frame.width = Std.parseInt($char.att.resolve("width")); frameHeight = Std.parseInt($char.att.resolve("height")); frame.height = frameHeight; if($char.has.resolve("xoffset")) { xOffset = Std.parseInt($char.att.resolve("xoffset")); } else { xOffset = 0; } if($char.has.resolve("yoffset")) { yOffset = Std.parseInt($char.att.resolve("yoffset")); } else { yOffset = 0; } if($char.has.resolve("xadvance")) { xAdvance = Std.parseInt($char.att.resolve("xadvance")); } else { xAdvance = 0; } font.minOffsetX = font.minOffsetX > xOffset ? xOffset : font.minOffsetX; glyph = null; charCode = -1; if($char.has.resolve("letter")) { glyph = $char.att.resolve("letter"); } else if($char.has.resolve("id")) { charCode = Std.parseInt($char.att.resolve("id")); } if(charCode == -1 && glyph == null) { throw new js__$Boot_HaxeError("Invalid font xml data!"); } if(glyph != null) { switch(glyph) { case "&": glyph = "&"; break; case ">": glyph = ">"; break; case "<": glyph = "<"; break; case """: glyph = "\""; break; case "space": glyph = " "; break; default: glyph = glyph; } charCode = HxOverrides.cca(glyph,0); } font.addGlyphFrame(charCode,frame,xOffset,yOffset,xAdvance); if(charCode == spaceCharCode) { font.spaceWidth = xAdvance; } else { font.lineHeight = font.lineHeight > frameHeight + yOffset ? font.lineHeight : frameHeight + yOffset; } } return font; }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fromXNA = function(key,source,letters,glyphBGColor) { if(glyphBGColor == null) { glyphBGColor = 0; } var font = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.get(key); if(font != null) { return font; } font = new com_firstplayable_hxlib_display_bitmapFont_BitmapFont(key,source); font.fontName = key; if(letters == null) { letters = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; } else { letters = letters; } var bmd = source; var globalBGColor = bmd.getPixel(0,0); var cy = 0; var cx; var letterIdx = 0; var charCode; var numLetters = letters.length; var rect; var xAdvance; while(cy < bmd.height && letterIdx < numLetters) { var rowHeight = 0; cx = 0; while(cx < bmd.width && letterIdx < numLetters) { if((bmd.getPixel(cx,cy) | 0) != globalBGColor) { var gx = cx; var gy = cy; while((bmd.getPixel(gx,cy) | 0) != globalBGColor) ++gx; while((bmd.getPixel(cx,gy) | 0) != globalBGColor) ++gy; var gw = gx - cx; var gh = gy - cy; charCode = HxOverrides.cca(letters,letterIdx); rect = new openfl_geom_Rectangle(cx,cy,gw,gh); xAdvance = gw; font.addGlyphFrame(charCode,rect,0,0,xAdvance); if(charCode == 32) { font.spaceWidth = xAdvance; } if(gh > rowHeight) { rowHeight = gh; } if(gh > font.size) { font.size = gh; } cx += gw; ++letterIdx; } ++cx; } cy += rowHeight + 1; } font.lineHeight = font.size; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.POINT.x = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.POINT.y = 0; var bgColor32 = bmd.getPixel32(0,0); com_firstplayable_hxlib_display_bitmapFont_BitmapFont.replaceColor(bmd,bgColor32,0); if(glyphBGColor != 0) { com_firstplayable_hxlib_display_bitmapFont_BitmapFont.replaceColor(bmd,glyphBGColor,0); } return font; }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.replaceColor = function(bitmapData,color,newColor) { var row = 0; var column = 0; var rows = bitmapData.height; var columns = bitmapData.width; bitmapData.lock(); while(row < rows) { column = 0; while(column < columns) { if(bitmapData.getPixel32(column,row) == color) { bitmapData.setPixel32(column,row,newColor); } ++column; } ++row; } bitmapData.unlock(); return bitmapData; }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fromMonospace = function(key,source,letters,charSize,region,spacing) { var font = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.get(key); if(font != null) { return font; } if(letters == null) { letters = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; } else { letters = letters; } if(region == null) { region = source.rect; } else { region = region; } if(region.width == 0 || region.get_right() > source.width) { region.width = source.width - region.x; } if(region.height == 0 || region.get_bottom() > source.height) { region.height = source.height - region.y; } if(spacing == null) { spacing = new openfl_geom_Point(0,0); } else { spacing = spacing; } var bitmapWidth = region.width | 0; var bitmapHeight = region.height | 0; var startX = region.x | 0; var startY = region.y | 0; var xSpacing = spacing.x | 0; var ySpacing = spacing.y | 0; var charWidth = charSize.x | 0; var charHeight = charSize.y | 0; var spacedWidth = charWidth + xSpacing; var spacedHeight = charHeight + ySpacing; var numRows = charHeight == 0 ? 1 : (bitmapHeight + ySpacing) / spacedHeight | 0; var numCols = charWidth == 0 ? 1 : (bitmapWidth + xSpacing) / spacedWidth | 0; font = new com_firstplayable_hxlib_display_bitmapFont_BitmapFont(key,source); font.fontName = key; font.lineHeight = font.size = charHeight; var charRect; var xAdvance = charWidth; font.spaceWidth = xAdvance; var letterIndex = 0; var numLetters = letters.length; var _g1 = 0; var _g = numRows; while(_g1 < _g) { var j = _g1++; var _g3 = 0; var _g2 = numCols; while(_g3 < _g2) { var i = _g3++; charRect = new openfl_geom_Rectangle(startX + i * spacedWidth,startY + j * spacedHeight,charWidth,charHeight); font.addGlyphFrame(HxOverrides.cca(letters,letterIndex),charRect,0,0,xAdvance); ++letterIndex; if(letterIndex >= numLetters) { return font; } } } return font; }; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.prototype = { size: null ,lineHeight: null ,bold: null ,italic: null ,fontName: null ,minOffsetX: null ,spaceWidth: null ,bitmap: null ,glyphs: null ,registerCount: null ,dispose: function() { var collectionsToRemove = []; var glyphCollectionName = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap.keys(); while(glyphCollectionName.hasNext()) { var glyphCollectionName1 = glyphCollectionName.next(); var _this = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; var glyphCollection = (__map_reserved[glyphCollectionName1] != null ? _this.getReserved(glyphCollectionName1) : _this.h[glyphCollectionName1]).collection; if(glyphCollection.font == this) { com_firstplayable_hxlib_Debug.logHelper("disposing font " + this.fontName + "\n that is relied on by glyph collection + " + glyphCollectionName1,com_firstplayable_hxlib_Severity.Warn,{ fileName : "BitmapFont.hx", lineNumber : 252, className : "com.firstplayable.hxlib.display.bitmapFont.BitmapFont", methodName : "dispose"}); collectionsToRemove.push(glyphCollectionName1); } } var _g = 0; while(_g < collectionsToRemove.length) { var collectionName = collectionsToRemove[_g]; ++_g; var _this1 = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; var collection = (__map_reserved[collectionName] != null ? _this1.getReserved(collectionName) : _this1.h[collectionName]).collection; collection.dispose(); com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap.remove(collectionName); } if(this.bitmap != null) { this.bitmap.dispose(); } this.bitmap = null; this.glyphs = null; this.fontName = null; } ,addGlyphFrame: function(charCode,frame,offsetX,offsetY,xAdvance) { if(xAdvance == null) { xAdvance = 0; } if(offsetY == null) { offsetY = 0; } if(offsetX == null) { offsetX = 0; } if(frame.width == 0 || frame.height == 0 || this.glyphs.h[charCode] != null) { return; } var glyphFrame = new com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphFrame(this); glyphFrame.charCode = charCode; glyphFrame.xoffset = offsetX; glyphFrame.yoffset = offsetY; glyphFrame.xadvance = xAdvance; glyphFrame.rect = frame; this.glyphs.h[charCode] = glyphFrame; } ,prepareGlyphs: function(scale,color,useColor,smoothing) { if(smoothing == null) { smoothing = true; } if(useColor == null) { useColor = true; } return com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.getGlyphCollection(this,scale,color,useColor,smoothing); } ,__class__: com_firstplayable_hxlib_display_bitmapFont_BitmapFont }; var com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphFrame = function(parent) { this.parent = parent; }; $hxClasses["com.firstplayable.hxlib.display.bitmapFont.BitmapGlyphFrame"] = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphFrame; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphFrame.__name__ = ["com","firstplayable","hxlib","display","bitmapFont","BitmapGlyphFrame"]; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphFrame.prototype = { parent: null ,charCode: null ,xoffset: null ,yoffset: null ,xadvance: null ,rect: null ,bitmap: null ,_bitmap: null ,tileID: null ,dispose: function() { this.rect = null; if(this._bitmap != null) { this._bitmap.dispose(); } this._bitmap = null; } ,get_bitmap: function() { if(this._bitmap != null) { return this._bitmap; } this._bitmap = new openfl_display_BitmapData(Math.ceil(this.rect.width),Math.ceil(this.rect.height),true,0); this._bitmap.copyPixels(this.parent.bitmap,this.rect,new openfl_geom_Point()); return this._bitmap; } ,__class__: com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphFrame ,__properties__: {get_bitmap:"get_bitmap"} }; var com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection = function(font,scale,color,useColor,smoothing) { if(smoothing == null) { smoothing = true; } if(useColor == null) { useColor = true; } this.spaceWidth = 0; this.minOffsetX = 0; this.glyphMap = new haxe_ds_IntMap(); this.glyphs = []; this.font = font; this.scale = scale; this.m_useColor = useColor; this.m_smoothing = smoothing; this.color = useColor ? color : -1; this.minOffsetX = font.minOffsetX * scale; this.generateGlyphs(smoothing); }; $hxClasses["com.firstplayable.hxlib.display.bitmapFont.BitmapGlyphCollection"] = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.__name__ = ["com","firstplayable","hxlib","display","bitmapFont","BitmapGlyphCollection"]; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.getGlyphCollectionMapKey = function(font,scale,color,useColor,smoothing) { if(smoothing == null) { smoothing = true; } if(useColor == null) { useColor = true; } if(font == null || font.fontName == null) { com_firstplayable_hxlib_Debug.logHelper("can't get collection map key for: " + Std.string(font) + "-" + scale + "-" + Std.string(_$UInt_UInt_$Impl_$.toFloat(color)) + "-" + (useColor == null ? "null" : "" + useColor) + "-" + (smoothing == null ? "null" : "" + smoothing),com_firstplayable_hxlib_Severity.Warn,{ fileName : "BitmapFont.hx", lineNumber : 879, className : "com.firstplayable.hxlib.display.bitmapFont.BitmapGlyphCollection", methodName : "getGlyphCollectionMapKey"}); return null; } return font.fontName + "-" + scale + "-" + Std.string(_$UInt_UInt_$Impl_$.toFloat(color)) + "-" + (useColor == null ? "null" : "" + useColor) + "-" + (smoothing == null ? "null" : "" + smoothing); }; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.getKeyFromGlyphCollection = function(collection) { return com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.getGlyphCollectionMapKey(collection.font,collection.scale,collection.color,collection.m_useColor,collection.m_smoothing); }; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.getGlyphCollection = function(font,scale,color,useColor,smoothing) { if(smoothing == null) { smoothing = true; } if(useColor == null) { useColor = true; } var key = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.getGlyphCollectionMapKey(font,scale,color,useColor,smoothing); if(key == null) { return null; } var _this = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; if(__map_reserved[key] != null ? _this.existsReserved(key) : _this.h.hasOwnProperty(key)) { var _this1 = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; var tmp = __map_reserved[key] != null ? _this1.getReserved(key) : _this1.h[key]; tmp.refCount++; var _this2 = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; return (__map_reserved[key] != null ? _this2.getReserved(key) : _this2.h[key]).collection; } else { var newCollectionEntry = { refCount : 1, collection : new com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection(font,scale,color,useColor,smoothing)}; var _this3 = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; if(__map_reserved[key] != null) { _this3.setReserved(key,newCollectionEntry); } else { _this3.h[key] = newCollectionEntry; } return newCollectionEntry.collection; } }; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.prototype = { minOffsetX: null ,glyphMap: null ,glyphs: null ,color: null ,scale: null ,spaceWidth: null ,font: null ,m_useColor: null ,m_smoothing: null ,generateGlyphs: function(smoothing) { if(smoothing == null) { smoothing = true; } var matrix = new openfl_geom_Matrix(); matrix.scale(this.scale,this.scale); var colorTransform = new openfl_geom_ColorTransform(); colorTransform.redMultiplier = _$UInt_UInt_$Impl_$.toFloat(this.color >>> 16 & 255) / _$UInt_UInt_$Impl_$.toFloat(255); colorTransform.greenMultiplier = _$UInt_UInt_$Impl_$.toFloat(this.color >>> 8 & 255) / _$UInt_UInt_$Impl_$.toFloat(255); colorTransform.blueMultiplier = _$UInt_UInt_$Impl_$.toFloat(this.color & 255) / _$UInt_UInt_$Impl_$.toFloat(255); colorTransform.alphaMultiplier = _$UInt_UInt_$Impl_$.toFloat(this.color >>> 24 & 255) / _$UInt_UInt_$Impl_$.toFloat(255); var glyphBD; var preparedBD; var glyph; var preparedGlyph; var bdWidth; var bdHeight; var offsetX; var offsetY; var xAdvance; this.spaceWidth = this.font.spaceWidth * this.scale; if(this.font.glyphs == null) { com_firstplayable_hxlib_Debug.logHelper("font has no glyphs!!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "BitmapFont.hx", lineNumber : 999, className : "com.firstplayable.hxlib.display.bitmapFont.BitmapGlyphCollection", methodName : "generateGlyphs"}); return; } var glyph1 = this.font.glyphs.iterator(); while(glyph1.hasNext()) { var glyph2 = glyph1.next(); glyphBD = glyph2.get_bitmap(); bdWidth = Math.ceil(glyphBD.width * this.scale); bdHeight = Math.ceil(glyphBD.height * this.scale); if(bdWidth > 0) { bdWidth = bdWidth; } else { bdWidth = 1; } if(bdHeight > 0) { bdHeight = bdHeight; } else { bdHeight = 1; } preparedBD = new openfl_display_BitmapData(bdWidth,bdHeight,true,0); preparedBD.draw(glyphBD,matrix,null,null,null,smoothing); preparedBD.colorTransform(preparedBD.rect,colorTransform); offsetX = Math.ceil(glyph2.xoffset * this.scale); offsetY = Math.ceil(glyph2.yoffset * this.scale); xAdvance = Math.ceil(glyph2.xadvance * this.scale); preparedGlyph = new com_firstplayable_hxlib_display_bitmapFont_BitmapGlyph(glyph2.charCode,preparedBD,offsetX,offsetY,xAdvance); this.glyphs.push(preparedGlyph); this.glyphMap.h[preparedGlyph.charCode] = preparedGlyph; } } ,dispose: function() { if(this.glyphs == null && this.glyphMap == null && this.font == null) { return; } var collectionKey = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.getKeyFromGlyphCollection(this); var _this = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; if(__map_reserved[collectionKey] != null ? _this.existsReserved(collectionKey) : _this.h.hasOwnProperty(collectionKey)) { var _this1 = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; var tmp = __map_reserved[collectionKey] != null ? _this1.getReserved(collectionKey) : _this1.h[collectionKey]; tmp.refCount--; var _this2 = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap; if((__map_reserved[collectionKey] != null ? _this2.getReserved(collectionKey) : _this2.h[collectionKey]).refCount > 0) { return; } else { com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap.remove(collectionKey); } } else { com_firstplayable_hxlib_Debug.log("glyph collection " + collectionKey + " was disposed, but not in collection!",null,{ fileName : "BitmapFont.hx", lineNumber : 1066, className : "com.firstplayable.hxlib.display.bitmapFont.BitmapGlyphCollection", methodName : "dispose"}); return; } if(this.glyphs != null) { var _g = 0; var _g1 = this.glyphs; while(_g < _g1.length) { var glyph = _g1[_g]; ++_g; glyph.dispose(); } } this.glyphs = null; this.glyphMap = null; this.font = null; } ,__class__: com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection }; var com_firstplayable_hxlib_display_bitmapFont_BitmapGlyph = function(charCode,bmd,offsetX,offsetY,xAdvance) { if(xAdvance == null) { xAdvance = 0; } if(offsetY == null) { offsetY = 0; } if(offsetX == null) { offsetX = 0; } this.xAdvance = 0; this.offsetY = 0; this.offsetX = 0; this.charCode = charCode; this.bitmap = bmd; this.offsetX = offsetX; this.offsetY = offsetY; this.xAdvance = xAdvance; this.rect = bmd.rect; }; $hxClasses["com.firstplayable.hxlib.display.bitmapFont.BitmapGlyph"] = com_firstplayable_hxlib_display_bitmapFont_BitmapGlyph; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyph.__name__ = ["com","firstplayable","hxlib","display","bitmapFont","BitmapGlyph"]; com_firstplayable_hxlib_display_bitmapFont_BitmapGlyph.prototype = { charCode: null ,bitmap: null ,offsetX: null ,offsetY: null ,xAdvance: null ,rect: null ,dispose: function() { if(this.bitmap != null) { this.bitmap.dispose(); } this.bitmap = null; } ,__class__: com_firstplayable_hxlib_display_bitmapFont_BitmapGlyph }; var com_firstplayable_hxlib_display_bitmapFont_BitmapTextField = function(font,text,pixelSnapping,smoothing) { if(smoothing == null) { smoothing = true; } if(text == null) { text = ""; } this._fieldHeight = 1; this._fieldWidth = 1; this._pendingBorderGlyphsChange = false; this._pendingTextGlyphsChange = true; this._pendingGraphicChange = true; this._pendingTextChange = true; this.updateImmediately = true; this.size = 1; this.numLines = 0; this.multiLine = true; this.backgroundColor = 0; this.background = false; this.borderQuality = 0; this.borderSize = 1; this.borderColor = -16777216; this.borderStyle = com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.NONE; this.useTextColor = false; this.textColor = -1; this._tabSpaces = " "; this.numSpacesInTab = 4; this.padding = 0; this.autoSize = true; this.wrapByWord = true; this.wordWrap = true; this.autoUpperCase = false; this.letterSpacing = 0; this.lineSpacing = 0; this.alignment = "left"; this._linesWidth = []; this._lines = []; this.text = ""; openfl_display_Sprite.call(this); this.shadowOffset = new openfl_geom_Point(1,1); if(pixelSnapping == null) { pixelSnapping = 1; } else { pixelSnapping = pixelSnapping; } this._bitmapData = new openfl_display_BitmapData(this._fieldWidth,this._fieldHeight,true,0); this._bitmap = new openfl_display_Bitmap(this._bitmapData,pixelSnapping,smoothing); this.addChild(this._bitmap); this._point = new openfl_geom_Point(); if(font == null) { font = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.getDefaultFont(); } this.set_font(font); this.set_text(text); this.set_smoothing(smoothing); this.mouseEnabled = false; this.mouseChildren = false; }; $hxClasses["com.firstplayable.hxlib.display.bitmapFont.BitmapTextField"] = com_firstplayable_hxlib_display_bitmapFont_BitmapTextField; com_firstplayable_hxlib_display_bitmapFont_BitmapTextField.__name__ = ["com","firstplayable","hxlib","display","bitmapFont","BitmapTextField"]; com_firstplayable_hxlib_display_bitmapFont_BitmapTextField.__super__ = openfl_display_Sprite; com_firstplayable_hxlib_display_bitmapFont_BitmapTextField.prototype = $extend(openfl_display_Sprite.prototype,{ font: null ,text: null ,_lines: null ,_linesWidth: null ,alignment: null ,lineSpacing: null ,letterSpacing: null ,autoUpperCase: null ,wordWrap: null ,wrapByWord: null ,autoSize: null ,padding: null ,textWidth: null ,textHeight: null ,lineHeight: null ,numSpacesInTab: null ,_tabSpaces: null ,textColor: null ,useTextColor: null ,borderStyle: null ,borderColor: null ,borderSize: null ,borderQuality: null ,shadowOffset: null ,background: null ,backgroundColor: null ,multiLine: null ,numLines: null ,size: null ,smoothing: null ,updateImmediately: null ,_pendingTextChange: null ,_pendingGraphicChange: null ,_pendingTextGlyphsChange: null ,_pendingBorderGlyphsChange: null ,_fieldWidth: null ,_fieldHeight: null ,_bitmap: null ,_bitmapData: null ,textGlyphs: null ,borderGlyphs: null ,_point: null ,dispose: function() { this.set_updateImmediately(false); this.set_font(null); this.set_text(null); this._lines = null; this._linesWidth = null; this.shadowOffset = null; this._point = null; if(this.textGlyphs != null) { this.textGlyphs.dispose(); } this.textGlyphs = null; if(this.borderGlyphs != null) { this.borderGlyphs.dispose(); } this.borderGlyphs = null; if(this._bitmap != null) { this.removeChild(this._bitmap); } this._bitmap = null; if(this._bitmapData != null) { this._bitmapData.dispose(); } this._bitmapData = null; } ,forceGraphicUpdate: function() { this._pendingGraphicChange = true; if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } ,checkImmediateChanges: function() { if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } ,checkPendingChanges: function() { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } ,set_textColor: function(value) { if(this.textColor != value) { this.textColor = value; this._pendingTextGlyphsChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_useTextColor: function(value) { if(this.useTextColor != value) { this.useTextColor = value; this._pendingTextGlyphsChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_text: function(value) { if(value != this.text && value != null) { this.text = value; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,updateText: function() { var tmp = this.autoUpperCase ? this.text.toUpperCase() : this.text; this._lines = tmp.split("\n"); if(!this.autoSize) { if(this.wordWrap) { this.wrap(); } else { this.cutLines(); } } if(!this.multiLine) { this._lines = [this._lines[0]]; } this._pendingTextChange = false; this._pendingGraphicChange = true; } ,computeTextSize: function() { var txtWidth = Math.ceil(this._fieldWidth); var txtHeight = Math.ceil(this._fieldHeight); var tw = Math.ceil(this.get_textWidth()); if(this.autoSize) { txtWidth = tw + 2 * this.padding; txtHeight = Math.ceil(this.get_textHeight()) + 2 * this.padding; } else { txtWidth = Math.ceil(this._fieldWidth); txtHeight = Math.ceil(this._fieldHeight); } this._fieldWidth = txtWidth == 0 ? 1 : txtWidth; this._fieldHeight = txtHeight == 0 ? 1 : txtHeight; } ,getLineWidth: function(lineIndex) { if(lineIndex < 0 || lineIndex >= this._lines.length) { return 0; } return this.getStringWidth(this._lines[lineIndex]); } ,getStringWidth: function(str) { var spaceWidth = Math.ceil(this.font.spaceWidth * this.size); var tabWidth = Math.ceil(spaceWidth * this.numSpacesInTab); var lineLength = str.length; var lineWidth = Math.ceil(Math.abs(this.font.minOffsetX) * this.size); var charCode; var charWidth = 0; var widthPlusOffset = 0; var glyphFrame; var _g1 = 0; var _g = lineLength; while(_g1 < _g) { var c = _g1++; charCode = HxOverrides.cca(str,c); if(charCode == 32) { charWidth = spaceWidth; } else if(charCode == 9) { charWidth = tabWidth; } else if(this.font.glyphs.h.hasOwnProperty(charCode)) { glyphFrame = this.font.glyphs.h[charCode]; charWidth = Math.ceil(glyphFrame.xadvance * this.size); if(c == lineLength - 1) { widthPlusOffset = Math.ceil((glyphFrame.xoffset + glyphFrame.get_bitmap().width) * this.size); if(widthPlusOffset > charWidth) { charWidth = widthPlusOffset; } } } else { charWidth = 0; } lineWidth += charWidth + this.letterSpacing; } if(lineLength > 0) { lineWidth -= this.letterSpacing; } return lineWidth; } ,cutLines: function() { var newLines = []; var lineLength; var c; var $char; var charCode; var charWidth = 0; var subLine; var subLineWidth; var spaceWidth = this.font.spaceWidth * this.size; var tabWidth = spaceWidth * this.numSpacesInTab; var startX = Math.abs(this.font.minOffsetX) * this.size; var _g = 0; var _g1 = this._lines; while(_g < _g1.length) { var line = _g1[_g]; ++_g; lineLength = line.length; subLine = new haxe_Utf8(); subLineWidth = startX; c = 0; while(c < lineLength) { charCode = HxOverrides.cca(line,c); if(charCode == 32) { charWidth = spaceWidth; } else if(charCode == 9) { charWidth = tabWidth; } else if(this.font.glyphs.h.hasOwnProperty(charCode)) { charWidth = this.font.glyphs.h[charCode].xadvance * this.size; } else { charWidth = 0; } charWidth += this.letterSpacing; if(subLineWidth + charWidth > this._fieldWidth - 2 * this.padding) { subLine.__b += String.fromCharCode(charCode); newLines.push(subLine.__b); subLine = new haxe_Utf8(); subLineWidth = startX; c = lineLength; } else { subLine.__b += String.fromCharCode(charCode); subLineWidth += charWidth; } ++c; } } this._lines = newLines; } ,wrap: function() { var newLines = []; var words; var _g = 0; var _g1 = this._lines; while(_g < _g1.length) { var line = _g1[_g]; ++_g; words = []; this.splitLineIntoWords(line,words); if(this.wrapByWord) { this.wrapLineByWord(words,newLines); } else { this.wrapLineByCharacter(words,newLines); } } this._lines = newLines; } ,splitLineIntoWords: function(line,words) { var word = ""; var wordUtf8 = new haxe_Utf8(); var isSpaceWord = false; var lineLength = line.length; var hyphenCode = HxOverrides.cca("-",0); var c = 0; var charCode; var charUtf8; while(c < lineLength) { charCode = HxOverrides.cca(line,c); word = wordUtf8.__b; if(charCode == 32 || charCode == 9) { if(!isSpaceWord) { isSpaceWord = true; if(word != "") { words.push(word); wordUtf8 = new haxe_Utf8(); } } wordUtf8.__b += String.fromCharCode(charCode); } else if(charCode == hyphenCode) { if(isSpaceWord && word != "") { isSpaceWord = false; words.push(word); words.push("-"); } else if(isSpaceWord == false) { charUtf8 = new haxe_Utf8(); charUtf8.__b += String.fromCharCode(charCode); words.push(word + charUtf8.__b); } wordUtf8 = new haxe_Utf8(); } else { if(isSpaceWord && word != "") { isSpaceWord = false; words.push(word); wordUtf8 = new haxe_Utf8(); } wordUtf8.__b += String.fromCharCode(charCode); } ++c; } word = wordUtf8.__b; if(word != "") { words.push(word); } } ,wrapLineByWord: function(words,newLines) { var numWords = words.length; var w; var word; var wordWidth; var wordLength; var isSpaceWord = false; var charCode; var charWidth = 0; var subLines = []; var subLine; var subLineWidth; var spaceWidth = this.font.spaceWidth * this.size; var tabWidth = spaceWidth * this.numSpacesInTab; var startX = Math.abs(this.font.minOffsetX) * this.size; if(numWords > 0) { w = 0; subLineWidth = startX; subLine = ""; while(w < numWords) { wordWidth = 0; word = words[w]; wordLength = word.length; charCode = HxOverrides.cca(word,0); if(charCode != 32) { isSpaceWord = charCode == 9; } else { isSpaceWord = true; } var _g1 = 0; var _g = wordLength; while(_g1 < _g) { var c = _g1++; charCode = HxOverrides.cca(word,c); if(charCode == 32) { charWidth = spaceWidth; } else if(charCode == 9) { charWidth = tabWidth; } else if(this.font.glyphs.h.hasOwnProperty(charCode)) { charWidth = this.font.glyphs.h[charCode].xadvance * this.size; } else { charWidth = 0; } wordWidth += charWidth; } wordWidth += (wordLength - 1) * this.letterSpacing; if(subLineWidth + wordWidth > this._fieldWidth - 2 * this.padding) { if(isSpaceWord) { subLines.push(subLine); subLine = ""; subLineWidth = startX; } else if(subLine != "") { subLines.push(subLine); subLine = word; subLineWidth = startX + wordWidth + this.letterSpacing; } else { subLine = word; subLineWidth = startX + wordWidth + this.letterSpacing; } } else { subLine += word; subLineWidth += wordWidth + this.letterSpacing; } ++w; } if(subLine != "") { subLines.push(subLine); } } var _g2 = 0; while(_g2 < subLines.length) { var subline = subLines[_g2]; ++_g2; newLines.push(subline); } } ,wrapLineByCharacter: function(words,newLines) { var numWords = words.length; var w; var word; var wordLength; var isSpaceWord = false; var $char; var charCode; var c; var charWidth = 0; var subLines = []; var subLine; var subLineUtf8; var subLineWidth; var spaceWidth = this.font.spaceWidth * this.size; var tabWidth = spaceWidth * this.numSpacesInTab; var startX = Math.abs(this.font.minOffsetX) * this.size; if(numWords > 0) { w = 0; subLineWidth = startX; subLineUtf8 = new haxe_Utf8(); while(w < numWords) { word = words[w]; wordLength = word.length; charCode = HxOverrides.cca(word,0); if(charCode != 32) { isSpaceWord = charCode == 9; } else { isSpaceWord = true; } c = 0; while(c < wordLength) { charCode = HxOverrides.cca(word,c); if(charCode == 32) { charWidth = spaceWidth; } else if(charCode == 9) { charWidth = tabWidth; } else if(this.font.glyphs.h.hasOwnProperty(charCode)) { charWidth = this.font.glyphs.h[charCode].xadvance * this.size; } else { charWidth = 0; } if(subLineWidth + charWidth > this._fieldWidth - 2 * this.padding) { subLine = subLineUtf8.__b; if(isSpaceWord) { subLines.push(subLine); c = wordLength; subLineUtf8 = new haxe_Utf8(); subLineWidth = startX; } else if(subLine != "") { subLines.push(subLine); subLineUtf8 = new haxe_Utf8(); subLineUtf8.__b += String.fromCharCode(charCode); subLineWidth = startX + charWidth + this.letterSpacing; } else { subLineUtf8 = new haxe_Utf8(); subLineUtf8.__b += String.fromCharCode(charCode); subLineWidth = startX + charWidth + this.letterSpacing; } } else { subLineUtf8.__b += String.fromCharCode(charCode); subLineWidth += charWidth + this.letterSpacing; } ++c; } ++w; } subLine = subLineUtf8.__b; if(subLine != "") { subLines.push(subLine); } } var _g = 0; while(_g < subLines.length) { var subline = subLines[_g]; ++_g; newLines.push(subline); } } ,updateGraphic: function() { this.computeTextSize(); var colorForFill = this.background ? this.backgroundColor : 0; if(this._bitmapData == null || (this._fieldWidth != this._bitmapData.width || this._fieldHeight != this._bitmapData.height)) { if(this._bitmapData != null) { this._bitmapData.dispose(); } this._bitmapData = new openfl_display_BitmapData(this._fieldWidth,this._fieldHeight,true,colorForFill); this._bitmap.set_bitmapData(this._bitmapData); this._bitmap.smoothing = this.smoothing; } else { this._bitmapData.fillRect(this._bitmapData.rect,colorForFill); } if(this.size > 0) { this._bitmapData.lock(); var numLines = this._lines.length; var line; var lineWidth; var ox; var oy; var iterations = this.borderSize * this.borderQuality | 0; if(iterations <= 0) { iterations = 1; } else { iterations = iterations; } var delta = this.borderSize / iterations | 0; var iterationsX = 1; var iterationsY = 1; var deltaX = 1; var deltaY = 1; if(this.borderStyle == com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.SHADOW) { iterationsX = Math.round(Math.abs(this.shadowOffset.x) * this.borderQuality); if(iterationsX <= 0) { iterationsX = 1; } else { iterationsX = iterationsX; } iterationsY = Math.round(Math.abs(this.shadowOffset.y) * this.borderQuality); if(iterationsY <= 0) { iterationsY = 1; } else { iterationsY = iterationsY; } deltaX = Math.round(this.shadowOffset.x / iterationsX); deltaY = Math.round(this.shadowOffset.y / iterationsY); } var _g1 = 0; var _g = numLines; while(_g1 < _g) { var i = _g1++; line = this._lines[i]; lineWidth = this._linesWidth[i]; ox = Math.abs(this.font.minOffsetX) * this.size | 0; oy = (i * (this.font.lineHeight * this.size + this.lineSpacing) | 0) + this.padding; if(this.alignment == "center") { ox += ((this._fieldWidth - lineWidth) / 2 | 0) - this.padding; } if(this.alignment == "right") { ox += this._fieldWidth - (lineWidth | 0) - this.padding; } else { ox += this.padding; } var _g2 = this.borderStyle; switch(_g2[1]) { case 0: break; case 1: var _g3 = 0; var _g21 = iterationsY; while(_g3 < _g21) { var iterY = _g3++; var _g5 = 0; var _g4 = iterationsX; while(_g5 < _g4) { var iterX = _g5++; this.blitLine(line,this.borderGlyphs,ox + deltaX * (iterX + 1),oy + deltaY * (iterY + 1)); } } break; case 2: var itd = 0; var _g31 = 0; var _g22 = iterations; while(_g31 < _g22) { var iter = _g31++; itd = delta * (iter + 1); this.blitLine(line,this.borderGlyphs,ox - itd,oy - itd); this.blitLine(line,this.borderGlyphs,ox,oy - itd); this.blitLine(line,this.borderGlyphs,ox + itd,oy - itd); this.blitLine(line,this.borderGlyphs,ox - itd,oy); this.blitLine(line,this.borderGlyphs,ox + itd,oy); this.blitLine(line,this.borderGlyphs,ox - itd,oy + itd); this.blitLine(line,this.borderGlyphs,ox,oy + itd); this.blitLine(line,this.borderGlyphs,ox + itd,oy + itd); } break; case 3: var itd1 = 0; var _g32 = 0; var _g23 = iterations; while(_g32 < _g23) { var iter1 = _g32++; itd1 = delta * (iter1 + 1); this.blitLine(line,this.borderGlyphs,ox - itd1,oy - itd1); this.blitLine(line,this.borderGlyphs,ox + itd1,oy - itd1); this.blitLine(line,this.borderGlyphs,ox - itd1,oy + itd1); this.blitLine(line,this.borderGlyphs,ox + itd1,oy + itd1); } break; } } var _g11 = 0; var _g6 = numLines; while(_g11 < _g6) { var i1 = _g11++; line = this._lines[i1]; lineWidth = this._linesWidth[i1]; ox = Math.abs(this.font.minOffsetX) * this.size | 0; oy = (i1 * (this.font.lineHeight * this.size + this.lineSpacing) | 0) + this.padding; if(!this.autoSize && oy >= this._fieldHeight) { break; } if(this.alignment == "center") { ox += ((this._fieldWidth - lineWidth) / 2 | 0) - this.padding; } if(this.alignment == "right") { ox += this._fieldWidth - (lineWidth | 0) - this.padding; } else { ox += this.padding; } this.blitLine(line,this.textGlyphs,ox,oy); } this._bitmapData.unlock(); } this._pendingGraphicChange = false; } ,blitLine: function(line,glyphs,startX,startY) { if(glyphs == null) { return; } var glyph; var charCode; var curX = startX; var curY = startY; var spaceWidth = this.font.spaceWidth * this.size | 0; var tabWidth = spaceWidth * this.numSpacesInTab | 0; var lineLength = line.length; var _g1 = 0; var _g = lineLength; while(_g1 < _g) { var i = _g1++; charCode = HxOverrides.cca(line,i); if(charCode == 32) { curX += spaceWidth; } else if(charCode == 9) { curX += tabWidth; } else { glyph = glyphs.glyphMap.h[charCode]; if(glyph != null) { this._point.x = curX + glyph.offsetX; this._point.y = curY + glyph.offsetY; this._bitmapData.copyPixels(glyph.bitmap,glyph.rect,this._point,null,null,true); curX += glyph.xAdvance; } } curX += this.letterSpacing; } } ,setBorderStyle: function(Style,Color,Size,Quality) { if(Quality == null) { Quality = 1; } if(Size == null) { Size = 1; } if(Color == null) { Color = -1; } this.set_borderStyle(Style); this.set_borderColor(Color); this.set_borderSize(Size); this.set_borderQuality(Quality); if(this.borderStyle == com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.SHADOW) { this.shadowOffset.setTo(this.borderSize,this.borderSize); } this._pendingGraphicChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } ,set_width: function(value) { value = value | 0; value = Math.max(1,value); if(value != this.get_width()) { this._fieldWidth = value == 0 ? 1 : value | 0; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_height: function(value) { value = value | 0; value = Math.max(1,value); if(value != this.get_height()) { this._fieldHeight = value | 0; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_alignment: function(value) { if(this.alignment != value) { this.alignment = value; this._pendingGraphicChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_multiLine: function(value) { if(this.multiLine != value) { this.multiLine = value; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_font: function(value) { if(this.font != value && value != null) { this.font = value; this._pendingTextChange = true; this._pendingBorderGlyphsChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_lineSpacing: function(value) { if(this.lineSpacing != value) { this.lineSpacing = value | 0; this._pendingGraphicChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return this.lineSpacing; } ,set_letterSpacing: function(value) { var tmp = Math.abs(value) | 0; if(tmp != this.letterSpacing) { this.letterSpacing = tmp; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return this.letterSpacing; } ,set_autoUpperCase: function(value) { if(this.autoUpperCase != value) { this.autoUpperCase = value; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return this.autoUpperCase; } ,set_wordWrap: function(value) { if(this.wordWrap != value) { this.wordWrap = value; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return this.wordWrap; } ,set_wrapByWord: function(value) { if(this.wrapByWord != value) { this.wrapByWord = value; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_autoSize: function(value) { if(this.autoSize != value) { this.autoSize = value; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return this.autoSize; } ,set_size: function(value) { var tmp = Math.abs(value); if(tmp != this.size) { this.size = tmp; this._pendingTextGlyphsChange = true; this._pendingBorderGlyphsChange = true; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_padding: function(value) { if(value != this.padding) { this.padding = value; this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_numSpacesInTab: function(value) { if(this.numSpacesInTab != value && value > 0) { this.numSpacesInTab = value; this._tabSpaces = ""; var _g1 = 0; var _g = value; while(_g1 < _g) { var i = _g1++; this._tabSpaces += " "; } this._pendingTextChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_background: function(value) { if(this.background != value) { this.background = value; this._pendingGraphicChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_backgroundColor: function(value) { if(this.backgroundColor != value) { this.backgroundColor = value; this._pendingGraphicChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_borderStyle: function(style) { if(style != this.borderStyle) { this.borderStyle = style; this._pendingBorderGlyphsChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return this.borderStyle; } ,set_borderColor: function(value) { if(this.borderColor != value) { this.borderColor = value; this._pendingBorderGlyphsChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_borderSize: function(value) { if(value != this.borderSize) { this.borderSize = value; if(this.borderStyle != com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.NONE) { this._pendingGraphicChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } } return value; } ,set_borderQuality: function(value) { value = Math.min(1,Math.max(0,value)); if(value != this.borderQuality) { this.borderQuality = value; if(this.borderStyle != com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.NONE) { this._pendingGraphicChange = true; if(this.updateImmediately) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } } return value; } ,get_numLines: function() { return this._lines.length; } ,get_textWidth: function() { var max = 0; var numLines = this._lines.length; var lineWidth; this._linesWidth = []; var _g1 = 0; var _g = numLines; while(_g1 < _g) { var i = _g1++; lineWidth = this.getLineWidth(i); this._linesWidth[i] = lineWidth; max = Math.max(max,lineWidth); } return max; } ,get_textHeight: function() { return (this.get_lineHeight() + this.lineSpacing) * this._lines.length - this.lineSpacing; } ,get_lineHeight: function() { return this.font.lineHeight * this.size; } ,set_updateImmediately: function(value) { if(this.updateImmediately != value) { this.updateImmediately = value; if(value) { if(this._pendingTextGlyphsChange) { this.updateTextGlyphs(); } if(this._pendingBorderGlyphsChange) { this.updateBorderGlyphs(); } if(this._pendingTextChange) { this.updateText(); this._pendingGraphicChange = true; } if(this._pendingGraphicChange) { this.updateGraphic(); } } } return value; } ,set_smoothing: function(value) { this._bitmap.smoothing = value; return this.smoothing = value; } ,updateTextGlyphs: function() { if(this.font == null) { return; } if(this.textGlyphs != null) { this.textGlyphs.dispose(); } this.textGlyphs = this.font.prepareGlyphs(this.size,this.textColor,this.useTextColor,this.smoothing); this._pendingTextGlyphsChange = false; this._pendingGraphicChange = true; } ,updateBorderGlyphs: function() { if(this.font != null && (this.borderGlyphs == null || this.borderColor != this.borderGlyphs.color || this.size != this.borderGlyphs.scale || this.font != this.borderGlyphs.font)) { if(this.borderGlyphs != null) { this.borderGlyphs.dispose(); } this.borderGlyphs = this.font.prepareGlyphs(this.size,this.borderColor,true,this.smoothing); } this._pendingBorderGlyphsChange = false; this._pendingGraphicChange = true; } ,__class__: com_firstplayable_hxlib_display_bitmapFont_BitmapTextField ,__properties__: $extend(openfl_display_Sprite.prototype.__properties__,{set_updateImmediately:"set_updateImmediately",set_smoothing:"set_smoothing",set_size:"set_size",get_numLines:"get_numLines",set_multiLine:"set_multiLine",set_backgroundColor:"set_backgroundColor",set_background:"set_background",set_borderQuality:"set_borderQuality",set_borderSize:"set_borderSize",set_borderColor:"set_borderColor",set_borderStyle:"set_borderStyle",set_useTextColor:"set_useTextColor",set_textColor:"set_textColor",set_numSpacesInTab:"set_numSpacesInTab",get_lineHeight:"get_lineHeight",get_textHeight:"get_textHeight",get_textWidth:"get_textWidth",set_padding:"set_padding",set_autoSize:"set_autoSize",set_wrapByWord:"set_wrapByWord",set_wordWrap:"set_wordWrap",set_autoUpperCase:"set_autoUpperCase",set_letterSpacing:"set_letterSpacing",set_lineSpacing:"set_lineSpacing",set_alignment:"set_alignment",set_text:"set_text",set_font:"set_font"}) }); var com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle = $hxClasses["com.firstplayable.hxlib.display.bitmapFont.TextBorderStyle"] = { __ename__ : ["com","firstplayable","hxlib","display","bitmapFont","TextBorderStyle"], __constructs__ : ["NONE","SHADOW","OUTLINE","OUTLINE_FAST"] }; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.NONE = ["NONE",0]; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.NONE.toString = $estr; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.NONE.__enum__ = com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.SHADOW = ["SHADOW",1]; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.SHADOW.toString = $estr; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.SHADOW.__enum__ = com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE = ["OUTLINE",2]; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE.toString = $estr; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE.__enum__ = com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE_FAST = ["OUTLINE_FAST",3]; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE_FAST.toString = $estr; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE_FAST.__enum__ = com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle; com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.__empty_constructs__ = [com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.NONE,com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.SHADOW,com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE,com_firstplayable_hxlib_display_bitmapFont_TextBorderStyle.OUTLINE_FAST]; var openfl_events_Event = function(type,bubbles,cancelable) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } this.type = type; this.bubbles = bubbles; this.cancelable = cancelable; this.eventPhase = 2; }; $hxClasses["openfl.events.Event"] = openfl_events_Event; openfl_events_Event.__name__ = ["openfl","events","Event"]; openfl_events_Event.prototype = { bubbles: null ,cancelable: null ,currentTarget: null ,eventPhase: null ,target: null ,type: null ,__isCanceled: null ,__isCanceledNow: null ,__preventDefault: null ,clone: function() { var event = new openfl_events_Event(this.type,this.bubbles,this.cancelable); event.eventPhase = this.eventPhase; event.target = this.target; event.currentTarget = this.currentTarget; return event; } ,formatToString: function(className,p1,p2,p3,p4,p5) { var parameters = []; if(p1 != null) { parameters.push(p1); } if(p2 != null) { parameters.push(p2); } if(p3 != null) { parameters.push(p3); } if(p4 != null) { parameters.push(p4); } if(p5 != null) { parameters.push(p5); } return $bind(this,this.__formatToString).apply(this,[className,parameters]); } ,isDefaultPrevented: function() { return this.__preventDefault; } ,preventDefault: function() { if(this.cancelable) { this.__preventDefault = true; } } ,stopImmediatePropagation: function() { this.__isCanceled = true; this.__isCanceledNow = true; } ,stopPropagation: function() { this.__isCanceled = true; } ,toString: function() { return this.__formatToString("Event",["type","bubbles","cancelable"]); } ,__formatToString: function(className,parameters) { var output = "[" + className; var arg = null; var _g = 0; while(_g < parameters.length) { var param = parameters[_g]; ++_g; arg = Reflect.field(this,param); if(typeof(arg) == "string") { output += " " + param + "=\"" + Std.string(arg) + "\""; } else { output += " " + param + "=" + Std.string(arg); } } output += "]"; return output; } ,__class__: openfl_events_Event }; var com_firstplayable_hxlib_events_AnimEvent = function(type,bubbles,cancelable) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); }; $hxClasses["com.firstplayable.hxlib.events.AnimEvent"] = com_firstplayable_hxlib_events_AnimEvent; com_firstplayable_hxlib_events_AnimEvent.__name__ = ["com","firstplayable","hxlib","events","AnimEvent"]; com_firstplayable_hxlib_events_AnimEvent.__super__ = openfl_events_Event; com_firstplayable_hxlib_events_AnimEvent.prototype = $extend(openfl_events_Event.prototype,{ __class__: com_firstplayable_hxlib_events_AnimEvent }); var com_firstplayable_hxlib_events_VolumeChangedEvent = function(type,vol) { openfl_events_Event.call(this,type); this.volume = vol; }; $hxClasses["com.firstplayable.hxlib.events.VolumeChangedEvent"] = com_firstplayable_hxlib_events_VolumeChangedEvent; com_firstplayable_hxlib_events_VolumeChangedEvent.__name__ = ["com","firstplayable","hxlib","events","VolumeChangedEvent"]; com_firstplayable_hxlib_events_VolumeChangedEvent.__super__ = openfl_events_Event; com_firstplayable_hxlib_events_VolumeChangedEvent.prototype = $extend(openfl_events_Event.prototype,{ volume: null ,clone: function() { return new com_firstplayable_hxlib_events_VolumeChangedEvent(this.type,this.volume); } ,__class__: com_firstplayable_hxlib_events_VolumeChangedEvent }); var com_firstplayable_hxlib_loader_ResMan = function() { this.urisuffix = null; this.uriprefix = ""; this.m_pathMap = null; this.m_curLoadURI = null; this.m_collections = new haxe_ds_StringMap(); this.m_collectionsLoaded = new haxe_ds_StringMap(); this.m_assets = new haxe_ds_StringMap(); this.m_loadOrder = []; this.m_numLoads = 0; this.m_expectedLoads = 0; this.createMissingAssets(); }; $hxClasses["com.firstplayable.hxlib.loader.ResMan"] = com_firstplayable_hxlib_loader_ResMan; com_firstplayable_hxlib_loader_ResMan.__name__ = ["com","firstplayable","hxlib","loader","ResMan"]; com_firstplayable_hxlib_loader_ResMan.__properties__ = {get_instance:"get_instance"}; com_firstplayable_hxlib_loader_ResMan.get_instance = function() { if(com_firstplayable_hxlib_loader_ResMan.instance == null) { com_firstplayable_hxlib_loader_ResMan.instance = new com_firstplayable_hxlib_loader_ResMan(); } return com_firstplayable_hxlib_loader_ResMan.instance; }; com_firstplayable_hxlib_loader_ResMan.prototype = { m_collections: null ,m_collectionsLoaded: null ,m_assets: null ,m_expectedLoads: null ,m_numLoads: null ,m_loadOrder: null ,m_curLoad: null ,m_curLoadURI: null ,m_pathMap: null ,completion: null ,get_completion: function() { if(this.m_expectedLoads > 0) { return this.m_numLoads / this.m_expectedLoads; } return 0; } ,uriprefix: null ,urisuffix: null ,createMissingAssets: function() { var redX = new openfl_display_Sprite(); redX.get_graphics().lineStyle(3,16711680); redX.get_graphics().lineTo(20,20); redX.get_graphics().moveTo(0,20); redX.get_graphics().lineTo(20,0); var missData = new openfl_display_BitmapData(redX.get_width() | 0,redX.get_height() | 0); missData.draw(redX); var missImage = new openfl_display_Bitmap(missData); missImage.set_name("MISSING_IMAGE"); var missSound = new openfl_media_Sound(); var missText = "FILE_NOT_FOUND"; var _this = this.m_assets; var value = { src : "MISSING_IMAGE", content : missImage}; if(__map_reserved["MISSING_IMAGE"] != null) { _this.setReserved("MISSING_IMAGE",value); } else { _this.h["MISSING_IMAGE"] = value; } var _this1 = this.m_assets; var value1 = { src : "MISSING_IMAGE_DATA", content : missData}; if(__map_reserved["MISSING_IMAGE_DATA"] != null) { _this1.setReserved("MISSING_IMAGE_DATA",value1); } else { _this1.h["MISSING_IMAGE_DATA"] = value1; } var _this2 = this.m_assets; var value2 = { src : "MISSING_SOUND", content : missSound}; if(__map_reserved["MISSING_SOUND"] != null) { _this2.setReserved("MISSING_SOUND",value2); } else { _this2.h["MISSING_SOUND"] = value2; } var _this3 = this.m_assets; var value3 = { src : "MISSING_TEXT", content : missText}; if(__map_reserved["MISSING_TEXT"] != null) { _this3.setReserved("MISSING_TEXT",value3); } else { _this3.h["MISSING_TEXT"] = value3; } var _this4 = this.m_assets; var key = "MISSING_SHEET" + ".sheet"; var value4 = { src : "MISSING_SHEET", content : this.createMissingSheet()}; if(__map_reserved[key] != null) { _this4.setReserved(key,value4); } else { _this4.h[key] = value4; } } ,createMissingSheet: function() { var _this = this.m_assets; var missData = (__map_reserved["MISSING_IMAGE_DATA"] != null ? _this.getReserved("MISSING_IMAGE_DATA") : _this.h["MISSING_IMAGE_DATA"]).content; var frameInfo_0 = 0; var frameInfo_1 = missData.width | 0; var frameInfo_2 = missData.width * 0.1 | 0; var frameInfo_3 = missData.width * 0.8 | 0; var missSheet = new spritesheet_Spritesheet(missData,[new spritesheet_data_SpritesheetFrame(frameInfo_0,frameInfo_0,frameInfo_1,frameInfo_1),new spritesheet_data_SpritesheetFrame(frameInfo_2,frameInfo_2,frameInfo_3,frameInfo_3,frameInfo_2,frameInfo_2)]); missSheet.addBehavior(new spritesheet_data_BehaviorData("0",[0,1],true,6)); return missSheet; } ,addLib: function(lib,list) { var libName = Std.string(lib); var _this = this.m_collections; var collection = __map_reserved[libName] != null ? _this.getReserved(libName) : _this.h[libName]; if(collection != null) { com_firstplayable_hxlib_Debug.logHelper("addLib - already exists: " + libName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 254, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "addLib"}); return collection; } collection = []; var _this1 = this.m_collections; if(__map_reserved[libName] != null) { _this1.setReserved(libName,collection); } else { _this1.h[libName] = collection; } if(list != null) { var _g = 0; while(_g < list.length) { var res = list[_g]; ++_g; this.addRes(libName,res); } } return collection; } ,addRes: function(aLibName,res) { var libName = aLibName != null ? Std.string(aLibName) : "DEFAULT"; var condition = res == null; if(condition) { com_firstplayable_hxlib_Debug.logHelper("addRes with null ResContext, ignoring; lib was: " + libName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 281, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "addRes"}); } if(condition) { return; } var condition1 = res.src == null; if(condition1) { com_firstplayable_hxlib_Debug.logHelper("addRes with null ResContext.src, ignoring; lib was: " + libName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 286, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "addRes"}); } if(condition1) { return; } var _this = this.m_collections; var lib = __map_reserved[libName] != null ? _this.getReserved(libName) : _this.h[libName]; if(lib == null) { lib = this.addLib(libName); } res.src = this.verifyPath(res.src); if(res.type == null) { var ext = res.src.substring(res.src.lastIndexOf(".") + 1); var _g = ext.toLowerCase(); var tmp; switch(_g) { case "3ds": tmp = "BINARY"; break; case "gif":case "jpg":case "png": tmp = "IMAGE"; break; case "bmp":case "swf":case "tiff": tmp = null; break; case "m4a":case "mp3":case "ogg":case "wav": tmp = "SOUND"; break; default: tmp = "TEXT"; } res.type = tmp; if(res.type == null) { com_firstplayable_hxlib_Debug.logHelper("Resource file extension not supported: " + ext,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 329, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "addRes"}); return; } } var resKey = res.rename == null ? res.src : res.rename; lib.push(resKey); var _this1 = this.m_assets; var existingRes = __map_reserved[resKey] != null ? _this1.getReserved(resKey) : _this1.h[resKey]; if(existingRes != null) { if(existingRes.src != res.src) { com_firstplayable_hxlib_Debug.logHelper("addRes - skipping duplicate key with new src: " + resKey + " at " + res.src + " vs old " + existingRes.src,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 345, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "addRes"}); return; } else if(existingRes.content != null) { return; } } var _this2 = this.m_assets; if(__map_reserved[resKey] != null) { _this2.setReserved(resKey,res); } else { _this2.h[resKey] = res; } } ,updateRes: function(libName,res) { var _this = this.m_collections; var lib = __map_reserved[libName] != null ? _this.getReserved(libName) : _this.h[libName]; if(lib == null) { this.addRes(libName,res); return; } res.src = this.verifyPath(res.src); var resKey = res.rename == null ? res.src : res.rename; var resIndex = lib.indexOf(resKey); if(resIndex == -1) { com_firstplayable_hxlib_Debug.logHelper("something's gone wrong. We have lib " + libName + ", but nothing tied to: " + resKey,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 389, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "updateRes"}); return; } var _this1 = this.m_assets; if(__map_reserved[resKey] != null) { _this1.setReserved(resKey,res); } else { _this1.h[resKey] = res; } } ,load: function(name,onComplete) { var resOrLibName = Std.string(name); var loadCall = { name : resOrLibName, onComplete : onComplete}; var _this = this.m_collections; if(__map_reserved[resOrLibName] != null ? _this.existsReserved(resOrLibName) : _this.h.hasOwnProperty(resOrLibName)) { var _this1 = this.m_collectionsLoaded; if(__map_reserved[resOrLibName] != null) { _this1.setReserved(resOrLibName,true); } else { _this1.h[resOrLibName] = true; } } if(this.m_curLoad != null) { this.m_loadOrder.push(loadCall); return; } this.m_curLoad = this.m_loadOrder.length == 0 ? loadCall : this.m_loadOrder.shift(); var lib = this.getLoadList(this.m_curLoad.name); this.m_expectedLoads = lib.length; this.m_curLoad.loadTime = openfl_Lib.getTimer(); if(lib.length == 0) { com_firstplayable_hxlib_Debug.logHelper("Cannot load empty or nonexistent asset / library: " + resOrLibName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 439, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "load"}); this.checkLoadProgress(); return; } var _g = 0; while(_g < lib.length) { var res = lib[_g]; ++_g; if(this.isLoaded(res)) { --this.m_expectedLoads; continue; } var _this2 = this.m_assets; this.loadRes(__map_reserved[res] != null ? _this2.getReserved(res) : _this2.h[res]); } if(this.m_expectedLoads == 0) { this.checkLoadProgress(); return; } } ,unload: function(name,safe) { if(safe == null) { safe = true; } var resOrLibName = Std.string(name); var lib = this.getLoadList(resOrLibName); if(lib.length == 0) { com_firstplayable_hxlib_Debug.log("Asset / library cannot be unloaded (empty or doesn't exist): " + resOrLibName,null,{ fileName : "ResMan.hx", lineNumber : 482, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "unload"}); return; } var _g = 0; while(_g < lib.length) { var res = lib[_g]; ++_g; var _this = this.m_assets; var resContext = __map_reserved[res] != null ? _this.getReserved(res) : _this.h[res]; if(resContext == null) { this.m_assets.remove(res); continue; } if(resContext.content == null) { continue; } if(safe) { var foundOtherLiveRef = false; var otherName = this.m_collections.keys(); while(otherName.hasNext()) { var otherName1 = otherName.next(); if(otherName1 == resOrLibName) { continue; } var _this1 = this.m_collectionsLoaded; var loaded = __map_reserved[otherName1] != null ? _this1.getReserved(otherName1) : _this1.h[otherName1]; if(loaded == null || loaded == false) { continue; } var otherLib = this.getLoadList(otherName1); var foundLoc = otherLib.indexOf(res); if(foundLoc >= 0) { foundOtherLiveRef = true; break; } } if(foundOtherLiveRef) { continue; } } var _g1 = resContext.type; if(_g1 == null) { com_firstplayable_hxlib_Debug.logHelper("Tried to unload unsupported resource type: " + Std.string(resContext.type),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 572, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "unload"}); } else { switch(_g1) { case "IMAGE": var obj = resContext.content; var loader = js_Boot.__instanceof(obj,openfl_display_Loader) ? obj : null; if(loader != null) { var obj1 = loader.content; var img = js_Boot.__instanceof(obj1,openfl_display_Bitmap) ? obj1 : null; loader.unload(); if(img != null) { img.bitmapData.dispose(); } } break; case "MUSIC":case "SOUND": var loader1 = resContext.content; loader1.close(); break; case "TEXT": if(resContext.src != null && resContext.src.indexOf(".json") > -1) { var _this2 = this.m_assets; var key = res + ".sheet"; var sheet = __map_reserved[key] != null ? _this2.getReserved(key) : _this2.h[key]; if(sheet != null) { sheet.content = null; } } break; default: com_firstplayable_hxlib_Debug.logHelper("Tried to unload unsupported resource type: " + Std.string(resContext.type),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 572, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "unload"}); } } resContext.content = null; } var _this3 = this.m_collections; if(__map_reserved[resOrLibName] != null ? _this3.existsReserved(resOrLibName) : _this3.h.hasOwnProperty(resOrLibName)) { var _this4 = this.m_collectionsLoaded; if(__map_reserved[resOrLibName] != null) { _this4.setReserved(resOrLibName,false); } else { _this4.h[resOrLibName] = false; } } com_firstplayable_hxlib_Debug.log("Unloading complete: " + resOrLibName,null,{ fileName : "ResMan.hx", lineNumber : 583, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "unload"}); } ,getImage: function(name,byRef) { if(byRef == null) { byRef = true; } var image = this.getImageUnsafe(name,byRef); if(image == null) { com_firstplayable_hxlib_Debug.logHelper("Image not found: " + (name == null ? "null" : "" + name),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 600, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getImage"}); var _this = this.m_assets; image = (__map_reserved["MISSING_IMAGE"] != null ? _this.getReserved("MISSING_IMAGE") : _this.h["MISSING_IMAGE"]).content; if(!byRef && image != null) { image = new openfl_display_Bitmap(image.bitmapData); image.set_name(name); } } return image; } ,getImageUnsafe: function(name,byRef) { if(byRef == null) { byRef = true; } name = this.verifyPath(name); var image = null; var _this = this.m_assets; var res = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(res != null) { if(js_Boot.__instanceof(res.content,openfl_display_Loader)) { var loader = res.content; var obj = loader.content; if(js_Boot.__instanceof(obj,openfl_display_Bitmap)) { image = obj; } else { image = null; } } else if(js_Boot.__instanceof(res.content,openfl_display_Bitmap)) { image = res; } if(image != null) { if(!byRef) { image = new openfl_display_Bitmap(image.bitmapData); image.set_name(name); } } else { var obj1 = res.content; var bitmapData = js_Boot.__instanceof(obj1,openfl_display_BitmapData) ? obj1 : null; if(bitmapData != null) { image = new openfl_display_Bitmap(bitmapData); image.set_name(name); } } } if(image == null) { var sheetName = com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().getSheetPath(name); if(sheetName != com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().INVALID) { image = this.getFrameFromSheet(name,sheetName,byRef,false); } } return image; } ,getSprite: function(name,byRef) { if(byRef == null) { byRef = true; } var bitmapData = this.doGetImageData(name,byRef,true); var sprite = com_firstplayable_hxlib_display_OPSprite.create(bitmapData); sprite.set_name(name); return sprite; } ,getSpriteUnsafe: function(name,byRef) { if(byRef == null) { byRef = true; } var bitmapData = this.doGetImageData(name,byRef,false); if(bitmapData != null) { var sprite = com_firstplayable_hxlib_display_OPSprite.create(bitmapData); sprite.set_name(name); return sprite; } return null; } ,getFrameFromSheet: function(frameName,sheetName,byRef,safe) { var image = new openfl_display_Bitmap(this.getFrameDataFromSheet(frameName,sheetName,true,safe)); if(image != null) { image.set_name(sheetName + "--" + frameName); } return image; } ,getFrameDataFromSheet: function(frameName,sheetName,byRef,safe) { var frameData = null; var sheet = this.getSpritesheetUnsafe(sheetName,true); if(sheet != null) { var _this = sheet.behaviors; var data = __map_reserved[frameName] != null ? _this.getReserved(frameName) : _this.h[frameName]; if(data != null) { var animFrameIndex = 0; frameData = com_firstplayable_hxlib_display_anim_importers_BehaviorDataWithParams.getCacheData(data,sheet,animFrameIndex); } } if(safe && frameData == null) { com_firstplayable_hxlib_Debug.logHelper("Image '" + frameName + "' not found in sheet: " + sheetName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 749, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getFrameDataFromSheet"}); var _this1 = this.m_assets; frameData = (__map_reserved["MISSING_IMAGE_DATA"] != null ? _this1.getReserved("MISSING_IMAGE_DATA") : _this1.h["MISSING_IMAGE_DATA"]).content; } if(!byRef && frameData != null) { frameData = frameData.clone(); } return frameData; } ,doGetImageData: function(name,byRef,safe) { name = this.verifyPath(name); var bitmapData = null; var _this = this.m_assets; var res = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(res != null) { if(js_Boot.__instanceof(res.content,openfl_display_Loader)) { var loader = res.content; var obj = loader.content; var bitmap = js_Boot.__instanceof(obj,openfl_display_Bitmap) ? obj : null; if(bitmap != null) { bitmapData = bitmap.bitmapData; } } else if(js_Boot.__instanceof(res.content,openfl_display_Bitmap)) { var bitmap1 = res.content; bitmapData = bitmap1.bitmapData; } else if(js_Boot.__instanceof(res.content,openfl_display_BitmapData)) { bitmapData = res.content; } } if(bitmapData == null) { var sheetName = com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().getSheetPath(name); if(sheetName != com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().INVALID) { bitmapData = this.getFrameDataFromSheet(name,sheetName,true,safe); } } if(safe && bitmapData == null) { com_firstplayable_hxlib_Debug.log("ImageData not found: " + name,null,{ fileName : "ResMan.hx", lineNumber : 813, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "doGetImageData"}); var _this1 = this.m_assets; bitmapData = (__map_reserved["MISSING_IMAGE_DATA"] != null ? _this1.getReserved("MISSING_IMAGE_DATA") : _this1.h["MISSING_IMAGE_DATA"]).content; } if(!byRef && bitmapData != null) { bitmapData = bitmapData.clone(); } return bitmapData; } ,getImageData: function(name,byRef) { if(byRef == null) { byRef = true; } return this.doGetImageData(name,byRef,true); } ,getImageDataUnsafe: function(name,byRef) { if(byRef == null) { byRef = true; } return this.doGetImageData(name,byRef,false); } ,getSound: function(name) { name = this.verifyPath(name); var _this = this.m_assets; var res = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(res != null && js_Boot.__instanceof(res.content,openfl_media_Sound)) { return res.content; } com_firstplayable_hxlib_Debug.logHelper("Sound not found: " + name,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 863, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getSound"}); var _this1 = this.m_assets; return (__map_reserved["MISSING_SOUND"] != null ? _this1.getReserved("MISSING_SOUND") : _this1.h["MISSING_SOUND"]).content; } ,getBytes: function(name) { name = this.verifyPath(name); var _this = this.m_assets; var res = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(res != null) { if(js_Boot.__instanceof(res.content,openfl_net_URLLoader)) { var urlLoader = res.content; if(urlLoader.dataFormat == 0) { return urlLoader.data; } else { com_firstplayable_hxlib_Debug.log("Incorrect dataformat " + openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$.toString(urlLoader.dataFormat) + " for: " + name,null,{ fileName : "ResMan.hx", lineNumber : 890, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getBytes"}); } } } com_firstplayable_hxlib_Debug.logHelper("Bytes not found or not loaded: " + name,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 896, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getBytes"}); var this1 = new openfl_utils_ByteArrayData(0); return this1; } ,getText: function(name) { name = this.verifyPath(name); var _this = this.m_assets; var res = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(res != null) { if(typeof(res.content) == "string") { return res.content; } else if(js_Boot.__instanceof(res.content,openfl_net_URLLoader)) { var urlLoader = res.content; return Std.string(urlLoader.data); } } com_firstplayable_hxlib_Debug.logHelper("Text not found or not loaded: " + name,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 931, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getText"}); var _this1 = this.m_assets; return (__map_reserved["MISSING_TEXT"] != null ? _this1.getReserved("MISSING_TEXT") : _this1.h["MISSING_TEXT"]).content; } ,getJson: function(name) { name = this.verifyPath(name); var _this = this.m_assets; var res = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; var json = null; if(res != null) { if(typeof(res.content) == "string") { json = new haxe_format_JsonParser(res.content).parseRec(); var tmp = json != null; } else if(js_Boot.__instanceof(res.content,openfl_net_URLLoader)) { var urlLoader = res.content; json = new haxe_format_JsonParser(Std.string(urlLoader.data)).parseRec(); var tmp1 = json != null; } else if(res.content != null) { json = res.content; } } return json; } ,getMovieClip: function(name,byRef) { com_firstplayable_hxlib_Debug.logHelper("NOT IMPLEMENTED",com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 999, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getMovieClip"}); com_firstplayable_hxlib_Debug.logHelper("MovieClip not found: " + (name == null ? "null" : "" + name),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1003, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getMovieClip"}); return null; } ,getPaistFileByName: function(name) { var libName = name; var _this = this.m_collections; var lib = __map_reserved[libName] != null ? _this.getReserved(libName) : _this.h[libName]; if(lib == null) { com_firstplayable_hxlib_Debug.logHelper("Paist library not found: " + libName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1020, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getPaistFileByName"}); return ""; } var _g = 0; while(_g < lib.length) { var res = lib[_g]; ++_g; if(res.indexOf("layouts/") > -1) { return res; } } com_firstplayable_hxlib_Debug.logHelper("Paist menu does not contain layout info: " + libName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1034, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getPaistFileByName"}); return ""; } ,getSpritesheet: function(name,byRef) { if(byRef == null) { byRef = true; } var sheet = this.getSpritesheetUnsafe(name,byRef); if(sheet != null) { return sheet; } else { com_firstplayable_hxlib_Debug.log("Spritesheet not found or not loaded: " + (name == null ? "null" : "" + name),null,{ fileName : "ResMan.hx", lineNumber : 1056, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "getSpritesheet"}); if(byRef) { var _this = this.m_assets; return (__map_reserved["MISSING_SHEET"] != null ? _this.getReserved("MISSING_SHEET") : _this.h["MISSING_SHEET"]).content; } else { return this.createMissingSheet(); } } } ,getSpritesheetUnsafe: function(name,byRef) { if(byRef == null) { byRef = true; } var sheetName = name + ".sheet"; var _this = this.m_assets; var res = __map_reserved[sheetName] != null ? _this.getReserved(sheetName) : _this.h[sheetName]; if(res != null && js_Boot.__instanceof(res.content,spritesheet_Spritesheet)) { if(byRef) { return res.content; } else { return this.makeSheet(name); } } else { var tmp = res != null; } if(this.isLoaded(name)) { var s = this.makeSheet(name); if(byRef) { this.addRes("SPRITESHEET",{ src : sheetName, content : s}); } return s; } return null; } ,makeSheet: function(name) { var json = this.getJson(name); if(json == null) { return null; } name = this.verifyPath(name); var _this = this.m_assets; var resContext = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; var srcPath = ""; if(resContext != null && resContext.src != null) { srcPath = resContext.src; } var basePath = srcPath.substring(0,srcPath.lastIndexOf("/") + 1); return com_firstplayable_hxlib_display_anim_importers_ZoeImporterPlus.parse(json,basePath); } ,isAnim: function(name) { name = this.verifyPath(name); var sheetName = com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().getSheetPath(name); var sheet = this.getSpritesheetUnsafe(sheetName,true); if(sheet != null) { var _this = sheet.behaviors; var data = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(data != null) { return data.frames.length > 1; } } return false; } ,isRegistered: function(name,type) { name = this.verifyPath(name); var _this = this.m_assets; var asset = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(asset != null && (type == null || asset.type == type)) { return true; } else if(type == null || type == "IMAGE") { var sheetName = com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().getSheetPath(name); return sheetName != com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().INVALID; } return false; } ,isLoaded: function(name) { name = this.verifyPath(name); var _this = this.m_assets; var asset = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(asset != null) { return asset.content != null; } else { return false; } } ,isLibLoaded: function(name) { var libName = Std.string(name); var _this = this.m_collections; var lib = __map_reserved[libName] != null ? _this.getReserved(libName) : _this.h[libName]; if(lib == null) { com_firstplayable_hxlib_Debug.logHelper("Library does not exist: " + libName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1230, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "isLibLoaded"}); return false; } var _g = 0; while(_g < lib.length) { var res = lib[_g]; ++_g; if(!this.isLoaded(res)) { return false; } } return true; } ,mapPathPrefix: function(s,r) { if(this.m_pathMap != null) { com_firstplayable_hxlib_Debug.logHelper("We are already mapping '" + this.m_pathMap.search + "' -> '" + this.m_pathMap.replace + "'; this will be overwritten with: '" + s + "' -> '" + r,com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1255, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "mapPathPrefix"}); } this.m_pathMap = { search : s, replace : r}; } ,loadRes: function(res) { if(res == null || res.src == null || res.type == null) { com_firstplayable_hxlib_Debug.logHelper("ResMan: bad res passed to loadRes: " + Std.string(res),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1274, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "loadRes"}); return; } var dispatcher = null; var loader = null; var _g = res.type; if(_g == null) { com_firstplayable_hxlib_Debug.logHelper("ResMan: unknown asset type: " + Std.string(res.type),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1310, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "loadRes"}); return; } else { switch(_g) { case "BINARY": var t = new openfl_net_URLLoader(); t.dataFormat = 0; dispatcher = t; loader = t; break; case "IMAGE": var l = new openfl_display_Loader(); dispatcher = l.contentLoaderInfo; loader = l; break; case "MUSIC":case "SOUND": var s = new openfl_media_Sound(); dispatcher = s; loader = s; break; case "TEXT": var t1 = new openfl_net_URLLoader(); dispatcher = t1; loader = t1; break; default: com_firstplayable_hxlib_Debug.logHelper("ResMan: unknown asset type: " + Std.string(res.type),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1310, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "loadRes"}); return; } } if(dispatcher != null) { dispatcher.addEventListener("complete",$bind(this,this.onLoadSuccess)); dispatcher.addEventListener("ioError",$bind(this,this.onLoadError)); } res.content = loader; if(loader != null) { if(this.urisuffix == null) { var versionInfo = com_firstplayable_hxlib_utils_Version.get_versionInfo(); if(versionInfo != null && versionInfo.length > 0) { versionInfo = StringTools.replace(versionInfo,":","-"); versionInfo = StringTools.replace(versionInfo,"\t","__"); versionInfo = StringTools.replace(versionInfo," ","_"); this.urisuffix = "?v=" + encodeURIComponent(versionInfo); } else { this.urisuffix = ""; } } var uri = this.uriprefix + res.src + this.urisuffix; this.m_curLoadURI = uri; loader.load(new openfl_net_URLRequest(uri)); } } ,onLoadError: function(e) { var obj = e.currentTarget; var dispatcher = js_Boot.__instanceof(obj,openfl_events_IEventDispatcher) ? obj : null; if(dispatcher != null) { dispatcher.removeEventListener("complete",$bind(this,this.onLoadSuccess)); dispatcher.removeEventListener("ioError",$bind(this,this.onLoadError)); } var obj1 = e.currentTarget; var loaderInfo = js_Boot.__instanceof(obj1,openfl_display_LoaderInfo) ? obj1 : null; var url = loaderInfo != null ? loaderInfo.url : this.m_curLoadURI; --this.m_expectedLoads; com_firstplayable_hxlib_Debug.logHelper("Load failed from: " + (url == null ? "null" : "" + url) + "\n" + (e.text == null ? "null" : "" + e.text),com_firstplayable_hxlib_Severity.Warn,{ fileName : "ResMan.hx", lineNumber : 1379, className : "com.firstplayable.hxlib.loader.ResMan", methodName : "onLoadError"}); this.checkLoadProgress(); } ,onLoadSuccess: function(e) { var obj = e.currentTarget; var dispatcher = js_Boot.__instanceof(obj,openfl_events_IEventDispatcher) ? obj : null; if(dispatcher != null) { dispatcher.removeEventListener("complete",$bind(this,this.onLoadSuccess)); dispatcher.removeEventListener("ioError",$bind(this,this.onLoadError)); } var url = null; var obj1 = e.currentTarget; var loaderInfo = js_Boot.__instanceof(obj1,openfl_display_LoaderInfo) ? obj1 : null; if(loaderInfo != null) { url = loaderInfo.url; var obj2 = loaderInfo.content; var obj3 = js_Boot.__instanceof(obj2,openfl_display_DisplayObject) ? obj2 : null; if(obj3 != null) { obj3.set_name(url); } } ++this.m_numLoads; this.checkLoadProgress(); } ,checkLoadProgress: function() { if(this.m_numLoads == this.m_expectedLoads) { var tmp = openfl_Lib.getTimer(); this.m_curLoad.loadTime = tmp - this.m_curLoad.loadTime; if(this.m_curLoad.onComplete != null) { this.m_curLoad.onComplete(); } this.m_curLoad = null; this.m_expectedLoads = 0; this.m_numLoads = 0; if(this.m_loadOrder.length > 0) { var newLoad = this.m_loadOrder[0]; this.load(newLoad.name,newLoad.onComplete); } } } ,getLoadList: function(name) { var resName = Std.string(name); var _this = this.m_collections; var list = __map_reserved[resName] != null ? _this.getReserved(resName) : _this.h[resName]; if(list != null) { return list; } else { var _this1 = this.m_assets; if(__map_reserved[resName] != null ? _this1.existsReserved(resName) : _this1.h.hasOwnProperty(resName)) { return [resName]; } else { return []; } } } ,verifyPath: function(path) { if(path == null) { path = ""; } else if(this.m_pathMap != null) { path = StringTools.replace(path,this.m_pathMap.search,this.m_pathMap.replace); } return path; } ,clearCachedData: function() { var _this = this.m_assets; var res = new haxe_ds__$StringMap_StringMapIterator(_this,_this.arrayKeys()); while(res.hasNext()) { var res1 = res.next(); if(res1 != null && js_Boot.__instanceof(res1.content,spritesheet_Spritesheet)) { res1.content = null; } } } ,onSetState: function() { this.clearCachedData(); } ,__class__: com_firstplayable_hxlib_loader_ResMan ,__properties__: {get_completion:"get_completion"} }; var com_firstplayable_hxlib_loader_SpriteDataManager = function() { this.m_map = new haxe_ds_StringMap(); }; $hxClasses["com.firstplayable.hxlib.loader.SpriteDataManager"] = com_firstplayable_hxlib_loader_SpriteDataManager; com_firstplayable_hxlib_loader_SpriteDataManager.__name__ = ["com","firstplayable","hxlib","loader","SpriteDataManager"]; com_firstplayable_hxlib_loader_SpriteDataManager.__properties__ = {get_instance:"get_instance"}; com_firstplayable_hxlib_loader_SpriteDataManager.get_instance = function() { if(com_firstplayable_hxlib_loader_SpriteDataManager.instance == null) { com_firstplayable_hxlib_loader_SpriteDataManager.instance = new com_firstplayable_hxlib_loader_SpriteDataManager(); } return com_firstplayable_hxlib_loader_SpriteDataManager.instance; }; com_firstplayable_hxlib_loader_SpriteDataManager.prototype = { m_map: null ,get: function(resSrc) { var _this = this.m_map; if(__map_reserved[resSrc] != null) { return _this.getReserved(resSrc); } else { return _this.h[resSrc]; } } ,add: function(resSrc,boxData) { var _this = this.m_map; if(__map_reserved[resSrc] != null) { _this.setReserved(resSrc,boxData); } else { _this.h[resSrc] = boxData; } } ,__class__: com_firstplayable_hxlib_loader_SpriteDataManager }; var com_firstplayable_hxlib_net_apis_FbPost = function() { }; $hxClasses["com.firstplayable.hxlib.net.apis.FbPost"] = com_firstplayable_hxlib_net_apis_FbPost; com_firstplayable_hxlib_net_apis_FbPost.__name__ = ["com","firstplayable","hxlib","net","apis","FbPost"]; com_firstplayable_hxlib_net_apis_FbPost.shareLink = function(url,appId,surveyRedirect,saveID) { if(surveyRedirect == null) { surveyRedirect = false; } var encodedUrl = encodeURIComponent(url); var intent; if(appId != null) { var encodedId = encodeURIComponent(appId); intent = "https://www.facebook.com/dialog/share?href=" + encodedUrl + "&app_id=" + encodedId; } else { intent = "https://www.facebook.com/sharer/sharer.php?u=" + encodedUrl; } if(surveyRedirect) { intent = "survey.php?s=" + saveID + "&r=" + intent; } window.open(intent); }; com_firstplayable_hxlib_net_apis_FbPost.statusUpdate = function(msg,imgSrc,response) { com_firstplayable_hxlib_net_apis_FbPost.reply = response; if(window.location.href.indexOf("http://localhost") > -1 || window.location.href.indexOf("https://") > -1) { imgSrc = null; } if(imgSrc == null) { FB.api("/me/feed","post",{ message : msg},com_firstplayable_hxlib_net_apis_FbPost.onFbSetStatus); } else { FB.api("/me/photos","post",{ caption : msg, url : imgSrc},com_firstplayable_hxlib_net_apis_FbPost.onFbSetStatus); } }; com_firstplayable_hxlib_net_apis_FbPost.onFbSetStatus = function(response) { if(response == null || response.error != null) { com_firstplayable_hxlib_Debug.log("Facebook error has occurred.",null,{ fileName : "FacebookApi.hx", lineNumber : 178, className : "com.firstplayable.hxlib.net.apis.FbPost", methodName : "onFbSetStatus"}); } else { com_firstplayable_hxlib_Debug.log("Facebook status has been updated!",null,{ fileName : "FacebookApi.hx", lineNumber : 180, className : "com.firstplayable.hxlib.net.apis.FbPost", methodName : "onFbSetStatus"}); } if(com_firstplayable_hxlib_net_apis_FbPost.reply != null) { com_firstplayable_hxlib_net_apis_FbPost.reply(response); } }; var com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi = function() { }; $hxClasses["com.firstplayable.hxlib.net.apis.GoogleAnalyticsApi"] = com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.__name__ = ["com","firstplayable","hxlib","net","apis","GoogleAnalyticsApi"]; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.create = function(trackingID,cookieDomain) { if(cookieDomain == null) { cookieDomain = "auto"; } com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga("create",trackingID,cookieDomain); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.setField = function(name,value) { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga("set",name,value); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.require = function(pluginName,pluginOptions) { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga("require",pluginName,pluginOptions); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent = function(eventCategory,eventAction,eventLabel,eventValue) { var args = ["event",eventCategory,eventAction,eventLabel,eventValue]; args.unshift("send"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga.apply(null,args); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendSocial = function(socialNetwork,socialAction,socialTarget) { var args = ["social",socialNetwork,socialAction,socialTarget]; args.unshift("send"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga.apply(null,args); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendPageview = function(page) { var args = ["pageview",page]; args.unshift("send"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga.apply(null,args); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview = function(screen) { var args = ["screenview",{ "screenName" : screen}]; args.unshift("send"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga.apply(null,args); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendTiming = function(timingCategory,timingVar,timingValue,timingLabel) { var args = ["timing",timingCategory,timingVar,timingValue,timingLabel]; args.unshift("send"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga.apply(null,args); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendObject = function(fieldsObject) { var args = [fieldsObject]; args.unshift("send"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga.apply(null,args); }; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.send = function(args) { args.unshift("send"); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win.ga.apply(null,args); }; var com_firstplayable_hxlib_net_apis_TwitterApi = function() { }; $hxClasses["com.firstplayable.hxlib.net.apis.TwitterApi"] = com_firstplayable_hxlib_net_apis_TwitterApi; com_firstplayable_hxlib_net_apis_TwitterApi.__name__ = ["com","firstplayable","hxlib","net","apis","TwitterApi"]; com_firstplayable_hxlib_net_apis_TwitterApi.__properties__ = {get_twttr:"get_twttr"}; com_firstplayable_hxlib_net_apis_TwitterApi.tweet = function(text,url,hashtags,via,related,inReplyTo,surveyRedirect,saveID) { if(surveyRedirect == null) { surveyRedirect = false; } var intent = "https://twitter.com/intent/tweet?"; if(text != null) { intent += "text=" + encodeURIComponent(text) + "&"; } if(url != null) { intent += "url=" + encodeURIComponent(url) + "&"; } if(hashtags != null) { intent += "hashtags=" + encodeURIComponent(hashtags) + "&"; } if(via != null) { intent += "via=" + encodeURIComponent(via) + "&"; } if(related != null) { intent += "related=" + encodeURIComponent(related) + "&"; } if(inReplyTo != null) { intent += "inReplyTo=" + encodeURIComponent(inReplyTo) + "&"; } if(surveyRedirect) { intent = "survey.php?s=" + saveID + "&r=" + intent; } window.open(intent); }; com_firstplayable_hxlib_net_apis_TwitterApi.createTweetBtn = function(x,y,url,params) { var div = window.document.createElement("div"); div.style.position = "absolute"; div.style.left = "" + x + "%"; div.style.top = "" + y + "%"; div.style.zIndex = "1000"; div.id = com_firstplayable_hxlib_net_apis_TwitterApi.BUTTON_ID; window.document.body.appendChild(div); params.size = "large"; if(com_firstplayable_hxlib_net_apis_TwitterApi.get_twttr().init == true) { com_firstplayable_hxlib_net_apis_TwitterApi.get_twttr().widgets.createShareButton(url,div,params); } else { com_firstplayable_hxlib_net_apis_TwitterApi.get_twttr().ready(function(t) { t.widgets.createShareButton(url,div,params); }); } }; com_firstplayable_hxlib_net_apis_TwitterApi.removeTweetBtn = function() { var div = window.document.getElementById(com_firstplayable_hxlib_net_apis_TwitterApi.BUTTON_ID); if(div != null) { window.document.body.removeChild(div); } }; com_firstplayable_hxlib_net_apis_TwitterApi.get_twttr = function() { var win = window; if(win.twttr == null) { com_firstplayable_hxlib_net_apis_TwitterApi.init(); } return win.twttr; }; com_firstplayable_hxlib_net_apis_TwitterApi.init = function() { var js; var fjs = document.getElementsByTagName("script")[0]; var t = window.twttr || { }; var tmp; if(document.getElementById("twitter-wjs")) { tmp = t; } else { js = document.createElement("script"); js.id = "twitter-wjs"; js.src = "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js,fjs); t._e = []; t.ready = function(f) { t._e.push(f); }; tmp = t; } window.twttr = tmp; }; var com_firstplayable_hxlib_state_IGameState = function() { }; $hxClasses["com.firstplayable.hxlib.state.IGameState"] = com_firstplayable_hxlib_state_IGameState; com_firstplayable_hxlib_state_IGameState.__name__ = ["com","firstplayable","hxlib","state","IGameState"]; com_firstplayable_hxlib_state_IGameState.prototype = { state: null ,m_isInitialized: null ,get_id: null ,get_name: null ,init: null ,dispose: null ,enter: null ,exit: null ,__class__: com_firstplayable_hxlib_state_IGameState ,__properties__: {get_name:"get_name",get_id:"get_id"} }; var com_firstplayable_hxlib_state_BaseGameState = function(stateId) { this.state = stateId; }; $hxClasses["com.firstplayable.hxlib.state.BaseGameState"] = com_firstplayable_hxlib_state_BaseGameState; com_firstplayable_hxlib_state_BaseGameState.__name__ = ["com","firstplayable","hxlib","state","BaseGameState"]; com_firstplayable_hxlib_state_BaseGameState.__interfaces__ = [com_firstplayable_hxlib_state_IGameState]; com_firstplayable_hxlib_state_BaseGameState.prototype = { state: null ,m_isInitialized: null ,get_id: function() { return this.state[1]; } ,get_name: function() { return this.state[0]; } ,init: function() { this.m_isInitialized = true; } ,enter: function(p) { com_firstplayable_hxlib_Debug.log("state entered '" + this.get_name() + "'",null,{ fileName : "BaseGameState.hx", lineNumber : 67, className : "com.firstplayable.hxlib.state.BaseGameState", methodName : "enter"}); if(!this.m_isInitialized) { this.init(); } } ,exit: function() { com_firstplayable_hxlib_Debug.log("state exited '" + this.get_name() + "'",null,{ fileName : "BaseGameState.hx", lineNumber : 81, className : "com.firstplayable.hxlib.state.BaseGameState", methodName : "exit"}); } ,dispose: function() { this.m_isInitialized = false; com_firstplayable_hxlib_Debug.log("state disposed '" + this.get_name() + "'",null,{ fileName : "BaseGameState.hx", lineNumber : 92, className : "com.firstplayable.hxlib.state.BaseGameState", methodName : "dispose"}); } ,__class__: com_firstplayable_hxlib_state_BaseGameState ,__properties__: {get_name:"get_name",get_id:"get_id"} }; var com_firstplayable_hxlib_state_FiniteStateMachineTypes = function() { }; $hxClasses["com.firstplayable.hxlib.state.FiniteStateMachineTypes"] = com_firstplayable_hxlib_state_FiniteStateMachineTypes; com_firstplayable_hxlib_state_FiniteStateMachineTypes.__name__ = ["com","firstplayable","hxlib","state","FiniteStateMachineTypes"]; com_firstplayable_hxlib_state_FiniteStateMachineTypes.equals = function(stateID,id) { return stateID == id; }; var com_firstplayable_hxlib_state_StateStatusId = $hxClasses["com.firstplayable.hxlib.state.StateStatusId"] = { __ename__ : ["com","firstplayable","hxlib","state","StateStatusId"], __constructs__ : ["SS_CONTINUE","SS_LEAVE"] }; com_firstplayable_hxlib_state_StateStatusId.SS_CONTINUE = ["SS_CONTINUE",0]; com_firstplayable_hxlib_state_StateStatusId.SS_CONTINUE.toString = $estr; com_firstplayable_hxlib_state_StateStatusId.SS_CONTINUE.__enum__ = com_firstplayable_hxlib_state_StateStatusId; com_firstplayable_hxlib_state_StateStatusId.SS_LEAVE = ["SS_LEAVE",1]; com_firstplayable_hxlib_state_StateStatusId.SS_LEAVE.toString = $estr; com_firstplayable_hxlib_state_StateStatusId.SS_LEAVE.__enum__ = com_firstplayable_hxlib_state_StateStatusId; com_firstplayable_hxlib_state_StateStatusId.__empty_constructs__ = [com_firstplayable_hxlib_state_StateStatusId.SS_CONTINUE,com_firstplayable_hxlib_state_StateStatusId.SS_LEAVE]; var com_firstplayable_hxlib_state_InterruptType = $hxClasses["com.firstplayable.hxlib.state.InterruptType"] = { __ename__ : ["com","firstplayable","hxlib","state","InterruptType"], __constructs__ : ["INTERRUPTS_BLOCKED","INTERRUPTS_ALLOWED"] }; com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_BLOCKED = ["INTERRUPTS_BLOCKED",0]; com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_BLOCKED.toString = $estr; com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_BLOCKED.__enum__ = com_firstplayable_hxlib_state_InterruptType; com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_ALLOWED = ["INTERRUPTS_ALLOWED",1]; com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_ALLOWED.toString = $estr; com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_ALLOWED.__enum__ = com_firstplayable_hxlib_state_InterruptType; com_firstplayable_hxlib_state_InterruptType.__empty_constructs__ = [com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_BLOCKED,com_firstplayable_hxlib_state_InterruptType.INTERRUPTS_ALLOWED]; var com_firstplayable_hxlib_state_ExitRequestType = $hxClasses["com.firstplayable.hxlib.state.ExitRequestType"] = { __ename__ : ["com","firstplayable","hxlib","state","ExitRequestType"], __constructs__ : ["EXIT_IF_INTERRUPTIBLE","EXIT_FORCEABLY"] }; com_firstplayable_hxlib_state_ExitRequestType.EXIT_IF_INTERRUPTIBLE = ["EXIT_IF_INTERRUPTIBLE",0]; com_firstplayable_hxlib_state_ExitRequestType.EXIT_IF_INTERRUPTIBLE.toString = $estr; com_firstplayable_hxlib_state_ExitRequestType.EXIT_IF_INTERRUPTIBLE.__enum__ = com_firstplayable_hxlib_state_ExitRequestType; com_firstplayable_hxlib_state_ExitRequestType.EXIT_FORCEABLY = ["EXIT_FORCEABLY",1]; com_firstplayable_hxlib_state_ExitRequestType.EXIT_FORCEABLY.toString = $estr; com_firstplayable_hxlib_state_ExitRequestType.EXIT_FORCEABLY.__enum__ = com_firstplayable_hxlib_state_ExitRequestType; com_firstplayable_hxlib_state_ExitRequestType.__empty_constructs__ = [com_firstplayable_hxlib_state_ExitRequestType.EXIT_IF_INTERRUPTIBLE,com_firstplayable_hxlib_state_ExitRequestType.EXIT_FORCEABLY]; var com_firstplayable_hxlib_state_TransResult = $hxClasses["com.firstplayable.hxlib.state.TransResult"] = { __ename__ : ["com","firstplayable","hxlib","state","TransResult"], __constructs__ : ["TRANS_SUCCESSFUL","TRANS_TO_MACHINE_DEFAULT","TRANS_FAILED"] }; com_firstplayable_hxlib_state_TransResult.TRANS_SUCCESSFUL = ["TRANS_SUCCESSFUL",0]; com_firstplayable_hxlib_state_TransResult.TRANS_SUCCESSFUL.toString = $estr; com_firstplayable_hxlib_state_TransResult.TRANS_SUCCESSFUL.__enum__ = com_firstplayable_hxlib_state_TransResult; com_firstplayable_hxlib_state_TransResult.TRANS_TO_MACHINE_DEFAULT = ["TRANS_TO_MACHINE_DEFAULT",1]; com_firstplayable_hxlib_state_TransResult.TRANS_TO_MACHINE_DEFAULT.toString = $estr; com_firstplayable_hxlib_state_TransResult.TRANS_TO_MACHINE_DEFAULT.__enum__ = com_firstplayable_hxlib_state_TransResult; com_firstplayable_hxlib_state_TransResult.TRANS_FAILED = ["TRANS_FAILED",2]; com_firstplayable_hxlib_state_TransResult.TRANS_FAILED.toString = $estr; com_firstplayable_hxlib_state_TransResult.TRANS_FAILED.__enum__ = com_firstplayable_hxlib_state_TransResult; com_firstplayable_hxlib_state_TransResult.__empty_constructs__ = [com_firstplayable_hxlib_state_TransResult.TRANS_SUCCESSFUL,com_firstplayable_hxlib_state_TransResult.TRANS_TO_MACHINE_DEFAULT,com_firstplayable_hxlib_state_TransResult.TRANS_FAILED]; var com_firstplayable_hxlib_state_MachinePropBitId = $hxClasses["com.firstplayable.hxlib.state.MachinePropBitId"] = { __ename__ : ["com","firstplayable","hxlib","state","MachinePropBitId"], __constructs__ : ["STATE_INTERRUPTABLE"] }; com_firstplayable_hxlib_state_MachinePropBitId.STATE_INTERRUPTABLE = ["STATE_INTERRUPTABLE",0]; com_firstplayable_hxlib_state_MachinePropBitId.STATE_INTERRUPTABLE.toString = $estr; com_firstplayable_hxlib_state_MachinePropBitId.STATE_INTERRUPTABLE.__enum__ = com_firstplayable_hxlib_state_MachinePropBitId; com_firstplayable_hxlib_state_MachinePropBitId.__empty_constructs__ = [com_firstplayable_hxlib_state_MachinePropBitId.STATE_INTERRUPTABLE]; var com_firstplayable_hxlib_state_FiniteStateMachineMacros = function() { }; $hxClasses["com.firstplayable.hxlib.state.FiniteStateMachineMacros"] = com_firstplayable_hxlib_state_FiniteStateMachineMacros; com_firstplayable_hxlib_state_FiniteStateMachineMacros.__name__ = ["com","firstplayable","hxlib","state","FiniteStateMachineMacros"]; var haxe_ds_IntMap = function() { this.h = { }; }; $hxClasses["haxe.ds.IntMap"] = haxe_ds_IntMap; haxe_ds_IntMap.__name__ = ["haxe","ds","IntMap"]; haxe_ds_IntMap.__interfaces__ = [haxe_IMap]; haxe_ds_IntMap.prototype = { h: null ,set: function(key,value) { this.h[key] = value; } ,get: function(key) { return this.h[key]; } ,exists: function(key) { return this.h.hasOwnProperty(key); } ,remove: function(key) { if(!this.h.hasOwnProperty(key)) { return false; } delete(this.h[key]); return true; } ,keys: function() { var a = []; for( var key in this.h ) if(this.h.hasOwnProperty(key)) { a.push(key | 0); } return HxOverrides.iter(a); } ,iterator: function() { return { ref : this.h, it : this.keys(), hasNext : function() { return this.it.hasNext(); }, next : function() { var i = this.it.next(); return this.ref[i]; }}; } ,__class__: haxe_ds_IntMap }; var com_firstplayable_hxlib_state_StateManager = function() { }; $hxClasses["com.firstplayable.hxlib.state.StateManager"] = com_firstplayable_hxlib_state_StateManager; com_firstplayable_hxlib_state_StateManager.__name__ = ["com","firstplayable","hxlib","state","StateManager"]; com_firstplayable_hxlib_state_StateManager.reset = function() { com_firstplayable_hxlib_state_StateManager.m_rStates = new haxe_ds_IntMap(); com_firstplayable_hxlib_state_StateManager.currentState = null; }; com_firstplayable_hxlib_state_StateManager.addState = function(rState) { var condition = rState == null; if(condition) { com_firstplayable_hxlib_Debug.logHelper("[Warning] Attempted to add an invalid state",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StateManager.hx", lineNumber : 40, className : "com.firstplayable.hxlib.state.StateManager", methodName : "addState"}); } var _this = com_firstplayable_hxlib_state_StateManager.m_rStates; var key = rState.get_id(); if(_this.h.hasOwnProperty(key)) { var _this1 = com_firstplayable_hxlib_state_StateManager.m_rStates; var key1 = rState.get_id(); if(_this1.h[key1] == rState) { com_firstplayable_hxlib_Debug.logHelper("[WARNING] State '" + Std.string(rState) + "' has already been added!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StateManager.hx", lineNumber : 46, className : "com.firstplayable.hxlib.state.StateManager", methodName : "addState"}); } else { com_firstplayable_hxlib_Debug.logHelper("[WARNING] Tried to add state with id '" + rState.get_id() + "' but that id already exists!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StateManager.hx", lineNumber : 50, className : "com.firstplayable.hxlib.state.StateManager", methodName : "addState"}); } return; } var _this2 = com_firstplayable_hxlib_state_StateManager.m_rStates; var key2 = rState.get_id(); _this2.h[key2] = rState; }; com_firstplayable_hxlib_state_StateManager.createState = function(id,t) { var args = []; if(id != null) { args = [id]; } var state = Type.createInstance(t,args); com_firstplayable_hxlib_state_StateManager.addState(state); }; com_firstplayable_hxlib_state_StateManager.getState = function(stateId) { var stateIndex = stateId[1]; if(!com_firstplayable_hxlib_state_StateManager.m_rStates.h.hasOwnProperty(stateIndex)) { com_firstplayable_hxlib_Debug.logHelper("[WARNING] Could not find a state with id '" + stateIndex + "'",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StateManager.hx", lineNumber : 87, className : "com.firstplayable.hxlib.state.StateManager", methodName : "getState"}); return null; } return com_firstplayable_hxlib_state_StateManager.m_rStates.h[stateIndex]; }; com_firstplayable_hxlib_state_StateManager.setState = function(stateId,args) { var stateIndex = stateId[1]; if(!com_firstplayable_hxlib_state_StateManager.m_rStates.h.hasOwnProperty(stateIndex)) { com_firstplayable_hxlib_Debug.logHelper("[WARNING] Attempted to set state to id '" + stateIndex + "' but that state can't be found!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StateManager.hx", lineNumber : 105, className : "com.firstplayable.hxlib.state.StateManager", methodName : "setState"}); return; } if(com_firstplayable_hxlib_state_StateManager.currentState != null) { com_firstplayable_hxlib_state_StateManager.currentState.exit(); } com_firstplayable_hxlib_loader_ResMan.get_instance().onSetState(); com_firstplayable_hxlib_state_StateManager.currentState = com_firstplayable_hxlib_state_StateManager.m_rStates.h[stateIndex]; com_firstplayable_hxlib_state_StateManager.currentState.enter(args); }; com_firstplayable_hxlib_state_StateManager.replaceState = function(rState,args) { if(rState == null) { com_firstplayable_hxlib_Debug.log("[WARNING] Attempted to add an invalid state!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "StateManager.hx", lineNumber : 130, className : "com.firstplayable.hxlib.state.StateManager", methodName : "replaceState"}); return; } if(com_firstplayable_hxlib_state_StateManager.currentState != null) { com_firstplayable_hxlib_state_StateManager.currentState.exit(); } com_firstplayable_hxlib_state_StateManager.currentState = rState; com_firstplayable_hxlib_state_StateManager.currentState.enter(args); }; var com_firstplayable_hxlib_utils_ArrayTools = function() { }; $hxClasses["com.firstplayable.hxlib.utils.ArrayTools"] = com_firstplayable_hxlib_utils_ArrayTools; com_firstplayable_hxlib_utils_ArrayTools.__name__ = ["com","firstplayable","hxlib","utils","ArrayTools"]; com_firstplayable_hxlib_utils_ArrayTools.exists = function(ar,x) { return ar.indexOf(x) != -1; }; com_firstplayable_hxlib_utils_ArrayTools.shuffle = function(ar) { var n = ar.length; var _g1 = 0; var _g = n - 1; while(_g1 < _g) { var i = _g1++; var j = Std.random(n - i) + i; com_firstplayable_hxlib_utils_ArrayTools.swap(ar,i,j); } }; com_firstplayable_hxlib_utils_ArrayTools.swap = function(ar,a,b) { var tmp = ar[a]; ar[a] = ar[b]; ar[b] = tmp; }; com_firstplayable_hxlib_utils_ArrayTools.lowerBound = function(toFind,findIn,lessFn) { var idx = 0; var count = findIn.length; var first = 0; while(count > 0) { idx = first; var step = count / 2 | 0; idx += step; if(lessFn(findIn[idx],toFind)) { first = ++idx; count -= step + 1; } else { count = step; } } return first; }; com_firstplayable_hxlib_utils_ArrayTools.upperBound = function(toFind,findIn,lessFn) { var idx = 0; var count = findIn.length; var first = 0; while(count > 0) { idx = first; var step = count / 2 | 0; idx += step; if(!lessFn(toFind,findIn[idx])) { first = ++idx; count -= step + 1; } else { count = step; } } return first; }; var com_firstplayable_hxlib_utils_ColorUtils = function() { }; $hxClasses["com.firstplayable.hxlib.utils.ColorUtils"] = com_firstplayable_hxlib_utils_ColorUtils; com_firstplayable_hxlib_utils_ColorUtils.__name__ = ["com","firstplayable","hxlib","utils","ColorUtils"]; com_firstplayable_hxlib_utils_ColorUtils.hexToArgb = function(hex) { return { a : hex >> 24 & 255, r : hex >> 16 & 255, g : hex >> 8 & 255, b : hex & 255}; }; com_firstplayable_hxlib_utils_ColorUtils.argbToHex = function(r,g,b,a) { if(a == null) { return (r << 16) + (g << 8) + b; } else { return (a << 24) + (r << 16) + (g << 8) + b; } }; com_firstplayable_hxlib_utils_ColorUtils.dsToHex = function(r,g,b,a) { return com_firstplayable_hxlib_utils_ColorUtils.argbToHex(r << 3 | r >> 2,g << 3 | g >> 2,b << 3 | b >> 2,a << 3 | a >> 2); }; com_firstplayable_hxlib_utils_ColorUtils.colorTransform = function(obj,color) { }; com_firstplayable_hxlib_utils_ColorUtils.colorTint = function(obj,color,intensity) { }; var com_firstplayable_hxlib_utils_Platform = $hxClasses["com.firstplayable.hxlib.utils.Platform"] = { __ename__ : ["com","firstplayable","hxlib","utils","Platform"], __constructs__ : ["Android","BlackBerry","iPhone","iPad","iPod","iOS","Opera_Mini","IEMobile","Windows"] }; com_firstplayable_hxlib_utils_Platform.Android = ["Android",0]; com_firstplayable_hxlib_utils_Platform.Android.toString = $estr; com_firstplayable_hxlib_utils_Platform.Android.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.BlackBerry = ["BlackBerry",1]; com_firstplayable_hxlib_utils_Platform.BlackBerry.toString = $estr; com_firstplayable_hxlib_utils_Platform.BlackBerry.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.iPhone = ["iPhone",2]; com_firstplayable_hxlib_utils_Platform.iPhone.toString = $estr; com_firstplayable_hxlib_utils_Platform.iPhone.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.iPad = ["iPad",3]; com_firstplayable_hxlib_utils_Platform.iPad.toString = $estr; com_firstplayable_hxlib_utils_Platform.iPad.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.iPod = ["iPod",4]; com_firstplayable_hxlib_utils_Platform.iPod.toString = $estr; com_firstplayable_hxlib_utils_Platform.iPod.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.iOS = ["iOS",5]; com_firstplayable_hxlib_utils_Platform.iOS.toString = $estr; com_firstplayable_hxlib_utils_Platform.iOS.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.Opera_Mini = ["Opera_Mini",6]; com_firstplayable_hxlib_utils_Platform.Opera_Mini.toString = $estr; com_firstplayable_hxlib_utils_Platform.Opera_Mini.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.IEMobile = ["IEMobile",7]; com_firstplayable_hxlib_utils_Platform.IEMobile.toString = $estr; com_firstplayable_hxlib_utils_Platform.IEMobile.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.Windows = ["Windows",8]; com_firstplayable_hxlib_utils_Platform.Windows.toString = $estr; com_firstplayable_hxlib_utils_Platform.Windows.__enum__ = com_firstplayable_hxlib_utils_Platform; com_firstplayable_hxlib_utils_Platform.__empty_constructs__ = [com_firstplayable_hxlib_utils_Platform.Android,com_firstplayable_hxlib_utils_Platform.BlackBerry,com_firstplayable_hxlib_utils_Platform.iPhone,com_firstplayable_hxlib_utils_Platform.iPad,com_firstplayable_hxlib_utils_Platform.iPod,com_firstplayable_hxlib_utils_Platform.iOS,com_firstplayable_hxlib_utils_Platform.Opera_Mini,com_firstplayable_hxlib_utils_Platform.IEMobile,com_firstplayable_hxlib_utils_Platform.Windows]; var openfl_display_MovieClip = function() { openfl_display_Sprite.call(this); this.__currentFrame = 1; this.__currentLabels = []; this.__totalFrames = 0; this.enabled = true; if(openfl_display_MovieClip.__initSymbol != null) { this.__swf = openfl_display_MovieClip.__initSWF; this.__symbol = openfl_display_MovieClip.__initSymbol; openfl_display_MovieClip.__initSWF = null; openfl_display_MovieClip.__initSymbol = null; this.__fromSymbol(this.__swf,this.__symbol); } }; $hxClasses["openfl.display.MovieClip"] = openfl_display_MovieClip; openfl_display_MovieClip.__name__ = ["openfl","display","MovieClip"]; openfl_display_MovieClip.__super__ = openfl_display_Sprite; openfl_display_MovieClip.prototype = $extend(openfl_display_Sprite.prototype,{ enabled: null ,__activeInstances: null ,__activeInstancesByFrameObjectID: null ,__currentFrame: null ,__currentFrameLabel: null ,__currentLabel: null ,__currentLabels: null ,__frameScripts: null ,__frameTime: null ,__lastFrameScriptEval: null ,__lastFrameUpdate: null ,__playing: null ,__swf: null ,__symbol: null ,__timeElapsed: null ,__totalFrames: null ,addFrameScript: function(index,method) { if(index < 0) { return; } var frame = index + 1; if(method != null) { if(this.__frameScripts == null) { this.__frameScripts = new haxe_ds_IntMap(); } this.__frameScripts.h[frame] = method; } else if(this.__frameScripts != null) { this.__frameScripts.remove(frame); } } ,gotoAndPlay: function(frame,scene) { this.play(); this.__goto(this.__resolveFrameReference(frame)); } ,gotoAndStop: function(frame,scene) { this.stop(); this.__goto(this.__resolveFrameReference(frame)); } ,nextFrame: function() { this.stop(); this.__goto(this.__currentFrame + 1); } ,play: function() { if(this.__symbol == null || this.__playing || this.__totalFrames < 2) { return; } this.__playing = true; this.__frameTime = 1000 / this.__swf.frameRate | 0; this.__timeElapsed = 0; } ,prevFrame: function() { this.stop(); this.__goto(this.__currentFrame - 1); } ,stop: function() { this.__playing = false; } ,__enterFrame: function(deltaTime) { if(this.__symbol != null && this.__playing) { var nextFrame = this.__getNextFrame(deltaTime); if(this.__lastFrameScriptEval == nextFrame) { return; } if(this.__frameScripts != null) { if(nextFrame < this.__currentFrame) { if(!this.__evaluateFrameScripts(this.__totalFrames)) { return; } this.__currentFrame = 1; } if(!this.__evaluateFrameScripts(nextFrame)) { return; } } else { this.__currentFrame = nextFrame; } } if(this.__symbol != null && this.__currentFrame != this.__lastFrameUpdate) { this.__updateFrameLabel(); var currentInstancesByFrameObjectID = new haxe_ds_IntMap(); var frame; var frameData; var instance; var _g1 = 0; var _g = this.__currentFrame; while(_g1 < _g) { var i = _g1++; frame = i + 1; frameData = this.__symbol.frames[i]; if(frameData.objects == null) { continue; } var _g2 = 0; var _g3 = frameData.objects; while(_g2 < _g3.length) { var frameObject = _g3[_g2]; ++_g2; var _g4 = frameObject.type; switch(_g4[1]) { case 0: instance = this.__activeInstancesByFrameObjectID.get(frameObject.id); if(instance != null) { currentInstancesByFrameObjectID.h[frameObject.id] = instance; this.__updateDisplayObject(instance.displayObject,frameObject); } break; case 1: instance = currentInstancesByFrameObjectID.h[frameObject.id]; if(instance != null && instance.displayObject != null) { this.__updateDisplayObject(instance.displayObject,frameObject); } break; case 2: currentInstancesByFrameObjectID.remove(frameObject.id); break; } } } var currentInstances = []; var currentMasks = []; var instance1 = currentInstancesByFrameObjectID.iterator(); while(instance1.hasNext()) { var instance2 = instance1.next(); if(currentInstances.indexOf(instance2) == -1) { if(instance2.clipDepth > 0) { currentMasks.push(instance2); } else { currentInstances.push(instance2); } } } currentInstances.sort($bind(this,this.__sortDepths)); var existingChild; var targetDepth; var targetChild; var child; var maskApplied; var _g11 = 0; var _g5 = currentInstances.length; while(_g11 < _g5) { var i1 = _g11++; existingChild = this.__children[i1]; instance = currentInstances[i1]; targetDepth = instance.depth; targetChild = instance.displayObject; if(existingChild != targetChild) { child = targetChild; this.addChildAt(targetChild,i1); } else { child = this.__children[i1]; } maskApplied = false; var _g21 = 0; while(_g21 < currentMasks.length) { var mask = currentMasks[_g21]; ++_g21; if(targetDepth > mask.depth && targetDepth <= mask.clipDepth) { child.set_mask(mask.displayObject); maskApplied = true; break; } } if(currentMasks.length > 0 && !maskApplied && child.get_mask() != null) { child.set_mask(null); } } var child1; var i2 = currentInstances.length; var length = this.__children.length; while(i2 < length) { child1 = this.__children[i2]; var _g6 = 0; var _g12 = this.__activeInstances; while(_g6 < _g12.length) { var instance3 = _g12[_g6]; ++_g6; if(instance3.displayObject == child1) { this.removeChild(child1); --i2; --length; } } ++i2; } this.__lastFrameUpdate = this.__currentFrame; } openfl_display_Sprite.prototype.__enterFrame.call(this,deltaTime); } ,__evaluateFrameScripts: function(advanceToFrame) { var _g1 = this.__currentFrame; var _g = advanceToFrame + 1; while(_g1 < _g) { var frame = _g1++; if(frame == this.__lastFrameScriptEval) { continue; } this.__lastFrameScriptEval = frame; this.__currentFrame = frame; if(this.__frameScripts.h.hasOwnProperty(frame)) { var script = this.__frameScripts.h[frame]; script(); if(this.__currentFrame != frame) { return false; } } if(!this.__playing) { break; } } return true; } ,__fromSymbol: function(swf,symbol) { var _gthis = this; if(this.__activeInstances != null) { return; } this.__swf = swf; this.__symbol = symbol; this.__activeInstances = []; this.__activeInstancesByFrameObjectID = new haxe_ds_IntMap(); this.__currentFrame = 1; this.__lastFrameScriptEval = -1; this.__lastFrameUpdate = -1; this.__totalFrames = this.__symbol.frames.length; var frame; var frameData; var _g1 = 0; var _g = this.__symbol.frames.length; while(_g1 < _g) { var i = _g1++; frame = i + 1; frameData = this.__symbol.frames[i]; if(frameData.label != null) { this.__currentLabels.push(new openfl_display_FrameLabel(frameData.label,i + 1)); } if(frameData.script != null) { if(this.__frameScripts == null) { this.__frameScripts = new haxe_ds_IntMap(); } this.__frameScripts.h[frame] = frameData.script; } else if(frameData.scriptSource != null) { if(this.__frameScripts == null) { this.__frameScripts = new haxe_ds_IntMap(); } try { var script = [eval("(function(){" + frameData.scriptSource + "})")]; var wrapper = (function(script1) { return function() { try { script1[0].call(_gthis); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; haxe_Log.trace("Error evaluating frame script\n " + Std.string(e) + "\n" + haxe_CallStack.exceptionStack().map((function() { return function(a) { return a[2]; }; })()).join("\n") + "\n" + Std.string(e.stack) + "\n" + script1[0].toString(),{ fileName : "MovieClip.hx", lineNumber : 488, className : "openfl.display.MovieClip", methodName : "__fromSymbol"}); } }; })(script); this.__frameScripts.h[frame] = wrapper; } catch( e1 ) { haxe_CallStack.lastException = e1; if(this.__symbol.className != null) { lime_utils_Log.warn("Unable to evaluate frame script source for symbol \"" + this.__symbol.className + "\" frame " + frame + "\n" + frameData.scriptSource,{ fileName : "MovieClip.hx", lineNumber : 504, className : "openfl.display.MovieClip", methodName : "__fromSymbol"}); } else { lime_utils_Log.warn("Unable to evaluate frame script source:\n" + frameData.scriptSource,{ fileName : "MovieClip.hx", lineNumber : 508, className : "openfl.display.MovieClip", methodName : "__fromSymbol"}); } } } } var frame1; var frameData1; var instance; var duplicate; var symbol1; var displayObject; var _g11 = 0; var _g2 = this.__totalFrames; while(_g11 < _g2) { var i1 = _g11++; frame1 = i1 + 1; frameData1 = this.__symbol.frames[i1]; if(frameData1.objects == null) { continue; } var _g21 = 0; var _g3 = frameData1.objects; while(_g21 < _g3.length) { var frameObject = _g3[_g21]; ++_g21; if(frameObject.type == openfl__$internal_timeline_FrameObjectType.CREATE) { if(this.__activeInstancesByFrameObjectID.h.hasOwnProperty(frameObject.id)) { continue; } else { instance = null; duplicate = false; var _g4 = 0; var _g5 = this.__activeInstances; while(_g4 < _g5.length) { var activeInstance = _g5[_g4]; ++_g4; if(activeInstance.displayObject != null && activeInstance.characterID == frameObject.symbol && activeInstance.depth == frameObject.depth) { instance = activeInstance; duplicate = true; break; } } } if(instance == null) { symbol1 = this.__swf.symbols.h[frameObject.symbol]; if(symbol1 != null) { displayObject = symbol1.__createObject(this.__swf); if(displayObject != null) { displayObject.parent = this; displayObject.stage = this.stage; instance = new openfl_display__$MovieClip_FrameSymbolInstance(frame1,frameObject.id,frameObject.symbol,frameObject.depth,displayObject,frameObject.clipDepth); } } } if(instance != null) { this.__activeInstancesByFrameObjectID.h[frameObject.id] = instance; if(!duplicate) { this.__activeInstances.push(instance); this.__updateDisplayObject(instance.displayObject,frameObject); } } } } } if(this.__totalFrames > 1) { this.play(); } this.__enterFrame(0); var _g6 = 0; var _g12 = Type.getInstanceFields(js_Boot.getClass(this)); while(_g6 < _g12.length) { var field = _g12[_g6]; ++_g6; var _g22 = 0; var _g31 = this.__children; while(_g22 < _g31.length) { var child = _g31[_g22]; ++_g22; if(child.get_name() == field) { this[field] = child; } } } } ,__getNextFrame: function(deltaTime) { this.__timeElapsed += deltaTime; var nextFrame = this.__currentFrame + Math.floor(this.__timeElapsed / this.__frameTime); if(nextFrame < 1) { nextFrame = 1; } if(nextFrame > this.__totalFrames) { nextFrame = Math.floor((nextFrame - 1) % this.__totalFrames) + 1; } this.__timeElapsed %= this.__frameTime; return nextFrame; } ,__goto: function(frame) { if(this.__symbol == null) { return; } if(frame < 1) { frame = 1; } else if(frame > this.__totalFrames) { frame = this.__totalFrames; } this.__currentFrame = frame; this.__enterFrame(0); } ,__resolveFrameReference: function(frame) { if(typeof(frame) == "number" && ((frame | 0) === frame)) { return frame; } else if(typeof(frame) == "string") { var label = frame; var _g = 0; var _g1 = this.__currentLabels; while(_g < _g1.length) { var frameLabel = _g1[_g]; ++_g; if(frameLabel.get_name() == label) { return frameLabel.get_frame(); } } throw new js__$Boot_HaxeError(new openfl_errors_ArgumentError("Error #2109: Frame label " + label + " not found in scene.")); } else { throw new js__$Boot_HaxeError("Invalid type for frame " + Type.getClassName(frame)); } } ,__sortDepths: function(a,b) { return a.depth - b.depth; } ,__stopAllMovieClips: function() { openfl_display_Sprite.prototype.__stopAllMovieClips.call(this); this.stop(); } ,__updateDisplayObject: function(displayObject,frameObject) { if(displayObject == null) { return; } if(frameObject.name != null) { displayObject.set_name(frameObject.name); } if(frameObject.matrix != null) { displayObject.get_transform().set_matrix(frameObject.matrix); } if(frameObject.colorTransform != null) { displayObject.get_transform().set_colorTransform(frameObject.colorTransform); } if(frameObject.filters != null) { var filters = []; var _g = 0; var _g1 = frameObject.filters; while(_g < _g1.length) { var filter = _g1[_g]; ++_g; switch(filter[1]) { case 0: var quality = filter[4]; var blurY = filter[3]; var blurX = filter[2]; filters.push(new openfl_filters_BlurFilter(blurX,blurY,quality)); break; case 1: var matrix = filter[2]; filters.push(new openfl_filters_ColorMatrixFilter(matrix)); break; case 2: var hideObject = filter[12]; var knockout = filter[11]; var inner = filter[10]; var quality1 = filter[9]; var strength = filter[8]; var blurY1 = filter[7]; var blurX1 = filter[6]; var alpha = filter[5]; var color = filter[4]; var angle = filter[3]; var distance = filter[2]; filters.push(new openfl_filters_DropShadowFilter(distance,angle,color,alpha,blurX1,blurY1,strength,quality1,inner,knockout,hideObject)); break; case 3: var knockout1 = filter[9]; var inner1 = filter[8]; var quality2 = filter[7]; var strength1 = filter[6]; var blurY2 = filter[5]; var blurX2 = filter[4]; var alpha1 = filter[3]; var color1 = filter[2]; filters.push(new openfl_filters_GlowFilter(color1,alpha1,blurX2,blurY2,strength1,quality2,inner1,knockout1)); break; } } displayObject.set_filters(filters); } if(frameObject.visible != null) { displayObject.set_visible(frameObject.visible); } if(frameObject.blendMode != null) { displayObject.set_blendMode(frameObject.blendMode); } var tmp = frameObject.cacheAsBitmap != null; } ,__updateFrameLabel: function() { this.__currentFrameLabel = this.__symbol.frames[this.__currentFrame - 1].label; if(this.__currentFrameLabel != null) { this.__currentLabel = this.__currentFrameLabel; } else { this.__currentLabel = null; var _g = 0; var _g1 = this.__currentLabels; while(_g < _g1.length) { var label = _g1[_g]; ++_g; if(label.get_frame() < this.__currentFrame) { this.__currentLabel = label.get_name(); } else { break; } } } } ,get_currentFrame: function() { return this.__currentFrame; } ,get_currentFrameLabel: function() { return this.__currentFrameLabel; } ,get_currentLabel: function() { return this.__currentLabel; } ,get_currentLabels: function() { return this.__currentLabels; } ,get_framesLoaded: function() { return this.__totalFrames; } ,get_isPlaying: function() { return this.__playing; } ,get_totalFrames: function() { return this.__totalFrames; } ,__class__: openfl_display_MovieClip ,__properties__: $extend(openfl_display_Sprite.prototype.__properties__,{get_totalFrames:"get_totalFrames",get_isPlaying:"get_isPlaying",get_framesLoaded:"get_framesLoaded",get_currentLabels:"get_currentLabels",get_currentLabel:"get_currentLabel",get_currentFrameLabel:"get_currentFrameLabel",get_currentFrame:"get_currentFrame"}) }); var openfl_Lib = function() { }; $hxClasses["openfl.Lib"] = openfl_Lib; openfl_Lib.__name__ = ["openfl","Lib"]; openfl_Lib["as"] = function(v,c) { if(js_Boot.__instanceof(v,c)) { return v; } else { return null; } }; openfl_Lib.attach = function(name) { return new openfl_display_MovieClip(); }; openfl_Lib.getTimer = function() { return lime_system_System.getTimer(); }; openfl_Lib.getURL = function(request,target) { if(target == null) { target = "_blank"; } lime_system_System.openURL(request.url,target); }; openfl_Lib.notImplemented = function(posInfo) { var api = posInfo.className + "." + posInfo.methodName; var _this = openfl_Lib.__sentWarnings; if(!(__map_reserved[api] != null ? _this.existsReserved(api) : _this.h.hasOwnProperty(api))) { var _this1 = openfl_Lib.__sentWarnings; if(__map_reserved[api] != null) { _this1.setReserved(api,true); } else { _this1.h[api] = true; } lime_utils_Log.warn(posInfo.methodName + " is not implemented",posInfo); } }; openfl_Lib.preventDefaultTouchMove = function() { window.document.addEventListener("touchmove",function(evt) { evt.preventDefault(); },false); }; openfl_Lib.trace = function(arg) { haxe_Log.trace(arg,{ fileName : "Lib.hx", lineNumber : 151, className : "openfl.Lib", methodName : "trace"}); }; var com_firstplayable_hxlib_utils_DeviceCapabilities = function() { }; $hxClasses["com.firstplayable.hxlib.utils.DeviceCapabilities"] = com_firstplayable_hxlib_utils_DeviceCapabilities; com_firstplayable_hxlib_utils_DeviceCapabilities.__name__ = ["com","firstplayable","hxlib","utils","DeviceCapabilities"]; com_firstplayable_hxlib_utils_DeviceCapabilities.__properties__ = {get_browserVersion:"get_browserVersion",get_browser:"get_browser"}; com_firstplayable_hxlib_utils_DeviceCapabilities.string = function() { return "Device Capabilities:" + "\n platform: " + window.navigator.userAgent + "\n isMobile?: " + Std.string(new EReg("Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile","i").match(window.navigator.userAgent)) + "\n os: " + "HTML5" + "\n resolution: " + Std.string(new openfl_geom_Point(openfl_system_Capabilities.get_screenResolutionX(),openfl_system_Capabilities.get_screenResolutionY())); }; com_firstplayable_hxlib_utils_DeviceCapabilities.get_browser = function() { if(com_firstplayable_hxlib_utils_DeviceCapabilities.browser == null) { com_firstplayable_hxlib_utils_DeviceCapabilities.getBrowserAndVersion(); } return com_firstplayable_hxlib_utils_DeviceCapabilities.browser; }; com_firstplayable_hxlib_utils_DeviceCapabilities.get_browserVersion = function() { if(com_firstplayable_hxlib_utils_DeviceCapabilities.get_browser() == null) { com_firstplayable_hxlib_utils_DeviceCapabilities.getBrowserAndVersion(); } return com_firstplayable_hxlib_utils_DeviceCapabilities.browserVersion; }; com_firstplayable_hxlib_utils_DeviceCapabilities.getBrowserAndVersion = function() { var ua = window.navigator.userAgent; var i; var version; i = ua.indexOf("OPR/"); if(i != -1) { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Opera"; version = HxOverrides.substr(ua,i + 4,null); } else { i = ua.indexOf("Opera"); if(i != -1) { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Opera"; version = HxOverrides.substr(ua,i + 8,null); } else { i = ua.indexOf("MSIE"); if(i != -1) { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Internet Explorer"; version = HxOverrides.substr(ua,i + 5,null); } else { i = ua.indexOf("Trident"); if(i != -1) { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Internet Explorer"; i = ua.indexOf("rv:"); version = HxOverrides.substr(ua,i + 3,null); } else { i = ua.indexOf("Chrome"); if(i != -1) { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Chrome"; version = HxOverrides.substr(ua,i + 7,null); } else { i = ua.indexOf("Safari"); if(i != -1) { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Safari"; version = HxOverrides.substr(ua,i + 7,null); i = ua.indexOf("Version"); if(i != -1) { version = HxOverrides.substr(ua,i + 8,null); } } else { i = ua.indexOf("Firefox"); if(i != -1) { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Firefox"; version = HxOverrides.substr(ua,i + 8,null); } else { com_firstplayable_hxlib_utils_DeviceCapabilities.browser = "Unknown"; version = "0"; } } } } } } } com_firstplayable_hxlib_utils_DeviceCapabilities.browserVersion = Std.parseInt(version); }; com_firstplayable_hxlib_utils_DeviceCapabilities.isMobile = function() { return new EReg("Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile","i").match(window.navigator.userAgent); }; com_firstplayable_hxlib_utils_DeviceCapabilities.isPlatform = function(pform) { var reg; switch(pform[1]) { case 0: reg = new EReg("Android","i"); break; case 1: reg = new EReg("BlackBerry","i"); break; case 2: reg = new EReg("iPhone","i"); break; case 3: reg = new EReg("iPad","i"); break; case 4: reg = new EReg("iPod","i"); break; case 5: reg = new EReg("iPad|iPod|iPhone","i"); break; case 6: reg = new EReg("Opera Mini","i"); break; case 7: reg = new EReg("IEMobile","i"); break; case 8: reg = new EReg("Windows","i"); break; } return reg.match(window.navigator.userAgent); }; com_firstplayable_hxlib_utils_DeviceCapabilities.platform = function() { return window.navigator.userAgent; }; com_firstplayable_hxlib_utils_DeviceCapabilities.aspectRatio = function() { var w = 0; var h = 0; var app = openfl_Lib.application; if(app != null) { var win = app.__windows[0]; if(win != null) { w = win.__width; h = win.__height; } } if(w == 0) { w = window.innerWidth; } if(h == 0) { h = window.innerHeight; } var aspect = Math.max(w,h) / Math.min(w,h); return aspect; }; com_firstplayable_hxlib_utils_DeviceCapabilities.isCocoonJS = function() { return Boolean(window.navigator.isCocoonJS); }; com_firstplayable_hxlib_utils_DeviceCapabilities.os = function() { return "HTML5"; }; com_firstplayable_hxlib_utils_DeviceCapabilities.screenResolution = function() { return new openfl_geom_Point(openfl_system_Capabilities.get_screenResolutionX(),openfl_system_Capabilities.get_screenResolutionY()); }; var com_firstplayable_hxlib_utils_MacroUtils = function() { }; $hxClasses["com.firstplayable.hxlib.utils.MacroUtils"] = com_firstplayable_hxlib_utils_MacroUtils; com_firstplayable_hxlib_utils_MacroUtils.__name__ = ["com","firstplayable","hxlib","utils","MacroUtils"]; var com_firstplayable_hxlib_utils_MathUtils = function() { }; $hxClasses["com.firstplayable.hxlib.utils.MathUtils"] = com_firstplayable_hxlib_utils_MathUtils; com_firstplayable_hxlib_utils_MathUtils.__name__ = ["com","firstplayable","hxlib","utils","MathUtils"]; com_firstplayable_hxlib_utils_MathUtils.randomRange = function(min,max) { return Std.random(max - min) + min; }; com_firstplayable_hxlib_utils_MathUtils.randRangeFloat = function(min,max) { return Math.random() * (max - min) + min; }; com_firstplayable_hxlib_utils_MathUtils.dotProduct = function(vectorOne,vectorTwo) { return vectorOne.x * vectorTwo.x + vectorOne.y * vectorTwo.y; }; com_firstplayable_hxlib_utils_MathUtils.equalFloat = function(a,b,fEpsilon) { if(fEpsilon == null) { fEpsilon = 0.0001; } var d = a - b; if(d < fEpsilon) { return d > -fEpsilon; } else { return false; } }; com_firstplayable_hxlib_utils_MathUtils.floatEqual = function(a,b,fEpsilon) { if(fEpsilon == null) { fEpsilon = 0.0001; } var d = a - b; if(d < fEpsilon) { return d > -fEpsilon; } else { return false; } }; com_firstplayable_hxlib_utils_MathUtils.signFloat = function(value) { if(value > 0.0) { return 1.0; } else if(value < 0.0) { return -1.0; } else { return value; } }; com_firstplayable_hxlib_utils_MathUtils.lerp = function(p1,p2,t) { return openfl_geom_Point.interpolate(p2,p1,t); }; com_firstplayable_hxlib_utils_MathUtils.project = function(u,v) { var vLen = Math.sqrt(v.x * v.x + v.y * v.y); var d = vLen; if(d < 0.0001 && d > -0.0001) { return new openfl_geom_Point(0,0); } var v1 = v; var vn_x = v1.x /= vLen; var v2 = v; var vn_y = v2.y /= vLen; var vn = new openfl_geom_Point(vn_x,vn_y); var dotProd = com_firstplayable_hxlib_utils_MathUtils.dotProduct(u,vn); vn.x *= dotProd; vn.y *= dotProd; return vn; }; com_firstplayable_hxlib_utils_MathUtils.reflect = function(toReflect,toReflectAcross) { var projectedVector = com_firstplayable_hxlib_utils_MathUtils.project(toReflect,toReflectAcross); var dp = projectedVector.subtract(toReflect); projectedVector.offset(dp.x,dp.y); return projectedVector; }; com_firstplayable_hxlib_utils_MathUtils.truncateTo = function(f,dig) { var power = Math.pow(10,dig); return (f * power | 0) / power; }; com_firstplayable_hxlib_utils_MathUtils.isEven = function(i) { return (i & 1) == 0; }; com_firstplayable_hxlib_utils_MathUtils.isOdd = function(i) { return (i & 1) != 0; }; com_firstplayable_hxlib_utils_MathUtils.isPow2 = function(i) { if(i > 0) { return (i & i - 1) == 0; } else { return false; } }; com_firstplayable_hxlib_utils_MathUtils.absInt = function(i) { if(i > 0) { return i; } else { return -i; } }; com_firstplayable_hxlib_utils_MathUtils.absNum = function(num) { if(num < 0) { return -num; } else { return num; } }; com_firstplayable_hxlib_utils_MathUtils.max = function(a,b) { if(a < b) { return b; } else { return a; } }; com_firstplayable_hxlib_utils_MathUtils.min = function(a,b) { if(b < a) { return b; } else { return a; } }; com_firstplayable_hxlib_utils_MathUtils.modPow2 = function(i,mod) { return i & mod - 1; }; com_firstplayable_hxlib_utils_MathUtils.distanceSqInt = function(p1x,p1y,p2x,p2y) { var a = p2x - p1x; var b = p2y - p1y; return a * a + b * b; }; com_firstplayable_hxlib_utils_MathUtils.distanceSq = function(p1x,p1y,p2x,p2y) { var a = p2x - p1x; var b = p2y - p1y; return a * a + b * b; }; com_firstplayable_hxlib_utils_MathUtils.degreesToRadians = function(angle) { return angle * 0.0174532925; }; com_firstplayable_hxlib_utils_MathUtils.radiansToDegrees = function(angle) { return angle * 57.2957795; }; com_firstplayable_hxlib_utils_MathUtils.fpsToMs = function(fps) { return 1000 / fps; }; com_firstplayable_hxlib_utils_MathUtils.getLinearPoint = function(p1,p2,dist,mod) { var x3 = p2.x - p1.x; var y3 = p2.y - p1.y; var len = Math.sqrt(x3 * x3 + y3 * y3); x3 /= len; y3 /= len; x3 *= dist; y3 *= dist; var result = mod == null ? new openfl_geom_Point() : mod; result.x = p1.x + x3; result.y = p1.y + y3; return result; }; com_firstplayable_hxlib_utils_MathUtils.pointAt = function(source,dest) { var dX = dest.x - source.x; var dY = dest.y - source.y; return Math.atan2(dY,dX) * 57.2957795; }; com_firstplayable_hxlib_utils_MathUtils.inRange = function(val,min,max) { if(val >= min) { return val <= max; } else { return false; } }; com_firstplayable_hxlib_utils_MathUtils.clamp = function(val,min,max) { var condition = typeof(val) != "number" || isNaN(val); if(condition) { com_firstplayable_hxlib_Debug.logHelper("Attempting to clamp a non-numerical value " + val + ". Will result in non-numerical output.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MathUtils.hx", lineNumber : 361, className : "com.firstplayable.hxlib.utils.MathUtils", methodName : "clamp"}); } var condition1 = max < min; if(condition1) { com_firstplayable_hxlib_Debug.logHelper("Attempting to clamp to range [" + min + ", " + max + "] with high value less than low value.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MathUtils.hx", lineNumber : 364, className : "com.firstplayable.hxlib.utils.MathUtils", methodName : "clamp"}); } if(val > max) { val = max; } if(val < min) { val = min; } return val; }; com_firstplayable_hxlib_utils_MathUtils.clampInt = function(val,min,max) { var condition = !(typeof(val) == "number" && ((val | 0) === val)); if(condition) { com_firstplayable_hxlib_Debug.logHelper("Attempting to clamp non-integral value " + val + " to integer range.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MathUtils.hx", lineNumber : 398, className : "com.firstplayable.hxlib.utils.MathUtils", methodName : "clampInt"}); } var condition1 = max < min; if(condition1) { com_firstplayable_hxlib_Debug.logHelper("Attempting to clamp to range [" + min + ", " + max + "] with high value less than low value.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "MathUtils.hx", lineNumber : 401, className : "com.firstplayable.hxlib.utils.MathUtils", methodName : "clampInt"}); } if(val > max) { val = max; } if(val < min) { val = min; } return val; }; var com_firstplayable_hxlib_utils_Utils = function() { }; $hxClasses["com.firstplayable.hxlib.utils.Utils"] = com_firstplayable_hxlib_utils_Utils; com_firstplayable_hxlib_utils_Utils.__name__ = ["com","firstplayable","hxlib","utils","Utils"]; com_firstplayable_hxlib_utils_Utils.safeAddListener = function(object,eventType,handler,useCapture,priority,useWeakReference) { if(useWeakReference == null) { useWeakReference = false; } if(priority == null) { priority = 0; } if(useCapture == null) { useCapture = false; } if(object != null && handler != null) { object.addEventListener(eventType,handler,useCapture,priority,useWeakReference); } }; com_firstplayable_hxlib_utils_Utils.safeRemoveListener = function(object,eventType,handler,useCapture) { if(useCapture == null) { useCapture = false; } if(object != null) { object.removeEventListener(eventType,handler,useCapture); } }; com_firstplayable_hxlib_utils_Utils.removeFromParent = function(object) { if(object != null && object.parent != null) { object.parent.removeChild(object); } }; com_firstplayable_hxlib_utils_Utils.getIndexByName = function(parent,childName) { if(parent != null) { var child = parent.getChildByName(childName); if(child != null) { return parent.getChildIndex(child); } } com_firstplayable_hxlib_Debug.logHelper("Can't get index of child named '" + childName + "'; it does not exist on the specified object",com_firstplayable_hxlib_Severity.Warn,{ fileName : "Utils.hx", lineNumber : 90, className : "com.firstplayable.hxlib.utils.Utils", methodName : "getIndexByName"}); return 0; }; var openfl_display_IShaderDrawable = function() { }; $hxClasses["openfl.display.IShaderDrawable"] = openfl_display_IShaderDrawable; openfl_display_IShaderDrawable.__name__ = ["openfl","display","IShaderDrawable"]; openfl_display_IShaderDrawable.prototype = { shader: null ,__class__: openfl_display_IShaderDrawable }; var openfl_text_TextField = function() { openfl_display_InteractiveObject.call(this); this.__caretIndex = -1; this.__displayAsPassword = false; this.__graphics = new openfl_display_Graphics(this); this.__textEngine = new openfl__$internal_text_TextEngine(this); this.__layoutDirty = true; this.__offsetX = 0; this.__offsetY = 0; this.__tabEnabled = true; this.__mouseWheelEnabled = true; this.__text = ""; if(openfl_text_TextField.__defaultTextFormat == null) { openfl_text_TextField.__defaultTextFormat = new openfl_text_TextFormat("Times New Roman",12,0,false,false,false,"","",3,0,0,0,0); openfl_text_TextField.__defaultTextFormat.blockIndent = 0; openfl_text_TextField.__defaultTextFormat.bullet = false; openfl_text_TextField.__defaultTextFormat.letterSpacing = 0; openfl_text_TextField.__defaultTextFormat.kerning = false; } this.__textFormat = openfl_text_TextField.__defaultTextFormat.clone(); var this1 = this.__textEngine.textFormatRanges; var x = new openfl__$internal_text_TextFormatRange(this.__textFormat,0,0); this1.data.push(x); this.addEventListener("mouseDown",$bind(this,this.this_onMouseDown)); }; $hxClasses["openfl.text.TextField"] = openfl_text_TextField; openfl_text_TextField.__name__ = ["openfl","text","TextField"]; openfl_text_TextField.__interfaces__ = [openfl_display_IShaderDrawable]; openfl_text_TextField.__super__ = openfl_display_InteractiveObject; openfl_text_TextField.prototype = $extend(openfl_display_InteractiveObject.prototype,{ shader: null ,__bounds: null ,__caretIndex: null ,__cursorTimer: null ,__dirty: null ,__displayAsPassword: null ,__inputEnabled: null ,__isHTML: null ,__layoutDirty: null ,__mouseWheelEnabled: null ,__offsetX: null ,__offsetY: null ,__selectionIndex: null ,__showCursor: null ,__symbol: null ,__text: null ,__htmlText: null ,__textEngine: null ,__textFormat: null ,__div: null ,appendText: function(text) { if(text == null || text == "") { return; } this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.__updateText(lime_text__$UTF8String_UTF8String_$Impl_$.plus(this.__text,text)); var this1 = this.__textEngine.textFormatRanges; var index = this.__textEngine.textFormatRanges.data.get_length() - 1; this1.data.get(index).end = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } ,getCharBoundaries: function(charIndex) { if(charIndex < 0 || charIndex > lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text) - 1) { return null; } this.__updateLayout(); var _g = 0; var _g1 = this.__textEngine.layoutGroups; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; if(charIndex >= group.startIndex && charIndex <= group.endIndex) { var x = group.offsetX; var _g3 = 0; var _g2 = charIndex - group.startIndex; while(_g3 < _g2) { var i = _g3++; x += group.positions[i]; } var lastPosition = group.positions[charIndex - group.startIndex]; return new openfl_geom_Rectangle(x,group.offsetY,lastPosition,group.ascent + group.descent); } } return null; } ,getCharIndexAtPoint: function(x,y) { if(x <= 2 || x > this.get_width() + 4 || y <= 0 || y > this.get_height() + 4) { return -1; } this.__updateLayout(); x += this.get_scrollH(); var _g1 = 0; var _g = this.get_scrollV() - 1; while(_g1 < _g) { var i = _g1++; y += this.__textEngine.lineHeights.data.get(i); } var _g2 = 0; var _g11 = this.__textEngine.layoutGroups; while(_g2 < _g11.data.get_length()) { var group = _g11.data.get(_g2); ++_g2; if(y >= group.offsetY && y <= group.offsetY + group.height) { if(x >= group.offsetX && x <= group.offsetX + group.width) { var advance = 0.0; var _g3 = 0; var _g21 = group.positions.length; while(_g3 < _g21) { var i1 = _g3++; advance += group.positions[i1]; if(x <= group.offsetX + advance) { return group.startIndex + i1; } } return group.endIndex; } } } return -1; } ,getFirstCharInParagraph: function(charIndex) { if(charIndex < 0 || charIndex > lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text) - 1) { return 0; } var index = this.__textEngine.getLineBreakIndex(); var startIndex = 0; while(index > -1) { if(index <= charIndex) { startIndex = index + 1; } else if(index > charIndex) { break; } index = this.__textEngine.getLineBreakIndex(index + 1); } return startIndex; } ,getLineIndexAtPoint: function(x,y) { this.__updateLayout(); if(x <= 2 || x > this.get_width() + 4 || y <= 0 || y > this.get_height() + 4) { return -1; } var _g1 = 0; var _g = this.get_scrollV() - 1; while(_g1 < _g) { var i = _g1++; y += this.__textEngine.lineHeights.data.get(i); } var _g2 = 0; var _g11 = this.__textEngine.layoutGroups; while(_g2 < _g11.data.get_length()) { var group = _g11.data.get(_g2); ++_g2; if(y >= group.offsetY && y <= group.offsetY + group.height) { return group.lineIndex; } } return -1; } ,getLineIndexOfChar: function(charIndex) { if(charIndex < 0 || charIndex > lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text)) { return -1; } this.__updateLayout(); var _g = 0; var _g1 = this.__textEngine.layoutGroups; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; if(group.startIndex <= charIndex && group.endIndex >= charIndex) { return group.lineIndex; } } return -1; } ,getLineLength: function(lineIndex) { this.__updateLayout(); if(lineIndex < 0 || lineIndex > this.__textEngine.numLines - 1) { return 0; } var startIndex = -1; var endIndex = -1; var _g = 0; var _g1 = this.__textEngine.layoutGroups; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; if(group.lineIndex == lineIndex) { if(startIndex == -1) { startIndex = group.startIndex; } } else if(group.lineIndex == lineIndex + 1) { endIndex = group.startIndex; break; } } if(endIndex == -1) { endIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } return endIndex - startIndex; } ,getLineMetrics: function(lineIndex) { this.__updateLayout(); var ascender = this.__textEngine.lineAscents.data.get(lineIndex); var descender = this.__textEngine.lineDescents.data.get(lineIndex); var leading = this.__textEngine.lineLeadings.data.get(lineIndex); var lineHeight = this.__textEngine.lineHeights.data.get(lineIndex); var lineWidth = this.__textEngine.lineWidths.data.get(lineIndex); var margin; var _g = this.__textFormat.align; switch(_g) { case 0: margin = (this.__textEngine.width - lineWidth) / 2; break; case 1:case 4: margin = this.__textEngine.width - lineWidth - 2; break; case 2:case 3:case 5: margin = 2; break; } return new openfl_text_TextLineMetrics(margin,lineWidth,lineHeight,ascender,descender,leading); } ,getLineOffset: function(lineIndex) { this.__updateLayout(); if(lineIndex < 0 || lineIndex > this.__textEngine.numLines - 1) { return -1; } var _g = 0; var _g1 = this.__textEngine.layoutGroups; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; if(group.lineIndex == lineIndex) { return group.startIndex; } } return 0; } ,getLineText: function(lineIndex) { this.__updateLayout(); if(lineIndex < 0 || lineIndex > this.__textEngine.numLines - 1) { return null; } var startIndex = -1; var endIndex = -1; var _g = 0; var _g1 = this.__textEngine.layoutGroups; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; if(group.lineIndex == lineIndex) { if(startIndex == -1) { startIndex = group.startIndex; } } else if(group.lineIndex == lineIndex + 1) { endIndex = group.startIndex; break; } } if(endIndex == -1) { endIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } return lime_text__$UTF8String_UTF8String_$Impl_$.substring(this.__textEngine.text,startIndex,endIndex); } ,getParagraphLength: function(charIndex) { if(charIndex < 0 || charIndex > lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text) - 1) { return 0; } var startIndex = this.getFirstCharInParagraph(charIndex); var endIndex = this.__textEngine.getLineBreakIndex(charIndex) + 1; if(endIndex == 0) { endIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } return endIndex - startIndex; } ,getTextFormat: function(beginIndex,endIndex) { if(endIndex == null) { endIndex = 0; } if(beginIndex == null) { beginIndex = 0; } var format = null; var _g = 0; var _g1 = this.__textEngine.textFormatRanges; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; if(group.start <= beginIndex && group.end >= beginIndex || group.start <= endIndex && group.end >= endIndex) { if(format == null) { format = group.format.clone(); } else { if(group.format.font != format.font) { format.font = null; } if(group.format.size != format.size) { format.size = null; } if(group.format.color != format.color) { format.color = null; } if(group.format.bold != format.bold) { format.bold = null; } if(group.format.italic != format.italic) { format.italic = null; } if(group.format.underline != format.underline) { format.underline = null; } if(group.format.url != format.url) { format.url = null; } if(group.format.target != format.target) { format.target = null; } if(group.format.align != format.align) { format.align = null; } if(group.format.leftMargin != format.leftMargin) { format.leftMargin = null; } if(group.format.rightMargin != format.rightMargin) { format.rightMargin = null; } if(group.format.indent != format.indent) { format.indent = null; } if(group.format.leading != format.leading) { format.leading = null; } if(group.format.blockIndent != format.blockIndent) { format.blockIndent = null; } if(group.format.bullet != format.bullet) { format.bullet = null; } if(group.format.kerning != format.kerning) { format.kerning = null; } if(group.format.letterSpacing != format.letterSpacing) { format.letterSpacing = null; } if(group.format.tabStops != format.tabStops) { format.tabStops = null; } } } } return format; } ,replaceSelectedText: function(value) { if(value == "" && this.__selectionIndex == this.__caretIndex) { return; } var startIndex = this.__caretIndex < this.__selectionIndex ? this.__caretIndex : this.__selectionIndex; var endIndex = this.__caretIndex > this.__selectionIndex ? this.__caretIndex : this.__selectionIndex; this.replaceText(startIndex,endIndex,value); var i = startIndex + lime_text__$UTF8String_UTF8String_$Impl_$.get_length(js_Boot.__cast(value , String)); this.setSelection(i,i); } ,replaceText: function(beginIndex,endIndex,newText) { if(endIndex < beginIndex || beginIndex < 0 || endIndex > lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text) || newText == null) { return; } this.__updateText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(this.__text,0,beginIndex) + newText + lime_text__$UTF8String_UTF8String_$Impl_$.substring(this.__text,endIndex)); var offset = newText.length - (endIndex - beginIndex); var i = 0; var range; while(i < this.__textEngine.textFormatRanges.data.get_length()) { range = this.__textEngine.textFormatRanges.data.get(i); if(range.start <= beginIndex && range.end >= endIndex) { range.end += offset; ++i; } else if(range.start >= beginIndex && range.end <= endIndex) { if(i > 0) { new openfl__$Vector_AbstractVector(this.__textEngine.textFormatRanges.data.splice(i,1)); } else { range.start = 0; range.end = beginIndex + newText.length; ++i; } offset -= range.end - range.start; } else if(range.start > beginIndex && range.start <= endIndex) { range.start += offset; ++i; } else { ++i; } } this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } ,setSelection: function(beginIndex,endIndex) { this.__selectionIndex = beginIndex; this.__caretIndex = endIndex; } ,setTextFormat: function(format,beginIndex,endIndex) { if(endIndex == null) { endIndex = 0; } if(beginIndex == null) { beginIndex = 0; } var max = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.get_text()); var range; if(beginIndex < 0) { beginIndex = 0; } if(endIndex < 0) { endIndex = 0; } if(endIndex == 0) { if(beginIndex == 0) { endIndex = max; } else { endIndex = beginIndex + 1; } } if(endIndex < beginIndex) { return; } if(beginIndex == 0 && endIndex >= max) { this.__textFormat.__merge(format); if(this.__textEngine.textFormatRanges.data.get_length() > 1) { var this1 = this.__textEngine.textFormatRanges; var len = this.__textEngine.textFormatRanges.data.get_length() - 1; new openfl__$Vector_AbstractVector(this1.data.splice(1,len)); range = this.__textEngine.textFormatRanges.data.get(0); range.format = this.__textFormat; range.start = 0; range.end = max; } } else { var index = this.__textEngine.textFormatRanges.data.get_length(); var searchIndex; while(index > 0) { --index; range = this.__textEngine.textFormatRanges.data.get(index); if(range.start == beginIndex && range.end == endIndex) { range.format = openfl_text_TextField.__defaultTextFormat.clone(); range.format.__merge(format); return; } if(range.start >= beginIndex && range.end <= endIndex) { searchIndex = this.__textEngine.textFormatRanges.data.indexOf(range,0); if(searchIndex > -1) { new openfl__$Vector_AbstractVector(this.__textEngine.textFormatRanges.data.splice(searchIndex,1)); } } } var prevRange = null; var nextRange = null; if(beginIndex > 0) { var _g1 = 0; var _g = this.__textEngine.textFormatRanges.data.get_length(); while(_g1 < _g) { var i = _g1++; range = this.__textEngine.textFormatRanges.data.get(i); if(range.end >= beginIndex) { prevRange = range; break; } } } if(endIndex < max) { var ni = this.__textEngine.textFormatRanges.data.get_length(); while(--ni >= 0) { range = this.__textEngine.textFormatRanges.data.get(ni); if(range.start <= endIndex) { nextRange = range; break; } } } if(nextRange == prevRange) { nextRange = new openfl__$internal_text_TextFormatRange(nextRange.format.clone(),nextRange.start,nextRange.end); this.__textEngine.textFormatRanges.data.push(nextRange); } if(prevRange != null) { prevRange.end = beginIndex; } if(nextRange != null) { nextRange.start = endIndex; } var textFormat = openfl_text_TextField.__defaultTextFormat.clone(); textFormat.__merge(format); var this2 = this.__textEngine.textFormatRanges; var x = new openfl__$internal_text_TextFormatRange(textFormat,beginIndex,endIndex); this2.data.push(x); this.__textEngine.textFormatRanges.data.sort(function(a,b) { if(a.start < b.start || a.end < b.end) { return -1; } else if(a.start > b.start || a.end > b.end) { return 1; } return 0; }); } this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } ,__caretBeginningOfLine: function() { if(this.__selectionIndex == this.__caretIndex || this.__caretIndex < this.__selectionIndex) { this.__caretIndex = this.getLineOffset(this.getLineIndexOfChar(this.__caretIndex)); } else { this.__selectionIndex = this.getLineOffset(this.getLineIndexOfChar(this.__selectionIndex)); } } ,__caretEndOfLine: function() { var lineIndex; if(this.__selectionIndex == this.__caretIndex) { lineIndex = this.getLineIndexOfChar(this.__caretIndex); } else { lineIndex = this.getLineIndexOfChar(Math.max(this.__caretIndex,this.__selectionIndex) | 0); } if(lineIndex < this.__textEngine.numLines - 1) { this.__caretIndex = this.getLineOffset(lineIndex + 1) - 1; } else { this.__caretIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } } ,__caretNextCharacter: function() { if(this.__caretIndex < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text)) { this.__caretIndex++; } } ,__caretNextLine: function(lineIndex,caretIndex) { if(lineIndex == null) { lineIndex = this.getLineIndexOfChar(this.__caretIndex); } if(lineIndex < this.__textEngine.numLines - 1) { if(caretIndex == null) { caretIndex = this.__caretIndex; } this.__caretIndex = this.__getCharIndexOnDifferentLine(caretIndex,lineIndex + 1); } else { this.__caretIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } } ,__caretPreviousCharacter: function() { if(this.__caretIndex > 0) { this.__caretIndex--; } } ,__caretPreviousLine: function(lineIndex,caretIndex) { if(lineIndex == null) { lineIndex = this.getLineIndexOfChar(this.__caretIndex); } if(lineIndex > 0) { if(caretIndex == null) { caretIndex = this.__caretIndex; } this.__caretIndex = this.__getCharIndexOnDifferentLine(caretIndex,lineIndex - 1); } else { this.__caretIndex = 0; } } ,__disableInput: function() { if(this.__inputEnabled && this.stage != null) { this.stage.window.backend.setEnableTextEvents(false); this.stage.window.onTextInput.remove($bind(this,this.window_onTextInput)); this.stage.window.onKeyDown.remove($bind(this,this.window_onKeyDown)); this.__inputEnabled = false; this.__stopCursorTimer(); } } ,__dispatch: function(event) { if(event.eventPhase == 2 && event.type == "mouseUp") { var event1 = event; var group = this.__getGroup(this.get_mouseX(),this.get_mouseY(),true); if(group != null) { var url = group.format.url; if(url != "") { if(StringTools.startsWith(url,"event:")) { this.dispatchEvent(new openfl_events_TextEvent("link",false,false,HxOverrides.substr(url,6,null))); } else { openfl_Lib.getURL(new openfl_net_URLRequest(url)); } } } } return openfl_display_InteractiveObject.prototype.__dispatch.call(this,event); } ,__enableInput: function() { if(this.stage != null) { this.stage.window.backend.setEnableTextEvents(true); if(!this.__inputEnabled) { this.stage.window.backend.setEnableTextEvents(true); if(!this.stage.window.onTextInput.has($bind(this,this.window_onTextInput))) { this.stage.window.onTextInput.add($bind(this,this.window_onTextInput)); this.stage.window.onKeyDown.add($bind(this,this.window_onKeyDown)); } this.__inputEnabled = true; this.__startCursorTimer(); } } } ,__fromSymbol: function(swf,symbol) { this.__symbol = symbol; this.set_width(symbol.width); this.set_height(symbol.height); this.__offsetX = symbol.x; this.__offsetY = symbol.y; this.set_multiline(symbol.multiline); this.set_wordWrap(symbol.wordWrap); this.set_displayAsPassword(symbol.password); if(symbol.border) { this.set_border(true); this.set_background(true); } this.set_selectable(symbol.selectable); if(symbol.input) { this.set_type(1); } var format = new openfl_text_TextFormat(); if(symbol.color != null) { format.color = symbol.color & 16777215; } format.size = Math.round(symbol.fontHeight / 20); var font = swf.symbols.h[symbol.fontID]; if(font != null) { format.__ascent = font.ascent / 20 / 1024; format.__descent = font.descent / 20 / 1024; } format.font = symbol.fontName; var found = false; var _g = format.font; if(_g == null) { found = true; } else { switch(_g) { case "":case "_sans":case "_serif":case "_typewriter": found = true; break; default: var _g1 = 0; var _g11 = openfl_text_Font.enumerateFonts(); while(_g1 < _g11.length) { var font1 = _g11[_g1]; ++_g1; if(font1.name == format.font) { found = true; break; } } } } if(!found) { var alpha_r = new RegExp("[^a-zA-Z]+","".split("u").join("")); var _g12 = 0; var _g2 = openfl_text_Font.enumerateFonts(); while(_g12 < _g2.length) { var font2 = _g2[_g12]; ++_g12; if(HxOverrides.substr(font2.name.replace(alpha_r,""),0,symbol.fontName.length) == symbol.fontName) { format.font = font2.name; found = true; break; } } } if(found) { this.set_embedFonts(true); } else { var key = format.font; var _this = openfl_text_TextField.__missingFontWarning; if(!(__map_reserved[key] != null ? _this.existsReserved(key) : _this.h.hasOwnProperty(key))) { var k = format.font; var _this1 = openfl_text_TextField.__missingFontWarning; if(__map_reserved[k] != null) { _this1.setReserved(k,true); } else { _this1.h[k] = true; } lime_utils_Log.warn("Could not find required font \"" + format.font + "\", it has not been embedded",{ fileName : "TextField.hx", lineNumber : 1031, className : "openfl.text.TextField", methodName : "__fromSymbol"}); } } if(symbol.align != null) { if(symbol.align == "center") { format.align = 0; } else if(symbol.align == "right") { format.align = 4; } else if(symbol.align == "justify") { format.align = 2; } format.leftMargin = symbol.leftMargin / 20 | 0; format.rightMargin = symbol.rightMargin / 20 | 0; format.indent = symbol.indent / 20 | 0; format.leading = symbol.leading / 20 | 0; } this.set_defaultTextFormat(format); if(symbol.text != null) { if(symbol.html) { this.set_htmlText(symbol.text); } else { this.set_text(symbol.text); } } } ,__getAdvance: function(position) { return position; } ,__getBounds: function(rect,matrix) { this.__updateLayout(); var bounds = openfl_geom_Rectangle.__pool.get(); bounds.copyFrom(this.__textEngine.bounds); bounds.x += this.__offsetX; bounds.y += this.__offsetY; bounds.__transform(bounds,matrix); rect.__expand(bounds.x,bounds.y,bounds.width,bounds.height); openfl_geom_Rectangle.__pool.release(bounds); } ,__getCharIndexOnDifferentLine: function(charIndex,lineIndex) { if(charIndex < 0 || charIndex > lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text)) { return -1; } if(lineIndex < 0 || lineIndex > this.__textEngine.numLines - 1) { return -1; } var x = null; var y = null; var _g = 0; var _g1 = this.__textEngine.layoutGroups; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; if(charIndex >= group.startIndex && charIndex <= group.endIndex) { x = group.offsetX; var _g3 = 0; var _g2 = charIndex - group.startIndex; while(_g3 < _g2) { var i = _g3++; x += group.positions[i]; } if(y != null) { return this.__getPosition(x,y); } } if(group.lineIndex == lineIndex) { y = group.offsetY + group.height / 2; if(x != null) { return this.__getPosition(x,y); } } } return -1; } ,__getCursor: function() { var group = this.__getGroup(this.get_mouseX(),this.get_mouseY(),true); if(group != null && group.format.url != "") { return lime_ui_MouseCursor.POINTER; } else if(this.__textEngine.selectable) { return lime_ui_MouseCursor.TEXT; } return null; } ,__getGroup: function(x,y,precise) { if(precise == null) { precise = false; } this.__updateLayout(); x += this.get_scrollH(); var _g1 = 0; var _g = this.get_scrollV() - 1; while(_g1 < _g) { var i = _g1++; y += this.__textEngine.lineHeights.data.get(i); } if(!precise && y > this.__textEngine.textHeight) { y = this.__textEngine.textHeight; } var firstGroup = true; var group; var nextGroup; var _g11 = 0; var _g2 = this.__textEngine.layoutGroups.data.get_length(); while(_g11 < _g2) { var i1 = _g11++; group = this.__textEngine.layoutGroups.data.get(i1); if(i1 < this.__textEngine.layoutGroups.data.get_length() - 1) { nextGroup = this.__textEngine.layoutGroups.data.get(i1 + 1); } else { nextGroup = null; } if(firstGroup) { if(y < group.offsetY) { y = group.offsetY; } if(x < group.offsetX) { x = group.offsetX; } firstGroup = false; } if(y >= group.offsetY && y <= group.offsetY + group.height || !precise && nextGroup == null) { if(x >= group.offsetX && x <= group.offsetX + group.width || !precise && (nextGroup == null || nextGroup.lineIndex != group.lineIndex)) { return group; } } } return null; } ,__getPosition: function(x,y) { var group = this.__getGroup(x,y); if(group == null) { return lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } var advance = 0.0; var _g1 = 0; var _g = group.positions.length; while(_g1 < _g) { var i = _g1++; advance += group.positions[i]; if(x <= group.offsetX + advance) { if(x <= group.offsetX + (advance - group.positions[i]) + group.positions[i] / 2) { return group.startIndex + i; } else if(group.startIndex + i < group.endIndex) { return group.startIndex + i + 1; } else { return group.endIndex; } } } return group.endIndex; } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { if(!hitObject.get_visible() || this.__isMask || interactiveOnly && !this.mouseEnabled) { return false; } if(this.get_mask() != null && !this.get_mask().__hitTestMask(x,y)) { return false; } this.__getRenderTransform(); this.__updateLayout(); var _this = this.__renderTransform; var norm = _this.a * _this.d - _this.b * _this.c; var px = norm == 0 ? -_this.tx : 1.0 / norm * (_this.c * (_this.ty - y) + _this.d * (x - _this.tx)); var _this1 = this.__renderTransform; var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; var py = norm1 == 0 ? -_this1.ty : 1.0 / norm1 * (_this1.a * (y - _this1.ty) + _this1.b * (_this1.tx - x)); if(this.__textEngine.bounds.contains(px,py)) { if(stack != null) { stack.push(hitObject); } return true; } return false; } ,__hitTestMask: function(x,y) { this.__getRenderTransform(); this.__updateLayout(); var _this = this.__renderTransform; var norm = _this.a * _this.d - _this.b * _this.c; var px = norm == 0 ? -_this.tx : 1.0 / norm * (_this.c * (_this.ty - y) + _this.d * (x - _this.tx)); var _this1 = this.__renderTransform; var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; var py = norm1 == 0 ? -_this1.ty : 1.0 / norm1 * (_this1.a * (y - _this1.ty) + _this1.b * (_this1.tx - x)); if(this.__textEngine.bounds.contains(px,py)) { return true; } return false; } ,__renderCairo: function(renderSession) { } ,__renderCanvas: function(renderSession) { var transform = this.__worldTransform; var textEngine = this.__textEngine; var bounds = textEngine.bounds; var graphics = this.__graphics; if(this.__dirty) { this.__updateLayout(); if(graphics.__bounds == null) { graphics.__bounds = new openfl_geom_Rectangle(); } graphics.__bounds.copyFrom(bounds); } graphics.__update(); if(this.__dirty || graphics.__dirty) { var width = graphics.__width; var height = graphics.__height; if((textEngine.text == null || lime_text__$UTF8String_UTF8String_$Impl_$.equals(textEngine.text,"")) && !textEngine.background && !textEngine.border && !textEngine.__hasFocus && (textEngine.type != 1 || !textEngine.selectable) || (textEngine.width <= 0 || textEngine.height <= 0) && textEngine.autoSize != 2) { this.__graphics.__canvas = null; this.__graphics.__context = null; this.__graphics.__bitmap = null; this.__graphics.set___dirty(false); this.__dirty = false; } else { if(this.__graphics.__canvas == null) { this.__graphics.__canvas = window.document.createElement("canvas"); this.__graphics.__context = this.__graphics.__canvas.getContext("2d"); } openfl__$internal_renderer_canvas_CanvasTextField.context = graphics.__context; var transform1 = graphics.__renderTransform; graphics.__canvas.width = width; graphics.__canvas.height = height; openfl__$internal_renderer_canvas_CanvasTextField.context.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx,transform1.ty); if(openfl__$internal_renderer_canvas_CanvasTextField.clearRect == null) { openfl__$internal_renderer_canvas_CanvasTextField.clearRect = (typeof navigator !== 'undefined' && typeof navigator['isCocoonJS'] !== 'undefined'); } if(openfl__$internal_renderer_canvas_CanvasTextField.clearRect) { openfl__$internal_renderer_canvas_CanvasTextField.context.clearRect(0,0,graphics.__canvas.width,graphics.__canvas.height); } if(textEngine.text != null && textEngine.text != "" || textEngine.__hasFocus) { var text = textEngine.text; if(!renderSession.allowSmoothing || textEngine.antiAliasType == 0 && textEngine.sharpness == 400) { graphics.__context.mozImageSmoothingEnabled = false; graphics.__context.msImageSmoothingEnabled = false; graphics.__context.imageSmoothingEnabled = false; } else { graphics.__context.mozImageSmoothingEnabled = true; graphics.__context.msImageSmoothingEnabled = true; graphics.__context.imageSmoothingEnabled = true; } if(textEngine.border || textEngine.background) { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0.5,0.5,bounds.width - 1,bounds.height - 1); if(textEngine.background) { var tmp = StringTools.hex(textEngine.backgroundColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp; openfl__$internal_renderer_canvas_CanvasTextField.context.fill(); } if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; var tmp1 = StringTools.hex(textEngine.borderColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp1; openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); } } openfl__$internal_renderer_canvas_CanvasTextField.context.textBaseline = "top"; openfl__$internal_renderer_canvas_CanvasTextField.context.textAlign = "start"; var scrollX = -this.get_scrollH(); var scrollY = 0.0; var _g1 = 0; var _g = this.get_scrollV() - 1; while(_g1 < _g) { var i = _g1++; scrollY -= textEngine.lineHeights.data.get(i); } var advance; var offsetY = 0.0; var applyHack = new EReg("(iPad|iPhone|iPod|Firefox)","g").match(window.navigator.userAgent); var _g2 = 0; var _g11 = textEngine.layoutGroups; while(_g2 < _g11.data.get_length()) { var group = _g11.data.get(_g2); ++_g2; if(group.lineIndex < this.get_scrollV() - 1) { continue; } if(group.lineIndex > this.get_scrollV() + textEngine.bottomScrollV - 2) { break; } openfl__$internal_renderer_canvas_CanvasTextField.context.font = openfl__$internal_text_TextEngine.getFont(group.format); var tmp2 = StringTools.hex(group.format.color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp2; if(applyHack) { offsetY = group.format.size * 0.185; } if(this.__filters != null && this.__filters.length > 0) { if(js_Boot.__instanceof(this.__filters[0],openfl_filters_GlowFilter)) { var glowFilter = this.__filters[0]; var cacheAlpha = openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha; openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha = cacheAlpha * glowFilter.alpha; var tmp3 = StringTools.hex(glowFilter.color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp3; openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = Math.max(glowFilter.blurX,glowFilter.blurY); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,group.startIndex,group.endIndex),group.offsetX + scrollX,group.offsetY + offsetY + scrollY); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = null; openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha = cacheAlpha; } } openfl__$internal_renderer_canvas_CanvasTextField.context.fillText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,group.startIndex,group.endIndex),group.offsetX + scrollX,group.offsetY + offsetY + scrollY); if(this.__caretIndex > -1 && textEngine.selectable) { if(this.__selectionIndex == this.__caretIndex) { if(this.__showCursor && group.startIndex <= this.__caretIndex && group.endIndex >= this.__caretIndex) { advance = 0.0; var _g3 = 0; var _g21 = this.__caretIndex - group.startIndex; while(_g3 < _g21) { var i1 = _g3++; if(group.positions.length <= i1) { break; } advance += group.positions[i1]; } openfl__$internal_renderer_canvas_CanvasTextField.context.fillRect(group.offsetX + advance,group.offsetY,1,group.height); } } else if(group.startIndex <= this.__caretIndex && group.endIndex >= this.__caretIndex || group.startIndex <= this.__selectionIndex && group.endIndex >= this.__selectionIndex || group.startIndex > this.__caretIndex && group.endIndex < this.__selectionIndex || group.startIndex > this.__selectionIndex && group.endIndex < this.__caretIndex) { var selectionStart = Math.min(this.__selectionIndex,this.__caretIndex) | 0; var selectionEnd = Math.max(this.__selectionIndex,this.__caretIndex) | 0; if(group.startIndex > selectionStart) { selectionStart = group.startIndex; } if(group.endIndex < selectionEnd) { selectionEnd = group.endIndex; } var start; var end; start = this.getCharBoundaries(selectionStart); if(selectionEnd >= lime_text__$UTF8String_UTF8String_$Impl_$.get_length(textEngine.text)) { end = this.getCharBoundaries(lime_text__$UTF8String_UTF8String_$Impl_$.get_length(textEngine.text) - 1); end.x += end.width + 2; } else { end = this.getCharBoundaries(selectionEnd); } if(start != null && end != null) { openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#000000"; openfl__$internal_renderer_canvas_CanvasTextField.context.fillRect(start.x,start.y,end.x - start.x,group.height); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#FFFFFF"; openfl__$internal_renderer_canvas_CanvasTextField.context.fillText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,selectionStart,selectionEnd),scrollX + start.x,group.offsetY + offsetY + scrollY); } } } } } else { if(textEngine.border || textEngine.background) { if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0.5,0.5,bounds.width - 1,bounds.height - 1); } else { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0,0,bounds.width,bounds.height); } if(textEngine.background) { var tmp4 = StringTools.hex(textEngine.backgroundColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp4; openfl__$internal_renderer_canvas_CanvasTextField.context.fill(); } if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; openfl__$internal_renderer_canvas_CanvasTextField.context.lineCap = "square"; var tmp5 = StringTools.hex(textEngine.borderColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp5; openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); } } if(this.__caretIndex > -1 && textEngine.selectable && this.__showCursor) { var scrollX1 = -this.get_scrollH(); var scrollY1 = 0.0; var _g12 = 0; var _g4 = this.get_scrollV() - 1; while(_g12 < _g4) { var i2 = _g12++; scrollY1 -= textEngine.lineHeights.data.get(i2); } openfl__$internal_renderer_canvas_CanvasTextField.context.beginPath(); var tmp6 = StringTools.hex(this.get_defaultTextFormat().color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp6; openfl__$internal_renderer_canvas_CanvasTextField.context.moveTo(scrollX1 + 2.5,scrollY1 + 2.5); openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; openfl__$internal_renderer_canvas_CanvasTextField.context.lineTo(scrollX1 + 2.5,scrollY1 + openfl__$internal_text_TextEngine.getFormatHeight(this.get_defaultTextFormat()) - 1); openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); openfl__$internal_renderer_canvas_CanvasTextField.context.closePath(); } } graphics.__bitmap = openfl_display_BitmapData.fromCanvas(this.__graphics.__canvas); graphics.__visible = true; this.__dirty = false; graphics.set___dirty(false); } } if(this.__textEngine.antiAliasType == 0 && this.__textEngine.gridFitType == 1) { var smoothingEnabled = renderSession.context.imageSmoothingEnabled; if(smoothingEnabled) { renderSession.context.mozImageSmoothingEnabled = false; renderSession.context.msImageSmoothingEnabled = false; renderSession.context.imageSmoothingEnabled = false; } openfl_display_InteractiveObject.prototype.__renderCanvas.call(this,renderSession); if(smoothingEnabled) { renderSession.context.mozImageSmoothingEnabled = true; renderSession.context.msImageSmoothingEnabled = true; renderSession.context.imageSmoothingEnabled = true; } } else { openfl_display_InteractiveObject.prototype.__renderCanvas.call(this,renderSession); } } ,__renderDOM: function(renderSession) { } ,__renderDOMClear: function(renderSession) { } ,__renderGL: function(renderSession) { var transform = this.__worldTransform; var textEngine = this.__textEngine; var bounds = textEngine.bounds; var graphics = this.__graphics; if(this.__dirty) { this.__updateLayout(); if(graphics.__bounds == null) { graphics.__bounds = new openfl_geom_Rectangle(); } graphics.__bounds.copyFrom(bounds); } graphics.__update(); if(this.__dirty || graphics.__dirty) { var width = graphics.__width; var height = graphics.__height; if((textEngine.text == null || lime_text__$UTF8String_UTF8String_$Impl_$.equals(textEngine.text,"")) && !textEngine.background && !textEngine.border && !textEngine.__hasFocus && (textEngine.type != 1 || !textEngine.selectable) || (textEngine.width <= 0 || textEngine.height <= 0) && textEngine.autoSize != 2) { this.__graphics.__canvas = null; this.__graphics.__context = null; this.__graphics.__bitmap = null; this.__graphics.set___dirty(false); this.__dirty = false; } else { if(this.__graphics.__canvas == null) { this.__graphics.__canvas = window.document.createElement("canvas"); this.__graphics.__context = this.__graphics.__canvas.getContext("2d"); } openfl__$internal_renderer_canvas_CanvasTextField.context = graphics.__context; var transform1 = graphics.__renderTransform; graphics.__canvas.width = width; graphics.__canvas.height = height; openfl__$internal_renderer_canvas_CanvasTextField.context.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx,transform1.ty); if(openfl__$internal_renderer_canvas_CanvasTextField.clearRect == null) { openfl__$internal_renderer_canvas_CanvasTextField.clearRect = (typeof navigator !== 'undefined' && typeof navigator['isCocoonJS'] !== 'undefined'); } if(openfl__$internal_renderer_canvas_CanvasTextField.clearRect) { openfl__$internal_renderer_canvas_CanvasTextField.context.clearRect(0,0,graphics.__canvas.width,graphics.__canvas.height); } if(textEngine.text != null && textEngine.text != "" || textEngine.__hasFocus) { var text = textEngine.text; if(!renderSession.allowSmoothing || textEngine.antiAliasType == 0 && textEngine.sharpness == 400) { graphics.__context.mozImageSmoothingEnabled = false; graphics.__context.msImageSmoothingEnabled = false; graphics.__context.imageSmoothingEnabled = false; } else { graphics.__context.mozImageSmoothingEnabled = true; graphics.__context.msImageSmoothingEnabled = true; graphics.__context.imageSmoothingEnabled = true; } if(textEngine.border || textEngine.background) { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0.5,0.5,bounds.width - 1,bounds.height - 1); if(textEngine.background) { var tmp = StringTools.hex(textEngine.backgroundColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp; openfl__$internal_renderer_canvas_CanvasTextField.context.fill(); } if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; var tmp1 = StringTools.hex(textEngine.borderColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp1; openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); } } openfl__$internal_renderer_canvas_CanvasTextField.context.textBaseline = "top"; openfl__$internal_renderer_canvas_CanvasTextField.context.textAlign = "start"; var scrollX = -this.get_scrollH(); var scrollY = 0.0; var _g1 = 0; var _g = this.get_scrollV() - 1; while(_g1 < _g) { var i = _g1++; scrollY -= textEngine.lineHeights.data.get(i); } var advance; var offsetY = 0.0; var applyHack = new EReg("(iPad|iPhone|iPod|Firefox)","g").match(window.navigator.userAgent); var _g2 = 0; var _g11 = textEngine.layoutGroups; while(_g2 < _g11.data.get_length()) { var group = _g11.data.get(_g2); ++_g2; if(group.lineIndex < this.get_scrollV() - 1) { continue; } if(group.lineIndex > this.get_scrollV() + textEngine.bottomScrollV - 2) { break; } openfl__$internal_renderer_canvas_CanvasTextField.context.font = openfl__$internal_text_TextEngine.getFont(group.format); var tmp2 = StringTools.hex(group.format.color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp2; if(applyHack) { offsetY = group.format.size * 0.185; } if(this.__filters != null && this.__filters.length > 0) { if(js_Boot.__instanceof(this.__filters[0],openfl_filters_GlowFilter)) { var glowFilter = this.__filters[0]; var cacheAlpha = openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha; openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha = cacheAlpha * glowFilter.alpha; var tmp3 = StringTools.hex(glowFilter.color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp3; openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = Math.max(glowFilter.blurX,glowFilter.blurY); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,group.startIndex,group.endIndex),group.offsetX + scrollX,group.offsetY + offsetY + scrollY); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = null; openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha = cacheAlpha; } } openfl__$internal_renderer_canvas_CanvasTextField.context.fillText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,group.startIndex,group.endIndex),group.offsetX + scrollX,group.offsetY + offsetY + scrollY); if(this.__caretIndex > -1 && textEngine.selectable) { if(this.__selectionIndex == this.__caretIndex) { if(this.__showCursor && group.startIndex <= this.__caretIndex && group.endIndex >= this.__caretIndex) { advance = 0.0; var _g3 = 0; var _g21 = this.__caretIndex - group.startIndex; while(_g3 < _g21) { var i1 = _g3++; if(group.positions.length <= i1) { break; } advance += group.positions[i1]; } openfl__$internal_renderer_canvas_CanvasTextField.context.fillRect(group.offsetX + advance,group.offsetY,1,group.height); } } else if(group.startIndex <= this.__caretIndex && group.endIndex >= this.__caretIndex || group.startIndex <= this.__selectionIndex && group.endIndex >= this.__selectionIndex || group.startIndex > this.__caretIndex && group.endIndex < this.__selectionIndex || group.startIndex > this.__selectionIndex && group.endIndex < this.__caretIndex) { var selectionStart = Math.min(this.__selectionIndex,this.__caretIndex) | 0; var selectionEnd = Math.max(this.__selectionIndex,this.__caretIndex) | 0; if(group.startIndex > selectionStart) { selectionStart = group.startIndex; } if(group.endIndex < selectionEnd) { selectionEnd = group.endIndex; } var start; var end; start = this.getCharBoundaries(selectionStart); if(selectionEnd >= lime_text__$UTF8String_UTF8String_$Impl_$.get_length(textEngine.text)) { end = this.getCharBoundaries(lime_text__$UTF8String_UTF8String_$Impl_$.get_length(textEngine.text) - 1); end.x += end.width + 2; } else { end = this.getCharBoundaries(selectionEnd); } if(start != null && end != null) { openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#000000"; openfl__$internal_renderer_canvas_CanvasTextField.context.fillRect(start.x,start.y,end.x - start.x,group.height); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#FFFFFF"; openfl__$internal_renderer_canvas_CanvasTextField.context.fillText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,selectionStart,selectionEnd),scrollX + start.x,group.offsetY + offsetY + scrollY); } } } } } else { if(textEngine.border || textEngine.background) { if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0.5,0.5,bounds.width - 1,bounds.height - 1); } else { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0,0,bounds.width,bounds.height); } if(textEngine.background) { var tmp4 = StringTools.hex(textEngine.backgroundColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp4; openfl__$internal_renderer_canvas_CanvasTextField.context.fill(); } if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; openfl__$internal_renderer_canvas_CanvasTextField.context.lineCap = "square"; var tmp5 = StringTools.hex(textEngine.borderColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp5; openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); } } if(this.__caretIndex > -1 && textEngine.selectable && this.__showCursor) { var scrollX1 = -this.get_scrollH(); var scrollY1 = 0.0; var _g12 = 0; var _g4 = this.get_scrollV() - 1; while(_g12 < _g4) { var i2 = _g12++; scrollY1 -= textEngine.lineHeights.data.get(i2); } openfl__$internal_renderer_canvas_CanvasTextField.context.beginPath(); var tmp6 = StringTools.hex(this.get_defaultTextFormat().color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp6; openfl__$internal_renderer_canvas_CanvasTextField.context.moveTo(scrollX1 + 2.5,scrollY1 + 2.5); openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; openfl__$internal_renderer_canvas_CanvasTextField.context.lineTo(scrollX1 + 2.5,scrollY1 + openfl__$internal_text_TextEngine.getFormatHeight(this.get_defaultTextFormat()) - 1); openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); openfl__$internal_renderer_canvas_CanvasTextField.context.closePath(); } } graphics.__bitmap = openfl_display_BitmapData.fromCanvas(this.__graphics.__canvas); graphics.__visible = true; this.__dirty = false; graphics.set___dirty(false); } } openfl_display_InteractiveObject.prototype.__renderGL.call(this,renderSession); } ,__startCursorTimer: function() { this.__cursorTimer = haxe_Timer.delay($bind(this,this.__startCursorTimer),600); this.__showCursor = !this.__showCursor; this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } ,__startTextInput: function() { if(this.__caretIndex < 0) { this.__caretIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); this.__selectionIndex = this.__caretIndex; } var enableInput = true; if(enableInput) { this.__enableInput(); } } ,__stopCursorTimer: function() { if(this.__cursorTimer != null) { this.__cursorTimer.stop(); this.__cursorTimer = null; } if(this.__showCursor) { this.__showCursor = false; this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } } ,__stopTextInput: function() { var disableInput = true; if(disableInput) { this.__disableInput(); } } ,__updateLayout: function() { if(this.__layoutDirty) { var cacheWidth = this.__textEngine.width; var cacheHeight = this.__textEngine.height; this.__textEngine.update(); if(this.__textEngine.autoSize != 2) { if(this.__textEngine.width != cacheWidth) { var _g = this.__textEngine.autoSize; switch(_g) { case 0: var _g1 = this; _g1.set_x(_g1.get_x() + (cacheWidth - this.__textEngine.width) / 2); break; case 3: var _g2 = this; _g2.set_x(_g2.get_x() + (cacheWidth - this.__textEngine.width)); break; default: } } this.__textEngine.getBounds(); } this.__layoutDirty = false; } } ,__updateText: function(value) { this.__text = value; if(lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text) < this.__caretIndex) { this.__selectionIndex = this.__caretIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } if(!this.__displayAsPassword) { this.__textEngine.set_text(this.__text); } else { var length = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.get_text()); var mask = ""; var _g1 = 0; var _g = length; while(_g1 < _g) { var i = _g1++; mask += "*"; } this.__textEngine.set_text(mask); } } ,__updateTransforms: function(overrideTransform) { openfl_display_InteractiveObject.prototype.__updateTransforms.call(this,overrideTransform); var _this = this.__renderTransform; var px = this.__offsetX; var py = this.__offsetY; _this.tx = px * _this.a + py * _this.c + _this.tx; _this.ty = px * _this.b + py * _this.d + _this.ty; } ,get_antiAliasType: function() { return this.__textEngine.antiAliasType; } ,set_antiAliasType: function(value) { var tmp = value != this.__textEngine.antiAliasType; return this.__textEngine.antiAliasType = value; } ,get_autoSize: function() { return this.__textEngine.autoSize; } ,set_autoSize: function(value) { if(value != this.__textEngine.autoSize) { this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.autoSize = value; } ,get_background: function() { return this.__textEngine.background; } ,set_background: function(value) { if(value != this.__textEngine.background) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.background = value; } ,get_backgroundColor: function() { return this.__textEngine.backgroundColor; } ,set_backgroundColor: function(value) { if(value != this.__textEngine.backgroundColor) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.backgroundColor = value; } ,get_border: function() { return this.__textEngine.border; } ,set_border: function(value) { if(value != this.__textEngine.border) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.border = value; } ,get_borderColor: function() { return this.__textEngine.borderColor; } ,set_borderColor: function(value) { if(value != this.__textEngine.borderColor) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.borderColor = value; } ,get_bottomScrollV: function() { this.__updateLayout(); return this.__textEngine.bottomScrollV; } ,get_cacheAsBitmap: function() { if(this.__filters != null && this.__filters.length == 1 && js_Boot.__instanceof(this.__filters[0],openfl_filters_GlowFilter)) { return false; } return openfl_display_InteractiveObject.prototype.get_cacheAsBitmap.call(this); } ,get_caretIndex: function() { return this.__caretIndex; } ,get_defaultTextFormat: function() { return this.__textFormat.clone(); } ,set_defaultTextFormat: function(value) { this.__textFormat.__merge(value); this.__layoutDirty = true; this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } return value; } ,get_displayAsPassword: function() { return this.__displayAsPassword; } ,set_displayAsPassword: function(value) { if(value != this.__displayAsPassword) { this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.__displayAsPassword = value; this.__updateText(this.__text); } return value; } ,get_embedFonts: function() { return this.__textEngine.embedFonts; } ,set_embedFonts: function(value) { return this.__textEngine.embedFonts = value; } ,get_gridFitType: function() { return this.__textEngine.gridFitType; } ,set_gridFitType: function(value) { return this.__textEngine.gridFitType = value; } ,get_height: function() { this.__updateLayout(); return this.__textEngine.height * Math.abs(this.get_scaleY()); } ,set_height: function(value) { if(value != this.__textEngine.height) { this.__setTransformDirty(); this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.__textEngine.height = value; } return this.__textEngine.height * Math.abs(this.get_scaleY()); } ,get_htmlText: function() { return this.__text; } ,set_htmlText: function(value) { if(!this.__isHTML || this.__text != value) { this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } this.__isHTML = true; value = openfl__$internal_text_HTMLParser.parse(value,this.__textFormat,this.__textEngine.textFormatRanges); this.__updateText(value); return value; } ,get_length: function() { if(this.__text != null) { return lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); } return 0; } ,get_maxChars: function() { return this.__textEngine.maxChars; } ,set_maxChars: function(value) { if(value != this.__textEngine.maxChars) { this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.maxChars = value; } ,get_maxScrollH: function() { this.__updateLayout(); return this.__textEngine.maxScrollH; } ,get_maxScrollV: function() { this.__updateLayout(); return this.__textEngine.maxScrollV; } ,get_mouseWheelEnabled: function() { return this.__mouseWheelEnabled; } ,set_mouseWheelEnabled: function(value) { return this.__mouseWheelEnabled = value; } ,get_multiline: function() { return this.__textEngine.multiline; } ,set_multiline: function(value) { if(value != this.__textEngine.multiline) { this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.multiline = value; } ,get_numLines: function() { this.__updateLayout(); return this.__textEngine.numLines; } ,get_restrict: function() { return this.__textEngine.restrict; } ,set_restrict: function(value) { return this.__textEngine.set_restrict(value); } ,get_scrollH: function() { return this.__textEngine.scrollH; } ,set_scrollH: function(value) { this.__updateLayout(); if(value > this.__textEngine.maxScrollH) { value = this.__textEngine.maxScrollH; } if(value < 0) { value = 0; } if(value != this.__textEngine.scrollH) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.dispatchEvent(new openfl_events_Event("scroll")); } return this.__textEngine.scrollH = value; } ,get_scrollV: function() { return this.__textEngine.scrollV; } ,set_scrollV: function(value) { this.__updateLayout(); if(value > this.__textEngine.maxScrollV) { value = this.__textEngine.maxScrollV; } if(value < 1) { value = 1; } if(value != this.__textEngine.scrollV) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.dispatchEvent(new openfl_events_Event("scroll")); } return this.__textEngine.scrollV = value; } ,get_selectable: function() { return this.__textEngine.selectable; } ,set_selectable: function(value) { if(value != this.__textEngine.selectable && this.get_type() == 1) { if(this.stage != null && this.stage.get_focus() == this) { this.__startTextInput(); } else if(!value) { this.__stopTextInput(); } } return this.__textEngine.selectable = value; } ,get_selectionBeginIndex: function() { return Math.min(this.__caretIndex,this.__selectionIndex) | 0; } ,get_selectionEndIndex: function() { return Math.max(this.__caretIndex,this.__selectionIndex) | 0; } ,get_sharpness: function() { return this.__textEngine.sharpness; } ,set_sharpness: function(value) { if(value != this.__textEngine.sharpness) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.sharpness = value; } ,get_text: function() { return this.__text; } ,set_text: function(value) { if(this.__isHTML || this.__text != value) { this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } else { return value; } if(this.__textEngine.textFormatRanges.data.get_length() > 1) { var this1 = this.__textEngine.textFormatRanges; var len = this.__textEngine.textFormatRanges.data.get_length() - 1; new openfl__$Vector_AbstractVector(this1.data.splice(1,len)); } var utfValue = value; var range = this.__textEngine.textFormatRanges.data.get(0); range.format = this.__textFormat; range.start = 0; range.end = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(utfValue); this.__isHTML = false; this.__updateText(value); return value; } ,get_textColor: function() { return this.__textFormat.color; } ,set_textColor: function(value) { if(value != this.__textFormat.color) { this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } var _g = 0; var _g1 = this.__textEngine.textFormatRanges; while(_g < _g1.data.get_length()) { var range = _g1.data.get(_g); ++_g; range.format.color = value; } return this.__textFormat.color = value; } ,get_textWidth: function() { this.__updateLayout(); return this.__textEngine.textWidth; } ,get_textHeight: function() { this.__updateLayout(); return this.__textEngine.textHeight; } ,get_type: function() { return this.__textEngine.type; } ,set_type: function(value) { if(value != this.__textEngine.type) { if(value == 1) { this.addEventListener("focusIn",$bind(this,this.this_onFocusIn)); this.addEventListener("focusOut",$bind(this,this.this_onFocusOut)); this.addEventListener("addedToStage",$bind(this,this.this_onAddedToStage)); this.this_onFocusIn(null); this.__textEngine.__useIntAdvances = true; } else { this.removeEventListener("focusIn",$bind(this,this.this_onFocusIn)); this.removeEventListener("focusOut",$bind(this,this.this_onFocusOut)); this.removeEventListener("addedToStage",$bind(this,this.this_onAddedToStage)); this.__stopTextInput(); this.__textEngine.__useIntAdvances = null; } this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.type = value; } ,get_width: function() { this.__updateLayout(); return this.__textEngine.width * Math.abs(this.__scaleX); } ,set_width: function(value) { if(value != this.__textEngine.width) { this.__setTransformDirty(); this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.__textEngine.width = value; } return this.__textEngine.width * Math.abs(this.__scaleX); } ,get_wordWrap: function() { return this.__textEngine.wordWrap; } ,set_wordWrap: function(value) { if(value != this.__textEngine.wordWrap) { this.__dirty = true; this.__layoutDirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } return this.__textEngine.wordWrap = value; } ,stage_onMouseMove: function(event) { if(this.stage == null) { return; } if(this.__textEngine.selectable && this.__selectionIndex >= 0) { this.__updateLayout(); var position = this.__getPosition(this.get_mouseX(),this.get_mouseY()); if(position != this.__caretIndex) { this.__caretIndex = position; this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } } } ,stage_onMouseUp: function(event) { if(this.stage == null) { return; } this.stage.removeEventListener("mouseMove",$bind(this,this.stage_onMouseMove)); this.stage.removeEventListener("mouseUp",$bind(this,this.stage_onMouseUp)); if(this.stage.get_focus() == this) { this.__getWorldTransform(); this.__updateLayout(); var _this = this.__worldTransform; var px = this.get_x(); var py = this.get_y(); var norm = _this.a * _this.d - _this.b * _this.c; var px1 = norm == 0 ? -_this.tx : 1.0 / norm * (_this.c * (_this.ty - py) + _this.d * (px - _this.tx)); var _this1 = this.__worldTransform; var px2 = this.get_x(); var py1 = this.get_y(); var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; var py2 = norm1 == 0 ? -_this1.ty : 1.0 / norm1 * (_this1.a * (py1 - _this1.ty) + _this1.b * (_this1.tx - px2)); var upPos = this.__getPosition(this.get_mouseX(),this.get_mouseY()); var leftPos; var rightPos; leftPos = Math.min(this.__selectionIndex,upPos) | 0; rightPos = Math.max(this.__selectionIndex,upPos) | 0; this.__selectionIndex = leftPos; this.__caretIndex = rightPos; if(this.__inputEnabled) { this.this_onFocusIn(null); this.__stopCursorTimer(); this.__startCursorTimer(); } } } ,this_onAddedToStage: function(event) { this.this_onFocusIn(null); } ,this_onFocusIn: function(event) { if(this.get_selectable() && this.get_type() == 1 && this.stage != null && this.stage.get_focus() == this) { this.__startTextInput(); } } ,this_onFocusOut: function(event) { this.__stopTextInput(); } ,this_onMouseDown: function(event) { if(!this.get_selectable()) { return; } this.__updateLayout(); this.__caretIndex = this.__getPosition(this.get_mouseX(),this.get_mouseY()); this.__selectionIndex = this.__caretIndex; this.__dirty = true; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.stage.addEventListener("mouseMove",$bind(this,this.stage_onMouseMove)); this.stage.addEventListener("mouseUp",$bind(this,this.stage_onMouseUp)); } ,window_onKeyDown: function(key,modifier) { switch(key) { case 8: if(this.__selectionIndex == this.__caretIndex && this.__caretIndex > 0) { this.__selectionIndex = this.__caretIndex - 1; } if(this.__selectionIndex != this.__caretIndex) { this.replaceSelectedText(""); this.__selectionIndex = this.__caretIndex; this.dispatchEvent(new openfl_events_Event("change",true)); } break; case 97: if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier) || lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey(modifier)) { this.__caretIndex = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text); this.__selectionIndex = 0; } break; case 99: if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier) || lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey(modifier)) { lime_system_Clipboard.set_text(lime_text__$UTF8String_UTF8String_$Impl_$.substring(this.__text,this.__caretIndex,this.__selectionIndex)); } break; case 120: if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier) || lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey(modifier)) { lime_system_Clipboard.set_text(lime_text__$UTF8String_UTF8String_$Impl_$.substring(this.__text,this.__caretIndex,this.__selectionIndex)); if(this.__caretIndex != this.__selectionIndex) { this.replaceSelectedText(""); this.dispatchEvent(new openfl_events_Event("change",true)); } } break; case 127: if(this.__selectionIndex == this.__caretIndex && this.__caretIndex < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.__text)) { this.__selectionIndex = this.__caretIndex + 1; } if(this.__selectionIndex != this.__caretIndex) { this.replaceSelectedText(""); this.__selectionIndex = this.__caretIndex; this.dispatchEvent(new openfl_events_Event("change",true)); } break; case 1073741898: this.__caretBeginningOfLine(); this.__stopCursorTimer(); this.__startCursorTimer(); break; case 1073741901: this.__caretEndOfLine(); this.__stopCursorTimer(); this.__startCursorTimer(); break; case 1073741903: if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier)) { this.__caretEndOfLine(); if(!lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier)) { this.__selectionIndex = this.__caretIndex; } } else if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier)) { this.__caretNextCharacter(); } else { if(this.__selectionIndex == this.__caretIndex) { this.__caretNextCharacter(); } else { this.__caretIndex = Math.max(this.__caretIndex,this.__selectionIndex) | 0; } this.__selectionIndex = this.__caretIndex; } this.__stopCursorTimer(); this.__startCursorTimer(); break; case 1073741904: if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier)) { this.__caretBeginningOfLine(); if(!lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier)) { this.__selectionIndex = this.__caretIndex; } } else if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier)) { this.__caretPreviousCharacter(); } else { if(this.__selectionIndex == this.__caretIndex) { this.__caretPreviousCharacter(); } else { this.__caretIndex = Math.min(this.__caretIndex,this.__selectionIndex) | 0; } this.__selectionIndex = this.__caretIndex; } this.__stopCursorTimer(); this.__startCursorTimer(); break; case 1073741905: if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier)) { this.__caretNextLine(); } else { if(this.__selectionIndex == this.__caretIndex) { this.__caretNextLine(); } else { var lineIndex = this.getLineIndexOfChar(Math.max(this.__caretIndex,this.__selectionIndex) | 0); this.__caretNextLine(lineIndex,Math.min(this.__caretIndex,this.__selectionIndex) | 0); } this.__selectionIndex = this.__caretIndex; } this.__stopCursorTimer(); this.__startCursorTimer(); break; case 1073741906: if(lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier)) { this.__caretPreviousLine(); } else { if(this.__selectionIndex == this.__caretIndex) { this.__caretPreviousLine(); } else { var lineIndex1 = this.getLineIndexOfChar(Math.min(this.__caretIndex,this.__selectionIndex) | 0); this.__caretPreviousLine(lineIndex1,Math.min(this.__caretIndex,this.__selectionIndex) | 0); } this.__selectionIndex = this.__caretIndex; } this.__stopCursorTimer(); this.__startCursorTimer(); break; case 13:case 1073741912: if(this.__textEngine.multiline) { this.replaceSelectedText("\n"); this.dispatchEvent(new openfl_events_Event("change",true)); } break; default: } } ,window_onTextInput: function(value) { this.replaceSelectedText(value); this.dispatchEvent(new openfl_events_Event("change",true)); } ,__class__: openfl_text_TextField ,__properties__: $extend(openfl_display_InteractiveObject.prototype.__properties__,{set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap",set_type:"set_type",get_type:"get_type",get_textWidth:"get_textWidth",get_textHeight:"get_textHeight",set_textColor:"set_textColor",get_textColor:"get_textColor",set_text:"set_text",get_text:"get_text",set_sharpness:"set_sharpness",get_sharpness:"get_sharpness",get_selectionEndIndex:"get_selectionEndIndex",get_selectionBeginIndex:"get_selectionBeginIndex",set_selectable:"set_selectable",get_selectable:"get_selectable",set_scrollV:"set_scrollV",get_scrollV:"get_scrollV",set_scrollH:"set_scrollH",get_scrollH:"get_scrollH",set_restrict:"set_restrict",get_restrict:"get_restrict",get_numLines:"get_numLines",set_multiline:"set_multiline",get_multiline:"get_multiline",set_mouseWheelEnabled:"set_mouseWheelEnabled",get_mouseWheelEnabled:"get_mouseWheelEnabled",get_maxScrollV:"get_maxScrollV",get_maxScrollH:"get_maxScrollH",set_maxChars:"set_maxChars",get_maxChars:"get_maxChars",get_length:"get_length",set_htmlText:"set_htmlText",get_htmlText:"get_htmlText",set_gridFitType:"set_gridFitType",get_gridFitType:"get_gridFitType",set_embedFonts:"set_embedFonts",get_embedFonts:"get_embedFonts",set_displayAsPassword:"set_displayAsPassword",get_displayAsPassword:"get_displayAsPassword",set_defaultTextFormat:"set_defaultTextFormat",get_defaultTextFormat:"get_defaultTextFormat",get_caretIndex:"get_caretIndex",get_bottomScrollV:"get_bottomScrollV",set_borderColor:"set_borderColor",get_borderColor:"get_borderColor",set_border:"set_border",get_border:"get_border",set_backgroundColor:"set_backgroundColor",get_backgroundColor:"get_backgroundColor",set_background:"set_background",get_background:"get_background",set_autoSize:"set_autoSize",get_autoSize:"get_autoSize",set_antiAliasType:"set_antiAliasType",get_antiAliasType:"get_antiAliasType"}) }); var com_firstplayable_hxlib_utils_Version = function(x,y,color) { if(color == null) { color = 0; } if(y == null) { y = 10; } if(x == null) { x = 10; } this.buildName = ""; this.buildVersion = ""; this.buildType = "release"; this.machine = "?"; this.buildTime = "0"; this.buildNum = "0"; this.svnRev = "0"; openfl_text_TextField.call(this); this.set_x(x); this.set_y(y); this.set_textColor(color); this.set_autoSize(1); this.set_selectable(false); var raw = haxe_Resource.getString("version"); if(raw == null) { raw = ""; } var lines = raw.split("\n"); var _g = 0; var _g1 = raw.split("\n"); while(_g < _g1.length) { var a = _g1[_g]; ++_g; a = StringTools.trim(a); var i = a.indexOf(":"); var name = a.substring(0,i); var value = a.substring(i + 1); value = StringTools.trim(value); switch(name) { case "Build": this.buildNum = value; break; case "Machine": this.machine = value; break; case "Revision": this.svnRev = value; break; } } this.buildTime = "2020-03-23 17:56:16"; this.buildVersion = null; if(this.buildVersion == null) { this.buildVersion = ""; } this.buildName = null; if(this.buildName == null) { this.buildName = ""; } this.buildType += " -cheats"; this.isLocal = Std.parseInt(this.buildNum) == 0; if(this.isLocal) { this.set_text(this.svnRev + " " + this.buildType + " on " + this.machine + " " + this.buildTime); } else { this.set_text("v" + this.buildVersion + "." + this.buildNum + "-" + this.buildType + "\t" + this.buildTime); } com_firstplayable_hxlib_utils_Version.versionInfo = this.get_text(); }; $hxClasses["com.firstplayable.hxlib.utils.Version"] = com_firstplayable_hxlib_utils_Version; com_firstplayable_hxlib_utils_Version.__name__ = ["com","firstplayable","hxlib","utils","Version"]; com_firstplayable_hxlib_utils_Version.__properties__ = {get_versionInfo:"get_versionInfo"}; com_firstplayable_hxlib_utils_Version.get_versionInfo = function() { if(com_firstplayable_hxlib_utils_Version.versionInfo == "") { new com_firstplayable_hxlib_utils_Version(); } return com_firstplayable_hxlib_utils_Version.versionInfo; }; com_firstplayable_hxlib_utils_Version.__super__ = openfl_text_TextField; com_firstplayable_hxlib_utils_Version.prototype = $extend(openfl_text_TextField.prototype,{ svnRev: null ,buildNum: null ,buildTime: null ,machine: null ,buildType: null ,buildVersion: null ,buildName: null ,isLocal: null ,test: function() { com_firstplayable_hxlib_Debug.log(this.buildVersion,null,{ fileName : "Version.hx", lineNumber : 166, className : "com.firstplayable.hxlib.utils.Version", methodName : "test"}); com_firstplayable_hxlib_Debug.log(this.buildName,null,{ fileName : "Version.hx", lineNumber : 167, className : "com.firstplayable.hxlib.utils.Version", methodName : "test"}); com_firstplayable_hxlib_Debug.log(this.svnRev,null,{ fileName : "Version.hx", lineNumber : 168, className : "com.firstplayable.hxlib.utils.Version", methodName : "test"}); com_firstplayable_hxlib_Debug.log(this.buildNum,null,{ fileName : "Version.hx", lineNumber : 169, className : "com.firstplayable.hxlib.utils.Version", methodName : "test"}); com_firstplayable_hxlib_Debug.log(this.machine,null,{ fileName : "Version.hx", lineNumber : 170, className : "com.firstplayable.hxlib.utils.Version", methodName : "test"}); com_firstplayable_hxlib_Debug.log(this.buildType,null,{ fileName : "Version.hx", lineNumber : 171, className : "com.firstplayable.hxlib.utils.Version", methodName : "test"}); com_firstplayable_hxlib_Debug.log(this.buildTime,null,{ fileName : "Version.hx", lineNumber : 172, className : "com.firstplayable.hxlib.utils.Version", methodName : "test"}); } ,__class__: com_firstplayable_hxlib_utils_Version }); var com_firstplayable_hxlib_utils_json_GlobalTable = function() { }; $hxClasses["com.firstplayable.hxlib.utils.json.GlobalTable"] = com_firstplayable_hxlib_utils_json_GlobalTable; com_firstplayable_hxlib_utils_json_GlobalTable.__name__ = ["com","firstplayable","hxlib","utils","json","GlobalTable"]; com_firstplayable_hxlib_utils_json_GlobalTable.__properties__ = {get_gamestrings:"get_gamestrings",get_resourceMap:"get_resourceMap"}; com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap = function() { if(com_firstplayable_hxlib_utils_json_GlobalTable.resourceMap == null) { com_firstplayable_hxlib_Debug.logHelper("Global Table has not been initialized; returning an empty map",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GlobalTable.hx", lineNumber : 28, className : "com.firstplayable.hxlib.utils.json.GlobalTable", methodName : "get_resourceMap"}); com_firstplayable_hxlib_utils_json_GlobalTable.resourceMap = new com_firstplayable_hxlib_utils_json_EmptyResourceMap(); } return com_firstplayable_hxlib_utils_json_GlobalTable.resourceMap; }; com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings = function() { if(com_firstplayable_hxlib_utils_json_GlobalTable.gamestrings == null) { com_firstplayable_hxlib_Debug.logHelper("Global Table has not been initialized; returning an empty map!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GlobalTable.hx", lineNumber : 39, className : "com.firstplayable.hxlib.utils.json.GlobalTable", methodName : "get_gamestrings"}); com_firstplayable_hxlib_utils_json_GlobalTable.gamestrings = new com_firstplayable_hxlib_utils_json_EmptyGamestrings(); } return com_firstplayable_hxlib_utils_json_GlobalTable.gamestrings; }; com_firstplayable_hxlib_utils_json_GlobalTable.init = function(resMap,strings) { com_firstplayable_hxlib_utils_json_GlobalTable.resourceMap = resMap != null ? resMap : new com_firstplayable_hxlib_utils_json_EmptyResourceMap(); com_firstplayable_hxlib_utils_json_GlobalTable.gamestrings = strings != null ? strings : new com_firstplayable_hxlib_utils_json_EmptyGamestrings(); }; var com_firstplayable_hxlib_utils_json_EmptyResourceMap = function() { this.INVALID = "invalid"; }; $hxClasses["com.firstplayable.hxlib.utils.json.EmptyResourceMap"] = com_firstplayable_hxlib_utils_json_EmptyResourceMap; com_firstplayable_hxlib_utils_json_EmptyResourceMap.__name__ = ["com","firstplayable","hxlib","utils","json","EmptyResourceMap"]; com_firstplayable_hxlib_utils_json_EmptyResourceMap.__interfaces__ = [com_firstplayable_hxlib_loader_IResourceMap]; com_firstplayable_hxlib_utils_json_EmptyResourceMap.prototype = { INVALID: null ,getSheetPath: function(assetName) { return this.INVALID; } ,__class__: com_firstplayable_hxlib_utils_json_EmptyResourceMap }; var com_firstplayable_hxlib_utils_json_EmptyGamestrings = function() { }; $hxClasses["com.firstplayable.hxlib.utils.json.EmptyGamestrings"] = com_firstplayable_hxlib_utils_json_EmptyGamestrings; com_firstplayable_hxlib_utils_json_EmptyGamestrings.__name__ = ["com","firstplayable","hxlib","utils","json","EmptyGamestrings"]; com_firstplayable_hxlib_utils_json_EmptyGamestrings.__interfaces__ = [com_firstplayable_hxlib_utils_IGamestrings]; com_firstplayable_hxlib_utils_json_EmptyGamestrings.prototype = { has: function(id) { return false; } ,get: function(id) { return id; } ,__class__: com_firstplayable_hxlib_utils_json_EmptyGamestrings }; var com_firstplayable_hxlib_utils_json_IJsonBasePlugIn = function() { }; $hxClasses["com.firstplayable.hxlib.utils.json.IJsonBasePlugIn"] = com_firstplayable_hxlib_utils_json_IJsonBasePlugIn; com_firstplayable_hxlib_utils_json_IJsonBasePlugIn.__name__ = ["com","firstplayable","hxlib","utils","json","IJsonBasePlugIn"]; com_firstplayable_hxlib_utils_json_IJsonBasePlugIn.prototype = { beginPopulation: null ,__class__: com_firstplayable_hxlib_utils_json_IJsonBasePlugIn }; var com_firstplayable_hxlib_utils_json_ClientType = $hxClasses["com.firstplayable.hxlib.utils.json.ClientType"] = { __ename__ : ["com","firstplayable","hxlib","utils","json","ClientType"], __constructs__ : ["GENERIC_MENU","NUM_CLIENT_TYPES"] }; com_firstplayable_hxlib_utils_json_ClientType.GENERIC_MENU = ["GENERIC_MENU",0]; com_firstplayable_hxlib_utils_json_ClientType.GENERIC_MENU.toString = $estr; com_firstplayable_hxlib_utils_json_ClientType.GENERIC_MENU.__enum__ = com_firstplayable_hxlib_utils_json_ClientType; com_firstplayable_hxlib_utils_json_ClientType.NUM_CLIENT_TYPES = ["NUM_CLIENT_TYPES",1]; com_firstplayable_hxlib_utils_json_ClientType.NUM_CLIENT_TYPES.toString = $estr; com_firstplayable_hxlib_utils_json_ClientType.NUM_CLIENT_TYPES.__enum__ = com_firstplayable_hxlib_utils_json_ClientType; com_firstplayable_hxlib_utils_json_ClientType.__empty_constructs__ = [com_firstplayable_hxlib_utils_json_ClientType.GENERIC_MENU,com_firstplayable_hxlib_utils_json_ClientType.NUM_CLIENT_TYPES]; var com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory = function() { this.m_makerDirectory = new haxe_ds_StringMap(); }; $hxClasses["com.firstplayable.hxlib.utils.json.JsonBaseMakerDirectory"] = com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory; com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory.__name__ = ["com","firstplayable","hxlib","utils","json","JsonBaseMakerDirectory"]; com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory.prototype = { m_makerDirectory: null ,registerMakerFunc: function(makerName,makerFunc) { if(makerFunc == null) { com_firstplayable_hxlib_Debug.logHelper("Trying to register a NULL makerFunc!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonBaseMakerDirectory.hx", lineNumber : 47, className : "com.firstplayable.hxlib.utils.json.JsonBaseMakerDirectory", methodName : "registerMakerFunc"}); return false; } if(makerName == null || makerName == "") { com_firstplayable_hxlib_Debug.logHelper("Trying to register a makerFunc to an Empty Name",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonBaseMakerDirectory.hx", lineNumber : 53, className : "com.firstplayable.hxlib.utils.json.JsonBaseMakerDirectory", methodName : "registerMakerFunc"}); return false; } var _this = this.m_makerDirectory; if((__map_reserved[makerName] != null ? _this.getReserved(makerName) : _this.h[makerName]) == null) { var _this1 = this.m_makerDirectory; if(__map_reserved[makerName] != null) { _this1.setReserved(makerName,makerFunc); } else { _this1.h[makerName] = makerFunc; } return true; } com_firstplayable_hxlib_Debug.logHelper(makerName + " already has a function registered!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonBaseMakerDirectory.hx", lineNumber : 63, className : "com.firstplayable.hxlib.utils.json.JsonBaseMakerDirectory", methodName : "registerMakerFunc"}); return false; } ,getMakerFunc: function(makerName) { var _this = this.m_makerDirectory; if(__map_reserved[makerName] != null) { return _this.getReserved(makerName); } else { return _this.h[makerName]; } } ,__class__: com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory }; var com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory = function() { com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory.call(this); this.registerMakerFunc("spriteObject",$bind(this,this.makeSprite)); this.registerMakerFunc("button",$bind(this,this.makeButton)); this.registerMakerFunc("label",$bind(this,this.makeTextField)); this.registerMakerFunc("panel",$bind(this,this.makePanel)); this.registerMakerFunc("borderPanel",$bind(this,this.makeBorderPanel)); this.registerMakerFunc("ninePatchPanel",$bind(this,this.makeNinePatchPanel)); }; $hxClasses["com.firstplayable.hxlib.utils.json.JsonMenuMakerDirectory"] = com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory; com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory.__name__ = ["com","firstplayable","hxlib","utils","json","JsonMenuMakerDirectory"]; com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory.__super__ = com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory; com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory.prototype = $extend(com_firstplayable_hxlib_utils_json_JsonBaseMakerDirectory.prototype,{ makePanel: function(metaData) { var panel = new openfl_display_Sprite(); var resource = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("resource",metaData); if(resource != null) { var panelImg = com_firstplayable_hxlib_loader_ResMan.get_instance().getSprite(resource); panel.addChild(panelImg); } else { var boundingBoxData = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("boundingBox",metaData); if(boundingBoxData != null) { var boundingBox = this.createReferenceZone(boundingBoxData); if(boundingBox != null) { panel.addChild(boundingBox); } } } return panel; } ,createReferenceZone: function(boundingBoxData) { if(boundingBoxData == null) { com_firstplayable_hxlib_Debug.logHelper("null bounding box supplied to createReferenceZone...",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonMenuMakerDirectory.hx", lineNumber : 101, className : "com.firstplayable.hxlib.utils.json.JsonMenuMakerDirectory", methodName : "createReferenceZone"}); return null; } if(boundingBoxData.length != 4) { com_firstplayable_hxlib_Debug.logHelper("incorrectly sized array passed as bounding box. Should be 4, was: " + boundingBoxData.length,com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonMenuMakerDirectory.hx", lineNumber : 107, className : "com.firstplayable.hxlib.utils.json.JsonMenuMakerDirectory", methodName : "createReferenceZone"}); return null; } var boxObj = new openfl_display_Shape(); boxObj.get_graphics().beginFill(16744640,0); boxObj.get_graphics().drawRect(boundingBoxData[0],boundingBoxData[1],boundingBoxData[2],boundingBoxData[3]); boxObj.get_graphics().endFill(); boxObj.set_visible(false); return boxObj; } ,makeBorderPanel: function(metaData) { return this.makePanel(metaData); } ,makeNinePatchPanel: function(metaData) { var boundingBoxData = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("boundingBox",metaData); if(boundingBoxData == null) { com_firstplayable_hxlib_Debug.logHelper("FAILURE: no bounding box data in " + Std.string(metaData),com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonMenuMakerDirectory.hx", lineNumber : 142, className : "com.firstplayable.hxlib.utils.json.JsonMenuMakerDirectory", methodName : "makeNinePatchPanel"}); return null; } if(boundingBoxData.length != 4) { com_firstplayable_hxlib_Debug.logHelper("incorrectly sized array passed as bounding box. Should be 4, was: " + boundingBoxData.length,com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonMenuMakerDirectory.hx", lineNumber : 147, className : "com.firstplayable.hxlib.utils.json.JsonMenuMakerDirectory", methodName : "makeNinePatchPanel"}); return null; } var panel = null; var resource = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("resource",metaData); if(resource != null) { panel = new com_firstplayable_hxlib_display_NinePatchPanel(resource,boundingBoxData[2],boundingBoxData[3]); } else { panel = new com_firstplayable_hxlib_display_NinePatchPanel(null,boundingBoxData[2],boundingBoxData[3]); } return panel; } ,makeSprite: function(metaData) { var resource = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("resource",metaData); return this.createDisplayObject(resource,metaData); } ,createDisplayObject: function(resource,metaData) { if(resource == null || resource.length == 0) { resource = "MISSING_IMAGE_DATA"; } var isAnim = com_firstplayable_hxlib_loader_ResMan.get_instance().isAnim(resource); if(!isAnim) { return com_firstplayable_hxlib_loader_ResMan.get_instance().getSprite(resource); } else { resource = com_firstplayable_hxlib_loader_ResMan.get_instance().verifyPath(resource); var sheetName = com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().getSheetPath(resource); if(sheetName != com_firstplayable_hxlib_utils_json_GlobalTable.get_resourceMap().INVALID) { var animName = resource; var sheet = com_firstplayable_hxlib_loader_ResMan.get_instance().getSpritesheet(sheetName,true); var anim = new com_firstplayable_hxlib_display_anim_SpritesheetAnim(sheet); anim.gotoAndPlay(animName); return anim; } } return null; } ,createBitmap: function(resource,metaData) { return com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(resource,false); } ,makeButton: function(metaData) { var resource = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("resource",metaData); var upSprite = this.createBitmap(resource + "_up",metaData); var downSprite = com_firstplayable_hxlib_loader_ResMan.get_instance().getImageUnsafe(resource + "_down",false); var overSprite = com_firstplayable_hxlib_loader_ResMan.get_instance().getImageUnsafe(resource + "_over",false); var disabledSprite = com_firstplayable_hxlib_loader_ResMan.get_instance().getImageUnsafe(resource + "_disabled",false); var idFromData = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("id",metaData); var id = idFromData == null ? 0 : Std.parseInt(idFromData); var btn = new com_firstplayable_hxlib_display_GraphicButton(upSprite,downSprite,overSprite,disabledSprite,null,null,id); if(com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("enabled",metaData) != null) { btn.set_enabled(false); } return btn; } ,makeTextField: function(metaData) { var fieldName = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("name",metaData); var isSmartLabel = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("smartLabel",metaData); var isBitmapFont = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("bitmapFont",metaData); var tf = null; if(isSmartLabel) { tf = this.makeSmartLabel(metaData); } else if(isBitmapFont || fieldName != null && fieldName.indexOf("_bitmap_") != -1) { tf = this.makeBitmapTextField(metaData); } else { tf = this.makeStandardTextField(metaData); } return tf; } ,makeStandardTextField: function(metaData) { var tf = new openfl_text_TextField(); var shouldAutosize = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("autoSize",metaData); this.setTextColor(tf,metaData); this.setFormat(tf,metaData); if(shouldAutosize != null && shouldAutosize) { tf.set_autoSize(1); } else { this.setWordWrap(tf,metaData); this.setTextfieldSize(tf,metaData); } var text = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("text",metaData); if(text == null) { text = ""; } else if(com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().has(text)) { text = com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().get(text); } tf.set_text(text); var clipOverflow = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("clipOverflow",metaData); if(clipOverflow == null || !clipOverflow) { var curNumLines = tf.get_numLines(); var projNumLines = (tf.get_height() / tf.get_textHeight() | 0) + 1; var newNumLines = Math.max(curNumLines,projNumLines) | 0; var newHeight = tf.get_textHeight() * newNumLines + tf.get_textHeight() / 2 * (newNumLines - 1); tf.set_height(newHeight); } var touchable = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("touchable",metaData); tf.set_selectable(touchable != null && touchable); tf.mouseEnabled = touchable != null && touchable; return tf; } ,makeBitmapTextField: function(metaData) { var angelCodeField = null; var fontName = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("font",metaData); var fontPath = new haxe_io_Path(fontName); fontName = "fnt/" + fontPath.file + ".fnt"; var fontXMLString = com_firstplayable_hxlib_loader_ResMan.get_instance().getText(fontName); var fontXML = Xml.parse(fontXMLString); var fontBitmapName = "2d/" + fontPath.file + ".png"; var fontImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImageData(fontBitmapName); var angelCodeFont = com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fromAngelCode(fontImage,fontXML); var text = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("text",metaData); if(text == null) { text = ""; } else if(com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().has(text)) { text = com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().get(text); } angelCodeField = new com_firstplayable_hxlib_display_bitmapFont_BitmapTextField(angelCodeFont,text); angelCodeField.set_updateImmediately(false); var colorVal = 16777215; var color = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("color",metaData); if(color != null) { var r = color[0]; var g = color[1]; var b = color[2]; colorVal = com_firstplayable_hxlib_utils_ColorUtils.argbToHex(r << 3 | r >> 2,g << 3 | g >> 2,b << 3 | b >> 2,null << 3 | null >> 2); } colorVal |= -16777216; angelCodeField.set_useTextColor(true); angelCodeField.set_textColor(colorVal); var kerning = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("kerning",metaData); if(kerning != null) { angelCodeField.set_letterSpacing(kerning); } var lineSpacing = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("spacing",metaData); if(lineSpacing != null) { angelCodeField.set_lineSpacing(lineSpacing); } var wrap = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("wrapOverflow",metaData); if(wrap != null) { angelCodeField.set_wordWrap(wrap); } else { angelCodeField.set_wordWrap(false); } var autoSize = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("autoSize",metaData); if(autoSize != null) { angelCodeField.set_autoSize(autoSize); } if(autoSize == null || !autoSize) { var size = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("size",metaData); if(size != null) { angelCodeField.set_autoSize(false); angelCodeField.set_width(size[0]); angelCodeField.set_height(size[1]); } } var alignment = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("textAlignment",metaData); if(alignment != null) { var horAlign = alignment[0]; if(horAlign == "center") { angelCodeField.set_alignment("center"); } else if(horAlign.indexOf("right") != -1) { angelCodeField.set_alignment("right"); } } angelCodeField.set_updateImmediately(true); angelCodeField.forceGraphicUpdate(); return angelCodeField; } ,makeSmartLabel: function(metaData) { var fieldName = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("name",metaData); var isBitmapFont = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("bitmapFont",metaData); var fontName = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("font",metaData); var format = this.getTextFormatFromMetaData(metaData); fontName = format.font; var wrap = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("wrapOverflow",metaData); var colorVal = 16777215; var color = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("color",metaData); if(color != null) { var r = color[0]; var g = color[1]; var b = color[2]; colorVal = com_firstplayable_hxlib_utils_ColorUtils.argbToHex(r << 3 | r >> 2,g << 3 | g >> 2,b << 3 | b >> 2,null << 3 | null >> 2); } var alignment = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("textAlignment",metaData); var horAlign = 3; var verAlign = 1; if(alignment != null) { var horAlignString = alignment[0]; if(horAlignString == "center") { horAlign = 0; } else if(horAlignString.indexOf("right") != -1) { horAlign = 4; } var verAlignString = alignment[1]; if(verAlignString == "center") { verAlign = 0; } else if(verAlignString.indexOf("bottom") != -1) { verAlign = 2; } } var text = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("text",metaData); var newLabel = new com_firstplayable_hxlib_display_SmartLabel(); newLabel.set_name(fieldName); newLabel.set_updatesEnabled(false); if(isBitmapFont) { newLabel.set_fontType(com_firstplayable_hxlib_display_FontType.BITMAP); newLabel.set_fontSize(format.size); } else { newLabel.set_fontType(com_firstplayable_hxlib_display_FontType.STANDARD); newLabel.set_fontSize(format.size); } newLabel.set_fontPath(fontName); newLabel.set_wordWrap(wrap != null && wrap); newLabel.set_textColor(colorVal); newLabel.set_horizontalAlign(horAlign); newLabel.set_verticalAlign(verAlign); var size = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("size",metaData); if(size != null) { newLabel.setSize(size[0],size[1]); } else { newLabel.set_fillContainer(true); } var kerning = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("kerning",metaData); if(kerning != null) { newLabel.set_letterSpacing(kerning); } var lineSpacing = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("spacing",metaData); if(lineSpacing != null) { newLabel.set_lineSpacing(lineSpacing); } newLabel.set_text(text); newLabel.set_updatesEnabled(true); var textData = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("text",metaData); if(textData == null) { textData = text; } else if(com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().has(text)) { textData = com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings().get(text); } newLabel.set_text(textData); return newLabel; } ,setWordWrap: function(tf,metaData) { var wrap = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("wrapOverflow",metaData); tf.set_wordWrap(wrap != null && wrap); } ,setTextfieldSize: function(tf,metaData) { var size = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("size",metaData); if(size != null) { tf.set_width(size[0]); tf.set_height(size[1]); } } ,setTextColor: function(tf,metaData) { var colorVal = 16777215; var color = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("color",metaData); if(color != null) { var r = color[0]; var g = color[1]; var b = color[2]; colorVal = com_firstplayable_hxlib_utils_ColorUtils.argbToHex(r << 3 | r >> 2,g << 3 | g >> 2,b << 3 | b >> 2,null << 3 | null >> 2); } tf.set_textColor(colorVal); } ,setFormat: function(tf,metaData) { var format = this.getTextFormatFromMetaData(metaData); this.setTextAlign(format,metaData); tf.set_defaultTextFormat(format); if(format.font != null) { tf.set_embedFonts(true); } } ,getTextFormatFromMetaData: function(metaData) { var fontPath = null; var fontSize = null; var fontFace = null; var fontInfo = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("font",metaData); if(fontInfo != null) { var type = ".fnt"; var delim = "_"; if(fontInfo.indexOf("ttf") > -1) { type = ".ttf"; delim = ":"; } var info = fontInfo.split(delim); if(info != null && info.length == 2) { fontPath = info[0]; fontSize = info[1]; fontSize = StringTools.replace(fontSize,type,""); var lastSlash = fontPath.lastIndexOf("/"); if(lastSlash != -1) { fontPath = fontPath.substring(lastSlash + 1); } var lastPeriod = fontPath.lastIndexOf("."); if(lastPeriod == -1) { lastPeriod = null; } fontFace = fontPath.substring(0,lastPeriod); } } var format = new openfl_text_TextFormat(fontFace,Std.parseInt(fontSize)); return format; } ,setTextAlign: function(format,metaData) { var alignment = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("textAlignment",metaData); if(alignment == null) { return; } var horAlign = alignment[0]; if(horAlign == "center") { format.align = 0; } else if(horAlign.indexOf("right") != -1) { format.align = 4; } } ,__class__: com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory }); var com_firstplayable_hxlib_utils_json_JsonMenuPlugIn = function(jsonFileName,rMenu) { this.m_makerDir = new com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory(); this.m_jsonFileName = jsonFileName; this.m_rMenu = rMenu; this.m_buckets = new haxe_ds_ObjectMap(); }; $hxClasses["com.firstplayable.hxlib.utils.json.JsonMenuPlugIn"] = com_firstplayable_hxlib_utils_json_JsonMenuPlugIn; com_firstplayable_hxlib_utils_json_JsonMenuPlugIn.__name__ = ["com","firstplayable","hxlib","utils","json","JsonMenuPlugIn"]; com_firstplayable_hxlib_utils_json_JsonMenuPlugIn.__interfaces__ = [com_firstplayable_hxlib_utils_json_IJsonBasePlugIn]; com_firstplayable_hxlib_utils_json_JsonMenuPlugIn.prototype = { m_makerDir: null ,m_jsonFileName: null ,m_rMenu: null ,m_buckets: null ,m_objsToReposition: null ,beginPopulation: function() { var json = com_firstplayable_hxlib_loader_ResMan.get_instance().getJson(this.m_jsonFileName); var topMenuVal = Reflect.getProperty(json,"topMenu"); var obj = this.m_rMenu; var menuAsDoc = js_Boot.__instanceof(obj,openfl_display_DisplayObjectContainer) ? obj : null; var _g = 0; var _g1 = com_firstplayable_hxlib_utils_json_JsonMenuPlugIn.OBJECT_TYPES; while(_g < _g1.length) { var objectType = _g1[_g]; ++_g; this.startProduction(topMenuVal,objectType,menuAsDoc); } this.addObjectsToMenu(menuAsDoc); this.finalizePositions(); return true; } ,startProduction: function(menuData,objectType,rOwner) { var items = Reflect.getProperty(menuData,objectType); if(items == null) { return; } var _g = 0; while(_g < items.length) { var curMeta = items[_g]; ++_g; var platform = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("platform",curMeta); if(platform != null && platform != com_firstplayable_hxlib_utils_json_LayoutMap.get_curLayout()[0]) { continue; } curMeta.lib = this.m_jsonFileName; var obj = this.createOneOfType(curMeta,this.m_makerDir.getMakerFunc(objectType),rOwner); if(js_Boot.__instanceof(obj,openfl_display_DisplayObjectContainer)) { var doc = js_Boot.__instanceof(obj,openfl_display_DisplayObjectContainer) ? obj : null; var _g1 = 0; var _g2 = com_firstplayable_hxlib_utils_json_JsonMenuPlugIn.OBJECT_TYPES; while(_g1 < _g2.length) { var objectType1 = _g2[_g1]; ++_g1; this.startProduction(curMeta,objectType1,doc); } this.addObjectsToMenu(doc); } } } ,createOneOfType: function(curMeta,typeCreator,rOwner) { var curProduct = typeCreator(curMeta); if(curProduct == null) { com_firstplayable_hxlib_Debug.logHelper("Failed to contruct object on menu",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonMenuPlugIn.hx", lineNumber : 165, className : "com.firstplayable.hxlib.utils.json.JsonMenuPlugIn", methodName : "createOneOfType"}); return null; } this.finishProductAssembly(curMeta,curProduct,rOwner); return curProduct; } ,finishProductAssembly: function(curMeta,curProduct,rOwner) { var name = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("name",curMeta); if(name != null) { curProduct.set_name(name); var record = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("record",curMeta); if(record != null && record) { this.m_rMenu.addObjectByName(curProduct,name); } } var adjustPosAfterParenting = this.setObjectInitalPosition(curMeta,curProduct); if(adjustPosAfterParenting) { this.addObjectToRepositionList(curMeta,curProduct); } if(js_Boot.__instanceof(curProduct,com_firstplayable_hxlib_display_GraphicButton)) { var btn = js_Boot.__instanceof(curProduct,com_firstplayable_hxlib_display_GraphicButton) ? curProduct : null; btn.onHit = ($_=this.m_rMenu,$bind($_,$_.onButtonHit)); btn.onButtonDown = ($_=this.m_rMenu,$bind($_,$_.onButtonDown)); btn.onButtonUp = ($_=this.m_rMenu,$bind($_,$_.onButtonUp)); btn.onButtonOver = ($_=this.m_rMenu,$bind($_,$_.onButtonOver)); btn.onButtonOut = ($_=this.m_rMenu,$bind($_,$_.onButtonOut)); this.m_rMenu.addButton(btn); } var priority = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("priority",curMeta); if(priority == null) { priority = 0; } this.addObjectToPriorityList(curProduct,priority,rOwner); var visible = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("visible",curMeta); curProduct.set_visible(visible == null || visible); var opacity = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("opacity",curMeta); if(opacity != null) { curProduct.set_alpha(opacity / 31); } var scale = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("scale",curMeta); if(scale != null) { curProduct.set_scaleX(scale[0]); curProduct.set_scaleY(scale[1]); } } ,setObjectInitalPosition: function(curMeta,curProduct) { var posVal = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("position",curMeta); if(posVal == null) { posVal = [0,0]; } curProduct.set_x(posVal[0]); curProduct.set_y(posVal[1]); var posRelVal = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("positionRelative",curMeta); if(posRelVal != null) { return !posRelVal; } else { return false; } } ,setObjectFinalPosition: function(curMeta,curProduct) { var position = new openfl_geom_Point(curProduct.get_x(),curProduct.get_y()); var posRelVal = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("positionRelative",curMeta); if(posRelVal != null && !posRelVal) { curProduct.set_x(0); curProduct.set_y(0); var scaleX = curProduct.get_scaleX(); var scaleY = curProduct.get_scaleY(); curProduct.set_scaleX(1); curProduct.set_scaleY(1); position = curProduct.globalToLocal(position); var originVal = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively("origin",curMeta); if(originVal != null) { var offsetX = this.getAnchorOffsetX(originVal); var offsetY = this.getAnchorOffsetY(originVal); position.x += offsetX; position.y += offsetY; } curProduct.set_scaleX(scaleX); curProduct.set_scaleY(scaleY); } curProduct.set_x(position.x); curProduct.set_y(position.y); } ,getAnchorOffsetX: function(originVal) { var anchorPoint = originVal.toLowerCase(); if(anchorPoint.indexOf("center") != -1) { return com_firstplayable_hxlib_app_Application.app.get_targetSize().x / 2 | 0; } else if(anchorPoint.indexOf("right") != -1) { return com_firstplayable_hxlib_app_Application.app.get_targetSize().x | 0; } return 0; } ,getAnchorOffsetY: function(originVal) { var anchorPoint = originVal.toLowerCase(); if(anchorPoint.indexOf("middle") != -1) { return com_firstplayable_hxlib_app_Application.app.get_targetSize().y / 2 | 0; } else if(anchorPoint.indexOf("bottom") != -1) { return com_firstplayable_hxlib_app_Application.app.get_targetSize().y | 0; } return 0; } ,addObjectToRepositionList: function(curMeta,curProduct) { if(this.m_objsToReposition == null) { this.m_objsToReposition = new haxe_ds_ObjectMap(); } this.m_objsToReposition.set(curProduct,curMeta); } ,finalizePositions: function() { if(this.m_objsToReposition != null) { var key = this.m_objsToReposition.keys(); while(key.hasNext()) { var key1 = key.next(); this.setObjectFinalPosition(this.m_objsToReposition.h[key1.__id__],key1); } } } ,addObjectToPriorityList: function(obj,priority,owner) { if(obj == null || owner == null) { return; } var priorities = this.m_buckets.h[owner.__id__]; if(priorities == null) { priorities = []; this.m_buckets.set(owner,priorities); } var objs = priorities[priority]; if(objs == null) { objs = []; priorities[priority] = objs; } objs.push(obj); } ,addObjectsToMenu: function(owner) { if(owner == null) { return; } var priorities = this.m_buckets.h[owner.__id__]; if(priorities == null) { return; } var _g = 0; while(_g < priorities.length) { var arr = priorities[_g]; ++_g; if(arr == null) { continue; } var _g1 = 0; while(_g1 < arr.length) { var obj = arr[_g1]; ++_g1; owner.addChild(obj); obj = null; } arr = null; } } ,__class__: com_firstplayable_hxlib_utils_json_JsonMenuPlugIn }; var com_firstplayable_hxlib_utils_json_JsonObjectFactory = function() { }; $hxClasses["com.firstplayable.hxlib.utils.json.JsonObjectFactory"] = com_firstplayable_hxlib_utils_json_JsonObjectFactory; com_firstplayable_hxlib_utils_json_JsonObjectFactory.__name__ = ["com","firstplayable","hxlib","utils","json","JsonObjectFactory"]; com_firstplayable_hxlib_utils_json_JsonObjectFactory.getInstance = function() { if(com_firstplayable_hxlib_utils_json_JsonObjectFactory.m_instance == null) { com_firstplayable_hxlib_utils_json_JsonObjectFactory.m_instance = new com_firstplayable_hxlib_utils_json_JsonObjectFactory(); } return com_firstplayable_hxlib_utils_json_JsonObjectFactory.m_instance; }; com_firstplayable_hxlib_utils_json_JsonObjectFactory.prototype = { m_plugIn: null ,populate: function(jsonFileName,rClient) { var initedPlugIn = this.ascertainAppropriatePlugIn(jsonFileName,rClient); if(!initedPlugIn) { com_firstplayable_hxlib_Debug.logHelper("ERROR: Failed to init plug-in!!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonObjectFactory.hx", lineNumber : 65, className : "com.firstplayable.hxlib.utils.json.JsonObjectFactory", methodName : "populate"}); this.deinit(); return false; } if(!com_firstplayable_hxlib_loader_ResMan.get_instance().isRegistered(jsonFileName)) { com_firstplayable_hxlib_Debug.logHelper("ERROR: Unable to load json file!!! " + jsonFileName,com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonObjectFactory.hx", lineNumber : 72, className : "com.firstplayable.hxlib.utils.json.JsonObjectFactory", methodName : "populate"}); this.deinit(); return false; } var initiatedPopulationProcess = this.m_plugIn.beginPopulation(); if(!initiatedPopulationProcess) { this.deinit(); return false; } this.deinit(); return true; } ,ascertainAppropriatePlugIn: function(jsonFile,rClient) { if(rClient == null) { com_firstplayable_hxlib_Debug.logHelper("ERROR: Client is currently NULL!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonObjectFactory.hx", lineNumber : 103, className : "com.firstplayable.hxlib.utils.json.JsonObjectFactory", methodName : "ascertainAppropriatePlugIn"}); return false; } if(this.m_plugIn != null) { com_firstplayable_hxlib_Debug.logHelper("ERROR: Can't assign plug-in. Plug-in is currently initialized!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonObjectFactory.hx", lineNumber : 109, className : "com.firstplayable.hxlib.utils.json.JsonObjectFactory", methodName : "ascertainAppropriatePlugIn"}); return false; } var _g = rClient.getType(); switch(_g[1]) { case 0: this.m_plugIn = new com_firstplayable_hxlib_utils_json_JsonMenuPlugIn(jsonFile,rClient); break; case 1: com_firstplayable_hxlib_Debug.logHelper("ERROR: Called with an invalid client type!!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "JsonObjectFactory.hx", lineNumber : 121, className : "com.firstplayable.hxlib.utils.json.JsonObjectFactory", methodName : "ascertainAppropriatePlugIn"}); break; } return true; } ,deinit: function() { this.m_plugIn = null; } ,__class__: com_firstplayable_hxlib_utils_json_JsonObjectFactory }; var com_firstplayable_hxlib_utils_json_JsonUtils = function() { }; $hxClasses["com.firstplayable.hxlib.utils.json.JsonUtils"] = com_firstplayable_hxlib_utils_json_JsonUtils; com_firstplayable_hxlib_utils_json_JsonUtils.__name__ = ["com","firstplayable","hxlib","utils","json","JsonUtils"]; com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively = function(key,d) { var tmp; if(Reflect.isObject(d)) { var o = d; tmp = (o == null ? null : js_Boot.getClass(o)) == null; } else { tmp = false; } if(!tmp) { return null; } var val = null; var _g = 0; var _g1 = Reflect.fields(d); while(_g < _g1.length) { var n = _g1[_g]; ++_g; if(n == key) { return Reflect.field(d,n); } val = com_firstplayable_hxlib_utils_json_JsonUtils.getValueRecursively(key,Reflect.field(d,n)); if(val != null) { return val; } } return val; }; var com_firstplayable_hxlib_utils_json_SupportedPlatform = $hxClasses["com.firstplayable.hxlib.utils.json.SupportedPlatform"] = { __ename__ : ["com","firstplayable","hxlib","utils","json","SupportedPlatform"], __constructs__ : ["Custom1","Custom2"] }; com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom1 = ["Custom1",0]; com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom1.toString = $estr; com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom1.__enum__ = com_firstplayable_hxlib_utils_json_SupportedPlatform; com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom2 = ["Custom2",1]; com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom2.toString = $estr; com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom2.__enum__ = com_firstplayable_hxlib_utils_json_SupportedPlatform; com_firstplayable_hxlib_utils_json_SupportedPlatform.__empty_constructs__ = [com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom1,com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom2]; var haxe_ds_BalancedTree = function() { }; $hxClasses["haxe.ds.BalancedTree"] = haxe_ds_BalancedTree; haxe_ds_BalancedTree.__name__ = ["haxe","ds","BalancedTree"]; haxe_ds_BalancedTree.prototype = { root: null ,set: function(key,value) { this.root = this.setLoop(key,value,this.root); } ,get: function(key) { var node = this.root; while(node != null) { var c = this.compare(key,node.key); if(c == 0) { return node.value; } if(c < 0) { node = node.left; } else { node = node.right; } } return null; } ,remove: function(key) { try { this.root = this.removeLoop(key,this.root); return true; } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; if( js_Boot.__instanceof(e,String) ) { return false; } else throw(e); } } ,exists: function(key) { var node = this.root; while(node != null) { var c = this.compare(key,node.key); if(c == 0) { return true; } else if(c < 0) { node = node.left; } else { node = node.right; } } return false; } ,setLoop: function(k,v,node) { if(node == null) { return new haxe_ds_TreeNode(null,k,v,null); } var c = this.compare(k,node.key); if(c == 0) { return new haxe_ds_TreeNode(node.left,k,v,node.right,node == null ? 0 : node._height); } else if(c < 0) { var nl = this.setLoop(k,v,node.left); return this.balance(nl,node.key,node.value,node.right); } else { var nr = this.setLoop(k,v,node.right); return this.balance(node.left,node.key,node.value,nr); } } ,removeLoop: function(k,node) { if(node == null) { throw new js__$Boot_HaxeError("Not_found"); } var c = this.compare(k,node.key); if(c == 0) { return this.merge(node.left,node.right); } else if(c < 0) { return this.balance(this.removeLoop(k,node.left),node.key,node.value,node.right); } else { return this.balance(node.left,node.key,node.value,this.removeLoop(k,node.right)); } } ,merge: function(t1,t2) { if(t1 == null) { return t2; } if(t2 == null) { return t1; } var t = this.minBinding(t2); return this.balance(t1,t.key,t.value,this.removeMinBinding(t2)); } ,minBinding: function(t) { if(t == null) { throw new js__$Boot_HaxeError("Not_found"); } else if(t.left == null) { return t; } else { return this.minBinding(t.left); } } ,removeMinBinding: function(t) { if(t.left == null) { return t.right; } else { return this.balance(this.removeMinBinding(t.left),t.key,t.value,t.right); } } ,balance: function(l,k,v,r) { var hl = l == null ? 0 : l._height; var hr = r == null ? 0 : r._height; if(hl > hr + 2) { var _this = l.left; var _this1 = l.right; if((_this == null ? 0 : _this._height) >= (_this1 == null ? 0 : _this1._height)) { return new haxe_ds_TreeNode(l.left,l.key,l.value,new haxe_ds_TreeNode(l.right,k,v,r)); } else { return new haxe_ds_TreeNode(new haxe_ds_TreeNode(l.left,l.key,l.value,l.right.left),l.right.key,l.right.value,new haxe_ds_TreeNode(l.right.right,k,v,r)); } } else if(hr > hl + 2) { var _this2 = r.right; var _this3 = r.left; if((_this2 == null ? 0 : _this2._height) > (_this3 == null ? 0 : _this3._height)) { return new haxe_ds_TreeNode(new haxe_ds_TreeNode(l,k,v,r.left),r.key,r.value,r.right); } else { return new haxe_ds_TreeNode(new haxe_ds_TreeNode(l,k,v,r.left.left),r.left.key,r.left.value,new haxe_ds_TreeNode(r.left.right,r.key,r.value,r.right)); } } else { return new haxe_ds_TreeNode(l,k,v,r,(hl > hr ? hl : hr) + 1); } } ,compare: function(k1,k2) { return Reflect.compare(k1,k2); } ,__class__: haxe_ds_BalancedTree }; var haxe_ds_EnumValueMap = function() { haxe_ds_BalancedTree.call(this); }; $hxClasses["haxe.ds.EnumValueMap"] = haxe_ds_EnumValueMap; haxe_ds_EnumValueMap.__name__ = ["haxe","ds","EnumValueMap"]; haxe_ds_EnumValueMap.__interfaces__ = [haxe_IMap]; haxe_ds_EnumValueMap.__super__ = haxe_ds_BalancedTree; haxe_ds_EnumValueMap.prototype = $extend(haxe_ds_BalancedTree.prototype,{ compare: function(k1,k2) { var d = k1[1] - k2[1]; if(d != 0) { return d; } var p1 = k1.slice(2); var p2 = k2.slice(2); if(p1.length == 0 && p2.length == 0) { return 0; } return this.compareArgs(p1,p2); } ,compareArgs: function(a1,a2) { var ld = a1.length - a2.length; if(ld != 0) { return ld; } var _g1 = 0; var _g = a1.length; while(_g1 < _g) { var i = _g1++; var d = this.compareArg(a1[i],a2[i]); if(d != 0) { return d; } } return 0; } ,compareArg: function(v1,v2) { if(Reflect.isEnumValue(v1) && Reflect.isEnumValue(v2)) { return this.compare(v1,v2); } else if((v1 instanceof Array) && v1.__enum__ == null && ((v2 instanceof Array) && v2.__enum__ == null)) { return this.compareArgs(v1,v2); } else { return Reflect.compare(v1,v2); } } ,__class__: haxe_ds_EnumValueMap }); var com_firstplayable_hxlib_utils_json_LayoutMap = function() { }; $hxClasses["com.firstplayable.hxlib.utils.json.LayoutMap"] = com_firstplayable_hxlib_utils_json_LayoutMap; com_firstplayable_hxlib_utils_json_LayoutMap.__name__ = ["com","firstplayable","hxlib","utils","json","LayoutMap"]; com_firstplayable_hxlib_utils_json_LayoutMap.__properties__ = {get_curLayout:"get_curLayout"}; com_firstplayable_hxlib_utils_json_LayoutMap.get_curLayout = function() { if(com_firstplayable_hxlib_utils_json_LayoutMap.curLayout == null) { com_firstplayable_hxlib_utils_json_LayoutMap.curLayout = com_firstplayable_hxlib_utils_DeviceCapabilities.aspectRatio() > com_firstplayable_hxlib_utils_json_LayoutMap.widescreenThreshold ? com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom1 : com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom2; } return com_firstplayable_hxlib_utils_json_LayoutMap.curLayout; }; com_firstplayable_hxlib_utils_json_LayoutMap.getLayoutSize = function() { return com_firstplayable_hxlib_utils_json_LayoutMap.m_map.get(com_firstplayable_hxlib_utils_json_LayoutMap.get_curLayout()); }; var format_png_Color = $hxClasses["format.png.Color"] = { __ename__ : ["format","png","Color"], __constructs__ : ["ColGrey","ColTrue","ColIndexed"] }; format_png_Color.ColGrey = function(alpha) { var $x = ["ColGrey",0,alpha]; $x.__enum__ = format_png_Color; $x.toString = $estr; return $x; }; format_png_Color.ColTrue = function(alpha) { var $x = ["ColTrue",1,alpha]; $x.__enum__ = format_png_Color; $x.toString = $estr; return $x; }; format_png_Color.ColIndexed = ["ColIndexed",2]; format_png_Color.ColIndexed.toString = $estr; format_png_Color.ColIndexed.__enum__ = format_png_Color; format_png_Color.__empty_constructs__ = [format_png_Color.ColIndexed]; var format_png_Chunk = $hxClasses["format.png.Chunk"] = { __ename__ : ["format","png","Chunk"], __constructs__ : ["CEnd","CHeader","CData","CPalette","CUnknown"] }; format_png_Chunk.CEnd = ["CEnd",0]; format_png_Chunk.CEnd.toString = $estr; format_png_Chunk.CEnd.__enum__ = format_png_Chunk; format_png_Chunk.CHeader = function(h) { var $x = ["CHeader",1,h]; $x.__enum__ = format_png_Chunk; $x.toString = $estr; return $x; }; format_png_Chunk.CData = function(b) { var $x = ["CData",2,b]; $x.__enum__ = format_png_Chunk; $x.toString = $estr; return $x; }; format_png_Chunk.CPalette = function(b) { var $x = ["CPalette",3,b]; $x.__enum__ = format_png_Chunk; $x.toString = $estr; return $x; }; format_png_Chunk.CUnknown = function(id,data) { var $x = ["CUnknown",4,id,data]; $x.__enum__ = format_png_Chunk; $x.toString = $estr; return $x; }; format_png_Chunk.__empty_constructs__ = [format_png_Chunk.CEnd]; var format_png_Reader = function(i) { this.i = i; i.set_bigEndian(true); this.checkCRC = true; }; $hxClasses["format.png.Reader"] = format_png_Reader; format_png_Reader.__name__ = ["format","png","Reader"]; format_png_Reader.prototype = { i: null ,checkCRC: null ,read: function() { var _g = 0; var _g1 = [137,80,78,71,13,10,26,10]; while(_g < _g1.length) { var b = _g1[_g]; ++_g; if(this.i.readByte() != b) { throw new js__$Boot_HaxeError("Invalid header"); } } var l = new List(); while(true) { var c = this.readChunk(); l.add(c); if(c == format_png_Chunk.CEnd) { break; } } return l; } ,readHeader: function(i) { i.set_bigEndian(true); var width = i.readInt32(); var height = i.readInt32(); var colbits = i.readByte(); var color = i.readByte(); var color1; switch(color) { case 0: color1 = format_png_Color.ColGrey(false); break; case 2: color1 = format_png_Color.ColTrue(false); break; case 3: color1 = format_png_Color.ColIndexed; break; case 4: color1 = format_png_Color.ColGrey(true); break; case 6: color1 = format_png_Color.ColTrue(true); break; default: throw new js__$Boot_HaxeError("Unknown color model " + color + ":" + colbits); } var compress = i.readByte(); var filter = i.readByte(); if(compress != 0 || filter != 0) { throw new js__$Boot_HaxeError("Invalid header"); } var interlace = i.readByte(); if(interlace != 0 && interlace != 1) { throw new js__$Boot_HaxeError("Invalid header"); } return { width : width, height : height, colbits : colbits, color : color1, interlaced : interlace == 1}; } ,readChunk: function() { var dataLen = this.i.readInt32(); var id = this.i.readString(4); var data = this.i.read(dataLen); var crc = this.i.readInt32(); if(this.checkCRC) { var c = new haxe_crypto_Crc32(); var _g = 0; while(_g < 4) { var i = _g++; c["byte"](HxOverrides.cca(id,i)); } c.update(data,0,data.length); if(c.get() != crc) { throw new js__$Boot_HaxeError("CRC check failure"); } } switch(id) { case "IDAT": return format_png_Chunk.CData(data); case "IEND": return format_png_Chunk.CEnd; case "IHDR": return format_png_Chunk.CHeader(this.readHeader(new haxe_io_BytesInput(data))); case "PLTE": return format_png_Chunk.CPalette(data); default: return format_png_Chunk.CUnknown(id,data); } } ,__class__: format_png_Reader }; var format_png_Tools = function() { }; $hxClasses["format.png.Tools"] = format_png_Tools; format_png_Tools.__name__ = ["format","png","Tools"]; format_png_Tools.getHeader = function(d) { var _g_head = d.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var c = val; if(c[1] == 1) { var h = c[2]; return h; } } throw new js__$Boot_HaxeError("Header not found"); }; format_png_Tools.getPalette = function(d) { var _g_head = d.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var c = val; if(c[1] == 3) { var b = c[2]; return b; } } return null; }; format_png_Tools.filter = function(data,x,y,stride,prev,p,numChannels) { if(numChannels == null) { numChannels = 4; } var b = y == 0 ? 0 : data.b[p - stride]; var c = x == 0 || y == 0 ? 0 : data.b[p - stride - numChannels]; var k = prev + b - c; var pa = k - prev; if(pa < 0) { pa = -pa; } var pb = k - b; if(pb < 0) { pb = -pb; } var pc = k - c; if(pc < 0) { pc = -pc; } if(pa <= pb && pa <= pc) { return prev; } else if(pb <= pc) { return b; } else { return c; } }; format_png_Tools.reverseBytes = function(b) { var p = 0; var _g1 = 0; var _g = b.length >> 2; while(_g1 < _g) { var i = _g1++; var b1 = b.b[p]; var g = b.b[p + 1]; var r = b.b[p + 2]; var a = b.b[p + 3]; b.b[p++] = a & 255; b.b[p++] = r & 255; b.b[p++] = g & 255; b.b[p++] = b1 & 255; } }; format_png_Tools.extractGrey = function(d) { var h = format_png_Tools.getHeader(d); var grey = new haxe_io_Bytes(new ArrayBuffer(h.width * h.height)); var data = null; var fullData = null; var _g_head = d.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var c = val; if(c[1] == 2) { var b = c[2]; if(fullData != null) { var b1 = fullData.b; var b2 = b.b; var _g1 = 0; var _g = b.length; while(_g1 < _g) { var i = _g1++; fullData.b.push(b2[i]); } } else if(data == null) { data = b; } else { fullData = new haxe_io_BytesBuffer(); var b11 = fullData.b; var b21 = data.b; var _g11 = 0; var _g2 = data.length; while(_g11 < _g2) { var i1 = _g11++; fullData.b.push(b21[i1]); } var b12 = fullData.b; var b22 = b.b; var _g12 = 0; var _g3 = b.length; while(_g12 < _g3) { var i2 = _g12++; fullData.b.push(b22[i2]); } data = null; } } } if(fullData != null) { data = fullData.getBytes(); } if(data == null) { throw new js__$Boot_HaxeError("Data not found"); } data = format_tools_Inflate.run(data); var r = 0; var w = 0; var _g4 = h.color; if(_g4[1] == 0) { var alpha = _g4[2]; if(h.colbits != 8) { throw new js__$Boot_HaxeError("Unsupported color mode"); } var width = h.width; var stride = (alpha ? 2 : 1) * width + 1; if(data.length < h.height * stride) { throw new js__$Boot_HaxeError("Not enough data"); } var rinc = alpha ? 2 : 1; var _g13 = 0; var _g5 = h.height; while(_g13 < _g5) { var y = _g13++; var f = data.b[r++]; switch(f) { case 0: var _g31 = 0; var _g21 = width; while(_g31 < _g21) { var x = _g31++; var v = data.b[r]; r += rinc; grey.b[w++] = v & 255; } break; case 1: var cv = 0; var _g32 = 0; var _g22 = width; while(_g32 < _g22) { var x1 = _g32++; cv += data.b[r]; r += rinc; grey.b[w++] = cv & 255; } break; case 2: var stride1 = y == 0 ? 0 : width; var _g33 = 0; var _g23 = width; while(_g33 < _g23) { var x2 = _g33++; var v1 = data.b[r] + grey.b[w - stride1]; r += rinc; grey.b[w++] = v1 & 255; } break; case 3: var cv1 = 0; var stride2 = y == 0 ? 0 : width; var _g34 = 0; var _g24 = width; while(_g34 < _g24) { var x3 = _g34++; cv1 = data.b[r] + (cv1 + grey.b[w - stride2] >> 1) & 255; r += rinc; grey.b[w++] = cv1 & 255; } break; case 4: var stride3 = width; var cv2 = 0; var _g35 = 0; var _g25 = width; while(_g35 < _g25) { var x4 = _g35++; var b3 = y == 0 ? 0 : grey.b[w - stride3]; var c1 = x4 == 0 || y == 0 ? 0 : grey.b[w - stride3 - 1]; var k = cv2 + b3 - c1; var pa = k - cv2; if(pa < 0) { pa = -pa; } var pb = k - b3; if(pb < 0) { pb = -pb; } var pc = k - c1; if(pc < 0) { pc = -pc; } cv2 = (pa <= pb && pa <= pc ? cv2 : pb <= pc ? b3 : c1) + data.b[r] & 255; r += rinc; grey.b[w++] = cv2 & 255; } break; default: throw new js__$Boot_HaxeError("Invalid filter " + f); } } } else { throw new js__$Boot_HaxeError("Unsupported color mode"); } return grey; }; format_png_Tools.extract32 = function(d,bytes,flipY) { var h = format_png_Tools.getHeader(d); var bgra = bytes == null ? new haxe_io_Bytes(new ArrayBuffer(h.width * h.height * 4)) : bytes; var data = null; var fullData = null; var _g_head = d.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var c = val; if(c[1] == 2) { var b = c[2]; if(fullData != null) { var b1 = fullData.b; var b2 = b.b; var _g1 = 0; var _g = b.length; while(_g1 < _g) { var i = _g1++; fullData.b.push(b2[i]); } } else if(data == null) { data = b; } else { fullData = new haxe_io_BytesBuffer(); var b11 = fullData.b; var b21 = data.b; var _g11 = 0; var _g2 = data.length; while(_g11 < _g2) { var i1 = _g11++; fullData.b.push(b21[i1]); } var b12 = fullData.b; var b22 = b.b; var _g12 = 0; var _g3 = b.length; while(_g12 < _g3) { var i2 = _g12++; fullData.b.push(b22[i2]); } data = null; } } } if(fullData != null) { data = fullData.getBytes(); } if(data == null) { throw new js__$Boot_HaxeError("Data not found"); } data = format_tools_Inflate.run(data); var r = 0; var w = 0; var lineDelta = 0; if(flipY) { lineDelta = -h.width * 8; w = (h.height - 1) * (h.width * 4); } var flipY1 = flipY ? -1 : 1; var _g4 = h.color; switch(_g4[1]) { case 0: var alpha = _g4[2]; if(h.colbits != 8) { throw new js__$Boot_HaxeError("Unsupported color mode"); } var width = h.width; var stride = (alpha ? 2 : 1) * width + 1; if(data.length < h.height * stride) { throw new js__$Boot_HaxeError("Not enough data"); } var alphvaIdx = -1; if(!alpha) { var _g_head1 = d.h; while(_g_head1 != null) { var val1 = _g_head1.item; _g_head1 = _g_head1.next; var t = val1; if(t[1] == 4) { if(t[2] == "tRNS") { var data1 = t[3]; if(data1.length >= 2) { alphvaIdx = data1.b[1]; } break; } } } } var _g13 = 0; var _g5 = h.height; while(_g13 < _g5) { var y = _g13++; var f = data.b[r++]; switch(f) { case 0: if(alpha) { var _g31 = 0; var _g21 = width; while(_g31 < _g21) { var x = _g31++; var v = data.b[r++]; bgra.b[w++] = v & 255; bgra.b[w++] = v & 255; bgra.b[w++] = v & 255; bgra.b[w++] = data.b[r++] & 255; } } else { var _g32 = 0; var _g22 = width; while(_g32 < _g22) { var x1 = _g32++; var v1 = data.b[r++]; bgra.b[w++] = v1 & 255; bgra.b[w++] = v1 & 255; bgra.b[w++] = v1 & 255; bgra.b[w++] = (v1 == alphvaIdx ? 0 : 255) & 255; } } break; case 1: var cv = 0; var ca = 0; if(alpha) { var _g33 = 0; var _g23 = width; while(_g33 < _g23) { var x2 = _g33++; cv += data.b[r++]; bgra.b[w++] = cv & 255; bgra.b[w++] = cv & 255; bgra.b[w++] = cv & 255; ca += data.b[r++]; bgra.b[w++] = ca & 255; } } else { var _g34 = 0; var _g24 = width; while(_g34 < _g24) { var x3 = _g34++; cv += data.b[r++]; bgra.b[w++] = cv & 255; bgra.b[w++] = cv & 255; bgra.b[w++] = cv & 255; bgra.b[w++] = (cv == alphvaIdx ? 0 : 255) & 255; } } break; case 2: var stride1 = y == 0 ? 0 : width * 4 * flipY1; if(alpha) { var _g35 = 0; var _g25 = width; while(_g35 < _g25) { var x4 = _g35++; var v2 = data.b[r++] + bgra.b[w - stride1]; bgra.b[w++] = v2 & 255; bgra.b[w++] = v2 & 255; bgra.b[w++] = v2 & 255; bgra.b[w++] = data.b[r++] + bgra.b[w - stride1] & 255; } } else { var _g36 = 0; var _g26 = width; while(_g36 < _g26) { var x5 = _g36++; var v3 = data.b[r++] + bgra.b[w - stride1]; bgra.b[w++] = v3 & 255; bgra.b[w++] = v3 & 255; bgra.b[w++] = v3 & 255; bgra.b[w++] = (v3 == alphvaIdx ? 0 : 255) & 255; } } break; case 3: var cv1 = 0; var ca1 = 0; var stride2 = y == 0 ? 0 : width * 4 * flipY1; if(alpha) { var _g37 = 0; var _g27 = width; while(_g37 < _g27) { var x6 = _g37++; cv1 = data.b[r++] + (cv1 + bgra.b[w - stride2] >> 1) & 255; bgra.b[w++] = cv1 & 255; bgra.b[w++] = cv1 & 255; bgra.b[w++] = cv1 & 255; ca1 = data.b[r++] + (ca1 + bgra.b[w - stride2] >> 1) & 255; bgra.b[w++] = ca1 & 255; } } else { var _g38 = 0; var _g28 = width; while(_g38 < _g28) { var x7 = _g38++; cv1 = data.b[r++] + (cv1 + bgra.b[w - stride2] >> 1) & 255; bgra.b[w++] = cv1 & 255; bgra.b[w++] = cv1 & 255; bgra.b[w++] = cv1 & 255; bgra.b[w++] = (cv1 == alphvaIdx ? 0 : 255) & 255; } } break; case 4: var stride3 = width * 4 * flipY1; var cv2 = 0; var ca2 = 0; if(alpha) { var _g39 = 0; var _g29 = width; while(_g39 < _g29) { var x8 = _g39++; var b3 = y == 0 ? 0 : bgra.b[w - stride3]; var c1 = x8 == 0 || y == 0 ? 0 : bgra.b[w - stride3 - 4]; var k = cv2 + b3 - c1; var pa = k - cv2; if(pa < 0) { pa = -pa; } var pb = k - b3; if(pb < 0) { pb = -pb; } var pc = k - c1; if(pc < 0) { pc = -pc; } cv2 = (pa <= pb && pa <= pc ? cv2 : pb <= pc ? b3 : c1) + data.b[r++] & 255; bgra.b[w++] = cv2 & 255; bgra.b[w++] = cv2 & 255; bgra.b[w++] = cv2 & 255; var b4 = y == 0 ? 0 : bgra.b[w - stride3]; var c2 = x8 == 0 || y == 0 ? 0 : bgra.b[w - stride3 - 4]; var k1 = ca2 + b4 - c2; var pa1 = k1 - ca2; if(pa1 < 0) { pa1 = -pa1; } var pb1 = k1 - b4; if(pb1 < 0) { pb1 = -pb1; } var pc1 = k1 - c2; if(pc1 < 0) { pc1 = -pc1; } ca2 = (pa1 <= pb1 && pa1 <= pc1 ? ca2 : pb1 <= pc1 ? b4 : c2) + data.b[r++] & 255; bgra.b[w++] = ca2 & 255; } } else { var _g310 = 0; var _g210 = width; while(_g310 < _g210) { var x9 = _g310++; var b5 = y == 0 ? 0 : bgra.b[w - stride3]; var c3 = x9 == 0 || y == 0 ? 0 : bgra.b[w - stride3 - 4]; var k2 = cv2 + b5 - c3; var pa2 = k2 - cv2; if(pa2 < 0) { pa2 = -pa2; } var pb2 = k2 - b5; if(pb2 < 0) { pb2 = -pb2; } var pc2 = k2 - c3; if(pc2 < 0) { pc2 = -pc2; } cv2 = (pa2 <= pb2 && pa2 <= pc2 ? cv2 : pb2 <= pc2 ? b5 : c3) + data.b[r++] & 255; bgra.b[w++] = cv2 & 255; bgra.b[w++] = cv2 & 255; bgra.b[w++] = cv2 & 255; bgra.b[w++] = (cv2 == alphvaIdx ? 0 : 255) & 255; } } break; default: throw new js__$Boot_HaxeError("Invalid filter " + f); } w += lineDelta; } break; case 1: var alpha1 = _g4[2]; if(h.colbits != 8) { throw new js__$Boot_HaxeError("Unsupported color mode"); } var width1 = h.width; var stride4 = (alpha1 ? 4 : 3) * width1 + 1; if(data.length < h.height * stride4) { throw new js__$Boot_HaxeError("Not enough data"); } var alphaRed = -1; var alphaGreen = -1; var alphaBlue = -1; if(!alpha1) { var _g_head2 = d.h; while(_g_head2 != null) { var val2 = _g_head2.item; _g_head2 = _g_head2.next; var t1 = val2; if(t1[1] == 4) { if(t1[2] == "tRNS") { var data2 = t1[3]; if(data2.length >= 6) { alphaRed = data2.b[1]; alphaGreen = data2.b[3]; alphaBlue = data2.b[5]; } break; } } } } var cr = 0; var cg = 0; var cb = 0; var ca3 = 0; var _g14 = 0; var _g6 = h.height; while(_g14 < _g6) { var y1 = _g14++; var f1 = data.b[r++]; switch(f1) { case 0: if(alpha1) { var _g311 = 0; var _g211 = width1; while(_g311 < _g211) { var x10 = _g311++; bgra.b[w++] = data.b[r + 2] & 255; bgra.b[w++] = data.b[r + 1] & 255; bgra.b[w++] = data.b[r] & 255; bgra.b[w++] = data.b[r + 3] & 255; r += 4; } } else { var _g312 = 0; var _g212 = width1; while(_g312 < _g212) { var x11 = _g312++; cb = data.b[r + 2]; bgra.b[w++] = cb & 255; cg = data.b[r + 1]; bgra.b[w++] = cg & 255; cr = data.b[r]; bgra.b[w++] = cr & 255; bgra.b[w++] = (cr == alphaRed && cg == alphaGreen && cb == alphaBlue ? 0 : 255) & 255; r += 3; } } break; case 1: ca3 = 0; cb = ca3; cg = cb; cr = cg; if(alpha1) { var _g313 = 0; var _g213 = width1; while(_g313 < _g213) { var x12 = _g313++; cb += data.b[r + 2]; bgra.b[w++] = cb & 255; cg += data.b[r + 1]; bgra.b[w++] = cg & 255; cr += data.b[r]; bgra.b[w++] = cr & 255; ca3 += data.b[r + 3]; bgra.b[w++] = ca3 & 255; r += 4; } } else { var _g314 = 0; var _g214 = width1; while(_g314 < _g214) { var x13 = _g314++; cb += data.b[r + 2]; bgra.b[w++] = cb & 255; cg += data.b[r + 1]; bgra.b[w++] = cg & 255; cr += data.b[r]; bgra.b[w++] = cr & 255; bgra.b[w++] = (cr == alphaRed && cg == alphaGreen && cb == alphaBlue ? 0 : 255) & 255; r += 3; } } break; case 2: var stride5 = y1 == 0 ? 0 : width1 * 4 * flipY1; if(alpha1) { var _g315 = 0; var _g215 = width1; while(_g315 < _g215) { var x14 = _g315++; bgra.b[w] = data.b[r + 2] + bgra.b[w - stride5] & 255; ++w; bgra.b[w] = data.b[r + 1] + bgra.b[w - stride5] & 255; ++w; bgra.b[w] = data.b[r] + bgra.b[w - stride5] & 255; ++w; bgra.b[w] = data.b[r + 3] + bgra.b[w - stride5] & 255; ++w; r += 4; } } else { var _g316 = 0; var _g216 = width1; while(_g316 < _g216) { var x15 = _g316++; cb = data.b[r + 2] + bgra.b[w - stride5]; bgra.b[w] = cb & 255; ++w; cg = data.b[r + 1] + bgra.b[w - stride5]; bgra.b[w] = cg & 255; ++w; cr = data.b[r] + bgra.b[w - stride5]; bgra.b[w] = cr & 255; ++w; bgra.b[w++] = (cr == alphaRed && cg == alphaGreen && cb == alphaBlue ? 0 : 255) & 255; r += 3; } } break; case 3: ca3 = 0; cb = ca3; cg = cb; cr = cg; var stride6 = y1 == 0 ? 0 : width1 * 4 * flipY1; if(alpha1) { var _g317 = 0; var _g217 = width1; while(_g317 < _g217) { var x16 = _g317++; cb = data.b[r + 2] + (cb + bgra.b[w - stride6] >> 1) & 255; bgra.b[w++] = cb & 255; cg = data.b[r + 1] + (cg + bgra.b[w - stride6] >> 1) & 255; bgra.b[w++] = cg & 255; cr = data.b[r] + (cr + bgra.b[w - stride6] >> 1) & 255; bgra.b[w++] = cr & 255; ca3 = data.b[r + 3] + (ca3 + bgra.b[w - stride6] >> 1) & 255; bgra.b[w++] = ca3 & 255; r += 4; } } else { var _g318 = 0; var _g218 = width1; while(_g318 < _g218) { var x17 = _g318++; cb = data.b[r + 2] + (cb + bgra.b[w - stride6] >> 1) & 255; bgra.b[w++] = cb & 255; cg = data.b[r + 1] + (cg + bgra.b[w - stride6] >> 1) & 255; bgra.b[w++] = cg & 255; cr = data.b[r] + (cr + bgra.b[w - stride6] >> 1) & 255; bgra.b[w++] = cr & 255; bgra.b[w++] = (cr == alphaRed && cg == alphaGreen && cb == alphaBlue ? 0 : 255) & 255; r += 3; } } break; case 4: var stride7 = width1 * 4 * flipY1; ca3 = 0; cb = ca3; cg = cb; cr = cg; if(alpha1) { var _g319 = 0; var _g219 = width1; while(_g319 < _g219) { var x18 = _g319++; var b6 = y1 == 0 ? 0 : bgra.b[w - stride7]; var c4 = x18 == 0 || y1 == 0 ? 0 : bgra.b[w - stride7 - 4]; var k3 = cb + b6 - c4; var pa3 = k3 - cb; if(pa3 < 0) { pa3 = -pa3; } var pb3 = k3 - b6; if(pb3 < 0) { pb3 = -pb3; } var pc3 = k3 - c4; if(pc3 < 0) { pc3 = -pc3; } cb = (pa3 <= pb3 && pa3 <= pc3 ? cb : pb3 <= pc3 ? b6 : c4) + data.b[r + 2] & 255; bgra.b[w++] = cb & 255; var b7 = y1 == 0 ? 0 : bgra.b[w - stride7]; var c5 = x18 == 0 || y1 == 0 ? 0 : bgra.b[w - stride7 - 4]; var k4 = cg + b7 - c5; var pa4 = k4 - cg; if(pa4 < 0) { pa4 = -pa4; } var pb4 = k4 - b7; if(pb4 < 0) { pb4 = -pb4; } var pc4 = k4 - c5; if(pc4 < 0) { pc4 = -pc4; } cg = (pa4 <= pb4 && pa4 <= pc4 ? cg : pb4 <= pc4 ? b7 : c5) + data.b[r + 1] & 255; bgra.b[w++] = cg & 255; var b8 = y1 == 0 ? 0 : bgra.b[w - stride7]; var c6 = x18 == 0 || y1 == 0 ? 0 : bgra.b[w - stride7 - 4]; var k5 = cr + b8 - c6; var pa5 = k5 - cr; if(pa5 < 0) { pa5 = -pa5; } var pb5 = k5 - b8; if(pb5 < 0) { pb5 = -pb5; } var pc5 = k5 - c6; if(pc5 < 0) { pc5 = -pc5; } cr = (pa5 <= pb5 && pa5 <= pc5 ? cr : pb5 <= pc5 ? b8 : c6) + data.b[r] & 255; bgra.b[w++] = cr & 255; var b9 = y1 == 0 ? 0 : bgra.b[w - stride7]; var c7 = x18 == 0 || y1 == 0 ? 0 : bgra.b[w - stride7 - 4]; var k6 = ca3 + b9 - c7; var pa6 = k6 - ca3; if(pa6 < 0) { pa6 = -pa6; } var pb6 = k6 - b9; if(pb6 < 0) { pb6 = -pb6; } var pc6 = k6 - c7; if(pc6 < 0) { pc6 = -pc6; } ca3 = (pa6 <= pb6 && pa6 <= pc6 ? ca3 : pb6 <= pc6 ? b9 : c7) + data.b[r + 3] & 255; bgra.b[w++] = ca3 & 255; r += 4; } } else { var _g320 = 0; var _g220 = width1; while(_g320 < _g220) { var x19 = _g320++; var b10 = y1 == 0 ? 0 : bgra.b[w - stride7]; var c8 = x19 == 0 || y1 == 0 ? 0 : bgra.b[w - stride7 - 4]; var k7 = cb + b10 - c8; var pa7 = k7 - cb; if(pa7 < 0) { pa7 = -pa7; } var pb7 = k7 - b10; if(pb7 < 0) { pb7 = -pb7; } var pc7 = k7 - c8; if(pc7 < 0) { pc7 = -pc7; } cb = (pa7 <= pb7 && pa7 <= pc7 ? cb : pb7 <= pc7 ? b10 : c8) + data.b[r + 2] & 255; bgra.b[w++] = cb & 255; var b13 = y1 == 0 ? 0 : bgra.b[w - stride7]; var c9 = x19 == 0 || y1 == 0 ? 0 : bgra.b[w - stride7 - 4]; var k8 = cg + b13 - c9; var pa8 = k8 - cg; if(pa8 < 0) { pa8 = -pa8; } var pb8 = k8 - b13; if(pb8 < 0) { pb8 = -pb8; } var pc8 = k8 - c9; if(pc8 < 0) { pc8 = -pc8; } cg = (pa8 <= pb8 && pa8 <= pc8 ? cg : pb8 <= pc8 ? b13 : c9) + data.b[r + 1] & 255; bgra.b[w++] = cg & 255; var b14 = y1 == 0 ? 0 : bgra.b[w - stride7]; var c10 = x19 == 0 || y1 == 0 ? 0 : bgra.b[w - stride7 - 4]; var k9 = cr + b14 - c10; var pa9 = k9 - cr; if(pa9 < 0) { pa9 = -pa9; } var pb9 = k9 - b14; if(pb9 < 0) { pb9 = -pb9; } var pc9 = k9 - c10; if(pc9 < 0) { pc9 = -pc9; } cr = (pa9 <= pb9 && pa9 <= pc9 ? cr : pb9 <= pc9 ? b14 : c10) + data.b[r] & 255; bgra.b[w++] = cr & 255; bgra.b[w++] = (cr == alphaRed && cg == alphaGreen && cb == alphaBlue ? 0 : 255) & 255; r += 3; } } break; default: throw new js__$Boot_HaxeError("Invalid filter " + f1); } w += lineDelta; } break; case 2: var pal = format_png_Tools.getPalette(d); if(pal == null) { throw new js__$Boot_HaxeError("PNG Palette is missing"); } var alpha2 = null; var _g_head3 = d.h; while(_g_head3 != null) { var val3 = _g_head3.item; _g_head3 = _g_head3.next; var t2 = val3; if(t2[1] == 4) { if(t2[2] == "tRNS") { var data3 = t2[3]; alpha2 = data3; break; } } } if(alpha2 != null && alpha2.length < 1 << h.colbits) { var alpha21 = new haxe_io_Bytes(new ArrayBuffer(1 << h.colbits)); alpha21.blit(0,alpha2,0,alpha2.length); alpha21.fill(alpha2.length,alpha21.length - alpha2.length,255); alpha2 = alpha21; } var width2 = h.width; var stride8 = Math.ceil(width2 * h.colbits / 8) + 1; if(data.length < h.height * stride8) { throw new js__$Boot_HaxeError("Not enough data"); } var rline = h.width * h.colbits >> 3; var _g15 = 0; var _g7 = h.height; while(_g15 < _g7) { var y2 = _g15++; var f2 = data.b[r++]; if(f2 == 0) { r += rline; continue; } switch(f2) { case 1: var c11 = 0; var _g321 = 0; var _g221 = width2; while(_g321 < _g221) { var x20 = _g321++; var v4 = data.b[r]; c11 += v4; data.b[r++] = c11 & 255 & 255; } break; case 2: var stride9 = y2 == 0 ? 0 : rline + 1; var _g322 = 0; var _g222 = width2; while(_g322 < _g222) { var x21 = _g322++; var v5 = data.b[r]; data.b[r] = v5 + data.b[r - stride9] & 255; ++r; } break; case 3: var c12 = 0; var stride10 = y2 == 0 ? 0 : rline + 1; var _g323 = 0; var _g223 = width2; while(_g323 < _g223) { var x22 = _g323++; var v6 = data.b[r]; c12 = v6 + (c12 + data.b[r - stride10] >> 1) & 255; data.b[r++] = c12 & 255; } break; case 4: var stride11 = rline + 1; var c13 = 0; var _g324 = 0; var _g224 = width2; while(_g324 < _g224) { var x23 = _g324++; var v7 = data.b[r]; var b15 = y2 == 0 ? 0 : data.b[r - stride11]; var c14 = x23 == 0 || y2 == 0 ? 0 : data.b[r - stride11 - 1]; var k10 = c13 + b15 - c14; var pa10 = k10 - c13; if(pa10 < 0) { pa10 = -pa10; } var pb10 = k10 - b15; if(pb10 < 0) { pb10 = -pb10; } var pc10 = k10 - c14; if(pc10 < 0) { pc10 = -pc10; } c13 = (pa10 <= pb10 && pa10 <= pc10 ? c13 : pb10 <= pc10 ? b15 : c14) + v7 & 255; data.b[r++] = c13 & 255; } break; default: throw new js__$Boot_HaxeError("Invalid filter " + f2); } } var r1 = 0; if(h.colbits == 8) { var _g16 = 0; var _g8 = h.height; while(_g16 < _g8) { var y3 = _g16++; ++r1; var _g325 = 0; var _g225 = h.width; while(_g325 < _g225) { var x24 = _g325++; var c15 = data.b[r1++]; bgra.b[w++] = pal.b[c15 * 3 + 2] & 255; bgra.b[w++] = pal.b[c15 * 3 + 1] & 255; bgra.b[w++] = pal.b[c15 * 3] & 255; bgra.b[w++] = (alpha2 != null ? alpha2.b[c15] : 255) & 255; } w += lineDelta; } } else if(h.colbits < 8) { var req = h.colbits; var mask = (1 << req) - 1; var _g17 = 0; var _g9 = h.height; while(_g17 < _g9) { var y4 = _g17++; ++r1; var bits = 0; var nbits = 0; var v8; var _g326 = 0; var _g226 = h.width; while(_g326 < _g226) { var x25 = _g326++; if(nbits < req) { bits = bits << 8 | data.b[r1++]; nbits += 8; } var c16 = bits >>> nbits - req & mask; nbits -= req; bgra.b[w++] = pal.b[c16 * 3 + 2] & 255; bgra.b[w++] = pal.b[c16 * 3 + 1] & 255; bgra.b[w++] = pal.b[c16 * 3] & 255; bgra.b[w++] = (alpha2 != null ? alpha2.b[c16] : 255) & 255; } w += lineDelta; } } else { throw new js__$Boot_HaxeError(h.colbits + " indexed bits per pixel not supported"); } break; } return bgra; }; format_png_Tools.buildGrey = function(width,height,data,level) { if(level == null) { level = 9; } var rgb = new haxe_io_Bytes(new ArrayBuffer(width * height + height)); var w = 0; var r = 0; var _g1 = 0; var _g = height; while(_g1 < _g) { var y = _g1++; rgb.b[w++] = 0; var _g3 = 0; var _g2 = width; while(_g3 < _g2) { var x = _g3++; rgb.b[w++] = data.b[r++] & 255; } } var l = new List(); l.add(format_png_Chunk.CHeader({ width : width, height : height, colbits : 8, color : format_png_Color.ColGrey(false), interlaced : false})); l.add(format_png_Chunk.CData(format_tools_Deflate.run(rgb,level))); l.add(format_png_Chunk.CEnd); return l; }; format_png_Tools.buildRGB = function(width,height,data,level) { if(level == null) { level = 9; } var rgb = new haxe_io_Bytes(new ArrayBuffer(width * height * 3 + height)); var w = 0; var r = 0; var _g1 = 0; var _g = height; while(_g1 < _g) { var y = _g1++; rgb.b[w++] = 0; var _g3 = 0; var _g2 = width; while(_g3 < _g2) { var x = _g3++; rgb.b[w++] = data.b[r + 2] & 255; rgb.b[w++] = data.b[r + 1] & 255; rgb.b[w++] = data.b[r] & 255; r += 3; } } var l = new List(); l.add(format_png_Chunk.CHeader({ width : width, height : height, colbits : 8, color : format_png_Color.ColTrue(false), interlaced : false})); l.add(format_png_Chunk.CData(format_tools_Deflate.run(rgb,level))); l.add(format_png_Chunk.CEnd); return l; }; format_png_Tools.build32ARGB = function(width,height,data,level) { if(level == null) { level = 9; } var rgba = new haxe_io_Bytes(new ArrayBuffer(width * height * 4 + height)); var w = 0; var r = 0; var _g1 = 0; var _g = height; while(_g1 < _g) { var y = _g1++; rgba.b[w++] = 0; var _g3 = 0; var _g2 = width; while(_g3 < _g2) { var x = _g3++; rgba.b[w++] = data.b[r + 1] & 255; rgba.b[w++] = data.b[r + 2] & 255; rgba.b[w++] = data.b[r + 3] & 255; rgba.b[w++] = data.b[r] & 255; r += 4; } } var l = new List(); l.add(format_png_Chunk.CHeader({ width : width, height : height, colbits : 8, color : format_png_Color.ColTrue(true), interlaced : false})); l.add(format_png_Chunk.CData(format_tools_Deflate.run(rgba,level))); l.add(format_png_Chunk.CEnd); return l; }; format_png_Tools.build32BGRA = function(width,height,data,level) { if(level == null) { level = 9; } var rgba = new haxe_io_Bytes(new ArrayBuffer(width * height * 4 + height)); var w = 0; var r = 0; var _g1 = 0; var _g = height; while(_g1 < _g) { var y = _g1++; rgba.b[w++] = 0; var _g3 = 0; var _g2 = width; while(_g3 < _g2) { var x = _g3++; rgba.b[w++] = data.b[r + 2] & 255; rgba.b[w++] = data.b[r + 1] & 255; rgba.b[w++] = data.b[r] & 255; rgba.b[w++] = data.b[r + 3] & 255; r += 4; } } var l = new List(); l.add(format_png_Chunk.CHeader({ width : width, height : height, colbits : 8, color : format_png_Color.ColTrue(true), interlaced : false})); l.add(format_png_Chunk.CData(format_tools_Deflate.run(rgba,level))); l.add(format_png_Chunk.CEnd); return l; }; var format_png_Writer = function(o) { this.o = o; o.set_bigEndian(true); }; $hxClasses["format.png.Writer"] = format_png_Writer; format_png_Writer.__name__ = ["format","png","Writer"]; format_png_Writer.prototype = { o: null ,write: function(png) { var _g = 0; var _g1 = [137,80,78,71,13,10,26,10]; while(_g < _g1.length) { var b = _g1[_g]; ++_g; this.o.writeByte(b); } var _g_head = png.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var c = val; switch(c[1]) { case 0: this.writeChunk("IEND",new haxe_io_Bytes(new ArrayBuffer(0))); break; case 1: var h = c[2]; var b1 = new haxe_io_BytesOutput(); b1.set_bigEndian(true); b1.writeInt32(h.width); b1.writeInt32(h.height); b1.writeByte(h.colbits); var _g2 = h.color; var tmp; switch(_g2[1]) { case 0: var alpha = _g2[2]; if(alpha) { tmp = 4; } else { tmp = 0; } break; case 1: var alpha1 = _g2[2]; if(alpha1) { tmp = 6; } else { tmp = 2; } break; case 2: tmp = 3; break; } b1.writeByte(tmp); b1.writeByte(0); b1.writeByte(0); b1.writeByte(h.interlaced ? 1 : 0); this.writeChunk("IHDR",b1.getBytes()); break; case 2: var d = c[2]; this.writeChunk("IDAT",d); break; case 3: var b2 = c[2]; this.writeChunk("PLTE",b2); break; case 4: var data = c[3]; var id = c[2]; this.writeChunk(id,data); break; } } } ,writeChunk: function(id,data) { this.o.writeInt32(data.length); this.o.writeString(id); this.o.write(data); var crc = new haxe_crypto_Crc32(); var _g = 0; while(_g < 4) { var i = _g++; crc["byte"](HxOverrides.cca(id,i)); } crc.update(data,0,data.length); this.o.writeInt32(crc.get()); } ,__class__: format_png_Writer }; var format_swf_SWFTag = $hxClasses["format.swf.SWFTag"] = { __ename__ : ["format","swf","SWFTag"], __constructs__ : ["TShowFrame","TShape","TMorphShape","TFont","TFontInfo","TBackgroundColor","TDoActions","TClip","TPlaceObject2","TPlaceObject3","TRemoveObject2","TFrameLabel","TExport","TDoInitActions","TActionScript3","TSymbolClass","TExportAssets","TSandBox","TBitsLossless","TBitsLossless2","TBitsJPEG","TJPEGTables","TBinaryData","TSound","TScenes","TUnknown"] }; format_swf_SWFTag.TShowFrame = ["TShowFrame",0]; format_swf_SWFTag.TShowFrame.toString = $estr; format_swf_SWFTag.TShowFrame.__enum__ = format_swf_SWFTag; format_swf_SWFTag.TShape = function(id,data) { var $x = ["TShape",1,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TMorphShape = function(id,data) { var $x = ["TMorphShape",2,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TFont = function(id,data) { var $x = ["TFont",3,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TFontInfo = function(id,data) { var $x = ["TFontInfo",4,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TBackgroundColor = function(color) { var $x = ["TBackgroundColor",5,color]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TDoActions = function(data) { var $x = ["TDoActions",6,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TClip = function(id,frames,tags) { var $x = ["TClip",7,id,frames,tags]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TPlaceObject2 = function(po) { var $x = ["TPlaceObject2",8,po]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TPlaceObject3 = function(po) { var $x = ["TPlaceObject3",9,po]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TRemoveObject2 = function(depth) { var $x = ["TRemoveObject2",10,depth]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TFrameLabel = function(label,anchor) { var $x = ["TFrameLabel",11,label,anchor]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TExport = function(el) { var $x = ["TExport",12,el]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TDoInitActions = function(id,data) { var $x = ["TDoInitActions",13,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TActionScript3 = function(data,context) { var $x = ["TActionScript3",14,data,context]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TSymbolClass = function(symbols) { var $x = ["TSymbolClass",15,symbols]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TExportAssets = function(symbols) { var $x = ["TExportAssets",16,symbols]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TSandBox = function(useDirectBlit,useGpu,hasMeta,useAs3,useNetwork) { var $x = ["TSandBox",17,useDirectBlit,useGpu,hasMeta,useAs3,useNetwork]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TBitsLossless = function(data) { var $x = ["TBitsLossless",18,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TBitsLossless2 = function(data) { var $x = ["TBitsLossless2",19,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TBitsJPEG = function(id,data) { var $x = ["TBitsJPEG",20,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TJPEGTables = function(data) { var $x = ["TJPEGTables",21,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TBinaryData = function(id,data) { var $x = ["TBinaryData",22,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TSound = function(data) { var $x = ["TSound",23,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TScenes = function(scenes,labels) { var $x = ["TScenes",24,scenes,labels]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.TUnknown = function(id,data) { var $x = ["TUnknown",25,id,data]; $x.__enum__ = format_swf_SWFTag; $x.toString = $estr; return $x; }; format_swf_SWFTag.__empty_constructs__ = [format_swf_SWFTag.TShowFrame]; var format_swf_PlaceObject = function() { }; $hxClasses["format.swf.PlaceObject"] = format_swf_PlaceObject; format_swf_PlaceObject.__name__ = ["format","swf","PlaceObject"]; format_swf_PlaceObject.prototype = { depth: null ,move: null ,cid: null ,matrix: null ,color: null ,ratio: null ,instanceName: null ,clipDepth: null ,events: null ,filters: null ,blendMode: null ,bitmapCache: null ,hasImage: null ,className: null ,__class__: format_swf_PlaceObject }; var format_swf_ShapeData = $hxClasses["format.swf.ShapeData"] = { __ename__ : ["format","swf","ShapeData"], __constructs__ : ["SHDShape1","SHDShape2","SHDShape3","SHDShape4"] }; format_swf_ShapeData.SHDShape1 = function(bounds,shapes) { var $x = ["SHDShape1",0,bounds,shapes]; $x.__enum__ = format_swf_ShapeData; $x.toString = $estr; return $x; }; format_swf_ShapeData.SHDShape2 = function(bounds,shapes) { var $x = ["SHDShape2",1,bounds,shapes]; $x.__enum__ = format_swf_ShapeData; $x.toString = $estr; return $x; }; format_swf_ShapeData.SHDShape3 = function(bounds,shapes) { var $x = ["SHDShape3",2,bounds,shapes]; $x.__enum__ = format_swf_ShapeData; $x.toString = $estr; return $x; }; format_swf_ShapeData.SHDShape4 = function(data) { var $x = ["SHDShape4",3,data]; $x.__enum__ = format_swf_ShapeData; $x.toString = $estr; return $x; }; format_swf_ShapeData.__empty_constructs__ = []; var format_swf_MorphShapeData = $hxClasses["format.swf.MorphShapeData"] = { __ename__ : ["format","swf","MorphShapeData"], __constructs__ : ["MSDShape1","MSDShape2"] }; format_swf_MorphShapeData.MSDShape1 = function(data) { var $x = ["MSDShape1",0,data]; $x.__enum__ = format_swf_MorphShapeData; $x.toString = $estr; return $x; }; format_swf_MorphShapeData.MSDShape2 = function(data) { var $x = ["MSDShape2",1,data]; $x.__enum__ = format_swf_MorphShapeData; $x.toString = $estr; return $x; }; format_swf_MorphShapeData.__empty_constructs__ = []; var format_swf_MorphFillStyle = $hxClasses["format.swf.MorphFillStyle"] = { __ename__ : ["format","swf","MorphFillStyle"], __constructs__ : ["MFSSolid","MFSLinearGradient","MFSRadialGradient","MFSBitmap"] }; format_swf_MorphFillStyle.MFSSolid = function(startColor,endColor) { var $x = ["MFSSolid",0,startColor,endColor]; $x.__enum__ = format_swf_MorphFillStyle; $x.toString = $estr; return $x; }; format_swf_MorphFillStyle.MFSLinearGradient = function(startMatrix,endMatrix,gradients) { var $x = ["MFSLinearGradient",1,startMatrix,endMatrix,gradients]; $x.__enum__ = format_swf_MorphFillStyle; $x.toString = $estr; return $x; }; format_swf_MorphFillStyle.MFSRadialGradient = function(startMatrix,endMatrix,gradients) { var $x = ["MFSRadialGradient",2,startMatrix,endMatrix,gradients]; $x.__enum__ = format_swf_MorphFillStyle; $x.toString = $estr; return $x; }; format_swf_MorphFillStyle.MFSBitmap = function(cid,startMatrix,endMatrix,repeat,smooth) { var $x = ["MFSBitmap",3,cid,startMatrix,endMatrix,repeat,smooth]; $x.__enum__ = format_swf_MorphFillStyle; $x.toString = $estr; return $x; }; format_swf_MorphFillStyle.__empty_constructs__ = []; var format_swf_Morph2LineStyle = $hxClasses["format.swf.Morph2LineStyle"] = { __ename__ : ["format","swf","Morph2LineStyle"], __constructs__ : ["M2LSNoFill","M2LSFill"] }; format_swf_Morph2LineStyle.M2LSNoFill = function(startColor,endColor,data) { var $x = ["M2LSNoFill",0,startColor,endColor,data]; $x.__enum__ = format_swf_Morph2LineStyle; $x.toString = $estr; return $x; }; format_swf_Morph2LineStyle.M2LSFill = function(fill,data) { var $x = ["M2LSFill",1,fill,data]; $x.__enum__ = format_swf_Morph2LineStyle; $x.toString = $estr; return $x; }; format_swf_Morph2LineStyle.__empty_constructs__ = []; var format_swf_ShapeRecord = $hxClasses["format.swf.ShapeRecord"] = { __ename__ : ["format","swf","ShapeRecord"], __constructs__ : ["SHREnd","SHRChange","SHREdge","SHRCurvedEdge"] }; format_swf_ShapeRecord.SHREnd = ["SHREnd",0]; format_swf_ShapeRecord.SHREnd.toString = $estr; format_swf_ShapeRecord.SHREnd.__enum__ = format_swf_ShapeRecord; format_swf_ShapeRecord.SHRChange = function(data) { var $x = ["SHRChange",1,data]; $x.__enum__ = format_swf_ShapeRecord; $x.toString = $estr; return $x; }; format_swf_ShapeRecord.SHREdge = function(dx,dy) { var $x = ["SHREdge",2,dx,dy]; $x.__enum__ = format_swf_ShapeRecord; $x.toString = $estr; return $x; }; format_swf_ShapeRecord.SHRCurvedEdge = function(cdx,cdy,adx,ady) { var $x = ["SHRCurvedEdge",3,cdx,cdy,adx,ady]; $x.__enum__ = format_swf_ShapeRecord; $x.toString = $estr; return $x; }; format_swf_ShapeRecord.__empty_constructs__ = [format_swf_ShapeRecord.SHREnd]; var format_swf_FillStyle = $hxClasses["format.swf.FillStyle"] = { __ename__ : ["format","swf","FillStyle"], __constructs__ : ["FSSolid","FSSolidAlpha","FSLinearGradient","FSRadialGradient","FSFocalGradient","FSBitmap"] }; format_swf_FillStyle.FSSolid = function(rgb) { var $x = ["FSSolid",0,rgb]; $x.__enum__ = format_swf_FillStyle; $x.toString = $estr; return $x; }; format_swf_FillStyle.FSSolidAlpha = function(rgb) { var $x = ["FSSolidAlpha",1,rgb]; $x.__enum__ = format_swf_FillStyle; $x.toString = $estr; return $x; }; format_swf_FillStyle.FSLinearGradient = function(mat,grad) { var $x = ["FSLinearGradient",2,mat,grad]; $x.__enum__ = format_swf_FillStyle; $x.toString = $estr; return $x; }; format_swf_FillStyle.FSRadialGradient = function(mat,grad) { var $x = ["FSRadialGradient",3,mat,grad]; $x.__enum__ = format_swf_FillStyle; $x.toString = $estr; return $x; }; format_swf_FillStyle.FSFocalGradient = function(mat,grad) { var $x = ["FSFocalGradient",4,mat,grad]; $x.__enum__ = format_swf_FillStyle; $x.toString = $estr; return $x; }; format_swf_FillStyle.FSBitmap = function(cid,mat,repeat,smooth) { var $x = ["FSBitmap",5,cid,mat,repeat,smooth]; $x.__enum__ = format_swf_FillStyle; $x.toString = $estr; return $x; }; format_swf_FillStyle.__empty_constructs__ = []; var format_swf_LineStyleData = $hxClasses["format.swf.LineStyleData"] = { __ename__ : ["format","swf","LineStyleData"], __constructs__ : ["LSRGB","LSRGBA","LS2"] }; format_swf_LineStyleData.LSRGB = function(rgb) { var $x = ["LSRGB",0,rgb]; $x.__enum__ = format_swf_LineStyleData; $x.toString = $estr; return $x; }; format_swf_LineStyleData.LSRGBA = function(rgba) { var $x = ["LSRGBA",1,rgba]; $x.__enum__ = format_swf_LineStyleData; $x.toString = $estr; return $x; }; format_swf_LineStyleData.LS2 = function(data) { var $x = ["LS2",2,data]; $x.__enum__ = format_swf_LineStyleData; $x.toString = $estr; return $x; }; format_swf_LineStyleData.__empty_constructs__ = []; var format_swf_LineCapStyle = $hxClasses["format.swf.LineCapStyle"] = { __ename__ : ["format","swf","LineCapStyle"], __constructs__ : ["LCRound","LCNone","LCSquare"] }; format_swf_LineCapStyle.LCRound = ["LCRound",0]; format_swf_LineCapStyle.LCRound.toString = $estr; format_swf_LineCapStyle.LCRound.__enum__ = format_swf_LineCapStyle; format_swf_LineCapStyle.LCNone = ["LCNone",1]; format_swf_LineCapStyle.LCNone.toString = $estr; format_swf_LineCapStyle.LCNone.__enum__ = format_swf_LineCapStyle; format_swf_LineCapStyle.LCSquare = ["LCSquare",2]; format_swf_LineCapStyle.LCSquare.toString = $estr; format_swf_LineCapStyle.LCSquare.__enum__ = format_swf_LineCapStyle; format_swf_LineCapStyle.__empty_constructs__ = [format_swf_LineCapStyle.LCRound,format_swf_LineCapStyle.LCNone,format_swf_LineCapStyle.LCSquare]; var format_swf_LineJoinStyle = $hxClasses["format.swf.LineJoinStyle"] = { __ename__ : ["format","swf","LineJoinStyle"], __constructs__ : ["LJRound","LJBevel","LJMiter"] }; format_swf_LineJoinStyle.LJRound = ["LJRound",0]; format_swf_LineJoinStyle.LJRound.toString = $estr; format_swf_LineJoinStyle.LJRound.__enum__ = format_swf_LineJoinStyle; format_swf_LineJoinStyle.LJBevel = ["LJBevel",1]; format_swf_LineJoinStyle.LJBevel.toString = $estr; format_swf_LineJoinStyle.LJBevel.__enum__ = format_swf_LineJoinStyle; format_swf_LineJoinStyle.LJMiter = function(limitFactor) { var $x = ["LJMiter",2,limitFactor]; $x.__enum__ = format_swf_LineJoinStyle; $x.toString = $estr; return $x; }; format_swf_LineJoinStyle.__empty_constructs__ = [format_swf_LineJoinStyle.LJRound,format_swf_LineJoinStyle.LJBevel]; var format_swf_LS2Fill = $hxClasses["format.swf.LS2Fill"] = { __ename__ : ["format","swf","LS2Fill"], __constructs__ : ["LS2FColor","LS2FStyle"] }; format_swf_LS2Fill.LS2FColor = function(color) { var $x = ["LS2FColor",0,color]; $x.__enum__ = format_swf_LS2Fill; $x.toString = $estr; return $x; }; format_swf_LS2Fill.LS2FStyle = function(style) { var $x = ["LS2FStyle",1,style]; $x.__enum__ = format_swf_LS2Fill; $x.toString = $estr; return $x; }; format_swf_LS2Fill.__empty_constructs__ = []; var format_swf_GradRecord = $hxClasses["format.swf.GradRecord"] = { __ename__ : ["format","swf","GradRecord"], __constructs__ : ["GRRGB","GRRGBA"] }; format_swf_GradRecord.GRRGB = function(pos,col) { var $x = ["GRRGB",0,pos,col]; $x.__enum__ = format_swf_GradRecord; $x.toString = $estr; return $x; }; format_swf_GradRecord.GRRGBA = function(pos,col) { var $x = ["GRRGBA",1,pos,col]; $x.__enum__ = format_swf_GradRecord; $x.toString = $estr; return $x; }; format_swf_GradRecord.__empty_constructs__ = []; var format_swf_SpreadMode = $hxClasses["format.swf.SpreadMode"] = { __ename__ : ["format","swf","SpreadMode"], __constructs__ : ["SMPad","SMReflect","SMRepeat","SMReserved"] }; format_swf_SpreadMode.SMPad = ["SMPad",0]; format_swf_SpreadMode.SMPad.toString = $estr; format_swf_SpreadMode.SMPad.__enum__ = format_swf_SpreadMode; format_swf_SpreadMode.SMReflect = ["SMReflect",1]; format_swf_SpreadMode.SMReflect.toString = $estr; format_swf_SpreadMode.SMReflect.__enum__ = format_swf_SpreadMode; format_swf_SpreadMode.SMRepeat = ["SMRepeat",2]; format_swf_SpreadMode.SMRepeat.toString = $estr; format_swf_SpreadMode.SMRepeat.__enum__ = format_swf_SpreadMode; format_swf_SpreadMode.SMReserved = ["SMReserved",3]; format_swf_SpreadMode.SMReserved.toString = $estr; format_swf_SpreadMode.SMReserved.__enum__ = format_swf_SpreadMode; format_swf_SpreadMode.__empty_constructs__ = [format_swf_SpreadMode.SMPad,format_swf_SpreadMode.SMReflect,format_swf_SpreadMode.SMRepeat,format_swf_SpreadMode.SMReserved]; var format_swf_InterpolationMode = $hxClasses["format.swf.InterpolationMode"] = { __ename__ : ["format","swf","InterpolationMode"], __constructs__ : ["IMNormalRGB","IMLinearRGB","IMReserved1","IMReserved2"] }; format_swf_InterpolationMode.IMNormalRGB = ["IMNormalRGB",0]; format_swf_InterpolationMode.IMNormalRGB.toString = $estr; format_swf_InterpolationMode.IMNormalRGB.__enum__ = format_swf_InterpolationMode; format_swf_InterpolationMode.IMLinearRGB = ["IMLinearRGB",1]; format_swf_InterpolationMode.IMLinearRGB.toString = $estr; format_swf_InterpolationMode.IMLinearRGB.__enum__ = format_swf_InterpolationMode; format_swf_InterpolationMode.IMReserved1 = ["IMReserved1",2]; format_swf_InterpolationMode.IMReserved1.toString = $estr; format_swf_InterpolationMode.IMReserved1.__enum__ = format_swf_InterpolationMode; format_swf_InterpolationMode.IMReserved2 = ["IMReserved2",3]; format_swf_InterpolationMode.IMReserved2.toString = $estr; format_swf_InterpolationMode.IMReserved2.__enum__ = format_swf_InterpolationMode; format_swf_InterpolationMode.__empty_constructs__ = [format_swf_InterpolationMode.IMNormalRGB,format_swf_InterpolationMode.IMLinearRGB,format_swf_InterpolationMode.IMReserved1,format_swf_InterpolationMode.IMReserved2]; var format_swf_BlendMode = $hxClasses["format.swf.BlendMode"] = { __ename__ : ["format","swf","BlendMode"], __constructs__ : ["BNormal","BLayer","BMultiply","BScreen","BLighten","BDarken","BDifference","BAdd","BSubtract","BInvert","BAlpha","BErase","BOverlay","BHardLight"] }; format_swf_BlendMode.BNormal = ["BNormal",0]; format_swf_BlendMode.BNormal.toString = $estr; format_swf_BlendMode.BNormal.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BLayer = ["BLayer",1]; format_swf_BlendMode.BLayer.toString = $estr; format_swf_BlendMode.BLayer.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BMultiply = ["BMultiply",2]; format_swf_BlendMode.BMultiply.toString = $estr; format_swf_BlendMode.BMultiply.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BScreen = ["BScreen",3]; format_swf_BlendMode.BScreen.toString = $estr; format_swf_BlendMode.BScreen.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BLighten = ["BLighten",4]; format_swf_BlendMode.BLighten.toString = $estr; format_swf_BlendMode.BLighten.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BDarken = ["BDarken",5]; format_swf_BlendMode.BDarken.toString = $estr; format_swf_BlendMode.BDarken.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BDifference = ["BDifference",6]; format_swf_BlendMode.BDifference.toString = $estr; format_swf_BlendMode.BDifference.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BAdd = ["BAdd",7]; format_swf_BlendMode.BAdd.toString = $estr; format_swf_BlendMode.BAdd.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BSubtract = ["BSubtract",8]; format_swf_BlendMode.BSubtract.toString = $estr; format_swf_BlendMode.BSubtract.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BInvert = ["BInvert",9]; format_swf_BlendMode.BInvert.toString = $estr; format_swf_BlendMode.BInvert.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BAlpha = ["BAlpha",10]; format_swf_BlendMode.BAlpha.toString = $estr; format_swf_BlendMode.BAlpha.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BErase = ["BErase",11]; format_swf_BlendMode.BErase.toString = $estr; format_swf_BlendMode.BErase.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BOverlay = ["BOverlay",12]; format_swf_BlendMode.BOverlay.toString = $estr; format_swf_BlendMode.BOverlay.__enum__ = format_swf_BlendMode; format_swf_BlendMode.BHardLight = ["BHardLight",13]; format_swf_BlendMode.BHardLight.toString = $estr; format_swf_BlendMode.BHardLight.__enum__ = format_swf_BlendMode; format_swf_BlendMode.__empty_constructs__ = [format_swf_BlendMode.BNormal,format_swf_BlendMode.BLayer,format_swf_BlendMode.BMultiply,format_swf_BlendMode.BScreen,format_swf_BlendMode.BLighten,format_swf_BlendMode.BDarken,format_swf_BlendMode.BDifference,format_swf_BlendMode.BAdd,format_swf_BlendMode.BSubtract,format_swf_BlendMode.BInvert,format_swf_BlendMode.BAlpha,format_swf_BlendMode.BErase,format_swf_BlendMode.BOverlay,format_swf_BlendMode.BHardLight]; var format_swf_Filter = $hxClasses["format.swf.Filter"] = { __ename__ : ["format","swf","Filter"], __constructs__ : ["FDropShadow","FBlur","FGlow","FBevel","FGradientGlow","FColorMatrix","FGradientBevel"] }; format_swf_Filter.FDropShadow = function(data) { var $x = ["FDropShadow",0,data]; $x.__enum__ = format_swf_Filter; $x.toString = $estr; return $x; }; format_swf_Filter.FBlur = function(data) { var $x = ["FBlur",1,data]; $x.__enum__ = format_swf_Filter; $x.toString = $estr; return $x; }; format_swf_Filter.FGlow = function(data) { var $x = ["FGlow",2,data]; $x.__enum__ = format_swf_Filter; $x.toString = $estr; return $x; }; format_swf_Filter.FBevel = function(data) { var $x = ["FBevel",3,data]; $x.__enum__ = format_swf_Filter; $x.toString = $estr; return $x; }; format_swf_Filter.FGradientGlow = function(data) { var $x = ["FGradientGlow",4,data]; $x.__enum__ = format_swf_Filter; $x.toString = $estr; return $x; }; format_swf_Filter.FColorMatrix = function(data) { var $x = ["FColorMatrix",5,data]; $x.__enum__ = format_swf_Filter; $x.toString = $estr; return $x; }; format_swf_Filter.FGradientBevel = function(data) { var $x = ["FGradientBevel",6,data]; $x.__enum__ = format_swf_Filter; $x.toString = $estr; return $x; }; format_swf_Filter.__empty_constructs__ = []; var format_swf_JPEGData = $hxClasses["format.swf.JPEGData"] = { __ename__ : ["format","swf","JPEGData"], __constructs__ : ["JDJPEG1","JDJPEG2","JDJPEG3"] }; format_swf_JPEGData.JDJPEG1 = function(data) { var $x = ["JDJPEG1",0,data]; $x.__enum__ = format_swf_JPEGData; $x.toString = $estr; return $x; }; format_swf_JPEGData.JDJPEG2 = function(data) { var $x = ["JDJPEG2",1,data]; $x.__enum__ = format_swf_JPEGData; $x.toString = $estr; return $x; }; format_swf_JPEGData.JDJPEG3 = function(data,mask) { var $x = ["JDJPEG3",2,data,mask]; $x.__enum__ = format_swf_JPEGData; $x.toString = $estr; return $x; }; format_swf_JPEGData.__empty_constructs__ = []; var format_swf_ColorModel = $hxClasses["format.swf.ColorModel"] = { __ename__ : ["format","swf","ColorModel"], __constructs__ : ["CM8Bits","CM15Bits","CM24Bits","CM32Bits"] }; format_swf_ColorModel.CM8Bits = function(ncolors) { var $x = ["CM8Bits",0,ncolors]; $x.__enum__ = format_swf_ColorModel; $x.toString = $estr; return $x; }; format_swf_ColorModel.CM15Bits = ["CM15Bits",1]; format_swf_ColorModel.CM15Bits.toString = $estr; format_swf_ColorModel.CM15Bits.__enum__ = format_swf_ColorModel; format_swf_ColorModel.CM24Bits = ["CM24Bits",2]; format_swf_ColorModel.CM24Bits.toString = $estr; format_swf_ColorModel.CM24Bits.__enum__ = format_swf_ColorModel; format_swf_ColorModel.CM32Bits = ["CM32Bits",3]; format_swf_ColorModel.CM32Bits.toString = $estr; format_swf_ColorModel.CM32Bits.__enum__ = format_swf_ColorModel; format_swf_ColorModel.__empty_constructs__ = [format_swf_ColorModel.CM15Bits,format_swf_ColorModel.CM24Bits,format_swf_ColorModel.CM32Bits]; var format_swf_SoundData = $hxClasses["format.swf.SoundData"] = { __ename__ : ["format","swf","SoundData"], __constructs__ : ["SDMp3","SDRaw","SDOther"] }; format_swf_SoundData.SDMp3 = function(seek,data) { var $x = ["SDMp3",0,seek,data]; $x.__enum__ = format_swf_SoundData; $x.toString = $estr; return $x; }; format_swf_SoundData.SDRaw = function(data) { var $x = ["SDRaw",1,data]; $x.__enum__ = format_swf_SoundData; $x.toString = $estr; return $x; }; format_swf_SoundData.SDOther = function(data) { var $x = ["SDOther",2,data]; $x.__enum__ = format_swf_SoundData; $x.toString = $estr; return $x; }; format_swf_SoundData.__empty_constructs__ = []; var format_swf_SoundFormat = $hxClasses["format.swf.SoundFormat"] = { __ename__ : ["format","swf","SoundFormat"], __constructs__ : ["SFNativeEndianUncompressed","SFADPCM","SFMP3","SFLittleEndianUncompressed","SFNellymoser16k","SFNellymoser8k","SFNellymoser","SFSpeex"] }; format_swf_SoundFormat.SFNativeEndianUncompressed = ["SFNativeEndianUncompressed",0]; format_swf_SoundFormat.SFNativeEndianUncompressed.toString = $estr; format_swf_SoundFormat.SFNativeEndianUncompressed.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.SFADPCM = ["SFADPCM",1]; format_swf_SoundFormat.SFADPCM.toString = $estr; format_swf_SoundFormat.SFADPCM.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.SFMP3 = ["SFMP3",2]; format_swf_SoundFormat.SFMP3.toString = $estr; format_swf_SoundFormat.SFMP3.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.SFLittleEndianUncompressed = ["SFLittleEndianUncompressed",3]; format_swf_SoundFormat.SFLittleEndianUncompressed.toString = $estr; format_swf_SoundFormat.SFLittleEndianUncompressed.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.SFNellymoser16k = ["SFNellymoser16k",4]; format_swf_SoundFormat.SFNellymoser16k.toString = $estr; format_swf_SoundFormat.SFNellymoser16k.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.SFNellymoser8k = ["SFNellymoser8k",5]; format_swf_SoundFormat.SFNellymoser8k.toString = $estr; format_swf_SoundFormat.SFNellymoser8k.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.SFNellymoser = ["SFNellymoser",6]; format_swf_SoundFormat.SFNellymoser.toString = $estr; format_swf_SoundFormat.SFNellymoser.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.SFSpeex = ["SFSpeex",7]; format_swf_SoundFormat.SFSpeex.toString = $estr; format_swf_SoundFormat.SFSpeex.__enum__ = format_swf_SoundFormat; format_swf_SoundFormat.__empty_constructs__ = [format_swf_SoundFormat.SFNativeEndianUncompressed,format_swf_SoundFormat.SFADPCM,format_swf_SoundFormat.SFMP3,format_swf_SoundFormat.SFLittleEndianUncompressed,format_swf_SoundFormat.SFNellymoser16k,format_swf_SoundFormat.SFNellymoser8k,format_swf_SoundFormat.SFNellymoser,format_swf_SoundFormat.SFSpeex]; var format_swf_SoundRate = $hxClasses["format.swf.SoundRate"] = { __ename__ : ["format","swf","SoundRate"], __constructs__ : ["SR5k","SR11k","SR22k","SR44k"] }; format_swf_SoundRate.SR5k = ["SR5k",0]; format_swf_SoundRate.SR5k.toString = $estr; format_swf_SoundRate.SR5k.__enum__ = format_swf_SoundRate; format_swf_SoundRate.SR11k = ["SR11k",1]; format_swf_SoundRate.SR11k.toString = $estr; format_swf_SoundRate.SR11k.__enum__ = format_swf_SoundRate; format_swf_SoundRate.SR22k = ["SR22k",2]; format_swf_SoundRate.SR22k.toString = $estr; format_swf_SoundRate.SR22k.__enum__ = format_swf_SoundRate; format_swf_SoundRate.SR44k = ["SR44k",3]; format_swf_SoundRate.SR44k.toString = $estr; format_swf_SoundRate.SR44k.__enum__ = format_swf_SoundRate; format_swf_SoundRate.__empty_constructs__ = [format_swf_SoundRate.SR5k,format_swf_SoundRate.SR11k,format_swf_SoundRate.SR22k,format_swf_SoundRate.SR44k]; var format_swf_FontData = $hxClasses["format.swf.FontData"] = { __ename__ : ["format","swf","FontData"], __constructs__ : ["FDFont1","FDFont2","FDFont3"] }; format_swf_FontData.FDFont1 = function(data) { var $x = ["FDFont1",0,data]; $x.__enum__ = format_swf_FontData; $x.toString = $estr; return $x; }; format_swf_FontData.FDFont2 = function(hasWideChars,data) { var $x = ["FDFont2",1,hasWideChars,data]; $x.__enum__ = format_swf_FontData; $x.toString = $estr; return $x; }; format_swf_FontData.FDFont3 = function(data) { var $x = ["FDFont3",2,data]; $x.__enum__ = format_swf_FontData; $x.toString = $estr; return $x; }; format_swf_FontData.__empty_constructs__ = []; var format_swf_FontInfoData = $hxClasses["format.swf.FontInfoData"] = { __ename__ : ["format","swf","FontInfoData"], __constructs__ : ["FIDFont1","FIDFont2"] }; format_swf_FontInfoData.FIDFont1 = function(shiftJIS,isANSI,hasWideCodes,data) { var $x = ["FIDFont1",0,shiftJIS,isANSI,hasWideCodes,data]; $x.__enum__ = format_swf_FontInfoData; $x.toString = $estr; return $x; }; format_swf_FontInfoData.FIDFont2 = function(language,data) { var $x = ["FIDFont2",1,language,data]; $x.__enum__ = format_swf_FontInfoData; $x.toString = $estr; return $x; }; format_swf_FontInfoData.__empty_constructs__ = []; var format_swf_LangCode = $hxClasses["format.swf.LangCode"] = { __ename__ : ["format","swf","LangCode"], __constructs__ : ["LCNone","LCLatin","LCJapanese","LCKorean","LCSimplifiedChinese","LCTraditionalChinese"] }; format_swf_LangCode.LCNone = ["LCNone",0]; format_swf_LangCode.LCNone.toString = $estr; format_swf_LangCode.LCNone.__enum__ = format_swf_LangCode; format_swf_LangCode.LCLatin = ["LCLatin",1]; format_swf_LangCode.LCLatin.toString = $estr; format_swf_LangCode.LCLatin.__enum__ = format_swf_LangCode; format_swf_LangCode.LCJapanese = ["LCJapanese",2]; format_swf_LangCode.LCJapanese.toString = $estr; format_swf_LangCode.LCJapanese.__enum__ = format_swf_LangCode; format_swf_LangCode.LCKorean = ["LCKorean",3]; format_swf_LangCode.LCKorean.toString = $estr; format_swf_LangCode.LCKorean.__enum__ = format_swf_LangCode; format_swf_LangCode.LCSimplifiedChinese = ["LCSimplifiedChinese",4]; format_swf_LangCode.LCSimplifiedChinese.toString = $estr; format_swf_LangCode.LCSimplifiedChinese.__enum__ = format_swf_LangCode; format_swf_LangCode.LCTraditionalChinese = ["LCTraditionalChinese",5]; format_swf_LangCode.LCTraditionalChinese.toString = $estr; format_swf_LangCode.LCTraditionalChinese.__enum__ = format_swf_LangCode; format_swf_LangCode.__empty_constructs__ = [format_swf_LangCode.LCNone,format_swf_LangCode.LCLatin,format_swf_LangCode.LCJapanese,format_swf_LangCode.LCKorean,format_swf_LangCode.LCSimplifiedChinese,format_swf_LangCode.LCTraditionalChinese]; var format_tools_Deflate = function() { }; $hxClasses["format.tools.Deflate"] = format_tools_Deflate; format_tools_Deflate.__name__ = ["format","tools","Deflate"]; format_tools_Deflate.run = function(b,level) { if(level == null) { level = 9; } return haxe_zip_Compress.run(b,level); }; var format_tools_Inflate = function() { }; $hxClasses["format.tools.Inflate"] = format_tools_Inflate; format_tools_Inflate.__name__ = ["format","tools","Inflate"]; format_tools_Inflate.run = function(bytes) { return haxe_zip_Uncompress.run(bytes); }; var game_data_GameCMS = function() { }; $hxClasses["game.data.GameCMS"] = game_data_GameCMS; game_data_GameCMS.__name__ = ["game","data","GameCMS"]; game_data_GameCMS.init = function() { game_data_GameCMS.initStrings(); game_data_GameCMS.initRegions(); game_data_GameCMS.initStories(); }; game_data_GameCMS.initStories = function() { var dataString = openfl_utils_Assets.getText("data/stories.json"); game_data_GameCMS.ms_storyData = new haxe_format_JsonParser(dataString).parseRec(); haxe_Log.trace("STORY DATA:",{ fileName : "GameCMS.hx", lineNumber : 35, className : "game.data.GameCMS", methodName : "initStories"}); haxe_Log.trace(game_data_GameCMS.ms_storyData,{ fileName : "GameCMS.hx", lineNumber : 36, className : "game.data.GameCMS", methodName : "initStories"}); }; game_data_GameCMS.initStrings = function() { var dataString = openfl_utils_Assets.getText("data/gamestrings.json"); game_data_GameCMS.ms_stringData = new haxe_format_JsonParser(dataString).parseRec(); haxe_Log.trace("STRING DATA:",{ fileName : "GameCMS.hx", lineNumber : 43, className : "game.data.GameCMS", methodName : "initStrings"}); haxe_Log.trace(game_data_GameCMS.ms_stringData,{ fileName : "GameCMS.hx", lineNumber : 44, className : "game.data.GameCMS", methodName : "initStrings"}); game_data_GameCMS.addStringsToGlobalTable(); }; game_data_GameCMS.initRegions = function() { var dataString = openfl_utils_Assets.getText("data/regions.json"); game_data_GameCMS.ms_regionData = new haxe_format_JsonParser(dataString).parseRec(); haxe_Log.trace("REGION DATA:",{ fileName : "GameCMS.hx", lineNumber : 54, className : "game.data.GameCMS", methodName : "initRegions"}); haxe_Log.trace(game_data_GameCMS.ms_regionData,{ fileName : "GameCMS.hx", lineNumber : 55, className : "game.data.GameCMS", methodName : "initRegions"}); }; game_data_GameCMS.getAllStoryIds = function() { if(game_data_GameCMS.ms_storyData == null) { com_firstplayable_hxlib_Debug.logHelper("Attempted to get story data without initilizing, call GameCMS.init() first!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameCMS.hx", lineNumber : 66, className : "game.data.GameCMS", methodName : "getAllStoryIds"}); return null; } var ids = []; var _g = 0; var _g1 = game_data_GameCMS.ms_storyData.stories; while(_g < _g1.length) { var story = _g1[_g]; ++_g; ids.push(story.storyId); } return ids; }; game_data_GameCMS.getStoryData = function(storyIdx,region) { if(game_data_GameCMS.ms_storyData == null) { com_firstplayable_hxlib_Debug.logHelper("Attempted to get story data without initilizing, call GameCMS.init() first!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameCMS.hx", lineNumber : 82, className : "game.data.GameCMS", methodName : "getStoryData"}); return null; } if(storyIdx >= game_data_GameCMS.ms_storyData.stories.length) { com_firstplayable_hxlib_Debug.logHelper("Unable to find a level with idx '" + storyIdx + "'",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameCMS.hx", lineNumber : 88, className : "game.data.GameCMS", methodName : "getStoryData"}); return null; } return game_data_GameCMS.getStoriesByRegion(region)[storyIdx]; }; game_data_GameCMS.getRoundData = function(storyIdx,region,roundIdx) { var storyData = game_data_GameCMS.getStoryData(storyIdx,region); if(storyData == null) { return null; } if(roundIdx >= storyData.rounds.length) { com_firstplayable_hxlib_Debug.logHelper("Unable to find a round with idx '" + roundIdx + "' in story '" + storyIdx + "'",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameCMS.hx", lineNumber : 105, className : "game.data.GameCMS", methodName : "getRoundData"}); return null; } return storyData.rounds[roundIdx]; }; game_data_GameCMS.getStoryTitleData = function(storyIdx,region) { var data = game_data_GameCMS.getStoryData(storyIdx,region); var _g = 0; var _g1 = data.storyData; while(_g < _g1.length) { var narrativeData = _g1[_g]; ++_g; if(narrativeData.narrativeId == "Title") { return narrativeData; } } return null; }; game_data_GameCMS.getStoryLossData = function(storyIdx,region,gotPopularResult) { var data = game_data_GameCMS.getStoryData(storyIdx,region); var _g = 0; var _g1 = data.storyData; while(_g < _g1.length) { var narrativeData = _g1[_g]; ++_g; var isLossData = narrativeData.narrativeId.indexOf("Loss") >= 0; var isPopularData = narrativeData.narrativeId.indexOf("Unpopular") == -1 && narrativeData.narrativeId.indexOf("Popular") >= 0; var matchesResult = isPopularData && gotPopularResult || !isPopularData && !gotPopularResult; if(isLossData && matchesResult) { return narrativeData; } } return null; }; game_data_GameCMS.getStoryVictoryData = function(storyIdx,region,gotPopularResult) { var data = game_data_GameCMS.getStoryData(storyIdx,region); var _g = 0; var _g1 = data.storyData; while(_g < _g1.length) { var narrativeData = _g1[_g]; ++_g; var isVictoryData = narrativeData.narrativeId.indexOf("Victory") >= 0; var isPopularData = narrativeData.narrativeId.indexOf("Unpopular") == -1 && narrativeData.narrativeId.indexOf("Popular") >= 0; var matchesResult = isPopularData && gotPopularResult || !isPopularData && !gotPopularResult; if(isVictoryData && matchesResult) { return narrativeData; } } return null; }; game_data_GameCMS.getStoryPrologueData = function(storyIdx,region) { var result = []; var data = game_data_GameCMS.getStoryData(storyIdx,region); var _g = 0; var _g1 = data.storyData; while(_g < _g1.length) { var narrativeData = _g1[_g]; ++_g; var isPrologueData = narrativeData.narrativeId.toLowerCase().indexOf("prologue") >= 0; if(isPrologueData) { result.push(narrativeData); } } return result; }; game_data_GameCMS.getNextRound = function(storyIdx,roundIdx,region,choiceIdx) { var newRoundIdx = -1; var currentRoundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); var storyData = game_data_GameCMS.getStoryData(storyIdx,region); if(storyData == null) { return newRoundIdx; } var prepChoice = currentRoundData.preparationChoices[choiceIdx]; if(prepChoice == null) { return newRoundIdx; } var choiceRoundId = prepChoice.nextChoiceId; if(choiceRoundId == null) { return newRoundIdx; } var _g1 = 0; var _g = storyData.rounds.length; while(_g1 < _g) { var idx = _g1++; var roundData = storyData.rounds[idx]; if(roundData.roundId == choiceRoundId) { newRoundIdx = idx; } } return newRoundIdx; }; game_data_GameCMS.getStoriesByRegion = function(region) { var data = game_data_GameCMS.ms_storyData.stories; var result = []; var _g = 0; while(_g < data.length) { var story = data[_g]; ++_g; if(story.region == region) { result.push(story); } } return result; }; game_data_GameCMS.getStartingLevelStats = function(storyIdx,region) { var storyData = game_data_GameCMS.getStoryData(storyIdx,region); var startingStats = storyData.startingStats; return game_data_GameCMS.getResourceMapFromImpact(startingStats); }; game_data_GameCMS.getPreparationImage = function(storyIdx,region,roundIdx) { var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return null; } return roundData.preparationHeader; }; game_data_GameCMS.getPreparationHeader = function(storyIdx,region,roundIdx) { var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return ""; } return roundData.preparationHeader; }; game_data_GameCMS.getPreparationText = function(storyIdx,region,roundIdx) { var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return ""; } return roundData.preparationText; }; game_data_GameCMS.getPositiveChatter = function(storyIdx,region,roundIdx) { var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return []; } return roundData.chatterPos.slice(); }; game_data_GameCMS.getNegativeChatter = function(storyIdx,region,roundIdx) { var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return []; } return roundData.chatterNeg.slice(); }; game_data_GameCMS.getPreparationChoiceData = function(storyIdx,region,roundIdx) { var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return []; } return roundData.preparationChoices.slice(); }; game_data_GameCMS.getPreparationChoiceImpact = function(storyIdx,region,roundIdx,choiceIdx) { var choiceData = game_data_GameCMS.getPreparationChoiceData(storyIdx,region,roundIdx); if(choiceData == null || choiceData.length <= choiceIdx) { return new haxe_ds_StringMap(); } var choice = choiceData[choiceIdx]; return game_data_GameCMS.getResourceMapFromImpact(choice.choiceImpacts); }; game_data_GameCMS.getResourceMapFromImpact = function(impact) { var result = new haxe_ds_StringMap(); var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var resource = _g1[_g]; ++_g; var resourceVal = Reflect.getProperty(impact,resource.toLowerCase()); if(resourceVal != null) { if(__map_reserved[resource] != null) { result.setReserved(resource,resourceVal); } else { result.h[resource] = resourceVal; } } } return result; }; game_data_GameCMS.getEventImage = function(storyIdx,region,roundIdx,eventIdx) { if(eventIdx == null) { eventIdx = 0; } var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return ""; } return roundData.eventImage; }; game_data_GameCMS.getEventHeader = function(storyIdx,region,roundIdx,eventIdx) { if(eventIdx == null) { eventIdx = 0; } var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return ""; } return roundData.eventHeader; }; game_data_GameCMS.getEventText = function(storyIdx,region,roundIdx,eventIdx) { if(eventIdx == null) { eventIdx = 0; } var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return ""; } return roundData.eventText; }; game_data_GameCMS.getEventOptions = function(storyIdx,region,roundIdx) { var roundData = game_data_GameCMS.getRoundData(storyIdx,region,roundIdx); if(roundData == null) { return []; } var eventOptions = []; var _g = 0; var _g1 = roundData.eventOptions.slice(); while(_g < _g1.length) { var option = _g1[_g]; ++_g; if(option.optionHeader != "" && option.optionHeader != null) { eventOptions.push(option); } } return eventOptions; }; game_data_GameCMS.getEventOptionImpact = function(storyIdx,region,roundIdx,choiceIdx) { var optionData = game_data_GameCMS.getEventOptions(storyIdx,region,roundIdx); if(optionData == null || optionData.length <= choiceIdx) { return new haxe_ds_StringMap(); } var optionImpacts = new haxe_ds_StringMap(); var option = optionData[choiceIdx]; return game_data_GameCMS.getResourceMapFromImpact(option.optionImpacts); }; game_data_GameCMS.getStringById = function(id) { var gameStrings = game_data_GameCMS.ms_stringData.strings; var _g = 0; while(_g < gameStrings.length) { var gameString = gameStrings[_g]; ++_g; if(StringTools.replace(gameString.ID," ","") == id) { return gameString; } } return null; }; game_data_GameCMS.addStringsToGlobalTable = function() { var gameStrings = game_data_GameCMS.ms_stringData.strings; if(gameStrings == null || gameStrings.length == 0) { com_firstplayable_hxlib_Debug.logHelper("String data does not yet exist!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameCMS.hx", lineNumber : 456, className : "game.data.GameCMS", methodName : "addStringsToGlobalTable"}); return; } var strings = []; var _g = 0; while(_g < gameStrings.length) { var string = gameStrings[_g]; ++_g; var nextElement = new assets_GamestringsXmlElement(string.ID,string.Content); strings.push(nextElement); } if(js_Boot.__instanceof(com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings(),assets_Gamestrings)) { var theGameStrings = com_firstplayable_hxlib_utils_json_GlobalTable.get_gamestrings(); theGameStrings.addStrings(strings); } else { com_firstplayable_hxlib_Debug.logHelper("active game strings class in global table does not support dynamic addition of strings.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameCMS.hx", lineNumber : 474, className : "game.data.GameCMS", methodName : "addStringsToGlobalTable"}); } }; game_data_GameCMS.getAvailableRegions = function() { var regionData = game_data_GameCMS.ms_regionData.regions; var result = []; var _g = 0; while(_g < regionData.length) { var data = regionData[_g]; ++_g; var name = data.region; var availability = data.active; if(availability.toLowerCase() == "yes" || availability.toLowerCase() == "true") { result.push(name); } } return result; }; var game_data_CardType = $hxClasses["game.data.CardType"] = { __ename__ : ["game","data","CardType"], __constructs__ : ["PREPARATION","EVENT"] }; game_data_CardType.PREPARATION = ["PREPARATION",0]; game_data_CardType.PREPARATION.toString = $estr; game_data_CardType.PREPARATION.__enum__ = game_data_CardType; game_data_CardType.EVENT = ["EVENT",1]; game_data_CardType.EVENT.toString = $estr; game_data_CardType.EVENT.__enum__ = game_data_CardType; game_data_CardType.__empty_constructs__ = [game_data_CardType.PREPARATION,game_data_CardType.EVENT]; var game_defs_Analytics = function() { }; $hxClasses["game.defs.Analytics"] = game_defs_Analytics; game_defs_Analytics.__name__ = ["game","defs","Analytics"]; var game_defs_AudioDefs = function() { }; $hxClasses["game.defs.AudioDefs"] = game_defs_AudioDefs; game_defs_AudioDefs.__name__ = ["game","defs","AudioDefs"]; var game_defs_GameState = $hxClasses["game.defs.GameState"] = { __ename__ : ["game","defs","GameState"], __constructs__ : ["SPLASH","TITLE","INTRO","LEVEL_SELECT","REGION_SELECT","GAMEPLAY","RESULTS"] }; game_defs_GameState.SPLASH = ["SPLASH",0]; game_defs_GameState.SPLASH.toString = $estr; game_defs_GameState.SPLASH.__enum__ = game_defs_GameState; game_defs_GameState.TITLE = ["TITLE",1]; game_defs_GameState.TITLE.toString = $estr; game_defs_GameState.TITLE.__enum__ = game_defs_GameState; game_defs_GameState.INTRO = ["INTRO",2]; game_defs_GameState.INTRO.toString = $estr; game_defs_GameState.INTRO.__enum__ = game_defs_GameState; game_defs_GameState.LEVEL_SELECT = ["LEVEL_SELECT",3]; game_defs_GameState.LEVEL_SELECT.toString = $estr; game_defs_GameState.LEVEL_SELECT.__enum__ = game_defs_GameState; game_defs_GameState.REGION_SELECT = ["REGION_SELECT",4]; game_defs_GameState.REGION_SELECT.toString = $estr; game_defs_GameState.REGION_SELECT.__enum__ = game_defs_GameState; game_defs_GameState.GAMEPLAY = ["GAMEPLAY",5]; game_defs_GameState.GAMEPLAY.toString = $estr; game_defs_GameState.GAMEPLAY.__enum__ = game_defs_GameState; game_defs_GameState.RESULTS = ["RESULTS",6]; game_defs_GameState.RESULTS.toString = $estr; game_defs_GameState.RESULTS.__enum__ = game_defs_GameState; game_defs_GameState.__empty_constructs__ = [game_defs_GameState.SPLASH,game_defs_GameState.TITLE,game_defs_GameState.INTRO,game_defs_GameState.LEVEL_SELECT,game_defs_GameState.REGION_SELECT,game_defs_GameState.GAMEPLAY,game_defs_GameState.RESULTS]; var game_defs__$RegionType_RegionType_$Impl_$ = {}; $hxClasses["game.defs._RegionType.RegionType_Impl_"] = game_defs__$RegionType_RegionType_$Impl_$; game_defs__$RegionType_RegionType_$Impl_$.__name__ = ["game","defs","_RegionType","RegionType_Impl_"]; game_defs__$RegionType_RegionType_$Impl_$.getAllValues = function() { return ["New England","Pacific","Mid-Atlantic","South Atlantic","Gulf of Mexico","Alaska","Caribbean","Western Pacific"]; }; var game_defs_ResourceIcons = function() { }; $hxClasses["game.defs.ResourceIcons"] = game_defs_ResourceIcons; game_defs_ResourceIcons.__name__ = ["game","defs","ResourceIcons"]; game_defs_ResourceIcons.getImpactIconAsset = function(type) { var _this = game_defs_ResourceIcons.ICON_ASSETS; if(!(__map_reserved[type] != null ? _this.existsReserved(type) : _this.h.hasOwnProperty(type))) { return ""; } var _this1 = game_defs_ResourceIcons.ICON_ASSETS; if(__map_reserved[type] != null) { return _this1.getReserved(type); } else { return _this1.h[type]; } }; game_defs_ResourceIcons.getSocialFeedIconAsset = function(type) { var _this = game_defs_ResourceIcons.ICON_ASSETS; if(!(__map_reserved[type] != null ? _this.existsReserved(type) : _this.h.hasOwnProperty(type))) { return ""; } var _this1 = game_defs_ResourceIcons.ICON_ASSETS; if(__map_reserved[type] != null) { return _this1.getReserved(type); } else { return _this1.h[type]; } }; game_defs_ResourceIcons.getResourcePortraitAsset = function(type) { var _this = game_defs_ResourceIcons.PORTRAIT_ASSETS; if(!(__map_reserved[type] != null ? _this.existsReserved(type) : _this.h.hasOwnProperty(type))) { return ""; } var _this1 = game_defs_ResourceIcons.PORTRAIT_ASSETS; if(__map_reserved[type] != null) { return _this1.getReserved(type); } else { return _this1.h[type]; } }; var game_defs__$ResourceType_ResourceType_$Impl_$ = {}; $hxClasses["game.defs._ResourceType.ResourceType_Impl_"] = game_defs__$ResourceType_ResourceType_$Impl_$; game_defs__$ResourceType_ResourceType_$Impl_$.__name__ = ["game","defs","_ResourceType","ResourceType_Impl_"]; game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues = function() { return ["Fishing","Services","Tourism","Trade","Resilience","Social","None"]; }; game_defs__$ResourceType_ResourceType_$Impl_$.getAllGroups = function() { return ["Fishing","Services","Tourism","Trade"]; }; game_defs__$ResourceType_ResourceType_$Impl_$.getResourceIdx = function(resource) { var start = HxOverrides.substr(Std.string(resource),0,1); var end = HxOverrides.substr(Std.string(resource),1,null).toLowerCase(); var resourceString = start + end; return game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues().indexOf(resourceString); }; var game_defs_TransitionDefs = function() { }; $hxClasses["game.defs.TransitionDefs"] = game_defs_TransitionDefs; game_defs_TransitionDefs.__name__ = ["game","defs","TransitionDefs"]; var game_events_GameUiEvent = function(type,bubbles,cancelable) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); }; $hxClasses["game.events.GameUiEvent"] = game_events_GameUiEvent; game_events_GameUiEvent.__name__ = ["game","events","GameUiEvent"]; game_events_GameUiEvent.__super__ = openfl_events_Event; game_events_GameUiEvent.prototype = $extend(openfl_events_Event.prototype,{ resource: null ,resourceValues: null ,prevResourceValues: null ,__class__: game_events_GameUiEvent }); var game_events_GameplayEvent = function(type,choiceIdx,bubbles,cancelable) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.choiceIdx = choiceIdx; }; $hxClasses["game.events.GameplayEvent"] = game_events_GameplayEvent; game_events_GameplayEvent.__name__ = ["game","events","GameplayEvent"]; game_events_GameplayEvent.__super__ = openfl_events_Event; game_events_GameplayEvent.prototype = $extend(openfl_events_Event.prototype,{ choiceIdx: null ,__class__: game_events_GameplayEvent }); var game_events_MenuEvent = function(type,menu,bubbles,cancelable) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.menu = menu; }; $hxClasses["game.events.MenuEvent"] = game_events_MenuEvent; game_events_MenuEvent.__name__ = ["game","events","MenuEvent"]; game_events_MenuEvent.__super__ = openfl_events_Event; game_events_MenuEvent.prototype = $extend(openfl_events_Event.prototype,{ menu: null ,__class__: game_events_MenuEvent }); var game_events_TransitionEvent = function(type,toStateId,fromStateId,transitionType,params,bubbles,cancelable) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.toStateId = toStateId; this.fromStateId = fromStateId; this.params = params; this.transitionType = transitionType; }; $hxClasses["game.events.TransitionEvent"] = game_events_TransitionEvent; game_events_TransitionEvent.__name__ = ["game","events","TransitionEvent"]; game_events_TransitionEvent.__super__ = openfl_events_Event; game_events_TransitionEvent.prototype = $extend(openfl_events_Event.prototype,{ toStateId: null ,fromStateId: null ,transitionType: null ,params: null ,__class__: game_events_TransitionEvent }); var game_shared_init_Display = function() { }; $hxClasses["game.shared.init.Display"] = game_shared_init_Display; game_shared_init_Display.__name__ = ["game","shared","init","Display"]; game_shared_init_Display.initSize = function() { var windowWidth = lime_app_Application.current.__windows[0].__width; var windowHeight = lime_app_Application.current.__windows[0].__height; var aspectRatio = Math.max(windowWidth,windowHeight) / Math.min(windowWidth,windowHeight); var d1 = Math.abs(aspectRatio - 1.7777777777777777); var d2 = Math.abs(aspectRatio - 1.3333333333333333); var targetSize = new openfl_geom_Point(windowWidth,windowHeight); if(d1 < d2) { targetSize.x = 1820; targetSize.y = 1024; game_shared_init_Display.assetSet = "2d/bg/16_9/"; } else { targetSize.x = 1920; targetSize.y = 1440; game_shared_init_Display.assetSet = "2d/bg/4_3/"; } com_firstplayable_hxlib_Debug.log("\n windowWidth =\t\t" + windowWidth + "\n windowHeight =\t" + windowHeight + "\n aspectRatio =\t\t" + aspectRatio + "\n d1 (16:9) =\t\t" + d1 + "\n d2 (4:3) = \t\t" + d2 + "\n targetSize.x = \t" + targetSize.x + "\n targetSize.y = \t" + targetSize.y,null,{ fileName : "Display.hx", lineNumber : 64, className : "game.shared.init.Display", methodName : "initSize"}); return targetSize; }; game_shared_init_Display.initLayers = function() { com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.BACKGROUND,game_shared_init_Display.makeGameLayer()); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.PRIMARY,game_shared_init_Display.makeGameLayer()); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.FOREGROUND,game_shared_init_Display.makeGameLayer()); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.HUD,game_shared_init_Display.makeGameLayer()); com_firstplayable_hxlib_display_GameDisplay.addLayer(com_firstplayable_hxlib_display_LayerName.DEBUG,game_shared_init_Display.makeGameLayer()); game_shared_init_Display.printDebugInfo(); game_shared_init_Display.addBuildstamp(); }; game_shared_init_Display.makeGameLayer = function() { var layer = new openfl_display_Sprite(); var scale = com_firstplayable_hxlib_app_Application.app.scale; layer.set_scaleX(scale); layer.set_scaleY(scale); var appWidth = com_firstplayable_hxlib_app_Application.app.get_appSize().x; var appHeight = com_firstplayable_hxlib_app_Application.app.get_appSize().y; var assetWidth = com_firstplayable_hxlib_app_Application.app.get_targetSize().x; var assetHeight = com_firstplayable_hxlib_app_Application.app.get_targetSize().y; layer.set_x(appWidth / 2 - assetWidth * scale / 2); layer.set_y(appHeight / 2 - assetHeight * scale / 2); return layer; }; game_shared_init_Display.resizeToFillScreen = function(obj) { var condition = obj == null; if(condition) { com_firstplayable_hxlib_Debug.logHelper("Could not resize object; it was null",null,{ fileName : "Display.hx", lineNumber : 114, className : "game.shared.init.Display", methodName : "resizeToFillScreen"}); } if(condition) { return; } var newScale = com_firstplayable_hxlib_app_Application.app.calculateScale(com_firstplayable_hxlib_app_ScaleMode.CROP) / com_firstplayable_hxlib_app_Application.app.scale; if(obj.get_scaleX() == newScale) { return; } var origWidth = obj.get_width(); var origHeight = obj.get_height(); obj.set_scaleX(newScale); obj.set_scaleY(newScale); com_firstplayable_hxlib_Debug.log("\n newScale =\t" + newScale + "\n origWidth =\t" + origWidth + "\n origHeight =\t" + origHeight + "\n obj.width =\t" + obj.get_width() + "\n obj.height = \t" + obj.get_height(),null,{ fileName : "Display.hx", lineNumber : 134, className : "game.shared.init.Display", methodName : "resizeToFillScreen"}); }; game_shared_init_Display.printDebugInfo = function() { com_firstplayable_hxlib_Debug.log("---- Game Display Info ----",null,{ fileName : "Display.hx", lineNumber : 144, className : "game.shared.init.Display", methodName : "printDebugInfo"}); com_firstplayable_hxlib_Debug.log("appWidth - " + com_firstplayable_hxlib_app_Application.app.get_appSize().x,null,{ fileName : "Display.hx", lineNumber : 145, className : "game.shared.init.Display", methodName : "printDebugInfo"}); com_firstplayable_hxlib_Debug.log("appHeight - " + com_firstplayable_hxlib_app_Application.app.get_appSize().y,null,{ fileName : "Display.hx", lineNumber : 146, className : "game.shared.init.Display", methodName : "printDebugInfo"}); com_firstplayable_hxlib_Debug.log("asset width - " + com_firstplayable_hxlib_app_Application.app.get_targetSize().x,null,{ fileName : "Display.hx", lineNumber : 147, className : "game.shared.init.Display", methodName : "printDebugInfo"}); com_firstplayable_hxlib_Debug.log("asset height - " + com_firstplayable_hxlib_app_Application.app.get_targetSize().y,null,{ fileName : "Display.hx", lineNumber : 148, className : "game.shared.init.Display", methodName : "printDebugInfo"}); com_firstplayable_hxlib_Debug.log("scale - " + com_firstplayable_hxlib_app_Application.app.scale,null,{ fileName : "Display.hx", lineNumber : 149, className : "game.shared.init.Display", methodName : "printDebugInfo"}); com_firstplayable_hxlib_Debug.log("---------------------------",null,{ fileName : "Display.hx", lineNumber : 150, className : "game.shared.init.Display", methodName : "printDebugInfo"}); }; game_shared_init_Display.addBuildstamp = function() { var stamp = new com_firstplayable_hxlib_utils_Version(); var format = stamp.getTextFormat(); format.size = 24; stamp.setTextFormat(format); stamp.set_y(com_firstplayable_hxlib_app_Application.app.get_targetSize().y - stamp.get_height() - 10); stamp.set_text(stamp.buildNum + " " + stamp.buildTime); com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.DEBUG,stamp); }; var game_shared_init_States = function() { }; $hxClasses["game.shared.init.States"] = game_shared_init_States; game_shared_init_States.__name__ = ["game","shared","init","States"]; game_shared_init_States.init = function() { com_firstplayable_hxlib_state_StateManager.addState(new game_states_splash_SplashState()); com_firstplayable_hxlib_state_StateManager.addState(new src_game_states_title_TitleState()); com_firstplayable_hxlib_state_StateManager.addState(new game_states_regionSelect_RegionSelectState()); com_firstplayable_hxlib_state_StateManager.addState(new game_states_levelSelect_LevelSelectState()); com_firstplayable_hxlib_state_StateManager.addState(new game_states_intro_IntroState()); com_firstplayable_hxlib_state_StateManager.addState(new game_states_gameplay_GameplayState()); com_firstplayable_hxlib_state_StateManager.addState(new game_states_results_ResultsState()); }; var game_shared_ui_GameMenu = function(menuName) { com_firstplayable_hxlib_display_GenericMenu.call(this,menuName); }; $hxClasses["game.shared.ui.GameMenu"] = game_shared_ui_GameMenu; game_shared_ui_GameMenu.__name__ = ["game","shared","ui","GameMenu"]; game_shared_ui_GameMenu.validateMenu = function(menu) { return true; }; game_shared_ui_GameMenu.__super__ = com_firstplayable_hxlib_display_GenericMenu; game_shared_ui_GameMenu.prototype = $extend(com_firstplayable_hxlib_display_GenericMenu.prototype,{ emitCompletionEvent: function() { var event = new game_events_MenuEvent("MenuComplete",this); Global.event.dispatchEvent(event); } ,onButtonHit: function(caller) { com_firstplayable_hxlib_audio_WebAudio.get_instance().play("SFX_CLICK"); } ,clear: function() { } ,__class__: game_shared_ui_GameMenu }); var game_shared_ui_ImpactIcon = function() { game_shared_ui_GameMenu.call(this,"PanelIcons"); }; $hxClasses["game.shared.ui.ImpactIcon"] = game_shared_ui_ImpactIcon; game_shared_ui_ImpactIcon.__name__ = ["game","shared","ui","ImpactIcon"]; game_shared_ui_ImpactIcon.__super__ = game_shared_ui_GameMenu; game_shared_ui_ImpactIcon.prototype = $extend(game_shared_ui_GameMenu.prototype,{ type: null ,value: null ,setImpactType: function(type) { this.type = type; var bitmapData = null; var iconPath = game_defs_ResourceIcons.getImpactIconAsset(type); bitmapData = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(iconPath); if(bitmapData != null) { var icon = this.getChildAs("spr_icon",com_firstplayable_hxlib_display_OPSprite); if(icon != null) { icon.changeImage(bitmapData); icon.set_visible(true); } } if(type == "None") { this.hideObject("spr_iconBacking_increase"); this.hideObject("spr_iconBacking_decrease"); this.hideObject("lbl_stat"); var icon1 = this.getChildAs("spr_icon",com_firstplayable_hxlib_display_OPSprite); if(icon1 != null) { icon1.setScale(1); } var icon2 = this.getChildAs("spr_icon",com_firstplayable_hxlib_display_OPSprite); } } ,setImpactValue: function(value) { this.value = value; this.setTextInField("lbl_stat",value == null ? "null" : "" + value,true); this.toggleObjectVisibility("spr_iconBacking_increase",value >= 0); this.toggleObjectVisibility("spr_iconBacking_decrease",value < 0); } ,hideImpactValue: function() { this.hideObject("spr_iconBacking_decrease"); this.hideObject("lbl_stat"); } ,placeAtRef: function(ref) { if(ref == null) { com_firstplayable_hxlib_Debug.logHelper("Attempt to place icon at null ref.",com_firstplayable_hxlib_Severity.Warn,{ fileName : "ImpactIcon.hx", lineNumber : 87, className : "game.shared.ui.ImpactIcon", methodName : "placeAtRef"}); return; } this.set_x(ref.get_x()); this.set_y(ref.get_y()); } ,__class__: game_shared_ui_ImpactIcon }); var game_shared_ui_popups_ModalState = $hxClasses["game.shared.ui.popups.ModalState"] = { __ename__ : ["game","shared","ui","popups","ModalState"], __constructs__ : ["HIDDEN","ENTERING","SHOWN","EXITING"] }; game_shared_ui_popups_ModalState.HIDDEN = ["HIDDEN",0]; game_shared_ui_popups_ModalState.HIDDEN.toString = $estr; game_shared_ui_popups_ModalState.HIDDEN.__enum__ = game_shared_ui_popups_ModalState; game_shared_ui_popups_ModalState.ENTERING = ["ENTERING",1]; game_shared_ui_popups_ModalState.ENTERING.toString = $estr; game_shared_ui_popups_ModalState.ENTERING.__enum__ = game_shared_ui_popups_ModalState; game_shared_ui_popups_ModalState.SHOWN = ["SHOWN",2]; game_shared_ui_popups_ModalState.SHOWN.toString = $estr; game_shared_ui_popups_ModalState.SHOWN.__enum__ = game_shared_ui_popups_ModalState; game_shared_ui_popups_ModalState.EXITING = ["EXITING",3]; game_shared_ui_popups_ModalState.EXITING.toString = $estr; game_shared_ui_popups_ModalState.EXITING.__enum__ = game_shared_ui_popups_ModalState; game_shared_ui_popups_ModalState.__empty_constructs__ = [game_shared_ui_popups_ModalState.HIDDEN,game_shared_ui_popups_ModalState.ENTERING,game_shared_ui_popups_ModalState.SHOWN,game_shared_ui_popups_ModalState.EXITING]; var game_shared_ui_popups_BasePopupMenu = function(jsonFileName) { com_firstplayable_hxlib_display_GenericMenu.call(this,jsonFileName); this.m_bg = game_shared_ui_popups_BasePopupMenu.createBbMaskSpr(); this.m_bg.set_alpha(0.3); }; $hxClasses["game.shared.ui.popups.BasePopupMenu"] = game_shared_ui_popups_BasePopupMenu; game_shared_ui_popups_BasePopupMenu.__name__ = ["game","shared","ui","popups","BasePopupMenu"]; game_shared_ui_popups_BasePopupMenu.createBbMaskSpr = function() { var padding_y; var padding_x = com_firstplayable_hxlib_app_Application.app.get_targetSize().x * 0.1; padding_y = com_firstplayable_hxlib_app_Application.app.get_targetSize().y * 0.1; var bgMask = new openfl_display_Sprite(); bgMask.get_graphics().beginFill(0); bgMask.get_graphics().drawRect(-padding_x,-padding_y,com_firstplayable_hxlib_app_Application.app.get_targetSize().x + padding_x * 2,com_firstplayable_hxlib_app_Application.app.get_targetSize().y + padding_y * 2); bgMask.get_graphics().endFill(); return bgMask; }; game_shared_ui_popups_BasePopupMenu.__super__ = com_firstplayable_hxlib_display_GenericMenu; game_shared_ui_popups_BasePopupMenu.prototype = $extend(com_firstplayable_hxlib_display_GenericMenu.prototype,{ m_state: null ,m_callback: null ,m_bg: null ,show: function(callback) { this.m_state = game_shared_ui_popups_ModalState.ENTERING; this.m_callback = callback; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.HUD,this.m_bg); com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.HUD,this); this.m_bg.set_y(this.m_bg.globalToLocal(new openfl_geom_Point()).y); this.m_bg.set_alpha(0); this.m_bg.set_visible(true); motion_Actuate.tween(this.m_bg,0.3,{ alpha : 0.3}); } ,onShowComplete: function() { this.m_state = game_shared_ui_popups_ModalState.SHOWN; } ,hide: function() { this.m_state = game_shared_ui_popups_ModalState.EXITING; motion_Actuate.tween(this.m_bg,0.5,{ alpha : 0}); if(this.m_callback != null) { motion_Actuate.timer(0.5).onComplete(this.m_callback); } } ,onHideComplete: function() { this.m_state = game_shared_ui_popups_ModalState.HIDDEN; com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.HUD,this.m_bg); com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.HUD,this); } ,__class__: game_shared_ui_popups_BasePopupMenu }); var game_shared_vfx_Transition = function() { }; $hxClasses["game.shared.vfx.Transition"] = game_shared_vfx_Transition; game_shared_vfx_Transition.__name__ = ["game","shared","vfx","Transition"]; game_shared_vfx_Transition.__properties__ = {get_instance:"get_instance"}; game_shared_vfx_Transition.get_instance = function() { if(game_shared_vfx_Transition.instance == null) { return game_shared_vfx_Transition.instance = new game_shared_vfx_Transition(); } else { return game_shared_vfx_Transition.instance; } }; game_shared_vfx_Transition.prototype = { m_transitionImg: null ,transitionToState: function(newState,params) { var padding_y; var padding_x = com_firstplayable_hxlib_app_Application.app.get_targetSize().x * 0.1; padding_y = com_firstplayable_hxlib_app_Application.app.get_targetSize().y * 0.1; this.m_transitionImg = new openfl_display_Sprite(); this.m_transitionImg.get_graphics().beginFill(); this.m_transitionImg.get_graphics().drawRect(-padding_x,-padding_y,com_firstplayable_hxlib_app_Application.app.get_targetSize().x + padding_x * 2,com_firstplayable_hxlib_app_Application.app.get_targetSize().y + padding_y * 2); this.m_transitionImg.get_graphics().endFill(); this.m_transitionImg.set_alpha(0.01); com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.HUD,this.m_transitionImg); motion_Actuate.tween(this.m_transitionImg,0.5,{ alpha : 1}).onComplete($bind(this,this.onFadeInComplete),[newState,params]); } ,onFadeInComplete: function(nextState,params) { com_firstplayable_hxlib_state_StateManager.setState(nextState,params); motion_Actuate.tween(this.m_transitionImg,0.5,{ alpha : 0}).onComplete($bind(this,this.onFadeOutComplete)); } ,onFadeOutComplete: function() { com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.HUD,this.m_transitionImg); this.m_transitionImg = null; } ,__class__: game_shared_vfx_Transition }; var game_states_AcadiaGameState = function(stateId) { com_firstplayable_hxlib_state_BaseGameState.call(this,stateId); this.m_menus = new haxe_ds_StringMap(); }; $hxClasses["game.states.AcadiaGameState"] = game_states_AcadiaGameState; game_states_AcadiaGameState.__name__ = ["game","states","AcadiaGameState"]; game_states_AcadiaGameState.__super__ = com_firstplayable_hxlib_state_BaseGameState; game_states_AcadiaGameState.prototype = $extend(com_firstplayable_hxlib_state_BaseGameState.prototype,{ m_menus: null ,enter: function(p) { com_firstplayable_hxlib_state_BaseGameState.prototype.enter.call(this,p); this.addListeners(); } ,exit: function() { this.removeListeners(); com_firstplayable_hxlib_state_BaseGameState.prototype.exit.call(this); } ,addListeners: function() { } ,removeListeners: function() { } ,__class__: game_states_AcadiaGameState }); var litekit_state_SimpleStateMachine = function() { this.m_states = new haxe_ds_StringMap(); }; $hxClasses["litekit.state.SimpleStateMachine"] = litekit_state_SimpleStateMachine; litekit_state_SimpleStateMachine.__name__ = ["litekit","state","SimpleStateMachine"]; litekit_state_SimpleStateMachine.prototype = { m_currentState: null ,m_states: null ,addState: function(state) { var key = state.id; var _this = this.m_states; if(__map_reserved[key] != null ? _this.existsReserved(key) : _this.h.hasOwnProperty(key)) { com_firstplayable_hxlib_Debug.logHelper("A state already exists with id: " + state.id,com_firstplayable_hxlib_Severity.Warn,{ fileName : "SimpleStateMachine.hx", lineNumber : 21, className : "litekit.state.SimpleStateMachine", methodName : "addState"}); return; } if(state.id == null) { com_firstplayable_hxlib_Debug.logHelper("Attempted to add a state with a null id!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "SimpleStateMachine.hx", lineNumber : 27, className : "litekit.state.SimpleStateMachine", methodName : "addState"}); } var key1 = state.id; var _this1 = this.m_states; if(__map_reserved[key1] != null) { _this1.setReserved(key1,state); } else { _this1.h[key1] = state; } } ,getCurrentStateId: function() { return this.m_currentState.id; } ,setState: function(id,params) { var _this = this.m_states; if(!(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id))) { com_firstplayable_hxlib_Debug.logHelper("Unable to find a state with id: " + id,com_firstplayable_hxlib_Severity.Warn,{ fileName : "SimpleStateMachine.hx", lineNumber : 42, className : "litekit.state.SimpleStateMachine", methodName : "setState"}); return null; } var _this1 = this.m_states; var nextState = __map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]; if(nextState == null) { com_firstplayable_hxlib_Debug.logHelper("Attempted to set state to id: " + id + " but that state is null!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "SimpleStateMachine.hx", lineNumber : 49, className : "litekit.state.SimpleStateMachine", methodName : "setState"}); return null; } var enterParams = params; if(this.m_currentState != null) { var exitParams = this.m_currentState.exit(params); if(exitParams != null) { enterParams = exitParams; } } this.m_currentState = nextState; return this.m_currentState.enter(enterParams); } ,__class__: litekit_state_SimpleStateMachine }; var game_states_GameStateMachine = function() { litekit_state_SimpleStateMachine.call(this); }; $hxClasses["game.states.GameStateMachine"] = game_states_GameStateMachine; game_states_GameStateMachine.__name__ = ["game","states","GameStateMachine"]; game_states_GameStateMachine.__super__ = litekit_state_SimpleStateMachine; game_states_GameStateMachine.prototype = $extend(litekit_state_SimpleStateMachine.prototype,{ clearStates: function() { var stateId = this.m_states.keys(); while(stateId.hasNext()) { var stateId1 = stateId.next(); var _this = this.m_states; (__map_reserved[stateId1] != null ? _this.getReserved(stateId1) : _this.h[stateId1]).exit(); } } ,__class__: game_states_GameStateMachine }); var game_states_gameplay_CommunityPopup = function() { this.m_isShown = true; game_shared_ui_GameMenu.call(this,"CommunityPopup"); this.hide(); this.m_impactIcons = []; var popup = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup != null) { this.m_onScreenPos = new openfl_geom_Point(popup.get_x(),popup.get_y()); } }; $hxClasses["game.states.gameplay.CommunityPopup"] = game_states_gameplay_CommunityPopup; game_states_gameplay_CommunityPopup.__name__ = ["game","states","gameplay","CommunityPopup"]; game_states_gameplay_CommunityPopup.__super__ = game_shared_ui_GameMenu; game_states_gameplay_CommunityPopup.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_cardId: null ,m_choiceIdx: null ,m_impactIcons: null ,m_isShown: null ,m_onScreenPos: null ,setText: function(title,description) { var titleField = this.getChildAs("lbl_prep_header",openfl_text_TextField); titleField.set_text(title); var descriptionField = this.getChildAs("lbl_description",openfl_text_TextField); descriptionField.set_text(description); } ,setStatValue: function(val) { var statField = this.getChildAs("lbl_statValue",openfl_text_TextField); statField.set_text(val == null ? "null" : "" + val); } ,setPortrait: function(type) { var portraitPath = game_defs_ResourceIcons.getImpactIconAsset(type); var portraitImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(portraitPath); var portraitSprite = this.getChildAs("spr_portrait",com_firstplayable_hxlib_display_OPSprite); portraitSprite.changeImage(portraitImage); } ,onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); this.onAcceptButtonPress(); } ,onAcceptButtonPress: function() { var event = new game_events_GameplayEvent("GAMEPLAY_CHOICE_ACCEPTED",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,show: function(animate) { if(animate == null) { animate = true; } var _gthis = this; if(this.m_isShown || this.get_visible()) { return; } this.set_visible(true); var popup = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup != null) { popup.set_y(-popup.get_height()); motion_Actuate.tween(popup,0.2,{ y : this.m_onScreenPos.y}).ease(motion_easing_Quad.get_easeInOut()).onComplete(function() { _gthis.m_isShown = true; }); } } ,hide: function(animate) { if(animate == null) { animate = true; } if(!this.m_isShown) { return; } this.m_isShown = false; this.set_visible(false); } ,__class__: game_states_gameplay_CommunityPopup }); var litekit_state_State = function() { }; $hxClasses["litekit.state.State"] = litekit_state_State; litekit_state_State.__name__ = ["litekit","state","State"]; litekit_state_State.prototype = { id: null ,enter: null ,exit: null ,__class__: litekit_state_State }; var game_states_gameplay_GameplaySubstate = function(menus) { this.m_menus = menus; }; $hxClasses["game.states.gameplay.GameplaySubstate"] = game_states_gameplay_GameplaySubstate; game_states_gameplay_GameplaySubstate.__name__ = ["game","states","gameplay","GameplaySubstate"]; game_states_gameplay_GameplaySubstate.__interfaces__ = [litekit_state_State]; game_states_gameplay_GameplaySubstate.prototype = { id: null ,m_menus: null ,m_params: null ,m_storyId: null ,m_roundId: null ,m_region: null ,m_roundPrepChoiceId: null ,m_roundEventChoiceId: null ,enter: function(params) { com_firstplayable_hxlib_Debug.log("Entering substate: " + this.id,null,{ fileName : "GameplaySubstate.hx", lineNumber : 46, className : "game.states.gameplay.GameplaySubstate", methodName : "enter"}); this.addEventListeners(); this.m_storyId = this.getParamAsInt(params,"storyId",0); this.m_roundId = this.getParamAsInt(params,"roundId",0); this.m_region = this.getParamAs(params,"region",game_defs__$RegionType_RegionType_$Impl_$); this.m_roundPrepChoiceId = this.getParamAsInt(params,"roundPrepChoiceId",0,false); this.m_roundEventChoiceId = this.getParamAsInt(params,"roundEventChoiceId",0,false); if(params == null) { com_firstplayable_hxlib_Debug.log("Substate " + this.id + " entered with invalid args: " + params.toString(),null,{ fileName : "GameplaySubstate.hx", lineNumber : 59, className : "game.states.gameplay.GameplaySubstate", methodName : "enter"}); return params; } this.m_params = params; return params; } ,exit: function(params) { com_firstplayable_hxlib_Debug.log("Leaving substate: " + this.id,null,{ fileName : "GameplaySubstate.hx", lineNumber : 69, className : "game.states.gameplay.GameplaySubstate", methodName : "exit"}); this.removeEventListeners(); return params; } ,addEventListeners: function() { } ,removeEventListeners: function() { } ,goToSubstate: function(to,from,params) { com_firstplayable_hxlib_Debug.log("Sending transition event. To substate " + to + " from substate " + from,null,{ fileName : "GameplaySubstate.hx", lineNumber : 106, className : "game.states.gameplay.GameplaySubstate", methodName : "goToSubstate"}); var transition = new game_events_TransitionEvent("Substate",to,from,null,params); Global.event.dispatchEvent(transition); } ,getParamAs: function(params,paramId,type,defaultValue) { if(!(__map_reserved[paramId] != null ? params.existsReserved(paramId) : params.h.hasOwnProperty(paramId))) { com_firstplayable_hxlib_Debug.logHelper("Attempted to get parameter " + paramId + " but it was not passed into the substate!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameplaySubstate.hx", lineNumber : 119, className : "game.states.gameplay.GameplaySubstate", methodName : "getParamAs"}); return defaultValue; } var param = __map_reserved[paramId] != null ? params.getReserved(paramId) : params.h[paramId]; if(param == null) { com_firstplayable_hxlib_Debug.logHelper("Attempted to get " + paramId + " as " + Std.string(type) + " but instead it was type: " + Type.getClassName(__map_reserved[paramId] != null ? params.getReserved(paramId) : params.h[paramId]),com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameplaySubstate.hx", lineNumber : 126, className : "game.states.gameplay.GameplaySubstate", methodName : "getParamAs"}); return defaultValue; } return param; } ,getParamAsInt: function(params,paramId,defaultValue,warnOnFail) { if(warnOnFail == null) { warnOnFail = true; } if(!(__map_reserved[paramId] != null ? params.existsReserved(paramId) : params.h.hasOwnProperty(paramId))) { if(warnOnFail) { com_firstplayable_hxlib_Debug.logHelper("Attempted to get parameter " + paramId + " but it was not passed into the substate!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameplaySubstate.hx", lineNumber : 145, className : "game.states.gameplay.GameplaySubstate", methodName : "getParamAsInt"}); } return defaultValue; } var param = __map_reserved[paramId] != null ? params.getReserved(paramId) : params.h[paramId]; if(param == null) { var msg = "Attempted to get " + paramId + " as and Int but instead it was type: " + Type.getClassName(__map_reserved[paramId] != null ? params.getReserved(paramId) : params.h[paramId]); if(warnOnFail) { com_firstplayable_hxlib_Debug.logHelper(msg,com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameplaySubstate.hx", lineNumber : 152, className : "game.states.gameplay.GameplaySubstate", methodName : "getParamAsInt"}); } return defaultValue; } return param; } ,__class__: game_states_gameplay_GameplaySubstate }; var game_states_gameplay_CommunitySubstate = function(menus) { this.id = "CommunitySubstate"; game_states_gameplay_GameplaySubstate.call(this,menus); }; $hxClasses["game.states.gameplay.CommunitySubstate"] = game_states_gameplay_CommunitySubstate; game_states_gameplay_CommunitySubstate.__name__ = ["game","states","gameplay","CommunitySubstate"]; game_states_gameplay_CommunitySubstate.__super__ = game_states_gameplay_GameplaySubstate; game_states_gameplay_CommunitySubstate.prototype = $extend(game_states_gameplay_GameplaySubstate.prototype,{ m_hasDepletedResilience: null ,m_nextSubstate: null ,enter: function(params) { var _this = this.m_menus; var menu = __map_reserved["CommunityPopup"] != null ? _this.getReserved("CommunityPopup") : _this.h["CommunityPopup"]; params = game_states_gameplay_GameplaySubstate.prototype.enter.call(this,params); var resilienceTaken = this.getParamAsInt(params,"PREV_RESILIENCE",0); var currentResilience = this.getParamAsInt(params,"CURRENT_RESILIENCE",0); var depletedResource = this.getParamAs(params,"RESOURCE",String); this.m_nextSubstate = this.getParamAs(params,"NEXT_SUBSTATE",String); this.m_hasDepletedResilience = currentResilience < 0; this.setUpMenuText(resilienceTaken,depletedResource); menu.show(); return params; } ,setUpMenuText: function(resilience,industry) { var _this = this.m_menus; var menu = __map_reserved["CommunityPopup"] != null ? _this.getReserved("CommunityPopup") : _this.h["CommunityPopup"]; var titleId = ""; var descriptionId = ""; if(!this.m_hasDepletedResilience) { titleId = "RESILIENCE_USE_WARNING_TITLE"; descriptionId = "RESILIENCE_USE_WARNING_DESCRIPTION"; } else { titleId = "RESILIENCE_USE_LOSS_TITLE"; descriptionId = "RESILIENCE_USE_LOSS_DESCRIPTION"; } var titleString = ""; var descriptionString = ""; var rawTitle = game_data_GameCMS.getStringById(titleId); if(rawTitle != null) { titleString = rawTitle.Content; titleString = StringTools.replace(titleString,"",industry); titleString = StringTools.replace(titleString,"",resilience == null ? "null" : "" + resilience); } var rawDescription = game_data_GameCMS.getStringById(descriptionId); if(rawDescription != null) { descriptionString = rawDescription.Content; descriptionString = StringTools.replace(descriptionString,"",industry); descriptionString = StringTools.replace(descriptionString,"",resilience == null ? "null" : "" + resilience); } menu.setText(titleString,descriptionString); menu.setStatValue(resilience); menu.setPortrait(industry); } ,addEventListeners: function() { Global.event.addEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onButtonHit)); } ,removeEventListeners: function() { Global.event.removeEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onButtonHit)); } ,onButtonHit: function(e) { if(!this.m_hasDepletedResilience) { var _this = this.m_menus; var menu = __map_reserved["CommunityPopup"] != null ? _this.getReserved("CommunityPopup") : _this.h["CommunityPopup"]; menu.hide(); var event = new game_events_TransitionEvent("Substate",this.m_nextSubstate,"CommunitySubstate",null,this.m_params); Global.event.dispatchEvent(event); } else { var event1 = new game_events_TransitionEvent("Substate","GAME_OVER","CommunitySubstate",null,this.m_params); Global.event.dispatchEvent(event1); } } ,__class__: game_states_gameplay_CommunitySubstate }); var game_states_gameplay_EventChoiceMenu = function() { game_shared_ui_GameMenu.call(this,"EventChoiceMenu"); this.addEventListener("addedToStage",$bind(this,this.onAddedToStage)); this.m_impactIcons = []; }; $hxClasses["game.states.gameplay.EventChoiceMenu"] = game_states_gameplay_EventChoiceMenu; game_states_gameplay_EventChoiceMenu.__name__ = ["game","states","gameplay","EventChoiceMenu"]; game_states_gameplay_EventChoiceMenu.__super__ = game_shared_ui_GameMenu; game_states_gameplay_EventChoiceMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_choiceIdx: null ,m_onScreenPos: null ,m_slideActuator: null ,m_impactIcons: null ,setTargetPosition: function(x,y) { this.m_onScreenPos = y; } ,setOptionIdx: function(optionIdx) { this.m_choiceIdx = optionIdx; } ,setTitle: function(title) { this.setTextInField("lbl_prep_header",title,true); } ,setDescription: function(description) { this.setTextInField("lbl_prep_text",description,true); } ,setImpactIcons: function(resources) { this.clearIcons(); var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var type = _g1[_g]; ++_g; if((__map_reserved[type] != null ? resources.existsReserved(type) : resources.h.hasOwnProperty(type)) && (__map_reserved[type] != null ? resources.getReserved(type) : resources.h[type]) != null) { var icon = new game_shared_ui_ImpactIcon(); icon.setImpactType(type); icon.setImpactValue(__map_reserved[type] != null ? resources.getReserved(type) : resources.h[type]); icon.set_visible(true); this.m_impactIcons.push(icon); var ref = this.getChildByName("ref_effect" + this.m_impactIcons.length); this.addChild(icon); icon.placeAtRef(ref); } } if(this.m_impactIcons.length == 0) { var icon1 = new game_shared_ui_ImpactIcon(); icon1.setImpactType("None"); icon1.set_visible(true); this.m_impactIcons.push(icon1); var ref1 = this.getChildByName("ref_effect" + 1); icon1.placeAtRef(ref1); this.addChild(icon1); } this.centerImpactIcons(); } ,centerImpactIcons: function() { if(this.m_impactIcons == null) { return; } var numIcons = this.m_impactIcons.length; if(numIcons == 0) { return; } var midpoint = this.get_width() / 2; var sign = 1; var offset = 0; var divisor = 1; if(numIcons % 2 == 0) { offset = 1; divisor = 2; } var _g1 = 0; var _g = numIcons; while(_g1 < _g) { var idx = _g1++; var icon = this.m_impactIcons[idx]; icon.set_x(midpoint + icon.get_width() / divisor * Math.ceil((idx + offset) / 2) * sign); sign *= -1; } } ,clearIcons: function() { if(this.m_impactIcons == null) { return; } var _g = 0; var _g1 = this.m_impactIcons; while(_g < _g1.length) { var icon = _g1[_g]; ++_g; this.removeChild(icon); } this.m_impactIcons = []; } ,show: function(animate) { if(animate == null) { animate = true; } this.set_visible(true); this.set_alpha(1); if(animate && this.m_onScreenPos != null && this.m_slideActuator == null) { this.m_slideActuator = motion_Actuate.tween(this,0.6,{ y : this.m_onScreenPos}).ease(motion_easing_Quad.get_easeOut()).onComplete($bind(this,this.onShowComplete)); } else if(!animate || this.m_onScreenPos == null) { this.set_y(this.m_onScreenPos); } } ,hide: function(animate) { if(animate == null) { animate = true; } if(animate && this.m_onScreenPos != null && this.m_slideActuator == null) { this.m_slideActuator = motion_Actuate.tween(this,0.6,{ y : 1024}).ease(motion_easing_Quad.get_easeOut()).onComplete($bind(this,this.onHideComplete)); } else { this.set_y(1024); this.onHideComplete(); } } ,onAddedToStage: function(e) { this.removeEventListener("addedToStage",$bind(this,this.onAddedToStage)); this.addEventListener("removedFromStage",$bind(this,this.onRemovedFromStage)); this.addEventListener("click",$bind(this,this.onClick)); } ,onRemovedFromStage: function(e) { this.removeEventListener("removedFromStage",$bind(this,this.onRemovedFromStage)); this.addEventListener("addedToStage",$bind(this,this.onAddedToStage)); this.removeEventListener("click",$bind(this,this.onClick)); } ,onClick: function(e) { var event = new game_events_GameplayEvent("GAMEPLAY_CHOICE_SELECTED",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,onShowComplete: function() { this.m_slideActuator = null; var event = new game_events_GameplayEvent("GAMEPLAY_EVENT_CHOICE_SHOWN",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,onHideComplete: function() { this.set_visible(false); var event = new game_events_GameplayEvent("GAMEPLAY_EVENT_CHOICE_HIDDEN",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,__class__: game_states_gameplay_EventChoiceMenu }); var game_states_gameplay_EventSubstate = function(menus) { this.id = "EventSubstate"; game_states_gameplay_GameplaySubstate.call(this,menus); }; $hxClasses["game.states.gameplay.EventSubstate"] = game_states_gameplay_EventSubstate; game_states_gameplay_EventSubstate.__name__ = ["game","states","gameplay","EventSubstate"]; game_states_gameplay_EventSubstate.__super__ = game_states_gameplay_GameplaySubstate; game_states_gameplay_EventSubstate.prototype = $extend(game_states_gameplay_GameplaySubstate.prototype,{ m_dispatchedShowEvent: null ,m_dispatchedHideEvent: null ,enter: function(params) { params = game_states_gameplay_GameplaySubstate.prototype.enter.call(this,params); this.doMenuSetup(this.m_storyId,this.m_region,this.m_roundId); this.m_dispatchedShowEvent = false; this.m_dispatchedHideEvent = false; return params; } ,doMenuSetup: function(storyId,region,roundId) { var header = game_data_GameCMS.getEventHeader(storyId,region,roundId); var tip = game_data_GameCMS.getEventText(storyId,region,roundId); this.setHeaderText(header,tip); this.showImage(this.m_storyId,this.m_region,this.m_roundId); this.addToSocialFeed(header); } ,showImage: function(storyId,region,roundId) { var _this = this.m_menus; var gameplayMenu = __map_reserved["GameplayMenu"] != null ? _this.getReserved("GameplayMenu") : _this.h["GameplayMenu"]; var roundData = game_data_GameCMS.getRoundData(storyId,region,roundId); var imageName = roundData.eventImage.split(".")[0]; gameplayMenu.setImage(imageName,game_states_gameplay_GameStageType.EVENT,true); } ,setHeaderText: function(headerText,descText) { var _this = this.m_menus; var gameplayMenu = __map_reserved["GameplayMenu"] != null ? _this.getReserved("GameplayMenu") : _this.h["GameplayMenu"]; gameplayMenu.setStageType(game_states_gameplay_GameStageType.EVENT); gameplayMenu.setTitleText(headerText); gameplayMenu.setDescriptionText(descText); gameplayMenu.rescaleNewsText(); gameplayMenu.setTipText("Tap an event option to make a selection"); } ,hideCardMenus: function() { var _this = this.m_menus; var firstOption = __map_reserved["EventOptionOne"] != null ? _this.getReserved("EventOptionOne") : _this.h["EventOptionOne"]; firstOption.hide(false); var _this1 = this.m_menus; var secondOption = __map_reserved["EventOptionTwo"] != null ? _this1.getReserved("EventOptionTwo") : _this1.h["EventOptionTwo"]; secondOption.hide(false); var _this2 = this.m_menus; var thirdOption = __map_reserved["EventOptionThree"] != null ? _this2.getReserved("EventOptionThree") : _this2.h["EventOptionThree"]; thirdOption.hide(false); } ,showCardMenus: function(storyId,region,roundId) { var options = game_data_GameCMS.getEventOptions(storyId,region,roundId); var numOptions = 0; if(options.length > 0) { var _this = this.m_menus; var firstOption = __map_reserved["EventOptionOne"] != null ? _this.getReserved("EventOptionOne") : _this.h["EventOptionOne"]; var resources = game_data_GameCMS.getResourceMapFromImpact(options[0].optionImpacts); firstOption.setImpactIcons(resources); firstOption.setOptionIdx(0); firstOption.setTitle(""); firstOption.setDescription(options[0].optionHeader); firstOption.show(true); ++numOptions; } if(options.length > 1) { var _this1 = this.m_menus; var secondOption = __map_reserved["EventOptionTwo"] != null ? _this1.getReserved("EventOptionTwo") : _this1.h["EventOptionTwo"]; var resources1 = game_data_GameCMS.getResourceMapFromImpact(options[1].optionImpacts); secondOption.setImpactIcons(resources1); secondOption.setOptionIdx(1); secondOption.setTitle(""); secondOption.setDescription(options[1].optionHeader); secondOption.show(true); ++numOptions; } if(options.length > 2) { var _this2 = this.m_menus; var thirdOption = __map_reserved["EventOptionThree"] != null ? _this2.getReserved("EventOptionThree") : _this2.h["EventOptionThree"]; var resources2 = game_data_GameCMS.getResourceMapFromImpact(options[2].optionImpacts); thirdOption.setImpactIcons(resources2); thirdOption.setOptionIdx(2); thirdOption.setTitle(""); thirdOption.setDescription(options[2].optionHeader); thirdOption.show(true); ++numOptions; } this.positionOptions(numOptions,["EventOptionOne","EventOptionTwo","EventOptionThree"]); } ,positionOptions: function(numOptions,menuIds) { if(numOptions == 0) { return; } var _this = this.m_menus; var gameplayMenu = __map_reserved["GameplayMenu"] != null ? _this.getReserved("GameplayMenu") : _this.h["GameplayMenu"]; var midpoint = gameplayMenu.getCardArea() / 2; var sign = 1; var offset = 0; var divisor = 1; if(numOptions % 2 == 0) { offset = 1; divisor = 1.75; } var _g1 = 0; var _g = numOptions; while(_g1 < _g) { var idx = _g1++; var _this1 = this.m_menus; var key = menuIds[idx]; var card = __map_reserved[key] != null ? _this1.getReserved(key) : _this1.h[key]; card.set_x(midpoint + card.get_width() / divisor * Math.ceil((idx + offset) / 2) * sign); sign *= -1; } var _g11 = 0; var _g2 = numOptions; while(_g11 < _g2) { var idx1 = _g11++; var _this2 = this.m_menus; var key1 = menuIds[idx1]; var card1 = __map_reserved[key1] != null ? _this2.getReserved(key1) : _this2.h[key1]; if(card1.get_x() < midpoint) { card1.setTitle("A"); } else if(card1.get_x() == midpoint || card1.get_x() > midpoint && numOptions == 2) { card1.setTitle("B"); } else if(card1.get_x() > midpoint) { card1.setTitle("C"); } } } ,addToSocialFeed: function(headerText) { var _this = this.m_menus; var socialFeedMenu = __map_reserved["SocialFeedMenu"] != null ? _this.getReserved("SocialFeedMenu") : _this.h["SocialFeedMenu"]; var hasShownEventNotification = socialFeedMenu.getLastComment().getTitleText() == "NEW EVENT!"; if(!hasShownEventNotification) { socialFeedMenu.addComment("NEW EVENT!",headerText,"EVENT"); } else { this.onSocialScrollComplete(null); } } ,addEventListeners: function() { Global.event.addEventListener("GAMEPLAY_CHOICE_SELECTED",$bind(this,this.onChoiceSelected)); Global.event.addEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onChoiceAccepted)); Global.event.addEventListener("GAMEPLAY_CHOICE_REJECTED",$bind(this,this.onChoiceRejected)); Global.event.addEventListener("GAMEPLAY_EVENT_CHOICE_HIDDEN",$bind(this,this.onChoicesHidden)); Global.event.addEventListener("GAMEPLAY_EVENT_CHOICE_SHOWN",$bind(this,this.onChoicesShown)); Global.event.addEventListener("SOCIAL_SCROLL_COMPLETE",$bind(this,this.onSocialScrollComplete)); } ,removeEventListeners: function() { Global.event.removeEventListener("GAMEPLAY_CHOICE_SELECTED",$bind(this,this.onChoiceSelected)); Global.event.removeEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onChoiceAccepted)); Global.event.removeEventListener("GAMEPLAY_CHOICE_REJECTED",$bind(this,this.onChoiceRejected)); Global.event.removeEventListener("GAMEPLAY_EVENT_CHOICE_HIDDEN",$bind(this,this.onChoicesHidden)); Global.event.removeEventListener("GAMEPLAY_EVENT_CHOICE_SHOWN",$bind(this,this.onChoicesShown)); Global.event.removeEventListener("SOCIAL_SCROLL_COMPLETE",$bind(this,this.onSocialScrollComplete)); } ,onChoiceSelected: function(e) { var choices = game_data_GameCMS.getEventOptions(this.m_storyId,this.m_region,this.m_roundId); var choiceData = choices[e.choiceIdx]; var choiceHeader = game_data_GameCMS.getEventHeader(this.m_storyId,this.m_region,this.m_roundId); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("EventChoiceView","Region {m_region} - Story " + (this.m_storyId + 1) + " - Round " + (this.m_roundId + 1) + " - " + choiceHeader); var _this = this.m_menus; var popup = __map_reserved["GameplayChoicePopup"] != null ? _this.getReserved("GameplayChoicePopup") : _this.h["GameplayChoicePopup"]; var resources = game_data_GameCMS.getResourceMapFromImpact(choiceData.optionImpacts); popup.setImpactIcons(resources); popup.setChoiceId(e.choiceIdx); popup.setType(game_states_gameplay_GameplayChoiceType.EVENT); popup.setTitle(choiceHeader); popup.setDescription(choiceData.optionDescription,game_states_gameplay_GameplayChoiceType.EVENT); popup.rescale(game_states_gameplay_GameplayChoiceType.EVENT); popup.show(); } ,onChoiceAccepted: function(e) { var _this = this.m_menus; var popup = __map_reserved["GameplayChoicePopup"] != null ? _this.getReserved("GameplayChoicePopup") : _this.h["GameplayChoicePopup"]; popup.hide(); this.hideCardMenus(); var choices = game_data_GameCMS.getEventOptions(this.m_storyId,this.m_region,this.m_roundId); var choiceData = choices[e.choiceIdx]; var choiceHeader = game_data_GameCMS.getEventHeader(this.m_storyId,this.m_region,this.m_roundId); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("EventChoiceSelected","Region {m_region} - Story " + (this.m_storyId + 1) + " - Round " + (this.m_roundId + 1) + " - " + choiceHeader); this.m_roundEventChoiceId = e.choiceIdx; var _this1 = this.m_params; var value = this.m_roundEventChoiceId; if(__map_reserved["roundEventChoiceId"] != null) { _this1.setReserved("roundEventChoiceId",value); } else { _this1.h["roundEventChoiceId"] = value; } } ,onChoiceRejected: function(e) { var _this = this.m_menus; var popup = __map_reserved["GameplayChoicePopup"] != null ? _this.getReserved("GameplayChoicePopup") : _this.h["GameplayChoicePopup"]; popup.hide(); } ,onChoicesHidden: function(e) { if(!this.m_dispatchedHideEvent) { var event = new game_events_TransitionEvent("Substate","RoundOutroSubstate","EventSubstate",null,this.m_params); Global.event.dispatchEvent(event); this.m_dispatchedHideEvent = true; } } ,onChoicesShown: function(e) { if(!this.m_dispatchedShowEvent) { var event = new game_events_TransitionEvent("Transition complete","EventSubstate",null); Global.event.dispatchEvent(event); this.m_dispatchedShowEvent = true; } } ,onSocialScrollComplete: function(e) { this.showCardMenus(this.m_storyId,this.m_region,this.m_roundId); } ,__class__: game_states_gameplay_EventSubstate }); var game_states_gameplay_GameplayPopupButton = $hxClasses["game.states.gameplay.GameplayPopupButton"] = { __ename__ : ["game","states","gameplay","GameplayPopupButton"], __constructs__ : ["ACCEPT","REJECT"] }; game_states_gameplay_GameplayPopupButton.ACCEPT = ["ACCEPT",0]; game_states_gameplay_GameplayPopupButton.ACCEPT.toString = $estr; game_states_gameplay_GameplayPopupButton.ACCEPT.__enum__ = game_states_gameplay_GameplayPopupButton; game_states_gameplay_GameplayPopupButton.REJECT = ["REJECT",1]; game_states_gameplay_GameplayPopupButton.REJECT.toString = $estr; game_states_gameplay_GameplayPopupButton.REJECT.__enum__ = game_states_gameplay_GameplayPopupButton; game_states_gameplay_GameplayPopupButton.__empty_constructs__ = [game_states_gameplay_GameplayPopupButton.ACCEPT,game_states_gameplay_GameplayPopupButton.REJECT]; var game_states_gameplay_GameplayChoiceType = $hxClasses["game.states.gameplay.GameplayChoiceType"] = { __ename__ : ["game","states","gameplay","GameplayChoiceType"], __constructs__ : ["PREPARATION","EVENT"] }; game_states_gameplay_GameplayChoiceType.PREPARATION = ["PREPARATION",0]; game_states_gameplay_GameplayChoiceType.PREPARATION.toString = $estr; game_states_gameplay_GameplayChoiceType.PREPARATION.__enum__ = game_states_gameplay_GameplayChoiceType; game_states_gameplay_GameplayChoiceType.EVENT = ["EVENT",1]; game_states_gameplay_GameplayChoiceType.EVENT.toString = $estr; game_states_gameplay_GameplayChoiceType.EVENT.__enum__ = game_states_gameplay_GameplayChoiceType; game_states_gameplay_GameplayChoiceType.__empty_constructs__ = [game_states_gameplay_GameplayChoiceType.PREPARATION,game_states_gameplay_GameplayChoiceType.EVENT]; var game_states_gameplay_GameplayChoicePopup = function() { this.m_isShown = true; game_shared_ui_GameMenu.call(this,"GameplayChoicePopup"); this.hide(); this.m_impactIcons = []; var popup = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup != null) { this.m_onScreenPos = new openfl_geom_Point(popup.get_x(),popup.get_y()); } }; $hxClasses["game.states.gameplay.GameplayChoicePopup"] = game_states_gameplay_GameplayChoicePopup; game_states_gameplay_GameplayChoicePopup.__name__ = ["game","states","gameplay","GameplayChoicePopup"]; game_states_gameplay_GameplayChoicePopup.__super__ = game_shared_ui_GameMenu; game_states_gameplay_GameplayChoicePopup.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_cardId: null ,m_choiceIdx: null ,m_impactIcons: null ,m_isShown: null ,m_onScreenPos: null ,setChoiceId: function(choiceIdx) { this.m_choiceIdx = choiceIdx; } ,setTitle: function(title) { this.setTextInField("lbl_prep_header",title,true); } ,setDescription: function(description,type) { this.setTextInField("lbl_description",description,true); } ,setType: function(type) { var assetName; var visibleText; var invisibleText; switch(type[1]) { case 0: assetName = "2d/ui/panels/9patch-PrepPanel"; break; case 1: assetName = "2d/ui/panels/9patch-EventPanel"; break; } var backing = this.getChildAs("spr_backing",com_firstplayable_hxlib_display_OPSprite); var value = com_firstplayable_hxlib_loader_ResMan.get_instance().getImageData(assetName); backing.changeImageData(value); } ,setImpactIcons: function(resources) { this.clearIcons(); var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var type = _g1[_g]; ++_g; if((__map_reserved[type] != null ? resources.existsReserved(type) : resources.h.hasOwnProperty(type)) && (__map_reserved[type] != null ? resources.getReserved(type) : resources.h[type]) != null) { var icon = new game_shared_ui_ImpactIcon(); icon.setImpactType(type); icon.setImpactValue(__map_reserved[type] != null ? resources.getReserved(type) : resources.h[type]); icon.set_visible(true); this.m_impactIcons.push(icon); var ref = this.getChildByName("ref_effect" + this.m_impactIcons.length); var popup = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup != null) { popup.addChild(icon); icon.placeAtRef(ref); } } } if(this.m_impactIcons.length == 0) { var icon1 = new game_shared_ui_ImpactIcon(); icon1.setImpactType("None"); icon1.set_visible(true); this.m_impactIcons.push(icon1); var ref1 = this.getChildByName("ref_effect" + 1); var popup1 = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup1 != null) { popup1.addChild(icon1); icon1.placeAtRef(ref1); } } this.centerImpactIcons(); } ,centerImpactIcons: function() { if(this.m_impactIcons == null) { return; } var numIcons = this.m_impactIcons.length; if(numIcons == 0) { return; } var backing = this.getChildAs("spr_backing",com_firstplayable_hxlib_display_OPSprite); var midpoint = backing.get_x() + backing.get_width() / 2; var sign = 1; var offset = 0; var divisor = 1; if(numIcons % 2 == 0) { offset = 1; divisor = 2; } var _g1 = 0; var _g = numIcons; while(_g1 < _g) { var idx = _g1++; var icon = this.m_impactIcons[idx]; icon.set_x(midpoint + icon.get_width() / divisor * Math.ceil((idx + offset) / 2) * sign); sign *= -1; } } ,clearIcons: function() { if(this.m_impactIcons == null) { return; } var _g = 0; var _g1 = this.m_impactIcons; while(_g < _g1.length) { var icon = _g1[_g]; ++_g; icon.parent.removeChild(icon); } this.m_impactIcons = []; } ,getIconPositions: function() { if(this.m_impactIcons == null) { return []; } var positions = []; var _g = 0; var _g1 = this.m_impactIcons; while(_g < _g1.length) { var icon = _g1[_g]; ++_g; positions.push(new openfl_geom_Point(icon.get_x(),icon.get_y())); } return positions; } ,getIconTypes: function() { var types = []; var _g = 0; var _g1 = this.m_impactIcons; while(_g < _g1.length) { var icon = _g1[_g]; ++_g; types.push(icon.type); } return types; } ,onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); if(!this.m_isShown) { return; } var id = Type.createEnumIndex(game_states_gameplay_GameplayPopupButton,caller.id); switch(id[1]) { case 0: this.onAcceptButtonPress(); break; case 1: this.onRejectButtonPress(); break; } } ,onAcceptButtonPress: function() { var event = new game_events_GameplayEvent("GAMEPLAY_CHOICE_ACCEPTED",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,onRejectButtonPress: function() { var event = new game_events_GameplayEvent("GAMEPLAY_CHOICE_REJECTED",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,show: function(animate) { if(animate == null) { animate = true; } var _gthis = this; if(this.m_isShown || this.get_visible()) { return; } this.set_visible(true); var popup = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup != null) { popup.set_y(-popup.get_height()); motion_Actuate.tween(popup,0.2,{ y : this.m_onScreenPos.y}).ease(motion_easing_Quad.get_easeInOut()).onComplete(function() { _gthis.m_isShown = true; }); } } ,hide: function(animate) { if(animate == null) { animate = true; } if(!this.m_isShown) { return; } this.m_isShown = false; this.set_visible(false); } ,rescale: function(type) { var backing = this.getChildAs("spr_backing",com_firstplayable_hxlib_display_OPSprite); var acceptButton = this.getButtonById(game_states_gameplay_GameplayPopupButton.ACCEPT[1]); var rejectButton = this.getButtonById(game_states_gameplay_GameplayPopupButton.REJECT[1]); var buttonHeight = acceptButton.get_height(); var titleHeight = this.getChildAs("lbl_prep_header",openfl_text_TextField).get_textHeight(); var iconHeight = this.getChildAs("ref_effect" + 1,com_firstplayable_hxlib_display_OPSprite).get_height(); var contentHeight = this.getChildAs("lbl_description",openfl_text_TextField).get_textHeight() + 10; var text = this.getChildAs("lbl_description",openfl_text_TextField); text.set_autoSize(2); text.set_height(contentHeight); var newHeight = buttonHeight + titleHeight + contentHeight + iconHeight + 150; var baseHeight = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage("2d/ui/panels/9patch-PrepPanel").get_height(); var dScale = newHeight / baseHeight; backing.set_scaleY(dScale); acceptButton.set_y(backing.get_y() + newHeight - buttonHeight - 20); rejectButton.set_y(backing.get_y() + newHeight - buttonHeight - 20); } ,__class__: game_states_gameplay_GameplayChoicePopup }); var game_states_gameplay_GameplayHudMenu = function() { game_shared_ui_GameMenu.call(this,"GameHudMenu"); game_states_gameplay_GameplayHudMenu.BACKING_BASE_ALPHA = this.getChildAs("spr_fishing_backing",com_firstplayable_hxlib_display_OPSprite).get_alpha(); this.m_hudIcons = []; this.m_previousValues = new haxe_ds_StringMap(); this.m_currentValues = new haxe_ds_StringMap(); }; $hxClasses["game.states.gameplay.GameplayHudMenu"] = game_states_gameplay_GameplayHudMenu; game_states_gameplay_GameplayHudMenu.__name__ = ["game","states","gameplay","GameplayHudMenu"]; game_states_gameplay_GameplayHudMenu.__super__ = game_shared_ui_GameMenu; game_states_gameplay_GameplayHudMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_hudIcons: null ,m_previousValues: null ,m_currentValues: null ,enableIcons: function() { var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var resource = _g1[_g]; ++_g; var group; switch(resource) { case "Fishing": group = this.getChildAs("pnl_fishing",openfl_display_DisplayObjectContainer); break; case "Resilience": group = this.getChildAs("pnl_resilience",openfl_display_DisplayObjectContainer); break; case "Services": group = this.getChildAs("pnl_services",openfl_display_DisplayObjectContainer); break; case "Social": group = this.getChildAs("pnl_social",openfl_display_DisplayObjectContainer); break; case "Tourism": group = this.getChildAs("pnl_tourism",openfl_display_DisplayObjectContainer); break; case "Trade": group = this.getChildAs("pnl_trade",openfl_display_DisplayObjectContainer); break; default: group = null; } if(group != null) { group.addEventListener("mouseDown",$bind(this,this.onIconTouched)); group.mouseEnabled = true; group.mouseChildren = true; } } } ,disableIcons: function() { var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var resource = _g1[_g]; ++_g; var group; switch(resource) { case "Fishing": group = this.getChildAs("pnl_fishing",openfl_display_DisplayObjectContainer); break; case "Resilience": group = this.getChildAs("pnl_resilience",openfl_display_DisplayObjectContainer); break; case "Services": group = this.getChildAs("pnl_services",openfl_display_DisplayObjectContainer); break; case "Social": group = this.getChildAs("pnl_social",openfl_display_DisplayObjectContainer); break; case "Tourism": group = this.getChildAs("pnl_tourism",openfl_display_DisplayObjectContainer); break; case "Trade": group = this.getChildAs("pnl_trade",openfl_display_DisplayObjectContainer); break; default: group = null; } if(group != null) { group.removeEventListener("mouseDown",$bind(this,this.onIconTouched)); group.mouseEnabled = false; group.mouseChildren = false; } } } ,getAvailableHudIcon: function() { var _g1 = 0; var _g = this.m_hudIcons.length; while(_g1 < _g) { var i = _g1++; var icon = this.m_hudIcons[i]; if(!icon.get_visible()) { HxOverrides.remove(this.m_hudIcons,icon); icon.set_scaleX(icon.set_scaleY(1)); icon.set_alpha(1); icon.set_visible(true); return icon; } } var icon1 = new game_shared_ui_ImpactIcon(); icon1.hideImpactValue(); return icon1; } ,setResources: function(resources,animate) { if(animate == null) { animate = false; } var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var type = _g1[_g]; ++_g; var this1 = this.m_previousValues; var _this = this.m_currentValues; var v = __map_reserved[type] != null ? _this.getReserved(type) : _this.h[type]; var _this1 = this1; if(__map_reserved[type] != null) { _this1.setReserved(type,v); } else { _this1.h[type] = v; } } this.m_currentValues = resources; var _g2 = 0; var _g11 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g2 < _g11.length) { var type1 = _g11[_g2]; ++_g2; if(__map_reserved[type1] != null ? resources.existsReserved(type1) : resources.h.hasOwnProperty(type1)) { var value = __map_reserved[type1] != null ? resources.getReserved(type1) : resources.h[type1]; switch(type1) { case "Fishing": this.setResourceValue("lbl_fishing","spr_fishing",value,animate); break; case "Resilience": this.setResourceValue("lbl_resilience","spr_resilience",value,animate); break; case "Services": this.setResourceValue("lbl_services","spr_services",value,animate); break; case "Social": this.setResourceValue("lbl_social","spr_social",value,animate); break; case "Tourism": this.setResourceValue("lbl_tourism","spr_tourism",value,animate); break; case "Trade": this.setResourceValue("lbl_trade","spr_trade",value,animate); break; default: com_firstplayable_hxlib_Debug.log("Attempted to set resource " + type1 + " but that type isn't supported!",null,{ fileName : "GameplayHudMenu.hx", lineNumber : 190, className : "game.states.gameplay.GameplayHudMenu", methodName : "setResources"}); } } } } ,moveIconToHud: function(type,startX,startY,targetType) { com_firstplayable_hxlib_audio_WebAudio.get_instance().play("sfx_done",null,1); if(targetType == null) { targetType = type; } var tarSprite = null; var tarPanel = null; if(targetType != null) { switch(targetType) { case "Fishing": tarSprite = this.getChildAs("spr_fishing",com_firstplayable_hxlib_display_OPSprite); tarPanel = this.getChildAs("pnl_fishing",openfl_display_DisplayObjectContainer); break; case "Resilience": tarSprite = this.getChildAs("spr_resilience",com_firstplayable_hxlib_display_OPSprite); tarPanel = this.getChildAs("pnl_resilience",openfl_display_DisplayObjectContainer); break; case "Services": tarSprite = this.getChildAs("spr_services",com_firstplayable_hxlib_display_OPSprite); tarPanel = this.getChildAs("pnl_services",openfl_display_DisplayObjectContainer); break; case "Social": tarSprite = this.getChildAs("spr_social",com_firstplayable_hxlib_display_OPSprite); tarPanel = this.getChildAs("pnl_social",openfl_display_DisplayObjectContainer); break; case "Tourism": tarSprite = this.getChildAs("spr_tourism",com_firstplayable_hxlib_display_OPSprite); tarPanel = this.getChildAs("pnl_tourism",openfl_display_DisplayObjectContainer); break; case "Trade": tarSprite = this.getChildAs("spr_trade",com_firstplayable_hxlib_display_OPSprite); tarPanel = this.getChildAs("pnl_trade",openfl_display_DisplayObjectContainer); break; default: } } var tarPos = new openfl_geom_Point(tarSprite.get_x() + tarPanel.get_x() + this.get_x(),tarSprite.get_y() + tarPanel.get_y() + this.get_y()); var icon = this.getAvailableHudIcon(); icon.setImpactType(type); icon.set_x(startX); icon.set_y(startY); this.addChild(icon); motion_Actuate.tween(icon,1.5,{ x : tarPos.x, y : tarPos.y, alpha : 0}).ease(motion_easing_Quad.get_easeIn()).onComplete($bind(this,this.onIconFlyComplete),[targetType]); } ,moveResilienceToStat: function(targetStat) { var _gthis = this; this.rockIcon("Resilience"); this.setIconBacking(targetStat,true); motion_Actuate.timer(0.25).onComplete(function() { var resilienceObj = _gthis.getChildAs("pnl_resilience",openfl_display_DisplayObjectContainer); var tmp = resilienceObj.get_x(); var tmp1 = resilienceObj.get_y(); _gthis.moveIconToHud("Resilience",tmp,tmp1,targetStat); }); } ,setIconBacking: function(type,depleted) { if(type == "Resilience" || type == null) { return; } var backing; switch(type) { case "Fishing": backing = this.getChildAs("spr_fishing_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Services": backing = this.getChildAs("spr_services_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Social": backing = this.getChildAs("spr_social_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Tourism": backing = this.getChildAs("spr_tourism_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Trade": backing = this.getChildAs("spr_tourism_backing",com_firstplayable_hxlib_display_OPSprite); break; default: backing = null; } if(backing == null) { return; } if(depleted) { backing.set_alpha(0.5); } else { backing.set_alpha(game_states_gameplay_GameplayHudMenu.BACKING_BASE_ALPHA); } } ,isDepleted: function(type) { if(type == "Resilience" || type == null) { return false; } var backing; switch(type) { case "Fishing": backing = this.getChildAs("spr_fishing_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Services": backing = this.getChildAs("spr_services_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Social": backing = this.getChildAs("spr_social_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Tourism": backing = this.getChildAs("spr_tourism_backing",com_firstplayable_hxlib_display_OPSprite); break; case "Trade": backing = this.getChildAs("spr_tourism_backing",com_firstplayable_hxlib_display_OPSprite); break; default: backing = null; } if(backing == null) { return false; } return backing.get_alpha() < 1; } ,rockIcon: function(type) { var panel; switch(type) { case "Fishing": panel = this.getChildAs("pnl_fishing",openfl_display_DisplayObjectContainer); break; case "Resilience": panel = this.getChildAs("pnl_resilience",openfl_display_DisplayObjectContainer); break; case "Services": panel = this.getChildAs("pnl_services",openfl_display_DisplayObjectContainer); break; case "Social": panel = this.getChildAs("pnl_social",openfl_display_DisplayObjectContainer); break; case "Tourism": panel = this.getChildAs("pnl_tourism",openfl_display_DisplayObjectContainer); break; case "Trade": panel = this.getChildAs("pnl_trade",openfl_display_DisplayObjectContainer); break; default: panel = null; } if(panel == null) { return; } var initX = panel.get_x(); var initY = panel.get_y(); var initRotation = panel.get_rotation(); var rockLeft = motion_easing_Quad.get_easeInOut(); var rockLeft1 = { target : panel, duration : 0.25, properties : { rotation : initRotation - 10}, ease : rockLeft}; var rockRight = motion_easing_Quad.get_easeInOut(); var rockRight1 = { target : panel, duration : 0.25, properties : { rotation : initRotation + 10}, ease : rockRight}; var rockMiddle = motion_easing_Quad.get_easeInOut(); var rockMiddle1 = { target : panel, duration : 0.125, properties : { rotation : initRotation}, ease : rockMiddle}; var chain = com_firstplayable_hxlib_display_anim_ActuateChain.get_create(); chain.tween([rockLeft1,rockRight1,rockLeft1,rockRight1,rockMiddle1]); } ,setResourceValue: function(lblName,iconName,value,animate) { var lbl = this.getChildAs(lblName,openfl_text_TextField); if(lbl != null) { if(animate) { lbl.set_text(value == null ? "null" : "" + value); } else { lbl.set_text(value == null ? "null" : "" + value); } } if(animate) { var icon = this.getChildAs(iconName,com_firstplayable_hxlib_display_OPSprite); var tmp = icon != null; } } ,onIconFlyComplete: function(type) { var event; if(this.isDepleted(type)) { this.setIconBacking(type,false); event = new game_events_GameUiEvent("HUD_REPLENISH_COMPLETE"); event.resource = type; var currentValues = new haxe_ds_StringMap(); var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var type1 = _g1[_g]; ++_g; var _this = this.m_currentValues; var value = __map_reserved[type1] != null ? _this.getReserved(type1) : _this.h[type1]; if(__map_reserved[type1] != null) { currentValues.setReserved(type1,value); } else { currentValues.h[type1] = value; } } var prevValues = new haxe_ds_StringMap(); var _g2 = 0; var _g11 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g2 < _g11.length) { var type2 = _g11[_g2]; ++_g2; var _this1 = this.m_previousValues; var value1 = __map_reserved[type2] != null ? _this1.getReserved(type2) : _this1.h[type2]; if(__map_reserved[type2] != null) { prevValues.setReserved(type2,value1); } else { prevValues.h[type2] = value1; } } event.resourceValues = currentValues; event.prevResourceValues = prevValues; } else { event = new game_events_GameUiEvent("HUD_ICON_MOVE_COMPLETE"); } Global.event.dispatchEvent(event); } ,onIconTouched: function(e) { var iconGroup = e.target; var iconType = iconGroup.get_name().split("_")[1].toUpperCase(); if(iconType != null) { var iconIdx = game_defs__$ResourceType_ResourceType_$Impl_$.getResourceIdx(iconType); var event = new game_events_GameplayEvent("ICON_CLICKED",iconIdx); Global.event.dispatchEvent(event); } } ,clear: function() { game_shared_ui_GameMenu.prototype.clear.call(this); this.disableIcons(); } ,__class__: game_states_gameplay_GameplayHudMenu }); var game_states_gameplay_GameStageType = $hxClasses["game.states.gameplay.GameStageType"] = { __ename__ : ["game","states","gameplay","GameStageType"], __constructs__ : ["PREPARATION","EVENT"] }; game_states_gameplay_GameStageType.PREPARATION = ["PREPARATION",0]; game_states_gameplay_GameStageType.PREPARATION.toString = $estr; game_states_gameplay_GameStageType.PREPARATION.__enum__ = game_states_gameplay_GameStageType; game_states_gameplay_GameStageType.EVENT = ["EVENT",1]; game_states_gameplay_GameStageType.EVENT.toString = $estr; game_states_gameplay_GameStageType.EVENT.__enum__ = game_states_gameplay_GameStageType; game_states_gameplay_GameStageType.__empty_constructs__ = [game_states_gameplay_GameStageType.PREPARATION,game_states_gameplay_GameStageType.EVENT]; var game_states_gameplay_GameplayMenu = function() { game_shared_ui_GameMenu.call(this,"GameplayMenu"); }; $hxClasses["game.states.gameplay.GameplayMenu"] = game_states_gameplay_GameplayMenu; game_states_gameplay_GameplayMenu.__name__ = ["game","states","gameplay","GameplayMenu"]; game_states_gameplay_GameplayMenu.__super__ = game_shared_ui_GameMenu; game_states_gameplay_GameplayMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ setImage: function(imageName,type,animate) { if(animate == null) { animate = false; } var visibleSprite = null; var invisibleSprite = null; var imagePath = null; switch(type[1]) { case 0: visibleSprite = this.getChildAs("ref_prepScenarioImg",com_firstplayable_hxlib_display_OPSprite); invisibleSprite = this.getChildAs("ref_eventScenarioImg",com_firstplayable_hxlib_display_OPSprite); imagePath = "2d/prep/"; break; case 1: visibleSprite = this.getChildAs("ref_eventScenarioImg",com_firstplayable_hxlib_display_OPSprite); invisibleSprite = this.getChildAs("ref_prepScenarioImg",com_firstplayable_hxlib_display_OPSprite); imagePath = "2d/events/"; break; } var newImg = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(imagePath + imageName); visibleSprite.changeImage(newImg); visibleSprite.set_visible(true); invisibleSprite.set_visible(true); if(animate) { visibleSprite.set_alpha(0); motion_Actuate.tween(visibleSprite,2,{ alpha : 1}); motion_Actuate.tween(invisibleSprite,2,{ alpha : 0}); } else { invisibleSprite.set_visible(false); } } ,setDescriptionText: function(text) { this.setTextInField("lbl_news_text",text,true); } ,setTitleText: function(text) { this.setTextInField("lbl_news_title",text,true); } ,setTipText: function(text) { this.setTextInField("lbl_hint",text,true); } ,setStageType: function(type) { var assetName; switch(type[1]) { case 0: assetName = "2d/ui/panels/9patch-PrepHalfBanner"; break; case 1: assetName = "2d/ui/panels/9patch-EventHalfBanner"; break; } var backing = this.getChildAs("spr_half_banner",com_firstplayable_hxlib_display_OPSprite); var value = com_firstplayable_hxlib_loader_ResMan.get_instance().getImageData(assetName); backing.changeImageData(value); } ,rescaleNewsText: function() { var text = this.getChildAs("lbl_news_text",openfl_text_TextField); var title = this.getChildAs("lbl_news_title",openfl_text_TextField); var backing = this.getChildAs("spr_overlay",com_firstplayable_hxlib_display_OPSprite); var textHeight = text.get_textHeight() + title.get_textHeight() + 50; var baseHeight = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage("2d/ui/coverSpriteBlack").get_height(); var newScale = textHeight / baseHeight; backing.set_scaleY(newScale); var hudBacking = this.getChildAs("spr_hud_backing_left",com_firstplayable_hxlib_display_OPSprite); var hudBottom = hudBacking.get_y() + hudBacking.get_height(); var newTextPos = hudBottom - text.get_textHeight() - 50; var newTitlePos = newTextPos - title.get_textHeight(); var newBackingPos = hudBottom - backing.get_height(); text.set_y(newTextPos); title.set_y(newTitlePos); backing.set_y(newBackingPos); } ,getCardArea: function() { var hint = this.getChildByName("pnl_hint"); return 1850 - hint.get_width(); } ,__class__: game_states_gameplay_GameplayMenu }); var game_states_gameplay_GameplayState = function() { this.m_cheatTapsTriggered = 0; game_states_AcadiaGameState.call(this,game_defs_GameState.GAMEPLAY); }; $hxClasses["game.states.gameplay.GameplayState"] = game_states_gameplay_GameplayState; game_states_gameplay_GameplayState.__name__ = ["game","states","gameplay","GameplayState"]; game_states_gameplay_GameplayState.__super__ = game_states_AcadiaGameState; game_states_gameplay_GameplayState.prototype = $extend(game_states_AcadiaGameState.prototype,{ m_substateManager: null ,m_cheatTapsTriggered: null ,m_cardIdx: null ,m_cardId: null ,m_storyId: null ,m_roundId: null ,m_region: null ,m_depletedResource: null ,m_stats: null ,m_resourceChangeQueue: null ,m_params: null ,m_previousSubstate: null ,m_reslienceBeforeDepletion: null ,init: function() { game_states_AcadiaGameState.prototype.init.call(this); } ,enter: function(p) { game_states_AcadiaGameState.prototype.enter.call(this,p); this.m_resourceChangeQueue = []; this.m_roundId = 0; this.m_storyId = 0; this.m_region = ""; this.m_cardIdx = -1; this.m_cardId = null; this.m_stats = new haxe_ds_StringMap(); if(p.args != null && p.args.length > 0) { this.m_storyId = p.args[0]; this.m_region = p.args[1]; } this.initMenus(); this.initSubstates(); this.initStats(this.m_storyId,this.m_region); var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["GameplayMenu"] != null ? _this.getReserved("GameplayMenu") : _this.h["GameplayMenu"]); var _this1 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["PreparationOptionOne"] != null ? _this1.getReserved("PreparationOptionOne") : _this1.h["PreparationOptionOne"]); var _this2 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["PreparationOptionTwo"] != null ? _this2.getReserved("PreparationOptionTwo") : _this2.h["PreparationOptionTwo"]); var _this3 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["EventOptionOne"] != null ? _this3.getReserved("EventOptionOne") : _this3.h["EventOptionOne"]); var _this4 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["EventOptionTwo"] != null ? _this4.getReserved("EventOptionTwo") : _this4.h["EventOptionTwo"]); var _this5 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["EventOptionThree"] != null ? _this5.getReserved("EventOptionThree") : _this5.h["EventOptionThree"]); var _this6 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["GameHudMenu"] != null ? _this6.getReserved("GameHudMenu") : _this6.h["GameHudMenu"]); var _this7 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["TimelineMenu"] != null ? _this7.getReserved("TimelineMenu") : _this7.h["TimelineMenu"]); var _this8 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["GameplayChoicePopup"] != null ? _this8.getReserved("GameplayChoicePopup") : _this8.h["GameplayChoicePopup"]); var _this9 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["StakeholderPopup"] != null ? _this9.getReserved("StakeholderPopup") : _this9.h["StakeholderPopup"]); var _this10 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["TimelineMenu"] != null ? _this10.getReserved("TimelineMenu") : _this10.h["TimelineMenu"]); var _this11 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["CommunityPopup"] != null ? _this11.getReserved("CommunityPopup") : _this11.h["CommunityPopup"]); com_firstplayable_hxlib_app_Application.app.stage.addEventListener("click",$bind(this,this.checkForCheatClick)); var params = new haxe_ds_StringMap(); var value = this.m_storyId; if(__map_reserved["storyId"] != null) { params.setReserved("storyId",value); } else { params.h["storyId"] = value; } if(__map_reserved["roundId"] != null) { params.setReserved("roundId",0); } else { params.h["roundId"] = 0; } if(__map_reserved["RoundsComplete"] != null) { params.setReserved("RoundsComplete",0); } else { params.h["RoundsComplete"] = 0; } var value1 = this.m_region; if(__map_reserved["region"] != null) { params.setReserved("region",value1); } else { params.h["region"] = value1; } this.m_substateManager.setState("RoundIntroSubstate",params); } ,exit: function() { game_states_AcadiaGameState.prototype.exit.call(this); com_firstplayable_hxlib_app_Application.app.stage.addEventListener("click",$bind(this,this.checkForCheatClick)); this.clearMenus(); this.m_substateManager.clearStates(); this.m_substateManager = null; this.m_stats = null; this.m_params = null; this.m_resourceChangeQueue = null; this.dispose(); } ,dispose: function() { game_states_AcadiaGameState.prototype.dispose.call(this); } ,initMenus: function() { this.m_menus = new haxe_ds_StringMap(); var gameplayMenu = new game_states_gameplay_GameplayMenu(); var _this = this.m_menus; if(__map_reserved["GameplayMenu"] != null) { _this.setReserved("GameplayMenu",gameplayMenu); } else { _this.h["GameplayMenu"] = gameplayMenu; } var gameplayHud = new game_states_gameplay_GameplayHudMenu(); var hudRef = gameplayMenu.getChildAs("ref_hud",com_firstplayable_hxlib_display_OPSprite); if(hudRef != null) { gameplayHud.set_x(hudRef.get_x()); gameplayHud.set_y(hudRef.get_y()); hudRef.set_visible(false); } gameplayHud.enableIcons(); var _this1 = this.m_menus; if(__map_reserved["GameHudMenu"] != null) { _this1.setReserved("GameHudMenu",gameplayHud); } else { _this1.h["GameHudMenu"] = gameplayHud; } var timelineMenu = new game_states_gameplay_GameplayTimelineMenu(this.m_storyId,this.m_region); var timelineRef = gameplayMenu.getChildAs("ref_timeline",com_firstplayable_hxlib_display_OPSprite); if(timelineRef != null) { timelineMenu.set_x(timelineRef.get_x()); timelineMenu.set_y(timelineRef.get_y()); timelineRef.set_visible(false); } var _this2 = this.m_menus; if(__map_reserved["TimelineMenu"] != null) { _this2.setReserved("TimelineMenu",timelineMenu); } else { _this2.h["TimelineMenu"] = timelineMenu; } var socialFeedMenu = new game_states_gameplay_SocialFeedMenu(); var socialFeedRef = gameplayMenu.getChildAs("ref_socialFeed",com_firstplayable_hxlib_display_OPSprite); if(socialFeedRef != null) { socialFeedMenu.set_x(socialFeedRef.get_x()); socialFeedMenu.set_y(socialFeedRef.get_y()); gameplayMenu.addChildAt(socialFeedMenu,gameplayMenu.getChildIndex(socialFeedRef)); socialFeedRef.set_visible(false); } var _this3 = this.m_menus; if(__map_reserved["SocialFeedMenu"] != null) { _this3.setReserved("SocialFeedMenu",socialFeedMenu); } else { _this3.h["SocialFeedMenu"] = socialFeedMenu; } var firstChoiceRefPrep = gameplayMenu.getChildAs("ref_prep_choice1",com_firstplayable_hxlib_display_OPSprite); var secondChoiceRefPrep = gameplayMenu.getChildAs("ref_prep_choice2",com_firstplayable_hxlib_display_OPSprite); var firstPrepChoice = new game_states_gameplay_PreparationChoiceMenu(); if(firstChoiceRefPrep != null) { firstPrepChoice.set_x(firstChoiceRefPrep.get_x()); firstPrepChoice.set_y(firstChoiceRefPrep.get_y()); firstPrepChoice.setTargetPosition(firstPrepChoice.get_x(),firstPrepChoice.get_y()); firstPrepChoice.hide(false); firstChoiceRefPrep.set_visible(false); } var _this4 = this.m_menus; if(__map_reserved["PreparationOptionOne"] != null) { _this4.setReserved("PreparationOptionOne",firstPrepChoice); } else { _this4.h["PreparationOptionOne"] = firstPrepChoice; } var secondPrepChoice = new game_states_gameplay_PreparationChoiceMenu(); if(secondPrepChoice != null) { secondPrepChoice.set_x(secondChoiceRefPrep.get_x()); secondPrepChoice.set_y(secondChoiceRefPrep.get_y()); secondPrepChoice.setTargetPosition(secondPrepChoice.get_x(),secondPrepChoice.get_y()); secondPrepChoice.hide(false); secondPrepChoice.set_visible(false); } var _this5 = this.m_menus; if(__map_reserved["PreparationOptionTwo"] != null) { _this5.setReserved("PreparationOptionTwo",secondPrepChoice); } else { _this5.h["PreparationOptionTwo"] = secondPrepChoice; } var firstChoiceRefEvent = gameplayMenu.getChildAs("ref_event_choice1",com_firstplayable_hxlib_display_OPSprite); var secondChoiceRefEvent = gameplayMenu.getChildAs("ref_event_choice2",com_firstplayable_hxlib_display_OPSprite); var thirdChoiceRefEvent = gameplayMenu.getChildAs("ref_event_choice3",com_firstplayable_hxlib_display_OPSprite); var firstEventChoice = new game_states_gameplay_EventChoiceMenu(); if(firstChoiceRefEvent != null) { firstEventChoice.set_x(firstChoiceRefEvent.get_x()); firstEventChoice.set_y(firstChoiceRefEvent.get_y()); firstEventChoice.setTargetPosition(firstEventChoice.get_x(),firstEventChoice.get_y()); firstEventChoice.hide(false); firstChoiceRefEvent.set_visible(false); } var _this6 = this.m_menus; if(__map_reserved["EventOptionOne"] != null) { _this6.setReserved("EventOptionOne",firstEventChoice); } else { _this6.h["EventOptionOne"] = firstEventChoice; } var secondEventChoice = new game_states_gameplay_EventChoiceMenu(); if(secondChoiceRefEvent != null) { secondEventChoice.set_x(secondChoiceRefEvent.get_x()); secondEventChoice.set_y(secondChoiceRefEvent.get_y()); secondEventChoice.setTargetPosition(secondEventChoice.get_x(),secondEventChoice.get_y()); secondEventChoice.hide(false); secondChoiceRefEvent.set_visible(false); } var _this7 = this.m_menus; if(__map_reserved["EventOptionTwo"] != null) { _this7.setReserved("EventOptionTwo",secondEventChoice); } else { _this7.h["EventOptionTwo"] = secondEventChoice; } var thirdEventChoice = new game_states_gameplay_EventChoiceMenu(); if(thirdChoiceRefEvent != null) { thirdEventChoice.set_x(thirdChoiceRefEvent.get_x()); thirdEventChoice.set_y(thirdChoiceRefEvent.get_y()); thirdEventChoice.setTargetPosition(thirdEventChoice.get_x(),thirdEventChoice.get_y()); thirdEventChoice.hide(false); thirdChoiceRefEvent.set_visible(false); } var _this8 = this.m_menus; if(__map_reserved["EventOptionThree"] != null) { _this8.setReserved("EventOptionThree",thirdEventChoice); } else { _this8.h["EventOptionThree"] = thirdEventChoice; } var this1 = this.m_menus; var value = new game_states_gameplay_GameplayChoicePopup(); var _this9 = this1; if(__map_reserved["GameplayChoicePopup"] != null) { _this9.setReserved("GameplayChoicePopup",value); } else { _this9.h["GameplayChoicePopup"] = value; } var this2 = this.m_menus; var value1 = new game_states_gameplay_StakeholderPopup(); var _this10 = this2; if(__map_reserved["StakeholderPopup"] != null) { _this10.setReserved("StakeholderPopup",value1); } else { _this10.h["StakeholderPopup"] = value1; } var this3 = this.m_menus; var value2 = new game_states_gameplay_CommunityPopup(); var _this11 = this3; if(__map_reserved["CommunityPopup"] != null) { _this11.setReserved("CommunityPopup",value2); } else { _this11.h["CommunityPopup"] = value2; } } ,initSubstates: function() { this.m_substateManager = new game_states_GameStateMachine(); this.m_substateManager.addState(new game_states_gameplay_RoundIntroSubstate(this.m_menus)); this.m_substateManager.addState(new game_states_gameplay_PreparationSubstate(this.m_menus)); this.m_substateManager.addState(new game_states_gameplay_EventSubstate(this.m_menus)); this.m_substateManager.addState(new game_states_gameplay_RoundOutroSubstate(this.m_menus)); this.m_substateManager.addState(new game_states_gameplay_CommunitySubstate(this.m_menus)); } ,initStats: function(storyIdx,region) { this.m_stats = game_data_GameCMS.getStartingLevelStats(storyIdx,region); var _this = this.m_menus; var hud = __map_reserved["GameHudMenu"] != null ? _this.getReserved("GameHudMenu") : _this.h["GameHudMenu"]; hud.setResources(this.m_stats,false); } ,addListeners: function() { game_states_AcadiaGameState.prototype.addListeners.call(this); Global.event.addEventListener("Substate",$bind(this,this.onSubstateTransition)); Global.event.addEventListener("Transition complete",$bind(this,this.onTransitionComplete)); Global.event.addEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onChoiceAccepted)); Global.event.addEventListener("HUD_ICON_MOVE_COMPLETE",$bind(this,this.onIconsHitHud)); Global.event.addEventListener("HUD_REPLENISH_COMPLETE",$bind(this,this.onReplenishComplete)); Global.event.addEventListener("ICON_CLICKED",$bind(this,this.onIconClicked)); } ,removeListeners: function() { game_states_AcadiaGameState.prototype.removeListeners.call(this); Global.event.removeEventListener("Substate",$bind(this,this.onSubstateTransition)); Global.event.removeEventListener("Transition complete",$bind(this,this.onTransitionComplete)); Global.event.removeEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onChoiceAccepted)); Global.event.removeEventListener("HUD_ICON_MOVE_COMPLETE",$bind(this,this.onIconsHitHud)); Global.event.removeEventListener("HUD_REPLENISH_COMPLETE",$bind(this,this.onReplenishComplete)); Global.event.removeEventListener("ICON_CLICKED",$bind(this,this.onIconClicked)); } ,onSubstateTransition: function(e) { if(e.toStateId == "GAME_OVER") { this.goToResults(false); } else { this.m_previousSubstate = e.fromStateId; this.goToSubstate(e.toStateId,e.fromStateId,e.params); } } ,onChoiceAccepted: function(e) { var _this = this.m_menus; var hud = __map_reserved["GameHudMenu"] != null ? _this.getReserved("GameHudMenu") : _this.h["GameHudMenu"]; var _this1 = this.m_menus; var popup = __map_reserved["GameplayChoicePopup"] != null ? _this1.getReserved("GameplayChoicePopup") : _this1.h["GameplayChoicePopup"]; var currentSubstate = this.m_substateManager.getCurrentStateId(); var currentRound = game_data_GameCMS.getRoundData(this.m_storyId,this.m_region,this.m_roundId); var impacts = null; if(currentSubstate == "PreparationSubstate") { var selectedOption = currentRound.preparationChoices[e.choiceIdx]; impacts = selectedOption.choiceImpacts; var resourceVals = game_data_GameCMS.getResourceMapFromImpact(impacts); this.queueResourceChange(resourceVals); } else if(currentSubstate == "EventSubstate") { var selectedOption1 = currentRound.eventOptions[e.choiceIdx]; impacts = selectedOption1.optionImpacts; var resourceVals1 = game_data_GameCMS.getResourceMapFromImpact(impacts); this.queueResourceChange(resourceVals1); } if(this.haveResourceChanges()) { var _this2 = this.m_menus; var hud1 = __map_reserved["GameHudMenu"] != null ? _this2.getReserved("GameHudMenu") : _this2.h["GameHudMenu"]; var queuedStats = this.getNextResourceChange(); if(queuedStats != null) { var type = queuedStats.keys(); while(type.hasNext()) { var type1 = type.next(); if((__map_reserved[type1] != null ? queuedStats.getReserved(type1) : queuedStats.h[type1]) != null && (__map_reserved[type1] != null ? queuedStats.getReserved(type1) : queuedStats.h[type1]) != 0) { hud1.moveIconToHud(type1,824,560); } } } } } ,onIconClicked: function(e) { var iconIdx = e.choiceIdx; var iconType = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues()[iconIdx]; var _this = this.m_menus; var stakeholderPopup = __map_reserved["StakeholderPopup"] != null ? _this.getReserved("StakeholderPopup") : _this.h["StakeholderPopup"]; var titleId = "STAKEHOLDER_TITLE_" + Std.string(iconType).toUpperCase(); var rawTitle = game_data_GameCMS.getStringById(titleId); if(rawTitle != null) { var titleString = rawTitle.Content; stakeholderPopup.setTitle(titleString); } var descriptionId = "STAKEHOLDER_DESCRIPTION_" + Std.string(iconType).toUpperCase(); var rawDescription = game_data_GameCMS.getStringById(descriptionId); if(rawDescription != null) { var descriptionString = rawDescription.Content; stakeholderPopup.setDescription(descriptionString); } stakeholderPopup.setPortrait(iconType); var _this1 = this.m_stats; stakeholderPopup.setImpactIcon(iconType,__map_reserved[iconType] != null ? _this1.getReserved(iconType) : _this1.h[iconType]); stakeholderPopup.show(); } ,onIconsHitHud: function(e) { if(!this.haveResourceChanges()) { com_firstplayable_hxlib_Debug.log("No resource change queued on icon hit!",null,{ fileName : "GameplayState.hx", lineNumber : 463, className : "game.states.gameplay.GameplayState", methodName : "onIconsHitHud"}); return; } var _this = this.m_menus; var hud = __map_reserved["GameHudMenu"] != null ? _this.getReserved("GameHudMenu") : _this.h["GameHudMenu"]; var newStats = this.updatePlayerStats(this.getNextResourceChange()); hud.setResources(newStats); var oldStats = this.removeOldestResourceChange(); var hasDepleted = false; var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var type = _g1[_g]; ++_g; if(this.hasDepletedResource(type)) { this.replenishStat(type); hasDepleted = true; } } var isLastRound = this.m_roundId == -1; if(!hasDepleted && isLastRound) { var _this1 = this.m_stats; var key = "Resilience"; this.goToResults((__map_reserved[key] != null ? _this1.getReserved(key) : _this1.h[key]) > 0); } } ,onReplenishComplete: function(e) { var _this = this.m_menus; var hud = __map_reserved["GameHudMenu"] != null ? _this.getReserved("GameHudMenu") : _this.h["GameHudMenu"]; hud.setResources(this.m_stats); var _this1 = this.m_params; var value = this.m_reslienceBeforeDepletion; if(__map_reserved["PREV_RESILIENCE"] != null) { _this1.setReserved("PREV_RESILIENCE",value); } else { _this1.h["PREV_RESILIENCE"] = value; } var _this2 = this.m_stats; var key = "Resilience"; var _this3 = this.m_params; var value1 = __map_reserved[key] != null ? _this2.getReserved(key) : _this2.h[key]; if(__map_reserved["CURRENT_RESILIENCE"] != null) { _this3.setReserved("CURRENT_RESILIENCE",value1); } else { _this3.h["CURRENT_RESILIENCE"] = value1; } var isLastRound = this.m_roundId == -1; if(isLastRound) { var _this4 = this.m_stats; var key1 = "Resilience"; this.goToResults((__map_reserved[key1] != null ? _this4.getReserved(key1) : _this4.h[key1]) > 0); } else { var _this5 = this.m_stats; var key2 = "Resilience"; if((__map_reserved[key2] != null ? _this5.getReserved(key2) : _this5.h[key2]) < 0) { this.m_depletedResource = e.resource; } this.goToSubstate("CommunitySubstate",this.m_substateManager.getCurrentStateId(),this.m_params); } } ,updatePlayerStats: function(dStats) { var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var type = _g1[_g]; ++_g; var tmp; if(__map_reserved[type] != null ? dStats.existsReserved(type) : dStats.h.hasOwnProperty(type)) { var _this = this.m_stats; if(__map_reserved[type] != null) { tmp = _this.existsReserved(type); } else { tmp = _this.h.hasOwnProperty(type); } } else { tmp = false; } if(tmp) { var _g2 = type; var _g3 = this.m_stats; var v = (__map_reserved[_g2] != null ? _g3.getReserved(_g2) : _g3.h[_g2]) + (__map_reserved[type] != null ? dStats.getReserved(type) : dStats.h[type]); if(__map_reserved[_g2] != null) { _g3.setReserved(_g2,v); } else { _g3.h[_g2] = v; } } } var _this1 = this.m_stats; var key = "Resilience"; if((__map_reserved[key] != null ? _this1.getReserved(key) : _this1.h[key]) < 0) { var _this2 = this.m_stats; var key1 = "Resilience"; if(__map_reserved[key1] != null) { _this2.setReserved(key1,0); } else { _this2.h[key1] = 0; } } return this.m_stats; } ,getPlayerStats: function() { return this.m_stats; } ,getNextRound: function(params) { if(params == null || !(__map_reserved["roundPrepChoiceId"] != null ? params.existsReserved("roundPrepChoiceId") : params.h.hasOwnProperty("roundPrepChoiceId"))) { com_firstplayable_hxlib_Debug.logHelper("Could not continue to next round - invalid param data: " + params.toString(),com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameplayState.hx", lineNumber : 561, className : "game.states.gameplay.GameplayState", methodName : "getNextRound"}); } var prepSelection = __map_reserved["roundPrepChoiceId"] != null ? params.getReserved("roundPrepChoiceId") : params.h["roundPrepChoiceId"]; var currentRound = __map_reserved["roundId"] != null ? params.getReserved("roundId") : params.h["roundId"]; this.m_roundId = game_data_GameCMS.getNextRound(this.m_storyId,currentRound,this.m_region,prepSelection); return this.m_roundId; } ,replenishStat: function(type) { if(type == "Resilience" || type == "Social") { return; } var _this = this.m_stats; var key = "Resilience"; if((__map_reserved[key] != null ? _this.getReserved(key) : _this.h[key]) <= 0) { var _this1 = this.m_params; if(__map_reserved["PREV_RESILIENCE"] != null) { _this1.setReserved("PREV_RESILIENCE",0); } else { _this1.h["PREV_RESILIENCE"] = 0; } var _this2 = this.m_params; if(__map_reserved["CURRENT_RESILIENCE"] != null) { _this2.setReserved("CURRENT_RESILIENCE",-1); } else { _this2.h["CURRENT_RESILIENCE"] = -1; } this.m_depletedResource = type; this.goToSubstate("CommunitySubstate",this.m_substateManager.getCurrentStateId(),this.m_params); return; } com_firstplayable_hxlib_Debug.log(type + " has been depleted. Replenishing from resilience.",null,{ fileName : "GameplayState.hx", lineNumber : 597, className : "game.states.gameplay.GameplayState", methodName : "replenishStat"}); this.m_depletedResource = type; var _this3 = this.m_stats; var resilienceNeeded = Math.abs(__map_reserved[type] != null ? _this3.getReserved(type) : _this3.h[type]) + 1 | 0; var _this4 = this.m_stats; var key1 = "Resilience"; this.m_reslienceBeforeDepletion = __map_reserved[key1] != null ? _this4.getReserved(key1) : _this4.h[key1]; var _g = this.m_stats; var key2 = "Resilience"; var v = (__map_reserved[key2] != null ? _g.getReserved(key2) : _g.h[key2]) - resilienceNeeded; var key3 = "Resilience"; if(__map_reserved[key3] != null) { _g.setReserved(key3,v); } else { _g.h[key3] = v; } var _this5 = this.m_stats; if(__map_reserved[type] != null) { _this5.setReserved(type,1); } else { _this5.h[type] = 1; } var _this6 = this.m_menus; var hud = __map_reserved["GameHudMenu"] != null ? _this6.getReserved("GameHudMenu") : _this6.h["GameHudMenu"]; hud.moveResilienceToStat(type); } ,goToSubstate: function(to,from,params) { if(this.m_substateManager == null) { com_firstplayable_hxlib_Debug.logHelper("No substate manager!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameplayState.hx", lineNumber : 620, className : "game.states.gameplay.GameplayState", methodName : "goToSubstate"}); return; } if(from != null && this.m_substateManager.getCurrentStateId() != from) { return; } var goingToNextRound = to == "RoundIntroSubstate" && from == "RoundOutroSubstate"; if(goingToNextRound) { var nextRound = this.getNextRound(params); var hasReachedEnd = nextRound == -1; if(hasReachedEnd) { return; } var roundsComplete = __map_reserved["RoundsComplete"] != null ? params.getReserved("RoundsComplete") : params.h["RoundsComplete"]; if(roundsComplete == null) { com_firstplayable_hxlib_Debug.logHelper("No rounds completed data in params" + params.toString(),com_firstplayable_hxlib_Severity.Warn,{ fileName : "GameplayState.hx", lineNumber : 650, className : "game.states.gameplay.GameplayState", methodName : "goToSubstate"}); roundsComplete = -1; } ++roundsComplete; if(__map_reserved["roundEventChoiceId"] != null) { params.setReserved("roundEventChoiceId",-1); } else { params.h["roundEventChoiceId"] = -1; } if(__map_reserved["roundPrepChoiceId"] != null) { params.setReserved("roundPrepChoiceId",-1); } else { params.h["roundPrepChoiceId"] = -1; } var value = this.m_storyId; if(__map_reserved["storyId"] != null) { params.setReserved("storyId",value); } else { params.h["storyId"] = value; } var value1 = this.m_roundId; if(__map_reserved["roundId"] != null) { params.setReserved("roundId",value1); } else { params.h["roundId"] = value1; } var value2 = this.m_region; if(__map_reserved["region"] != null) { params.setReserved("region",value2); } else { params.h["region"] = value2; } if(__map_reserved["RoundsComplete"] != null) { params.setReserved("RoundsComplete",roundsComplete); } else { params.h["RoundsComplete"] = roundsComplete; } } var goingToPopup = to == "CommunitySubstate"; var currentlyViewingPopup = this.m_substateManager != null && this.m_substateManager.getCurrentStateId() == "CommunitySubstate"; if(!goingToPopup || goingToPopup && !currentlyViewingPopup) { var value3 = this.m_substateManager.getCurrentStateId(); if(__map_reserved["NEXT_SUBSTATE"] != null) { params.setReserved("NEXT_SUBSTATE",value3); } else { params.h["NEXT_SUBSTATE"] = value3; } var value4 = this.m_depletedResource; if(__map_reserved["RESOURCE"] != null) { params.setReserved("RESOURCE",value4); } else { params.h["RESOURCE"] = value4; } this.m_params = params; com_firstplayable_hxlib_Debug.log("Transitioning to substate: " + to + " with params " + params.toString(),null,{ fileName : "GameplayState.hx", lineNumber : 678, className : "game.states.gameplay.GameplayState", methodName : "goToSubstate"}); this.m_substateManager.setState(to,params); } } ,onTransitionComplete: function(e) { if(e.toStateId == "EventSubstate" && this.m_previousSubstate != "CommunitySubstate") { var _this = this.m_menus; var hud = __map_reserved["GameHudMenu"] != null ? _this.getReserved("GameHudMenu") : _this.h["GameHudMenu"]; var roundData = game_data_GameCMS.getRoundData(this.m_storyId,this.m_region,this.m_roundId); var resourceChanges = game_data_GameCMS.getResourceMapFromImpact(roundData.eventBaseImpacts); this.queueResourceChange(resourceChanges); var type = resourceChanges.keys(); while(type.hasNext()) { var type1 = type.next(); if((__map_reserved[type1] != null ? resourceChanges.getReserved(type1) : resourceChanges.h[type1]) != null && (__map_reserved[type1] != null ? resourceChanges.getReserved(type1) : resourceChanges.h[type1]) != 0) { hud.moveIconToHud(type1,824,560); } } } } ,hasHitWinConditions: function() { return !this.hasDepletedResource("Resilience"); } ,hasDepletedResource: function(type) { var _this = this.m_stats; if((__map_reserved[type] != null ? _this.getReserved(type) : _this.h[type]) <= 0) { return true; } return false; } ,goToResults: function(didWin) { var params = this.m_storyId; var _this = this.m_stats; var key = "Social"; var params1 = __map_reserved[key] != null ? _this.getReserved(key) : _this.h[key]; var _this1 = this.m_stats; var key1 = "Resilience"; var params2 = { args : [didWin,params,params1,__map_reserved[key1] != null ? _this1.getReserved(key1) : _this1.h[key1],this.m_region,this.m_depletedResource]}; com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.RESULTS,params2); } ,checkForCheatClick: function(e) { if(e.stageX < 150 && e.stageY < 150) { ++this.m_cheatTapsTriggered; if(this.m_cheatTapsTriggered >= 10) { this.goToResults(true); } } else { this.m_cheatTapsTriggered = 0; } } ,clearMenus: function() { if(this.m_menus != null) { var menu = this.m_menus.keys(); while(menu.hasNext()) { var menu1 = menu.next(); var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved[menu1] != null ? _this.getReserved(menu1) : _this.h[menu1]); var _this1 = this.m_menus; (__map_reserved[menu1] != null ? _this1.getReserved(menu1) : _this1.h[menu1]).clear(); } this.m_menus = null; } motion_Actuate.reset(); } ,haveResourceChanges: function() { if(this.m_resourceChangeQueue != null) { return this.m_resourceChangeQueue.length > 0; } else { return false; } } ,getNextResourceChange: function() { if(this.m_resourceChangeQueue != null && this.m_resourceChangeQueue.length > 0) { return this.m_resourceChangeQueue[0]; } return null; } ,removeOldestResourceChange: function() { if(this.m_resourceChangeQueue != null) { return this.m_resourceChangeQueue.shift(); } return null; } ,queueResourceChange: function(vals) { if(this.m_resourceChangeQueue != null && this.isValidChange(vals)) { this.m_resourceChangeQueue.push(vals); haxe_Log.trace("queueing resource change! " + Std.string(this.m_resourceChangeQueue),{ fileName : "GameplayState.hx", lineNumber : 812, className : "game.states.gameplay.GameplayState", methodName : "queueResourceChange"}); } } ,isValidChange: function(vals) { if(!vals.keys().hasNext()) { return false; } var resourceType = vals.keys(); while(resourceType.hasNext()) { var resourceType1 = resourceType.next(); var typeString = Std.string(resourceType1); var isValidResource = game_defs__$ResourceType_ResourceType_$Impl_$.getResourceIdx(typeString) >= 0; if(!isValidResource) { return false; } } return true; } ,__class__: game_states_gameplay_GameplayState }); var game_states_gameplay_GameplayTimelineMenu = function(storyIdx,region) { game_shared_ui_GameMenu.call(this,"TimelineMenu"); this.buildMenu(storyIdx,region); }; $hxClasses["game.states.gameplay.GameplayTimelineMenu"] = game_states_gameplay_GameplayTimelineMenu; game_states_gameplay_GameplayTimelineMenu.__name__ = ["game","states","gameplay","GameplayTimelineMenu"]; game_states_gameplay_GameplayTimelineMenu.__super__ = game_shared_ui_GameMenu; game_states_gameplay_GameplayTimelineMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_nodes: null ,buildMenu: function(storyIdx,region) { if(game_states_gameplay_GameplayTimelineMenu.m_nodeCount == null) { game_states_gameplay_GameplayTimelineMenu.m_nodeCount = 0; while(this.hasObject("ref_year_" + (game_states_gameplay_GameplayTimelineMenu.m_nodeCount + 1))) ++game_states_gameplay_GameplayTimelineMenu.m_nodeCount; } var numRounds = game_data_GameCMS.getStoryData(storyIdx,region).rounds.length; this.m_nodes = []; var _g1 = 0; var _g = game_states_gameplay_GameplayTimelineMenu.m_nodeCount; while(_g1 < _g) { var i = _g1++; var ref = this.getChildAs("ref_year_" + (i + 1),com_firstplayable_hxlib_display_OPSprite); if(ref == null) { com_firstplayable_hxlib_Debug.log("Unable to find a node reference with name: " + "ref_year_" + (i + 1),null,{ fileName : "GameplayTimelineMenu.hx", lineNumber : 59, className : "game.states.gameplay.GameplayTimelineMenu", methodName : "buildMenu"}); break; } if(i < numRounds) { var node = new game_states_gameplay_GameplayTimelineNodeMenu(); node.set_x(ref.get_x()); node.set_y(ref.get_y()); node.setYear(i + 1); node.setState("_default"); var refIdx = ref.parent.getChildIndex(ref); if(refIdx == -1) { com_firstplayable_hxlib_Debug.log("Attempted to find the index of a reference, but it is not a child of the menu?",null,{ fileName : "GameplayTimelineMenu.hx", lineNumber : 74, className : "game.states.gameplay.GameplayTimelineMenu", methodName : "buildMenu"}); } else { ref.parent.addChildAt(node,ref.parent.getChildIndex(ref)); ref.set_visible(false); } this.m_nodes.push(node); } } game_states_gameplay_GameplayTimelineMenu.m_nodeCount = game_states_gameplay_GameplayTimelineMenu.m_nodeCount > numRounds ? numRounds : game_states_gameplay_GameplayTimelineMenu.m_nodeCount; } ,setCurrentYear: function(year,animate) { if(animate == null) { animate = true; } var _g1 = 0; var _g = game_states_gameplay_GameplayTimelineMenu.m_nodeCount; while(_g1 < _g) { var i = _g1++; if(year == 0) { this.get_graphics().clear(); } if(i == 0 && year > 0) { this.get_graphics().clear(); this.get_graphics().lineStyle(8,12314623); this.get_graphics().moveTo(this.m_nodes[0].get_x() + this.m_nodes[0].get_width() / 2 - 4.,this.m_nodes[0].get_y()); } var node = this.m_nodes[i]; if(i < year) { node.setState("_completed"); this.get_graphics().lineTo(node.get_x() + node.get_width() / 2 - 4.,node.get_y()); } else if(i == year) { node.setState("_current"); this.get_graphics().lineTo(node.get_x() + node.get_width() / 2 - 4.,node.get_y()); if(animate) { var startScale = node.get_scaleX(); var tarScale = node.get_scaleX() * 1.25; motion_Actuate.tween(node,0.25,{ scaleX : tarScale, scaleY : tarScale}).ease(motion_easing_Quad.get_easeOut()).repeat(1).reflect(); } } else if(i > year) { node.setState("_default"); } } } ,__class__: game_states_gameplay_GameplayTimelineMenu }); var game_states_gameplay_GameplayTimelineNodeMenu = function() { game_shared_ui_GameMenu.call(this,"TimelineNode"); }; $hxClasses["game.states.gameplay.GameplayTimelineNodeMenu"] = game_states_gameplay_GameplayTimelineNodeMenu; game_states_gameplay_GameplayTimelineNodeMenu.__name__ = ["game","states","gameplay","GameplayTimelineNodeMenu"]; game_states_gameplay_GameplayTimelineNodeMenu.__super__ = game_shared_ui_GameMenu; game_states_gameplay_GameplayTimelineNodeMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ setYear: function(year) { this.setTextInField("lbl_year" + "_default",year == null ? "null" : "" + year,true); this.setTextInField("lbl_year" + "_current",year == null ? "null" : "" + year,true); this.setTextInField("lbl_year" + "_completed",year == null ? "null" : "" + year,true); } ,setState: function(state) { this.toggleObjectVisibility("pnl_timeline" + "_default",state == "_default"); this.toggleObjectVisibility("pnl_timeline" + "_current",state == "_current"); this.toggleObjectVisibility("pnl_timeline" + "_completed",state == "_completed"); } ,__class__: game_states_gameplay_GameplayTimelineNodeMenu }); var game_states_gameplay_PreparationChoiceMenu = function() { game_shared_ui_GameMenu.call(this,"PreparationChoiceMenu"); this.addEventListener("addedToStage",$bind(this,this.onAddedToStage)); this.m_impactIcons = []; }; $hxClasses["game.states.gameplay.PreparationChoiceMenu"] = game_states_gameplay_PreparationChoiceMenu; game_states_gameplay_PreparationChoiceMenu.__name__ = ["game","states","gameplay","PreparationChoiceMenu"]; game_states_gameplay_PreparationChoiceMenu.__super__ = game_shared_ui_GameMenu; game_states_gameplay_PreparationChoiceMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_choiceIdx: null ,m_onScreenPos: null ,m_slideActuator: null ,m_impactIcons: null ,setTargetPosition: function(x,y) { this.m_onScreenPos = y; } ,setChoiceId: function(id) { this.m_choiceIdx = id; } ,setTitle: function(name) { this.setTextInField("lbl_prep_header",name,true); } ,setDescription: function(description) { this.setTextInField("lbl_prep_text",description,true); } ,setImpactIcons: function(resources) { this.clearIcons(); var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllValues(); while(_g < _g1.length) { var type = _g1[_g]; ++_g; if((__map_reserved[type] != null ? resources.existsReserved(type) : resources.h.hasOwnProperty(type)) && (__map_reserved[type] != null ? resources.getReserved(type) : resources.h[type]) != null) { var icon = new game_shared_ui_ImpactIcon(); icon.setImpactType(type); icon.setImpactValue(__map_reserved[type] != null ? resources.getReserved(type) : resources.h[type]); icon.set_visible(true); this.m_impactIcons.push(icon); var ref = this.getChildByName("ref_effect" + this.m_impactIcons.length); icon.placeAtRef(ref); this.addChild(icon); } } if(this.m_impactIcons.length == 0) { var icon1 = new game_shared_ui_ImpactIcon(); icon1.setImpactType("None"); icon1.set_visible(true); this.m_impactIcons.push(icon1); var ref1 = this.getChildByName("ref_effect" + 1); icon1.placeAtRef(ref1); this.addChild(icon1); } this.centerImpactIcons(); } ,centerImpactIcons: function() { if(this.m_impactIcons == null) { return; } var numIcons = this.m_impactIcons.length; if(numIcons == 0) { return; } var midpoint = this.get_width() / 2; var sign = 1; var offset = 0; var divisor = 1; if(numIcons % 2 == 0) { offset = 1; divisor = 2; } var _g1 = 0; var _g = numIcons; while(_g1 < _g) { var idx = _g1++; var icon = this.m_impactIcons[idx]; icon.set_x(midpoint + icon.get_width() / divisor * Math.ceil((idx + offset) / 2) * sign); sign *= -1; } } ,clearIcons: function() { if(this.m_impactIcons == null) { return; } var _g = 0; var _g1 = this.m_impactIcons; while(_g < _g1.length) { var icon = _g1[_g]; ++_g; this.removeChild(icon); } this.m_impactIcons = []; } ,show: function(animate) { if(animate == null) { animate = true; } this.set_visible(true); this.set_alpha(1); if(animate && this.m_onScreenPos != null && this.m_slideActuator == null) { this.m_slideActuator = motion_Actuate.tween(this,0.6,{ y : this.m_onScreenPos}).ease(motion_easing_Quad.get_easeOut()).onComplete($bind(this,this.onShowComplete)); } else { this.set_y(this.m_onScreenPos); } } ,hide: function(animate) { if(animate == null) { animate = true; } if(animate && this.m_onScreenPos != null && this.m_slideActuator == null) { this.m_slideActuator = motion_Actuate.tween(this,0.6,{ y : 1024}).ease(motion_easing_Quad.get_easeOut()).onComplete($bind(this,this.onHideComplete)); } else { this.set_y(1024); this.onHideComplete(); } } ,onAddedToStage: function(e) { this.removeEventListener("addedToStage",$bind(this,this.onAddedToStage)); this.addEventListener("removedFromStage",$bind(this,this.onRemovedFromStage)); this.addEventListener("click",$bind(this,this.onClick)); } ,onRemovedFromStage: function(e) { this.removeEventListener("removedFromStage",$bind(this,this.onRemovedFromStage)); this.addEventListener("addedToStage",$bind(this,this.onAddedToStage)); this.removeEventListener("click",$bind(this,this.onClick)); } ,onClick: function(e) { var event = new game_events_GameplayEvent("GAMEPLAY_CHOICE_SELECTED",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,onShowComplete: function() { this.m_slideActuator = null; var event = new game_events_GameplayEvent("GAMEPLAY_PREP_CHOICE_SHOWN",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,onHideComplete: function() { this.set_visible(false); var event = new game_events_GameplayEvent("GAMEPLAY_PREP_CHOICE_HIDDEN",this.m_choiceIdx); Global.event.dispatchEvent(event); } ,__class__: game_states_gameplay_PreparationChoiceMenu }); var game_states_gameplay_PreparationSubstate = function(menus) { this.id = "PreparationSubstate"; game_states_gameplay_GameplaySubstate.call(this,menus); }; $hxClasses["game.states.gameplay.PreparationSubstate"] = game_states_gameplay_PreparationSubstate; game_states_gameplay_PreparationSubstate.__name__ = ["game","states","gameplay","PreparationSubstate"]; game_states_gameplay_PreparationSubstate.__super__ = game_states_gameplay_GameplaySubstate; game_states_gameplay_PreparationSubstate.prototype = $extend(game_states_gameplay_GameplaySubstate.prototype,{ m_dispatchedEvent: null ,enter: function(params) { params = game_states_gameplay_GameplaySubstate.prototype.enter.call(this,params); this.setUpCardMenus(this.m_storyId,this.m_region,this.m_roundId); this.m_dispatchedEvent = false; return params; } ,setUpCardMenus: function(storyId,region,roundId) { var choices = game_data_GameCMS.getPreparationChoiceData(storyId,region,roundId); var _this = this.m_menus; var firstChoice = __map_reserved["PreparationOptionOne"] != null ? _this.getReserved("PreparationOptionOne") : _this.h["PreparationOptionOne"]; var resources = game_data_GameCMS.getResourceMapFromImpact(choices[0].choiceImpacts); firstChoice.setImpactIcons(resources); firstChoice.setChoiceId(0); firstChoice.setTitle(choices[0].choiceHeader); firstChoice.setDescription(choices[0].choiceSummary); firstChoice.show(); var _this1 = this.m_menus; var secondChoice = __map_reserved["PreparationOptionTwo"] != null ? _this1.getReserved("PreparationOptionTwo") : _this1.h["PreparationOptionTwo"]; var resources1 = game_data_GameCMS.getResourceMapFromImpact(choices[1].choiceImpacts); secondChoice.setImpactIcons(resources1); secondChoice.setChoiceId(1); secondChoice.setTitle(choices[1].choiceHeader); secondChoice.setDescription(choices[1].choiceSummary); secondChoice.show(); } ,addEventListeners: function() { Global.event.addEventListener("GAMEPLAY_CHOICE_SELECTED",$bind(this,this.onChoiceSelected)); Global.event.addEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onChoiceAccepted)); Global.event.addEventListener("GAMEPLAY_CHOICE_REJECTED",$bind(this,this.onChoiceRejected)); Global.event.addEventListener("GAMEPLAY_PREP_CHOICE_HIDDEN",$bind(this,this.onChoicesHidden)); } ,removeEventListeners: function() { Global.event.removeEventListener("GAMEPLAY_CHOICE_SELECTED",$bind(this,this.onChoiceSelected)); Global.event.removeEventListener("GAMEPLAY_CHOICE_ACCEPTED",$bind(this,this.onChoiceAccepted)); Global.event.removeEventListener("GAMEPLAY_CHOICE_REJECTED",$bind(this,this.onChoiceRejected)); Global.event.removeEventListener("GAMEPLAY_PREP_CHOICE_HIDDEN",$bind(this,this.onChoicesHidden)); } ,onChoiceSelected: function(e) { var choices = game_data_GameCMS.getPreparationChoiceData(this.m_storyId,this.m_region,this.m_roundId); var choiceData = choices[e.choiceIdx]; var _this = this.m_menus; var popup = __map_reserved["GameplayChoicePopup"] != null ? _this.getReserved("GameplayChoicePopup") : _this.h["GameplayChoicePopup"]; var resources = game_data_GameCMS.getResourceMapFromImpact(choiceData.choiceImpacts); popup.setImpactIcons(resources); popup.setChoiceId(e.choiceIdx); popup.setType(game_states_gameplay_GameplayChoiceType.PREPARATION); popup.setTitle(choiceData.choiceHeader); popup.setDescription(choiceData.choiceText,game_states_gameplay_GameplayChoiceType.PREPARATION); popup.rescale(game_states_gameplay_GameplayChoiceType.PREPARATION); popup.show(); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("PrepChoiceView","Region {m_region} - Story " + (this.m_storyId + 1) + " - Round " + (this.m_roundId + 1) + " - " + choiceData.choiceHeader); } ,onChoiceAccepted: function(e) { var _this = this.m_menus; var popup = __map_reserved["GameplayChoicePopup"] != null ? _this.getReserved("GameplayChoicePopup") : _this.h["GameplayChoicePopup"]; popup.hide(); var _this1 = this.m_menus; var firstChoice = __map_reserved["PreparationOptionOne"] != null ? _this1.getReserved("PreparationOptionOne") : _this1.h["PreparationOptionOne"]; firstChoice.hide(); var _this2 = this.m_menus; var secondChoice = __map_reserved["PreparationOptionTwo"] != null ? _this2.getReserved("PreparationOptionTwo") : _this2.h["PreparationOptionTwo"]; secondChoice.hide(); var choices = game_data_GameCMS.getPreparationChoiceData(this.m_storyId,this.m_region,this.m_roundId); var choiceData = choices[e.choiceIdx]; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("PrepChoiceSelected","Region {m_region} - Story " + (this.m_storyId + 1) + " - Round " + (this.m_roundId + 1) + " - " + choiceData.choiceHeader); this.m_roundPrepChoiceId = e.choiceIdx; var _this3 = this.m_params; var value = this.m_roundPrepChoiceId; if(__map_reserved["roundPrepChoiceId"] != null) { _this3.setReserved("roundPrepChoiceId",value); } else { _this3.h["roundPrepChoiceId"] = value; } } ,onChoiceRejected: function(e) { var _this = this.m_menus; var popup = __map_reserved["GameplayChoicePopup"] != null ? _this.getReserved("GameplayChoicePopup") : _this.h["GameplayChoicePopup"]; popup.hide(); } ,onChoicesHidden: function(e) { if(!this.m_dispatchedEvent) { var event = new game_events_TransitionEvent("Substate","EventSubstate","PreparationSubstate",null,this.m_params); Global.event.dispatchEvent(event); this.m_dispatchedEvent = true; } } ,__class__: game_states_gameplay_PreparationSubstate }); var game_states_gameplay_RoundIntroSubstate = function(menus) { this.id = "RoundIntroSubstate"; game_states_gameplay_GameplaySubstate.call(this,menus); }; $hxClasses["game.states.gameplay.RoundIntroSubstate"] = game_states_gameplay_RoundIntroSubstate; game_states_gameplay_RoundIntroSubstate.__name__ = ["game","states","gameplay","RoundIntroSubstate"]; game_states_gameplay_RoundIntroSubstate.__super__ = game_states_gameplay_GameplaySubstate; game_states_gameplay_RoundIntroSubstate.prototype = $extend(game_states_gameplay_GameplaySubstate.prototype,{ m_numberOfCommentToShow: null ,m_roundsCompleted: null ,enter: function(params) { params = game_states_gameplay_GameplaySubstate.prototype.enter.call(this,params); this.m_roundsCompleted = this.getParamAsInt(params,"RoundsComplete",0); this.m_numberOfCommentToShow = 3; this.doMenuSetup(this.m_storyId,this.m_region,this.m_roundId); this.showIntroDialog(this.m_storyId,this.m_region,this.m_roundId); return params; } ,doMenuSetup: function(storyId,region,roundId) { var header = game_data_GameCMS.getPreparationHeader(storyId,region,roundId); var description = game_data_GameCMS.getPreparationText(storyId,region,roundId); this.setHeaderText(header,description); var _this = this.m_menus; var timelineMenu = __map_reserved["TimelineMenu"] != null ? _this.getReserved("TimelineMenu") : _this.h["TimelineMenu"]; timelineMenu.setCurrentYear(this.m_roundsCompleted); this.showImage(storyId,region,roundId); } ,setHeaderText: function(headerText,descText) { var _this = this.m_menus; var gameplayMenu = __map_reserved["GameplayMenu"] != null ? _this.getReserved("GameplayMenu") : _this.h["GameplayMenu"]; gameplayMenu.setStageType(game_states_gameplay_GameStageType.PREPARATION); gameplayMenu.setTitleText(headerText); gameplayMenu.setDescriptionText(descText); gameplayMenu.rescaleNewsText(); gameplayMenu.setTipText("Tap a preparation action to make a selection"); } ,showImage: function(storyId,region,roundId) { var _this = this.m_menus; var gameplayMenu = __map_reserved["GameplayMenu"] != null ? _this.getReserved("GameplayMenu") : _this.h["GameplayMenu"]; var roundData = game_data_GameCMS.getRoundData(storyId,region,roundId); var imageName = roundData.preparationImage.split(".")[0]; gameplayMenu.setImage(imageName,game_states_gameplay_GameStageType.PREPARATION,roundId > 0); } ,showIntroDialog: function(storyId,region,roundId) { var mostImpactedGroups = []; var gameplayState = com_firstplayable_hxlib_state_StateManager.currentState; var currentStats = gameplayState.getPlayerStats(); var startingStats = game_data_GameCMS.getStartingLevelStats(storyId,region); var changesFromStartingValues = new haxe_ds_StringMap(); var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllGroups(); while(_g < _g1.length) { var type = _g1[_g]; ++_g; var currentValue = __map_reserved[type] != null ? currentStats.getReserved(type) : currentStats.h[type]; var startingValue = __map_reserved[type] != null ? startingStats.getReserved(type) : startingStats.h[type]; var value = currentValue - startingValue; if(__map_reserved[type] != null) { changesFromStartingValues.setReserved(type,value); } else { changesFromStartingValues.h[type] = value; } } var _g2 = 0; var _g11 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllGroups(); while(_g2 < _g11.length) { var type1 = _g11[_g2]; ++_g2; if(mostImpactedGroups.length == 0) { mostImpactedGroups.push(type1); } else { var dImpact = Math.abs(__map_reserved[type1] != null ? changesFromStartingValues.getReserved(type1) : changesFromStartingValues.h[type1]); var _g3 = 0; var _g21 = mostImpactedGroups.length; while(_g3 < _g21) { var i = _g3++; var key = mostImpactedGroups[i]; var dCompareImpact = Math.abs(__map_reserved[key] != null ? changesFromStartingValues.getReserved(key) : changesFromStartingValues.h[key]); if(dImpact >= dCompareImpact) { mostImpactedGroups.splice(i,0,type1); break; } } } } mostImpactedGroups = mostImpactedGroups.slice(0,3); com_firstplayable_hxlib_utils_ArrayTools.shuffle(mostImpactedGroups); var numLinesSent = 0; var positiveChatter = game_data_GameCMS.getPositiveChatter(storyId,region,roundId); var negativeChatter = game_data_GameCMS.getNegativeChatter(storyId,region,roundId); var _this = this.m_menus; var socialMenu = __map_reserved["SocialFeedMenu"] != null ? _this.getReserved("SocialFeedMenu") : _this.h["SocialFeedMenu"]; while(numLinesSent < 3) { if(mostImpactedGroups.length == 0) { break; } var group = mostImpactedGroups.shift(); var _this1 = game_states_gameplay_SocialFeedMenu.NAME_MAP; var name = __map_reserved[group] != null ? _this1.getReserved(group) : _this1.h[group]; var dImpact1 = __map_reserved[group] != null ? changesFromStartingValues.getReserved(group) : changesFromStartingValues.h[group]; if(dImpact1 >= 0 && positiveChatter.length > 0) { var chatterLine = positiveChatter.shift(); socialMenu.addComment(name,chatterLine,group); ++numLinesSent; } else if(dImpact1 <= 0 && negativeChatter.length > 0) { var chatterLine1 = negativeChatter.shift(); socialMenu.addComment(name,chatterLine1,group); ++numLinesSent; } } } ,addEventListeners: function() { game_states_gameplay_GameplaySubstate.prototype.addEventListeners.call(this); Global.event.addEventListener("SOCIAL_SCROLL_COMPLETE",$bind(this,this.onCommentAdded)); } ,removeEventListeners: function() { game_states_gameplay_GameplaySubstate.prototype.removeEventListeners.call(this); Global.event.removeEventListener("SOCIAL_SCROLL_COMPLETE",$bind(this,this.onCommentAdded)); } ,onCommentAdded: function(e) { --this.m_numberOfCommentToShow; if(this.m_numberOfCommentToShow == 0) { this.onSubstateComplete(); } } ,onSubstateComplete: function() { var event = new game_events_TransitionEvent("Substate","PreparationSubstate","RoundIntroSubstate",null,this.m_params); Global.event.dispatchEvent(event); } ,__class__: game_states_gameplay_RoundIntroSubstate }); var game_states_gameplay_RoundOutroSubstate = function(menus) { this.m_numberOfCommentToShow = 3; this.id = "RoundOutroSubstate"; game_states_gameplay_GameplaySubstate.call(this,menus); }; $hxClasses["game.states.gameplay.RoundOutroSubstate"] = game_states_gameplay_RoundOutroSubstate; game_states_gameplay_RoundOutroSubstate.__name__ = ["game","states","gameplay","RoundOutroSubstate"]; game_states_gameplay_RoundOutroSubstate.__super__ = game_states_gameplay_GameplaySubstate; game_states_gameplay_RoundOutroSubstate.prototype = $extend(game_states_gameplay_GameplaySubstate.prototype,{ m_numberOfCommentToShow: null ,enter: function(params) { params = game_states_gameplay_GameplaySubstate.prototype.enter.call(this,params); this.onSubstateComplete(); return params; } ,doMenuSetup: function(storyId,roundId) { } ,addEventListeners: function() { game_states_gameplay_GameplaySubstate.prototype.addEventListeners.call(this); } ,removeEventListeners: function() { game_states_gameplay_GameplaySubstate.prototype.removeEventListeners.call(this); } ,onSubstateComplete: function() { var event = new game_events_TransitionEvent("Substate","RoundIntroSubstate","RoundOutroSubstate",null,this.m_params); Global.event.dispatchEvent(event); } ,__class__: game_states_gameplay_RoundOutroSubstate }); var game_states_gameplay_SocialFeedComment = function() { game_shared_ui_GameMenu.call(this,"SocialFeedComment"); }; $hxClasses["game.states.gameplay.SocialFeedComment"] = game_states_gameplay_SocialFeedComment; game_states_gameplay_SocialFeedComment.__name__ = ["game","states","gameplay","SocialFeedComment"]; game_states_gameplay_SocialFeedComment.__super__ = game_shared_ui_GameMenu; game_states_gameplay_SocialFeedComment.prototype = $extend(game_shared_ui_GameMenu.prototype,{ setUser: function(user) { var bitmapData = null; var iconPath = game_defs_ResourceIcons.getImpactIconAsset(user); if(iconPath != "" && iconPath != null) { bitmapData = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(iconPath); } else { bitmapData = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage("2d/ui/icons/UserIcon"); } if(bitmapData != null) { var icon = this.getChildAs("spr_user",com_firstplayable_hxlib_display_OPSprite); if(icon != null) { icon.changeImage(bitmapData); icon.set_visible(true); } } } ,setTitle: function(title) { this.setTextInField("lbl_name",title,true); } ,getTitleText: function() { return this.getChildAs("lbl_name",openfl_text_TextField).get_text(); } ,setComment: function(comment) { this.setTextInField("lbl_comment",comment,true); } ,isInUse: function() { if(this.get_alpha() > 0) { return this.get_visible() == true; } else { return false; } } ,getHeight: function() { return this.getChildAs("lbl_comment",openfl_text_TextField).get_textHeight() + 100; } ,reset: function() { } ,__class__: game_states_gameplay_SocialFeedComment }); var game_states_gameplay_SocialFeedMenu = function() { game_shared_ui_GameMenu.call(this,"SocialFeedMenu"); this.m_comments = []; this.m_queuedComments = []; if(game_states_gameplay_SocialFeedMenu.NAME_MAP == null) { game_states_gameplay_SocialFeedMenu.NAME_MAP = new haxe_ds_StringMap(); var availableNames = ["Layla Pearson","Katherine Hudson","Katie Holmes","Abbie Hartman","Emma Roberts","Bethany Williamson","Toby Campbell","Caleb Hill","Cameron Lewis","Dylan Murphy","Jonathan Clarke","Nelson Poole"]; com_firstplayable_hxlib_utils_ArrayTools.shuffle(availableNames); var _g = 0; var _g1 = game_defs__$ResourceType_ResourceType_$Impl_$.getAllGroups(); while(_g < _g1.length) { var group = _g1[_g]; ++_g; var this1 = game_states_gameplay_SocialFeedMenu.NAME_MAP; var value = availableNames.shift(); var _this = this1; if(__map_reserved[group] != null) { _this.setReserved(group,value); } else { _this.h[group] = value; } } } }; $hxClasses["game.states.gameplay.SocialFeedMenu"] = game_states_gameplay_SocialFeedMenu; game_states_gameplay_SocialFeedMenu.__name__ = ["game","states","gameplay","SocialFeedMenu"]; game_states_gameplay_SocialFeedMenu.__super__ = game_shared_ui_GameMenu; game_states_gameplay_SocialFeedMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_comments: null ,m_queuedComments: null ,addComment: function(title,comment,user,animate) { if(animate == null) { animate = true; } var data = { title : title, comment : comment, user : user, animate : animate}; this.m_queuedComments.push(data); if(this.m_queuedComments.length == 1) { this.doNextComment(); } } ,getLastComment: function() { return this.m_comments[0]; } ,doNextComment: function() { if(this.m_queuedComments == null || this.m_queuedComments.length == 0) { return; } var data = this.m_queuedComments[0]; var commentObj = this.getUnusedComment(); commentObj.setTitle(data.title); commentObj.setComment(data.comment); commentObj.setUser(data.user); this.addChild(commentObj); this.m_comments.unshift(commentObj); commentObj.set_y(650 + commentObj.getHeight()); this.positionComments(data.animate); } ,getUnusedComment: function() { var _g = 0; var _g1 = this.m_comments; while(_g < _g1.length) { var comment = _g1[_g]; ++_g; if(!comment.isInUse()) { HxOverrides.remove(this.m_comments,comment); comment.reset(); return comment; } } return new game_states_gameplay_SocialFeedComment(); } ,positionComments: function(animate) { var totalCommentHeight = 0; if(!animate) { var _g = 0; var _g1 = this.m_comments; while(_g < _g1.length) { var comment = _g1[_g]; ++_g; totalCommentHeight += comment.getHeight(); comment.set_y(650 - totalCommentHeight); } this.onCommentAnimationComplete(); } else { var _g2 = 0; var _g11 = this.m_comments; while(_g2 < _g11.length) { var comment1 = _g11[_g2]; ++_g2; totalCommentHeight += comment1.getHeight(); var tarY = 650 - totalCommentHeight; motion_Actuate.tween(comment1,1.5,{ y : tarY}).onComplete($bind(this,this.onCommentAnimationComplete)); } } } ,onCommentAnimationComplete: function() { var event = new game_events_GameUiEvent("SOCIAL_SCROLL_COMPLETE"); Global.event.dispatchEvent(event); this.m_queuedComments.shift(); this.doNextComment(); } ,__class__: game_states_gameplay_SocialFeedMenu }); var game_states_gameplay_StakeholderPopup = function() { this.m_isShown = true; game_shared_ui_GameMenu.call(this,"StakeholderPopup"); this.hide(); this.m_impactIcons = []; var popup = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup != null) { this.m_onScreenPos = new openfl_geom_Point(popup.get_x(),popup.get_y()); } }; $hxClasses["game.states.gameplay.StakeholderPopup"] = game_states_gameplay_StakeholderPopup; game_states_gameplay_StakeholderPopup.__name__ = ["game","states","gameplay","StakeholderPopup"]; game_states_gameplay_StakeholderPopup.__super__ = game_shared_ui_GameMenu; game_states_gameplay_StakeholderPopup.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_impactIcons: null ,m_isShown: null ,m_onScreenPos: null ,setTitle: function(title) { this.setTextInField("lbl_prep_header",title,true); } ,setDescription: function(description) { this.setTextInField("lbl_description",description,true); } ,setPortrait: function(type) { var portraitPath = game_defs_ResourceIcons.getResourcePortraitAsset(type); var portraitImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(portraitPath); var portraitSprite = this.getChildAs("spr_portrait",com_firstplayable_hxlib_display_OPSprite); portraitSprite.changeImage(portraitImage); } ,setImpactIcon: function(type,value) { var iconSprite = this.getChildAs("ref_effect",com_firstplayable_hxlib_display_OPSprite); var iconPath = game_defs_ResourceIcons.getSocialFeedIconAsset(type); var iconImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(iconPath); iconSprite.changeImage(iconImage); iconSprite.set_visible(true); this.setTextInField("lbl_statValue",value == null ? "null" : "" + value,true); } ,onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); this.hide(); } ,show: function(animate) { if(animate == null) { animate = true; } var _gthis = this; if(this.m_isShown || this.get_visible()) { return; } this.set_visible(true); var popup = this.getChildAs("pnl_popup",openfl_display_Sprite); if(popup != null) { popup.set_y(-popup.get_height()); motion_Actuate.tween(popup,0.2,{ y : this.m_onScreenPos.y}).ease(motion_easing_Quad.get_easeInOut()).onComplete(function() { _gthis.m_isShown = true; }); } } ,hide: function(animate) { if(animate == null) { animate = true; } if(!this.m_isShown) { return; } this.m_isShown = false; this.set_visible(false); } ,__class__: game_states_gameplay_StakeholderPopup }); var game_states_intro_IntroMenuButtons = $hxClasses["game.states.intro.IntroMenuButtons"] = { __ename__ : ["game","states","intro","IntroMenuButtons"], __constructs__ : ["CONTINUE"] }; game_states_intro_IntroMenuButtons.CONTINUE = ["CONTINUE",0]; game_states_intro_IntroMenuButtons.CONTINUE.toString = $estr; game_states_intro_IntroMenuButtons.CONTINUE.__enum__ = game_states_intro_IntroMenuButtons; game_states_intro_IntroMenuButtons.__empty_constructs__ = [game_states_intro_IntroMenuButtons.CONTINUE]; var game_states_intro_IntroMenu = function() { game_shared_ui_GameMenu.call(this,"IntroMenu"); }; $hxClasses["game.states.intro.IntroMenu"] = game_states_intro_IntroMenu; game_states_intro_IntroMenu.__name__ = ["game","states","intro","IntroMenu"]; game_states_intro_IntroMenu.__super__ = game_shared_ui_GameMenu; game_states_intro_IntroMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); var buttonId = Type.createEnumIndex(game_states_intro_IntroMenuButtons,caller.id); this.emitCompletionEvent(); } ,setContentText: function(text) { this.setTextInField("lbl_narrative_text",text,true); } ,__class__: game_states_intro_IntroMenu }); var game_states_intro_IntroState = function() { game_states_AcadiaGameState.call(this,game_defs_GameState.INTRO); }; $hxClasses["game.states.intro.IntroState"] = game_states_intro_IntroState; game_states_intro_IntroState.__name__ = ["game","states","intro","IntroState"]; game_states_intro_IntroState.__super__ = game_states_AcadiaGameState; game_states_intro_IntroState.prototype = $extend(game_states_AcadiaGameState.prototype,{ m_selectedLevelIdx: null ,m_region: null ,m_prologueIdx: null ,init: function() { game_states_AcadiaGameState.prototype.init.call(this); var this1 = this.m_menus; var value = new game_states_intro_IntroMenu(); var _this = this1; if(__map_reserved["IntroMenu"] != null) { _this.setReserved("IntroMenu",value); } else { _this.h["IntroMenu"] = value; } } ,enter: function(p) { game_states_AcadiaGameState.prototype.enter.call(this,p); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview("Gameplay"); if(p != null && p.args != null && p.args.length > 0) { this.m_selectedLevelIdx = p.args[0]; this.m_region = p.args[1]; } else { com_firstplayable_hxlib_Debug.log("No level ID passed, defaulting to 1!",null,{ fileName : "IntroState.hx", lineNumber : 60, className : "game.states.intro.IntroState", methodName : "enter"}); this.m_selectedLevelIdx = 1; this.m_region = "New England"; } this.m_prologueIdx = 0; this.setPrologueData(this.m_prologueIdx); var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["IntroMenu"] != null ? _this.getReserved("IntroMenu") : _this.h["IntroMenu"]); } ,exit: function() { var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["IntroMenu"] != null ? _this.getReserved("IntroMenu") : _this.h["IntroMenu"]); game_states_AcadiaGameState.prototype.exit.call(this); } ,addListeners: function() { Global.event.addEventListener("MenuComplete",$bind(this,this.onMenuComplete)); } ,removeListeners: function() { Global.event.removeEventListener("MenuComplete",$bind(this,this.onMenuComplete)); } ,onMenuComplete: function(e) { var prologueSteps = game_data_GameCMS.getStoryPrologueData(this.m_selectedLevelIdx,this.m_region); this.m_prologueIdx++; if(this.m_prologueIdx < prologueSteps.length) { this.setPrologueData(this.m_prologueIdx); } else { var args = [this.m_selectedLevelIdx,this.m_region]; com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.GAMEPLAY,{ args : args}); } } ,setPrologueData: function(idx) { var prologueSteps = game_data_GameCMS.getStoryPrologueData(this.m_selectedLevelIdx,this.m_region); var _this = this.m_menus; var introMenu = __map_reserved["IntroMenu"] != null ? _this.getReserved("IntroMenu") : _this.h["IntroMenu"]; var nextStep = prologueSteps[idx]; introMenu.setContentText(nextStep.narrativeText); } ,__class__: game_states_intro_IntroState }); var game_states_levelSelect_LevelButtonMenu = function() { game_shared_ui_GameMenu.call(this,"LevelSelect"); }; $hxClasses["game.states.levelSelect.LevelButtonMenu"] = game_states_levelSelect_LevelButtonMenu; game_states_levelSelect_LevelButtonMenu.__name__ = ["game","states","levelSelect","LevelButtonMenu"]; game_states_levelSelect_LevelButtonMenu.__super__ = game_shared_ui_GameMenu; game_states_levelSelect_LevelButtonMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_id: null ,setLevelId: function(id) { this.m_id = id; } ,setLevelName: function(name) { this.setTextInField("lbl_prep_header",name,true); } ,setLevelDescription: function(description) { this.setTextInField("lbl_prep_text",description,true); } ,setLevelLocked: function(isLocked) { this.toggleObjectVisibility("spr_level_locked",isLocked); var levelBtn = this.getChildAs("btn_level",com_firstplayable_hxlib_display_GraphicButton); if(levelBtn != null) { levelBtn.mouseEnabled = !isLocked; levelBtn.mouseChildren = !isLocked; } } ,setNewLevelIcon: function(isNew) { this.toggleObjectVisibility("spr_level_new",isNew); } ,onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); var event = new game_states_levelSelect_LevelSelectEvent("LEVEL_SELECTED",this.m_id); Global.event.dispatchEvent(event); } ,__class__: game_states_levelSelect_LevelButtonMenu }); var game_states_levelSelect_LevelSelectEvent = function(type,levelIdx,region,bubbles,cancelable) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.levelIdx = levelIdx; this.region = region; }; $hxClasses["game.states.levelSelect.LevelSelectEvent"] = game_states_levelSelect_LevelSelectEvent; game_states_levelSelect_LevelSelectEvent.__name__ = ["game","states","levelSelect","LevelSelectEvent"]; game_states_levelSelect_LevelSelectEvent.__super__ = openfl_events_Event; game_states_levelSelect_LevelSelectEvent.prototype = $extend(openfl_events_Event.prototype,{ levelIdx: null ,region: null ,__class__: game_states_levelSelect_LevelSelectEvent }); var game_states_levelSelect_LevelSelectMenu = function(region) { game_shared_ui_GameMenu.call(this,"LevelSelectMenu"); this.buildMenu(region); }; $hxClasses["game.states.levelSelect.LevelSelectMenu"] = game_states_levelSelect_LevelSelectMenu; game_states_levelSelect_LevelSelectMenu.__name__ = ["game","states","levelSelect","LevelSelectMenu"]; game_states_levelSelect_LevelSelectMenu.__super__ = game_shared_ui_GameMenu; game_states_levelSelect_LevelSelectMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ m_levelButtons: null ,buildMenu: function(region) { if(region == null) { com_firstplayable_hxlib_Debug.logHelper("Level select entered without region data!",com_firstplayable_hxlib_Severity.Warn,{ fileName : "LevelSelectMenu.hx", lineNumber : 34, className : "game.states.levelSelect.LevelSelectMenu", methodName : "buildMenu"}); return; } if(game_states_levelSelect_LevelSelectMenu.NUM_LEVEL_BUTTONS == null) { game_states_levelSelect_LevelSelectMenu.NUM_LEVEL_BUTTONS = 0; while(this.hasObject("ref_level_" + (game_states_levelSelect_LevelSelectMenu.NUM_LEVEL_BUTTONS + 1))) ++game_states_levelSelect_LevelSelectMenu.NUM_LEVEL_BUTTONS; } this.m_levelButtons = []; var storyIds = game_data_GameCMS.getStoriesByRegion(region); var _g1 = 0; var _g = game_states_levelSelect_LevelSelectMenu.NUM_LEVEL_BUTTONS; while(_g1 < _g) { var i = _g1++; var buttonMenu = this.replaceRefWithLevelObj("ref_level_" + (i + 1)); this.m_levelButtons.push(buttonMenu); if(i < storyIds.length) { var storyTitleData = game_data_GameCMS.getStoryTitleData(i,region); if(storyTitleData != null) { buttonMenu.setLevelName(storyTitleData.narrativeHeader); buttonMenu.setLevelDescription(storyTitleData.narrativeText); } else { buttonMenu.setLevelName("Level " + (i + 1)); buttonMenu.setLevelDescription(""); } buttonMenu.setLevelId(i); } else { buttonMenu.setLevelName("LOCKED"); buttonMenu.setLevelDescription(""); buttonMenu.setLevelLocked(true); buttonMenu.setNewLevelIcon(false); } } } ,replaceRefWithLevelObj: function(refName) { var levelButtonMenu = new game_states_levelSelect_LevelButtonMenu(); this.positionObjectByRef(levelButtonMenu,refName); return levelButtonMenu; } ,__class__: game_states_levelSelect_LevelSelectMenu }); var game_states_levelSelect_LevelSelectState = function() { game_states_AcadiaGameState.call(this,game_defs_GameState.LEVEL_SELECT); }; $hxClasses["game.states.levelSelect.LevelSelectState"] = game_states_levelSelect_LevelSelectState; game_states_levelSelect_LevelSelectState.__name__ = ["game","states","levelSelect","LevelSelectState"]; game_states_levelSelect_LevelSelectState.__super__ = game_states_AcadiaGameState; game_states_levelSelect_LevelSelectState.prototype = $extend(game_states_AcadiaGameState.prototype,{ m_region: null ,init: function() { game_states_AcadiaGameState.prototype.init.call(this); } ,enter: function(p) { game_states_AcadiaGameState.prototype.enter.call(this,p); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview("LevelSelect"); this.m_region = p.args[1]; var this1 = this.m_menus; var value = new game_states_levelSelect_LevelSelectMenu(this.m_region); var _this = this1; if(__map_reserved["LevelSelectMenu"] != null) { _this.setReserved("LevelSelectMenu",value); } else { _this.h["LevelSelectMenu"] = value; } var _this1 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["LevelSelectMenu"] != null ? _this1.getReserved("LevelSelectMenu") : _this1.h["LevelSelectMenu"]); } ,exit: function() { var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["LevelSelectMenu"] != null ? _this.getReserved("LevelSelectMenu") : _this.h["LevelSelectMenu"]); game_states_AcadiaGameState.prototype.exit.call(this); } ,addListeners: function() { Global.event.addEventListener("LEVEL_SELECTED",$bind(this,this.onLevelSelected)); } ,removeListeners: function() { Global.event.removeEventListener("LEVEL_SELECTED",$bind(this,this.onLevelSelected)); } ,onLevelSelected: function(e) { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Story select","Region {m_region} - Story " + (e.levelIdx + 1)); var params = { args : [e.levelIdx,this.m_region]}; com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.INTRO,params); } ,__class__: game_states_levelSelect_LevelSelectState }); var game_states_regionSelect_RegionSelectButtonId = $hxClasses["game.states.regionSelect.RegionSelectButtonId"] = { __ename__ : ["game","states","regionSelect","RegionSelectButtonId"], __constructs__ : ["PACIFIC","GULF","SOUTH_ATLANTIC","MID_ATLANTIC","NEW_ENGLAND","CARIBBEAN","ALASKA","WESTERN_PACIFIC"] }; game_states_regionSelect_RegionSelectButtonId.PACIFIC = ["PACIFIC",0]; game_states_regionSelect_RegionSelectButtonId.PACIFIC.toString = $estr; game_states_regionSelect_RegionSelectButtonId.PACIFIC.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.GULF = ["GULF",1]; game_states_regionSelect_RegionSelectButtonId.GULF.toString = $estr; game_states_regionSelect_RegionSelectButtonId.GULF.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.SOUTH_ATLANTIC = ["SOUTH_ATLANTIC",2]; game_states_regionSelect_RegionSelectButtonId.SOUTH_ATLANTIC.toString = $estr; game_states_regionSelect_RegionSelectButtonId.SOUTH_ATLANTIC.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.MID_ATLANTIC = ["MID_ATLANTIC",3]; game_states_regionSelect_RegionSelectButtonId.MID_ATLANTIC.toString = $estr; game_states_regionSelect_RegionSelectButtonId.MID_ATLANTIC.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.NEW_ENGLAND = ["NEW_ENGLAND",4]; game_states_regionSelect_RegionSelectButtonId.NEW_ENGLAND.toString = $estr; game_states_regionSelect_RegionSelectButtonId.NEW_ENGLAND.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.CARIBBEAN = ["CARIBBEAN",5]; game_states_regionSelect_RegionSelectButtonId.CARIBBEAN.toString = $estr; game_states_regionSelect_RegionSelectButtonId.CARIBBEAN.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.ALASKA = ["ALASKA",6]; game_states_regionSelect_RegionSelectButtonId.ALASKA.toString = $estr; game_states_regionSelect_RegionSelectButtonId.ALASKA.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.WESTERN_PACIFIC = ["WESTERN_PACIFIC",7]; game_states_regionSelect_RegionSelectButtonId.WESTERN_PACIFIC.toString = $estr; game_states_regionSelect_RegionSelectButtonId.WESTERN_PACIFIC.__enum__ = game_states_regionSelect_RegionSelectButtonId; game_states_regionSelect_RegionSelectButtonId.__empty_constructs__ = [game_states_regionSelect_RegionSelectButtonId.PACIFIC,game_states_regionSelect_RegionSelectButtonId.GULF,game_states_regionSelect_RegionSelectButtonId.SOUTH_ATLANTIC,game_states_regionSelect_RegionSelectButtonId.MID_ATLANTIC,game_states_regionSelect_RegionSelectButtonId.NEW_ENGLAND,game_states_regionSelect_RegionSelectButtonId.CARIBBEAN,game_states_regionSelect_RegionSelectButtonId.ALASKA,game_states_regionSelect_RegionSelectButtonId.WESTERN_PACIFIC]; var game_states_regionSelect_RegionSelectMenu = function() { var _g = new haxe_ds_IntMap(); _g.h[game_states_regionSelect_RegionSelectButtonId.PACIFIC[1]] = "Pacific"; _g.h[game_states_regionSelect_RegionSelectButtonId.GULF[1]] = "Gulf of Mexico"; _g.h[game_states_regionSelect_RegionSelectButtonId.SOUTH_ATLANTIC[1]] = "South Atlantic"; _g.h[game_states_regionSelect_RegionSelectButtonId.MID_ATLANTIC[1]] = "Mid-Atlantic"; _g.h[game_states_regionSelect_RegionSelectButtonId.NEW_ENGLAND[1]] = "New England"; _g.h[game_states_regionSelect_RegionSelectButtonId.CARIBBEAN[1]] = "Caribbean"; _g.h[game_states_regionSelect_RegionSelectButtonId.ALASKA[1]] = "Alaska"; _g.h[game_states_regionSelect_RegionSelectButtonId.WESTERN_PACIFIC[1]] = "Western Pacific"; this.buttonRegionMap = _g; game_shared_ui_GameMenu.call(this,"RegionSelectMenu"); }; $hxClasses["game.states.regionSelect.RegionSelectMenu"] = game_states_regionSelect_RegionSelectMenu; game_states_regionSelect_RegionSelectMenu.__name__ = ["game","states","regionSelect","RegionSelectMenu"]; game_states_regionSelect_RegionSelectMenu.__super__ = game_shared_ui_GameMenu; game_states_regionSelect_RegionSelectMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ buttonRegionMap: null ,onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); var region = this.buttonRegionMap.h[caller.id]; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Region Select","Selected region: " + region); var event = new game_states_levelSelect_LevelSelectEvent("REGION_SELECTED",caller.id,region); Global.event.dispatchEvent(event); } ,setRegionsEnabled: function() { var availableRegions = game_data_GameCMS.getAvailableRegions(); var _g = 0; var _g1 = game_states_regionSelect_RegionSelectButtonId.__empty_constructs__; while(_g < _g1.length) { var buttonId = _g1[_g]; ++_g; var region = this.buttonRegionMap.h[buttonId[1]]; if(region != null && availableRegions.indexOf(region) != -1) { var button = this.getButtonById(buttonId[1]); button.set_enabled(true); } } } ,__class__: game_states_regionSelect_RegionSelectMenu }); var game_states_regionSelect_RegionSelectState = function() { game_states_AcadiaGameState.call(this,game_defs_GameState.REGION_SELECT); }; $hxClasses["game.states.regionSelect.RegionSelectState"] = game_states_regionSelect_RegionSelectState; game_states_regionSelect_RegionSelectState.__name__ = ["game","states","regionSelect","RegionSelectState"]; game_states_regionSelect_RegionSelectState.__super__ = game_states_AcadiaGameState; game_states_regionSelect_RegionSelectState.prototype = $extend(game_states_AcadiaGameState.prototype,{ init: function() { game_states_AcadiaGameState.prototype.init.call(this); var this1 = this.m_menus; var value = new game_states_regionSelect_RegionSelectMenu(); var _this = this1; if(__map_reserved["RegionSelectMenu"] != null) { _this.setReserved("RegionSelectMenu",value); } else { _this.h["RegionSelectMenu"] = value; } } ,enter: function(p) { game_states_AcadiaGameState.prototype.enter.call(this,p); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview("RegionSelect"); var _this = this.m_menus; var menu = __map_reserved["RegionSelectMenu"] != null ? _this.getReserved("RegionSelectMenu") : _this.h["RegionSelectMenu"]; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,menu); menu.setRegionsEnabled(); } ,exit: function() { var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["RegionSelectMenu"] != null ? _this.getReserved("RegionSelectMenu") : _this.h["RegionSelectMenu"]); game_states_AcadiaGameState.prototype.exit.call(this); } ,addListeners: function() { Global.event.addEventListener("REGION_SELECTED",$bind(this,this.onRegionSelected)); } ,removeListeners: function() { Global.event.removeEventListener("REGION_SELECTED",$bind(this,this.onRegionSelected)); } ,onRegionSelected: function(e) { var params = { args : [e.levelIdx,e.region]}; com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.LEVEL_SELECT,params); } ,__class__: game_states_regionSelect_RegionSelectState }); var game_states_results_ResultsMenuButton = $hxClasses["game.states.results.ResultsMenuButton"] = { __ename__ : ["game","states","results","ResultsMenuButton"], __constructs__ : ["SHARE_FACEBOOK","SHARE_TWITTER","LEVEL_SELECT","REPLAY"] }; game_states_results_ResultsMenuButton.SHARE_FACEBOOK = ["SHARE_FACEBOOK",0]; game_states_results_ResultsMenuButton.SHARE_FACEBOOK.toString = $estr; game_states_results_ResultsMenuButton.SHARE_FACEBOOK.__enum__ = game_states_results_ResultsMenuButton; game_states_results_ResultsMenuButton.SHARE_TWITTER = ["SHARE_TWITTER",1]; game_states_results_ResultsMenuButton.SHARE_TWITTER.toString = $estr; game_states_results_ResultsMenuButton.SHARE_TWITTER.__enum__ = game_states_results_ResultsMenuButton; game_states_results_ResultsMenuButton.LEVEL_SELECT = ["LEVEL_SELECT",2]; game_states_results_ResultsMenuButton.LEVEL_SELECT.toString = $estr; game_states_results_ResultsMenuButton.LEVEL_SELECT.__enum__ = game_states_results_ResultsMenuButton; game_states_results_ResultsMenuButton.REPLAY = ["REPLAY",3]; game_states_results_ResultsMenuButton.REPLAY.toString = $estr; game_states_results_ResultsMenuButton.REPLAY.__enum__ = game_states_results_ResultsMenuButton; game_states_results_ResultsMenuButton.__empty_constructs__ = [game_states_results_ResultsMenuButton.SHARE_FACEBOOK,game_states_results_ResultsMenuButton.SHARE_TWITTER,game_states_results_ResultsMenuButton.LEVEL_SELECT,game_states_results_ResultsMenuButton.REPLAY]; var game_states_results_ResultsMenu = function() { game_shared_ui_GameMenu.call(this,"ResultsMenu"); }; $hxClasses["game.states.results.ResultsMenu"] = game_states_results_ResultsMenu; game_states_results_ResultsMenu.__name__ = ["game","states","results","ResultsMenu"]; game_states_results_ResultsMenu.__super__ = game_shared_ui_GameMenu; game_states_results_ResultsMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ setMenuToVictory: function(storyIdx,region,isPopular) { var storyData = game_data_GameCMS.getStoryVictoryData(storyIdx,region,isPopular); var titleSprite = this.getChildAs("spr_title",com_firstplayable_hxlib_display_OPSprite); var titleImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage("2d/ui/result/Victory"); titleSprite.changeImage(titleImage); var description = this.getChildAs("lbl_result_text",openfl_text_TextField); description.set_text(storyData.narrativeText); var summary = this.getChildAs("lbl_result_subtext",openfl_text_TextField); summary.set_text(storyData.narrativeHeader); } ,setMenuToDefeat: function(storyIdx,region,isPopular,depletedResource) { var storyData = game_data_GameCMS.getStoryLossData(storyIdx,region,isPopular); var titleSprite = this.getChildAs("spr_title",com_firstplayable_hxlib_display_OPSprite); var titleImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage("2d/ui/result/Defeat"); titleSprite.changeImage(titleImage); var summary = this.getChildAs("lbl_result_subtext",openfl_text_TextField); summary.set_text(storyData.narrativeHeader); var description = this.getChildAs("lbl_result_text",openfl_text_TextField); if(depletedResource != null) { var industryBlurb = game_data_GameCMS.getStringById("RESULTS_INDUSTRY_LOSS").Content; industryBlurb = StringTools.replace(industryBlurb,"",depletedResource); description.set_text(industryBlurb + "\n\n" + storyData.narrativeText); var image = this.getChildAs("ref_prepScenarioImg",com_firstplayable_hxlib_display_OPSprite); var portraitPath = game_defs_ResourceIcons.getResourcePortraitAsset(depletedResource); var portraitImage = com_firstplayable_hxlib_loader_ResMan.get_instance().getImage(portraitPath); image.changeImage(portraitImage); } else { description.set_text(storyData.narrativeText); } } ,onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); var buttonId = Type.createEnumIndex(game_states_results_ResultsMenuButton,caller.id); switch(buttonId[1]) { case 0: this.doFacebookShare(); break; case 1: this.doTwitterShare(); break; case 2: this.signalStateTransition(game_defs_GameState.REGION_SELECT); break; case 3: this.signalStateTransition(game_defs_GameState.GAMEPLAY); break; } } ,signalStateTransition: function(stateId) { var event = new game_events_TransitionEvent("State",Std.string(stateId),Std.string(game_defs_GameState.RESULTS)); Global.event.dispatchEvent(event); } ,doFacebookShare: function() { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Results","Share via Facebook"); com_firstplayable_hxlib_net_apis_FbPost.shareLink("http://www.cardsagainstcalamity.org/","889012041221403"); } ,doTwitterShare: function() { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Results","Share via Twitter"); com_firstplayable_hxlib_net_apis_TwitterApi.tweet("I completed the Digital Cards Against Calamity Game " + "http://www.cardsagainstcalamity.org/"); } ,__class__: game_states_results_ResultsMenu }); var game_states_results_ResultsState = function() { game_states_AcadiaGameState.call(this,game_defs_GameState.RESULTS); }; $hxClasses["game.states.results.ResultsState"] = game_states_results_ResultsState; game_states_results_ResultsState.__name__ = ["game","states","results","ResultsState"]; game_states_results_ResultsState.__super__ = game_states_AcadiaGameState; game_states_results_ResultsState.prototype = $extend(game_states_AcadiaGameState.prototype,{ m_storyIdx: null ,m_socialStat: null ,m_resilienceStat: null ,m_region: null ,m_depletedResource: null ,init: function() { game_states_AcadiaGameState.prototype.init.call(this); var this1 = this.m_menus; var value = new game_states_results_ResultsMenu(); var _this = this1; if(__map_reserved["ResultsMenu"] != null) { _this.setReserved("ResultsMenu",value); } else { _this.h["ResultsMenu"] = value; } } ,enter: function(p) { game_states_AcadiaGameState.prototype.enter.call(this,p); var didWin = true; if(p != null && p.args != null && p.args.length > 0 && typeof(p.args[0]) == "boolean") { didWin = p.args[0]; } this.m_storyIdx = 0; var tmp; if(p != null && p.args != null && p.args.length > 1) { var v = p.args[1]; if(typeof(v) == "number") { tmp = ((v | 0) === v); } else { tmp = false; } } else { tmp = false; } if(tmp) { this.m_storyIdx = p.args[1]; } this.m_socialStat = 1; var tmp1; if(p != null && p.args != null && p.args.length > 2) { var v1 = p.args[2]; if(typeof(v1) == "number") { tmp1 = ((v1 | 0) === v1); } else { tmp1 = false; } } else { tmp1 = false; } if(tmp1) { this.m_socialStat = p.args[2]; } this.m_resilienceStat = 1; var tmp2; if(p != null && p.args != null && p.args.length > 3) { var v2 = p.args[3]; if(typeof(v2) == "number") { tmp2 = ((v2 | 0) === v2); } else { tmp2 = false; } } else { tmp2 = false; } if(tmp2) { this.m_resilienceStat = p.args[3]; } this.m_region = "New England"; if(p != null && p.args != null && p.args.length > 4 && game_defs__$RegionType_RegionType_$Impl_$.getAllValues().indexOf(p.args[4]) != -1) { this.m_region = p.args[4]; } this.m_depletedResource = null; if(p != null && p.args != null && p.args.length > 5 && game_defs__$ResourceType_ResourceType_$Impl_$.getResourceIdx(p.args[5]) != -1) { this.m_depletedResource = p.args[5]; } var _this = this.m_menus; var resultsMenu = __map_reserved["ResultsMenu"] != null ? _this.getReserved("ResultsMenu") : _this.h["ResultsMenu"]; var wasPopular = this.m_socialStat > 0; if(didWin) { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview("ResultsVictory"); if(wasPopular) { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Results","Popular Victory - Region " + this.m_region + " - Story " + (this.m_storyIdx + 1) + " - Resilience " + this.m_resilienceStat); } else { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Results","Unpopular Victory - Region " + this.m_region + " - Story " + (this.m_storyIdx + 1) + " - Resilience " + this.m_resilienceStat); } resultsMenu.setMenuToVictory(this.m_storyIdx,this.m_region,wasPopular); } else { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview("ResultsDefeat"); if(wasPopular) { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Results","Popular Defeat - Region " + this.m_region + " - Story " + (this.m_storyIdx + 1) + " - Resilience " + this.m_resilienceStat); } else { com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendEvent("Results","Unpopular Defeat - Region " + this.m_region + " - Story " + (this.m_storyIdx + 1) + " - Resilience " + this.m_resilienceStat); } resultsMenu.setMenuToDefeat(this.m_storyIdx,this.m_region,wasPopular,this.m_depletedResource); } var _this1 = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["ResultsMenu"] != null ? _this1.getReserved("ResultsMenu") : _this1.h["ResultsMenu"]); } ,exit: function() { var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["ResultsMenu"] != null ? _this.getReserved("ResultsMenu") : _this.h["ResultsMenu"]); game_states_AcadiaGameState.prototype.exit.call(this); } ,addListeners: function() { Global.event.addEventListener("State",$bind(this,this.onMenuComplete)); } ,removeListeners: function() { Global.event.removeEventListener("MenuComplete",$bind(this,this.onMenuComplete)); } ,onMenuComplete: function(e) { var toState = Type.createEnum(game_defs_GameState,e.toStateId,null); var stateParams = { args : []}; if(toState == game_defs_GameState.GAMEPLAY) { stateParams.args.push(this.m_storyIdx); stateParams.args.push(this.m_region); } com_firstplayable_hxlib_state_StateManager.setState(toState,stateParams); } ,__class__: game_states_results_ResultsState }); var game_states_splash_SplashMenu = function() { com_firstplayable_hxlib_display_GenericMenu.call(this,"SplashMenu"); this.loadNextMenu(); }; $hxClasses["game.states.splash.SplashMenu"] = game_states_splash_SplashMenu; game_states_splash_SplashMenu.__name__ = ["game","states","splash","SplashMenu"]; game_states_splash_SplashMenu.__super__ = com_firstplayable_hxlib_display_GenericMenu; game_states_splash_SplashMenu.prototype = $extend(com_firstplayable_hxlib_display_GenericMenu.prototype,{ m_loadIdx: null ,loadNextMenu: function() { this.m_loadIdx = this.m_loadIdx == null ? 0 : this.m_loadIdx + 1; if(this.m_loadIdx >= game_states_splash_SplashMenu.LOAD_LIST.length) { this.onLoadingComplete(); return; } com_firstplayable_hxlib_loader_ResMan.get_instance().load(game_states_splash_SplashMenu.LOAD_LIST[this.m_loadIdx],$bind(this,this.loadNextMenu)); } ,onLoadingComplete: function() { com_firstplayable_hxlib_Debug.log("Loading complete!",null,{ fileName : "SplashMenu.hx", lineNumber : 43, className : "game.states.splash.SplashMenu", methodName : "onLoadingComplete"}); com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.TITLE); } ,__class__: game_states_splash_SplashMenu }); var game_states_splash_SplashState = function() { com_firstplayable_hxlib_state_BaseGameState.call(this,game_defs_GameState.SPLASH); }; $hxClasses["game.states.splash.SplashState"] = game_states_splash_SplashState; game_states_splash_SplashState.__name__ = ["game","states","splash","SplashState"]; game_states_splash_SplashState.__super__ = com_firstplayable_hxlib_state_BaseGameState; game_states_splash_SplashState.prototype = $extend(com_firstplayable_hxlib_state_BaseGameState.prototype,{ m_menu: null ,m_loadIdx: null ,init: function() { com_firstplayable_hxlib_state_BaseGameState.prototype.init.call(this); com_firstplayable_hxlib_audio_WebAudio.get_instance().load(assets_SoundLib.SOUNDS); com_firstplayable_hxlib_loader_ResMan.get_instance().load("SplashMenu",$bind(this,this.onMenuLoaded)); } ,enter: function(p) { com_firstplayable_hxlib_state_BaseGameState.prototype.enter.call(this,p); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview("Splash"); } ,exit: function() { com_firstplayable_hxlib_state_BaseGameState.prototype.exit.call(this); com_firstplayable_hxlib_display_GameDisplay.clearLayer(com_firstplayable_hxlib_display_LayerName.PRIMARY); } ,onMenuLoaded: function() { if(this.m_menu == null) { this.m_loadIdx = 0; this.m_menu = new game_states_splash_SplashMenu(); com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,this.m_menu); } else { ++this.m_loadIdx; } if(this.m_loadIdx == game_states_splash_SplashState.MENU_LOAD_LIST.length) { com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.TITLE); return; } var loadName = game_states_splash_SplashState.MENU_LOAD_LIST[this.m_loadIdx]; com_firstplayable_hxlib_loader_ResMan.get_instance().load(loadName,$bind(this,this.onMenuLoaded)); } ,__class__: game_states_splash_SplashState }); var haxe_StackItem = $hxClasses["haxe.StackItem"] = { __ename__ : ["haxe","StackItem"], __constructs__ : ["CFunction","Module","FilePos","Method","LocalFunction"] }; haxe_StackItem.CFunction = ["CFunction",0]; haxe_StackItem.CFunction.toString = $estr; haxe_StackItem.CFunction.__enum__ = haxe_StackItem; haxe_StackItem.Module = function(m) { var $x = ["Module",1,m]; $x.__enum__ = haxe_StackItem; $x.toString = $estr; return $x; }; haxe_StackItem.FilePos = function(s,file,line) { var $x = ["FilePos",2,s,file,line]; $x.__enum__ = haxe_StackItem; $x.toString = $estr; return $x; }; haxe_StackItem.Method = function(classname,method) { var $x = ["Method",3,classname,method]; $x.__enum__ = haxe_StackItem; $x.toString = $estr; return $x; }; haxe_StackItem.LocalFunction = function(v) { var $x = ["LocalFunction",4,v]; $x.__enum__ = haxe_StackItem; $x.toString = $estr; return $x; }; haxe_StackItem.__empty_constructs__ = [haxe_StackItem.CFunction]; var haxe_CallStack = function() { }; $hxClasses["haxe.CallStack"] = haxe_CallStack; haxe_CallStack.__name__ = ["haxe","CallStack"]; haxe_CallStack.getStack = function(e) { if(e == null) { return []; } var oldValue = Error.prepareStackTrace; Error.prepareStackTrace = function(error,callsites) { var stack = []; var _g = 0; while(_g < callsites.length) { var site = callsites[_g]; ++_g; if(haxe_CallStack.wrapCallSite != null) { site = haxe_CallStack.wrapCallSite(site); } var method = null; var fullName = site.getFunctionName(); if(fullName != null) { var idx = fullName.lastIndexOf("."); if(idx >= 0) { var className = HxOverrides.substr(fullName,0,idx); var methodName = HxOverrides.substr(fullName,idx + 1,null); method = haxe_StackItem.Method(className,methodName); } } stack.push(haxe_StackItem.FilePos(method,site.getFileName(),site.getLineNumber())); } return stack; }; var a = haxe_CallStack.makeStack(e.stack); Error.prepareStackTrace = oldValue; return a; }; haxe_CallStack.callStack = function() { try { throw new Error(); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; var a = haxe_CallStack.getStack(e); a.shift(); return a; } }; haxe_CallStack.exceptionStack = function() { return haxe_CallStack.getStack(haxe_CallStack.lastException); }; haxe_CallStack.toString = function(stack) { var b = new StringBuf(); var _g = 0; while(_g < stack.length) { var s = stack[_g]; ++_g; b.b += "\nCalled from "; haxe_CallStack.itemToString(b,s); } return b.b; }; haxe_CallStack.itemToString = function(b,s) { switch(s[1]) { case 0: b.b += "a C function"; break; case 1: var m = s[2]; b.b += "module "; b.b += m == null ? "null" : "" + m; break; case 2: var line = s[4]; var file = s[3]; var s1 = s[2]; if(s1 != null) { haxe_CallStack.itemToString(b,s1); b.b += " ("; } b.b += file == null ? "null" : "" + file; b.b += " line "; b.b += line == null ? "null" : "" + line; if(s1 != null) { b.b += ")"; } break; case 3: var meth = s[3]; var cname = s[2]; b.b += cname == null ? "null" : "" + cname; b.b += "."; b.b += meth == null ? "null" : "" + meth; break; case 4: var n = s[2]; b.b += "local function #"; b.b += n == null ? "null" : "" + n; break; } }; haxe_CallStack.makeStack = function(s) { if(s == null) { return []; } else if(typeof(s) == "string") { var stack = s.split("\n"); if(stack[0] == "Error") { stack.shift(); } var m = []; var rie10 = new EReg("^ at ([A-Za-z0-9_. ]+) \\(([^)]+):([0-9]+):([0-9]+)\\)$",""); var _g = 0; while(_g < stack.length) { var line = stack[_g]; ++_g; if(rie10.match(line)) { var path = rie10.matched(1).split("."); var meth = path.pop(); var file = rie10.matched(2); var line1 = Std.parseInt(rie10.matched(3)); m.push(haxe_StackItem.FilePos(meth == "Anonymous function" ? haxe_StackItem.LocalFunction() : meth == "Global code" ? null : haxe_StackItem.Method(path.join("."),meth),file,line1)); } else { m.push(haxe_StackItem.Module(StringTools.trim(line))); } } return m; } else { return s; } }; var haxe__$Int64__$_$_$Int64 = function(high,low) { this.high = high; this.low = low; }; $hxClasses["haxe._Int64.___Int64"] = haxe__$Int64__$_$_$Int64; haxe__$Int64__$_$_$Int64.__name__ = ["haxe","_Int64","___Int64"]; haxe__$Int64__$_$_$Int64.prototype = { high: null ,low: null ,__class__: haxe__$Int64__$_$_$Int64 }; var haxe_Log = function() { }; $hxClasses["haxe.Log"] = haxe_Log; haxe_Log.__name__ = ["haxe","Log"]; haxe_Log.trace = function(v,infos) { js_Boot.__trace(v,infos); }; var haxe_Resource = function() { }; $hxClasses["haxe.Resource"] = haxe_Resource; haxe_Resource.__name__ = ["haxe","Resource"]; haxe_Resource.getString = function(name) { var _g = 0; var _g1 = haxe_Resource.content; while(_g < _g1.length) { var x = _g1[_g]; ++_g; if(x.name == name) { if(x.str != null) { return x.str; } var b = haxe_crypto_Base64.decode(x.data); return b.toString(); } } return null; }; var haxe_Serializer = function() { this.buf = new StringBuf(); this.cache = []; this.useCache = haxe_Serializer.USE_CACHE; this.useEnumIndex = haxe_Serializer.USE_ENUM_INDEX; this.shash = new haxe_ds_StringMap(); this.scount = 0; }; $hxClasses["haxe.Serializer"] = haxe_Serializer; haxe_Serializer.__name__ = ["haxe","Serializer"]; haxe_Serializer.run = function(v) { var s = new haxe_Serializer(); s.serialize(v); return s.toString(); }; haxe_Serializer.prototype = { buf: null ,cache: null ,shash: null ,scount: null ,useCache: null ,useEnumIndex: null ,toString: function() { return this.buf.b; } ,serializeString: function(s) { var _this = this.shash; var x = __map_reserved[s] != null ? _this.getReserved(s) : _this.h[s]; if(x != null) { this.buf.b += "R"; this.buf.b += x == null ? "null" : "" + x; return; } var _this1 = this.shash; var value = this.scount++; if(__map_reserved[s] != null) { _this1.setReserved(s,value); } else { _this1.h[s] = value; } this.buf.b += "y"; s = encodeURIComponent(s); this.buf.b += Std.string(s.length); this.buf.b += ":"; this.buf.b += s == null ? "null" : "" + s; } ,serializeRef: function(v) { var vt = typeof(v); var _g1 = 0; var _g = this.cache.length; while(_g1 < _g) { var i = _g1++; var ci = this.cache[i]; if(typeof(ci) == vt && ci == v) { this.buf.b += "r"; this.buf.b += i == null ? "null" : "" + i; return true; } } this.cache.push(v); return false; } ,serializeFields: function(v) { var _g = 0; var _g1 = Reflect.fields(v); while(_g < _g1.length) { var f = _g1[_g]; ++_g; this.serializeString(f); this.serialize(Reflect.field(v,f)); } this.buf.b += "g"; } ,serialize: function(v) { var _g = Type["typeof"](v); switch(_g[1]) { case 0: this.buf.b += "n"; break; case 1: var v1 = v; if(v1 == 0) { this.buf.b += "z"; return; } this.buf.b += "i"; this.buf.b += v1 == null ? "null" : "" + v1; break; case 2: var v2 = v; if(isNaN(v2)) { this.buf.b += "k"; } else if(!isFinite(v2)) { this.buf.b += v2 < 0 ? "m" : "p"; } else { this.buf.b += "d"; this.buf.b += v2 == null ? "null" : "" + v2; } break; case 3: this.buf.b += v ? "t" : "f"; break; case 4: if(js_Boot.__instanceof(v,Class)) { var className = Type.getClassName(v); this.buf.b += "A"; this.serializeString(className); } else if(js_Boot.__instanceof(v,Enum)) { this.buf.b += "B"; this.serializeString(Type.getEnumName(v)); } else { if(this.useCache && this.serializeRef(v)) { return; } this.buf.b += "o"; this.serializeFields(v); } break; case 5: throw new js__$Boot_HaxeError("Cannot serialize function"); break; case 6: var c = _g[2]; if(c == String) { this.serializeString(v); return; } if(this.useCache && this.serializeRef(v)) { return; } switch(c) { case Array: var ucount = 0; this.buf.b += "a"; var l = v["length"]; var _g1 = 0; var _g2 = l; while(_g1 < _g2) { var i = _g1++; if(v[i] == null) { ++ucount; } else { if(ucount > 0) { if(ucount == 1) { this.buf.b += "n"; } else { this.buf.b += "u"; this.buf.b += ucount == null ? "null" : "" + ucount; } ucount = 0; } this.serialize(v[i]); } } if(ucount > 0) { if(ucount == 1) { this.buf.b += "n"; } else { this.buf.b += "u"; this.buf.b += ucount == null ? "null" : "" + ucount; } } this.buf.b += "h"; break; case Date: var d = v; this.buf.b += "v"; this.buf.b += Std.string(d.getTime()); break; case List: this.buf.b += "l"; var v3 = v; var _g_head = v3.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var i1 = val; this.serialize(i1); } this.buf.b += "h"; break; case haxe_ds_IntMap: this.buf.b += "q"; var v4 = v; var k = v4.keys(); while(k.hasNext()) { var k1 = k.next(); this.buf.b += ":"; this.buf.b += k1 == null ? "null" : "" + k1; this.serialize(v4.h[k1]); } this.buf.b += "h"; break; case haxe_ds_ObjectMap: this.buf.b += "M"; var v5 = v; var k2 = v5.keys(); while(k2.hasNext()) { var k3 = k2.next(); var id = Reflect.field(k3,"__id__"); Reflect.deleteField(k3,"__id__"); this.serialize(k3); k3["__id__"] = id; this.serialize(v5.h[k3.__id__]); } this.buf.b += "h"; break; case haxe_ds_StringMap: this.buf.b += "b"; var v6 = v; var k4 = v6.keys(); while(k4.hasNext()) { var k5 = k4.next(); this.serializeString(k5); this.serialize(__map_reserved[k5] != null ? v6.getReserved(k5) : v6.h[k5]); } this.buf.b += "h"; break; case haxe_io_Bytes: var v7 = v; this.buf.b += "s"; this.buf.b += Std.string(Math.ceil(v7.length * 8 / 6)); this.buf.b += ":"; var i2 = 0; var max = v7.length - 2; var b64 = haxe_Serializer.BASE64_CODES; if(b64 == null) { var length = haxe_Serializer.BASE64.length; var this1 = new Array(length); b64 = this1; var _g11 = 0; var _g3 = haxe_Serializer.BASE64.length; while(_g11 < _g3) { var i3 = _g11++; b64[i3] = HxOverrides.cca(haxe_Serializer.BASE64,i3); } haxe_Serializer.BASE64_CODES = b64; } while(i2 < max) { var b1 = v7.b[i2++]; var b2 = v7.b[i2++]; var b3 = v7.b[i2++]; this.buf.b += String.fromCharCode(b64[b1 >> 2]); this.buf.b += String.fromCharCode(b64[(b1 << 4 | b2 >> 4) & 63]); this.buf.b += String.fromCharCode(b64[(b2 << 2 | b3 >> 6) & 63]); this.buf.b += String.fromCharCode(b64[b3 & 63]); } if(i2 == max) { var b11 = v7.b[i2++]; var b21 = v7.b[i2++]; this.buf.b += String.fromCharCode(b64[b11 >> 2]); this.buf.b += String.fromCharCode(b64[(b11 << 4 | b21 >> 4) & 63]); this.buf.b += String.fromCharCode(b64[b21 << 2 & 63]); } else if(i2 == max + 1) { var b12 = v7.b[i2++]; this.buf.b += String.fromCharCode(b64[b12 >> 2]); this.buf.b += String.fromCharCode(b64[b12 << 4 & 63]); } break; default: if(this.useCache) { this.cache.pop(); } if(v.hxSerialize != null) { this.buf.b += "C"; this.serializeString(Type.getClassName(c)); if(this.useCache) { this.cache.push(v); } v.hxSerialize(this); this.buf.b += "g"; } else { this.buf.b += "c"; this.serializeString(Type.getClassName(c)); if(this.useCache) { this.cache.push(v); } this.serializeFields(v); } } break; case 7: var e = _g[2]; if(this.useCache) { if(this.serializeRef(v)) { return; } this.cache.pop(); } this.buf.b += Std.string(this.useEnumIndex ? "j" : "w"); this.serializeString(Type.getEnumName(e)); if(this.useEnumIndex) { this.buf.b += ":"; this.buf.b += Std.string(v[1]); } else { this.serializeString(v[0]); } this.buf.b += ":"; var l1 = v["length"]; this.buf.b += Std.string(l1 - 2); var _g12 = 2; var _g4 = l1; while(_g12 < _g4) { var i4 = _g12++; this.serialize(v[i4]); } if(this.useCache) { this.cache.push(v); } break; default: throw new js__$Boot_HaxeError("Cannot serialize " + Std.string(v)); } } ,__class__: haxe_Serializer }; var haxe_Timer = function(time_ms) { var me = this; this.id = setInterval(function() { me.run(); },time_ms); }; $hxClasses["haxe.Timer"] = haxe_Timer; haxe_Timer.__name__ = ["haxe","Timer"]; haxe_Timer.delay = function(f,time_ms) { var t = new haxe_Timer(time_ms); t.run = function() { t.stop(); f(); }; return t; }; haxe_Timer.measure = function(f,pos) { var t0 = window.performance.now() / 1000; var r = f(); haxe_Log.trace(window.performance.now() / 1000 - t0 + "s",pos); return r; }; haxe_Timer.stamp = function() { return window.performance.now() / 1000; }; haxe_Timer.prototype = { id: null ,stop: function() { if(this.id == null) { return; } clearInterval(this.id); this.id = null; } ,run: function() { } ,__class__: haxe_Timer }; var haxe__$Unserializer_DefaultResolver = function() { }; $hxClasses["haxe._Unserializer.DefaultResolver"] = haxe__$Unserializer_DefaultResolver; haxe__$Unserializer_DefaultResolver.__name__ = ["haxe","_Unserializer","DefaultResolver"]; haxe__$Unserializer_DefaultResolver.prototype = { resolveClass: function(name) { return Type.resolveClass(name); } ,resolveEnum: function(name) { return Type.resolveEnum(name); } ,__class__: haxe__$Unserializer_DefaultResolver }; var haxe_Unserializer = function(buf) { this.buf = buf; this.length = buf.length; this.pos = 0; this.scache = []; this.cache = []; var r = haxe_Unserializer.DEFAULT_RESOLVER; if(r == null) { r = new haxe__$Unserializer_DefaultResolver(); haxe_Unserializer.DEFAULT_RESOLVER = r; } this.resolver = r; }; $hxClasses["haxe.Unserializer"] = haxe_Unserializer; haxe_Unserializer.__name__ = ["haxe","Unserializer"]; haxe_Unserializer.initCodes = function() { var codes = []; var _g1 = 0; var _g = haxe_Unserializer.BASE64.length; while(_g1 < _g) { var i = _g1++; codes[haxe_Unserializer.BASE64.charCodeAt(i)] = i; } return codes; }; haxe_Unserializer.run = function(v) { return new haxe_Unserializer(v).unserialize(); }; haxe_Unserializer.prototype = { buf: null ,pos: null ,length: null ,cache: null ,scache: null ,resolver: null ,setResolver: function(r) { if(r == null) { if(haxe__$Unserializer_NullResolver.instance == null) { haxe__$Unserializer_NullResolver.instance = new haxe__$Unserializer_NullResolver(); } this.resolver = haxe__$Unserializer_NullResolver.instance; } else { this.resolver = r; } } ,readDigits: function() { var k = 0; var s = false; var fpos = this.pos; while(true) { var c = this.buf.charCodeAt(this.pos); if(c != c) { break; } if(c == 45) { if(this.pos != fpos) { break; } s = true; this.pos++; continue; } if(c < 48 || c > 57) { break; } k = k * 10 + (c - 48); this.pos++; } if(s) { k *= -1; } return k; } ,readFloat: function() { var p1 = this.pos; while(true) { var c = this.buf.charCodeAt(this.pos); if(c != c) { break; } if(c >= 43 && c < 58 || c == 101 || c == 69) { this.pos++; } else { break; } } return parseFloat(HxOverrides.substr(this.buf,p1,this.pos - p1)); } ,unserializeObject: function(o) { while(true) { if(this.pos >= this.length) { throw new js__$Boot_HaxeError("Invalid object"); } if(this.buf.charCodeAt(this.pos) == 103) { break; } var k = this.unserialize(); if(typeof(k) != "string") { throw new js__$Boot_HaxeError("Invalid object key"); } var v = this.unserialize(); o[k] = v; } this.pos++; } ,unserializeEnum: function(edecl,tag) { if(this.buf.charCodeAt(this.pos++) != 58) { throw new js__$Boot_HaxeError("Invalid enum format"); } var nargs = this.readDigits(); if(nargs == 0) { return Type.createEnum(edecl,tag); } var args = []; while(nargs-- > 0) args.push(this.unserialize()); return Type.createEnum(edecl,tag,args); } ,unserialize: function() { var _g = this.buf.charCodeAt(this.pos++); switch(_g) { case 65: var name = this.unserialize(); var cl = this.resolver.resolveClass(name); if(cl == null) { throw new js__$Boot_HaxeError("Class not found " + name); } return cl; case 66: var name1 = this.unserialize(); var e = this.resolver.resolveEnum(name1); if(e == null) { throw new js__$Boot_HaxeError("Enum not found " + name1); } return e; case 67: var name2 = this.unserialize(); var cl1 = this.resolver.resolveClass(name2); if(cl1 == null) { throw new js__$Boot_HaxeError("Class not found " + name2); } var o = Type.createEmptyInstance(cl1); this.cache.push(o); o.hxUnserialize(this); if(this.buf.charCodeAt(this.pos++) != 103) { throw new js__$Boot_HaxeError("Invalid custom data"); } return o; case 77: var h = new haxe_ds_ObjectMap(); this.cache.push(h); var buf = this.buf; while(this.buf.charCodeAt(this.pos) != 104) { var s = this.unserialize(); h.set(s,this.unserialize()); } this.pos++; return h; case 82: var n = this.readDigits(); if(n < 0 || n >= this.scache.length) { throw new js__$Boot_HaxeError("Invalid string reference"); } return this.scache[n]; case 97: var buf1 = this.buf; var a = []; this.cache.push(a); while(true) { var c = this.buf.charCodeAt(this.pos); if(c == 104) { this.pos++; break; } if(c == 117) { this.pos++; var n1 = this.readDigits(); a[a.length + n1 - 1] = null; } else { a.push(this.unserialize()); } } return a; case 98: var h1 = new haxe_ds_StringMap(); this.cache.push(h1); var buf2 = this.buf; while(this.buf.charCodeAt(this.pos) != 104) { var s1 = this.unserialize(); var value = this.unserialize(); if(__map_reserved[s1] != null) { h1.setReserved(s1,value); } else { h1.h[s1] = value; } } this.pos++; return h1; case 99: var name3 = this.unserialize(); var cl2 = this.resolver.resolveClass(name3); if(cl2 == null) { throw new js__$Boot_HaxeError("Class not found " + name3); } var o1 = Type.createEmptyInstance(cl2); this.cache.push(o1); this.unserializeObject(o1); return o1; case 100: return this.readFloat(); case 102: return false; case 105: return this.readDigits(); case 106: var name4 = this.unserialize(); var edecl = this.resolver.resolveEnum(name4); if(edecl == null) { throw new js__$Boot_HaxeError("Enum not found " + name4); } this.pos++; var index = this.readDigits(); var tag = edecl.__constructs__.slice()[index]; if(tag == null) { throw new js__$Boot_HaxeError("Unknown enum index " + name4 + "@" + index); } var e1 = this.unserializeEnum(edecl,tag); this.cache.push(e1); return e1; case 107: return NaN; case 108: var l = new List(); this.cache.push(l); var buf3 = this.buf; while(this.buf.charCodeAt(this.pos) != 104) l.add(this.unserialize()); this.pos++; return l; case 109: return -Infinity; case 110: return null; case 111: var o2 = { }; this.cache.push(o2); this.unserializeObject(o2); return o2; case 112: return Infinity; case 113: var h2 = new haxe_ds_IntMap(); this.cache.push(h2); var buf4 = this.buf; var c1 = this.buf.charCodeAt(this.pos++); while(c1 == 58) { var i = this.readDigits(); var value1 = this.unserialize(); h2.h[i] = value1; c1 = this.buf.charCodeAt(this.pos++); } if(c1 != 104) { throw new js__$Boot_HaxeError("Invalid IntMap format"); } return h2; case 114: var n2 = this.readDigits(); if(n2 < 0 || n2 >= this.cache.length) { throw new js__$Boot_HaxeError("Invalid reference"); } return this.cache[n2]; case 115: var len = this.readDigits(); var buf5 = this.buf; if(this.buf.charCodeAt(this.pos++) != 58 || this.length - this.pos < len) { throw new js__$Boot_HaxeError("Invalid bytes length"); } var codes = haxe_Unserializer.CODES; if(codes == null) { codes = haxe_Unserializer.initCodes(); haxe_Unserializer.CODES = codes; } var i1 = this.pos; var rest = len & 3; var size = (len >> 2) * 3 + (rest >= 2 ? rest - 1 : 0); var max = i1 + (len - rest); var bytes = new haxe_io_Bytes(new ArrayBuffer(size)); var bpos = 0; while(i1 < max) { var c11 = codes[buf5.charCodeAt(i1++)]; var c2 = codes[buf5.charCodeAt(i1++)]; bytes.b[bpos++] = (c11 << 2 | c2 >> 4) & 255; var c3 = codes[buf5.charCodeAt(i1++)]; bytes.b[bpos++] = (c2 << 4 | c3 >> 2) & 255; var c4 = codes[buf5.charCodeAt(i1++)]; bytes.b[bpos++] = (c3 << 6 | c4) & 255; } if(rest >= 2) { var c12 = codes[buf5.charCodeAt(i1++)]; var c21 = codes[buf5.charCodeAt(i1++)]; bytes.b[bpos++] = (c12 << 2 | c21 >> 4) & 255; if(rest == 3) { var c31 = codes[buf5.charCodeAt(i1++)]; bytes.b[bpos++] = (c21 << 4 | c31 >> 2) & 255; } } this.pos += len; this.cache.push(bytes); return bytes; case 116: return true; case 118: var d; if(this.buf.charCodeAt(this.pos) >= 48 && this.buf.charCodeAt(this.pos) <= 57 && this.buf.charCodeAt(this.pos + 1) >= 48 && this.buf.charCodeAt(this.pos + 1) <= 57 && this.buf.charCodeAt(this.pos + 2) >= 48 && this.buf.charCodeAt(this.pos + 2) <= 57 && this.buf.charCodeAt(this.pos + 3) >= 48 && this.buf.charCodeAt(this.pos + 3) <= 57 && this.buf.charCodeAt(this.pos + 4) == 45) { d = HxOverrides.strDate(HxOverrides.substr(this.buf,this.pos,19)); this.pos += 19; } else { var t = this.readFloat(); d = new Date(t); } this.cache.push(d); return d; case 119: var name5 = this.unserialize(); var edecl1 = this.resolver.resolveEnum(name5); if(edecl1 == null) { throw new js__$Boot_HaxeError("Enum not found " + name5); } var e2 = this.unserializeEnum(edecl1,this.unserialize()); this.cache.push(e2); return e2; case 120: throw js__$Boot_HaxeError.wrap(this.unserialize()); break; case 121: var len1 = this.readDigits(); if(this.buf.charCodeAt(this.pos++) != 58 || this.length - this.pos < len1) { throw new js__$Boot_HaxeError("Invalid string length"); } var s2 = HxOverrides.substr(this.buf,this.pos,len1); this.pos += len1; s2 = decodeURIComponent(s2.split("+").join(" ")); this.scache.push(s2); return s2; case 122: return 0; default: } this.pos--; throw new js__$Boot_HaxeError("Invalid char " + this.buf.charAt(this.pos) + " at position " + this.pos); } ,__class__: haxe_Unserializer }; var haxe__$Unserializer_NullResolver = function() { }; $hxClasses["haxe._Unserializer.NullResolver"] = haxe__$Unserializer_NullResolver; haxe__$Unserializer_NullResolver.__name__ = ["haxe","_Unserializer","NullResolver"]; haxe__$Unserializer_NullResolver.prototype = { resolveClass: function(name) { return null; } ,resolveEnum: function(name) { return null; } ,__class__: haxe__$Unserializer_NullResolver }; var haxe_Utf8 = function(size) { this.__b = ""; }; $hxClasses["haxe.Utf8"] = haxe_Utf8; haxe_Utf8.__name__ = ["haxe","Utf8"]; haxe_Utf8.prototype = { __b: null ,__class__: haxe_Utf8 }; var haxe_crypto_Adler32 = function() { this.a1 = 1; this.a2 = 0; }; $hxClasses["haxe.crypto.Adler32"] = haxe_crypto_Adler32; haxe_crypto_Adler32.__name__ = ["haxe","crypto","Adler32"]; haxe_crypto_Adler32.read = function(i) { var a = new haxe_crypto_Adler32(); var a2a = i.readByte(); var a2b = i.readByte(); var a1a = i.readByte(); var a1b = i.readByte(); a.a1 = a1a << 8 | a1b; a.a2 = a2a << 8 | a2b; return a; }; haxe_crypto_Adler32.prototype = { a1: null ,a2: null ,update: function(b,pos,len) { var a1 = this.a1; var a2 = this.a2; var _g1 = pos; var _g = pos + len; while(_g1 < _g) { var p = _g1++; var c = b.b[p]; a1 = (a1 + c) % 65521; a2 = (a2 + a1) % 65521; } this.a1 = a1; this.a2 = a2; } ,equals: function(a) { if(a.a1 == this.a1) { return a.a2 == this.a2; } else { return false; } } ,__class__: haxe_crypto_Adler32 }; var haxe_io_Bytes = function(data) { this.length = data.byteLength; this.b = new Uint8Array(data); this.b.bufferValue = data; data.hxBytes = this; data.bytes = this.b; }; $hxClasses["haxe.io.Bytes"] = haxe_io_Bytes; haxe_io_Bytes.__name__ = ["haxe","io","Bytes"]; haxe_io_Bytes.alloc = function(length) { return new haxe_io_Bytes(new ArrayBuffer(length)); }; haxe_io_Bytes.ofString = function(s) { var a = []; var i = 0; while(i < s.length) { var c = s.charCodeAt(i++); if(55296 <= c && c <= 56319) { c = c - 55232 << 10 | s.charCodeAt(i++) & 1023; } if(c <= 127) { a.push(c); } else if(c <= 2047) { a.push(192 | c >> 6); a.push(128 | c & 63); } else if(c <= 65535) { a.push(224 | c >> 12); a.push(128 | c >> 6 & 63); a.push(128 | c & 63); } else { a.push(240 | c >> 18); a.push(128 | c >> 12 & 63); a.push(128 | c >> 6 & 63); a.push(128 | c & 63); } } return new haxe_io_Bytes(new Uint8Array(a).buffer); }; haxe_io_Bytes.ofData = function(b) { var hb = b.hxBytes; if(hb != null) { return hb; } return new haxe_io_Bytes(b); }; haxe_io_Bytes.fastGet = function(b,pos) { return b.bytes[pos]; }; haxe_io_Bytes.prototype = { length: null ,b: null ,data: null ,get: function(pos) { return this.b[pos]; } ,set: function(pos,v) { this.b[pos] = v & 255; } ,blit: function(pos,src,srcpos,len) { if(pos < 0 || srcpos < 0 || len < 0 || pos + len > this.length || srcpos + len > src.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } if(srcpos == 0 && len == src.b.byteLength) { this.b.set(src.b,pos); } else { this.b.set(src.b.subarray(srcpos,srcpos + len),pos); } } ,fill: function(pos,len,value) { var _g1 = 0; var _g = len; while(_g1 < _g) { var i = _g1++; this.b[pos++] = value & 255; } } ,sub: function(pos,len) { if(pos < 0 || len < 0 || pos + len > this.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } return new haxe_io_Bytes(this.b.buffer.slice(pos + this.b.byteOffset,pos + this.b.byteOffset + len)); } ,compare: function(other) { var b1 = this.b; var b2 = other.b; var len = this.length < other.length ? this.length : other.length; var _g1 = 0; var _g = len; while(_g1 < _g) { var i = _g1++; if(b1[i] != b2[i]) { return b1[i] - b2[i]; } } return this.length - other.length; } ,initData: function() { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } } ,getDouble: function(pos) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } return this.data.getFloat64(pos,true); } ,getFloat: function(pos) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } return this.data.getFloat32(pos,true); } ,setDouble: function(pos,v) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } this.data.setFloat64(pos,v,true); } ,setFloat: function(pos,v) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } this.data.setFloat32(pos,v,true); } ,getUInt16: function(pos) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } return this.data.getUint16(pos,true); } ,setUInt16: function(pos,v) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } this.data.setUint16(pos,v,true); } ,getInt32: function(pos) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } return this.data.getInt32(pos,true); } ,setInt32: function(pos,v) { if(this.data == null) { this.data = new DataView(this.b.buffer,this.b.byteOffset,this.b.byteLength); } this.data.setInt32(pos,v,true); } ,getInt64: function(pos) { var this1 = new haxe__$Int64__$_$_$Int64(this.getInt32(pos + 4),this.getInt32(pos)); return this1; } ,setInt64: function(pos,v) { this.setInt32(pos,v.low); this.setInt32(pos + 4,v.high); } ,getString: function(pos,len) { if(pos < 0 || len < 0 || pos + len > this.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } var s = ""; var b = this.b; var fcc = String.fromCharCode; var i = pos; var max = pos + len; while(i < max) { var c = b[i++]; if(c < 128) { if(c == 0) { break; } s += fcc(c); } else if(c < 224) { s += fcc((c & 63) << 6 | b[i++] & 127); } else if(c < 240) { var c2 = b[i++]; s += fcc((c & 31) << 12 | (c2 & 127) << 6 | b[i++] & 127); } else { var c21 = b[i++]; var c3 = b[i++]; var u = (c & 15) << 18 | (c21 & 127) << 12 | (c3 & 127) << 6 | b[i++] & 127; s += fcc((u >> 10) + 55232); s += fcc(u & 1023 | 56320); } } return s; } ,readString: function(pos,len) { return this.getString(pos,len); } ,toString: function() { return this.getString(0,this.length); } ,toHex: function() { var s_b = ""; var chars = []; var str = "0123456789abcdef"; var _g1 = 0; var _g = str.length; while(_g1 < _g) { var i = _g1++; chars.push(HxOverrides.cca(str,i)); } var _g11 = 0; var _g2 = this.length; while(_g11 < _g2) { var i1 = _g11++; var c = this.b[i1]; s_b += String.fromCharCode(chars[c >> 4]); s_b += String.fromCharCode(chars[c & 15]); } return s_b; } ,getData: function() { return this.b.bufferValue; } ,__class__: haxe_io_Bytes }; var haxe_crypto_Base64 = function() { }; $hxClasses["haxe.crypto.Base64"] = haxe_crypto_Base64; haxe_crypto_Base64.__name__ = ["haxe","crypto","Base64"]; haxe_crypto_Base64.decode = function(str,complement) { if(complement == null) { complement = true; } if(complement) { while(HxOverrides.cca(str,str.length - 1) == 61) str = HxOverrides.substr(str,0,-1); } return new haxe_crypto_BaseCode(haxe_crypto_Base64.BYTES).decodeBytes(haxe_io_Bytes.ofString(str)); }; var haxe_crypto_BaseCode = function(base) { var len = base.length; var nbits = 1; while(len > 1 << nbits) ++nbits; if(nbits > 8 || len != 1 << nbits) { throw new js__$Boot_HaxeError("BaseCode : base length must be a power of two."); } this.base = base; this.nbits = nbits; }; $hxClasses["haxe.crypto.BaseCode"] = haxe_crypto_BaseCode; haxe_crypto_BaseCode.__name__ = ["haxe","crypto","BaseCode"]; haxe_crypto_BaseCode.prototype = { base: null ,nbits: null ,tbl: null ,encodeBytes: function(b) { var nbits = this.nbits; var base = this.base; var size = b.length * 8 / nbits | 0; var out = new haxe_io_Bytes(new ArrayBuffer(size + (b.length * 8 % nbits == 0 ? 0 : 1))); var buf = 0; var curbits = 0; var mask = (1 << nbits) - 1; var pin = 0; var pout = 0; while(pout < size) { while(curbits < nbits) { curbits += 8; buf <<= 8; buf |= b.b[pin++]; } curbits -= nbits; out.b[pout++] = base.b[buf >> curbits & mask] & 255; } if(curbits > 0) { out.b[pout++] = base.b[buf << nbits - curbits & mask] & 255; } return out; } ,initTable: function() { var tbl = []; var _g = 0; while(_g < 256) { var i = _g++; tbl[i] = -1; } var _g1 = 0; var _g2 = this.base.length; while(_g1 < _g2) { var i1 = _g1++; tbl[this.base.b[i1]] = i1; } this.tbl = tbl; } ,decodeBytes: function(b) { var nbits = this.nbits; var base = this.base; if(this.tbl == null) { this.initTable(); } var tbl = this.tbl; var size = b.length * nbits >> 3; var out = new haxe_io_Bytes(new ArrayBuffer(size)); var buf = 0; var curbits = 0; var pin = 0; var pout = 0; while(pout < size) { while(curbits < 8) { curbits += nbits; buf <<= nbits; var i = tbl[b.b[pin++]]; if(i == -1) { throw new js__$Boot_HaxeError("BaseCode : invalid encoded char"); } buf |= i; } curbits -= 8; out.b[pout++] = buf >> curbits & 255 & 255; } return out; } ,__class__: haxe_crypto_BaseCode }; var haxe_crypto_Crc32 = function() { this.crc = -1; }; $hxClasses["haxe.crypto.Crc32"] = haxe_crypto_Crc32; haxe_crypto_Crc32.__name__ = ["haxe","crypto","Crc32"]; haxe_crypto_Crc32.prototype = { crc: null ,'byte': function(b) { var tmp = (this.crc ^ b) & 255; var _g = 0; while(_g < 8) { var j = _g++; if((tmp & 1) == 1) { tmp = tmp >>> 1 ^ -306674912; } else { tmp >>>= 1; } } this.crc = this.crc >>> 8 ^ tmp; } ,update: function(b,pos,len) { var b1 = b.b.bufferValue; var _g1 = pos; var _g = pos + len; while(_g1 < _g) { var i = _g1++; var tmp = (this.crc ^ b1.bytes[i]) & 255; var _g2 = 0; while(_g2 < 8) { var j = _g2++; if((tmp & 1) == 1) { tmp = tmp >>> 1 ^ -306674912; } else { tmp >>>= 1; } } this.crc = this.crc >>> 8 ^ tmp; } } ,get: function() { return this.crc ^ -1; } ,__class__: haxe_crypto_Crc32 }; var haxe_ds_TreeNode = function(l,k,v,r,h) { if(h == null) { h = -1; } this.left = l; this.key = k; this.value = v; this.right = r; if(h == -1) { var tmp; var _this = this.left; var _this1 = this.right; if((_this == null ? 0 : _this._height) > (_this1 == null ? 0 : _this1._height)) { var _this2 = this.left; if(_this2 == null) { tmp = 0; } else { tmp = _this2._height; } } else { var _this3 = this.right; if(_this3 == null) { tmp = 0; } else { tmp = _this3._height; } } this._height = tmp + 1; } else { this._height = h; } }; $hxClasses["haxe.ds.TreeNode"] = haxe_ds_TreeNode; haxe_ds_TreeNode.__name__ = ["haxe","ds","TreeNode"]; haxe_ds_TreeNode.prototype = { left: null ,right: null ,key: null ,value: null ,_height: null ,__class__: haxe_ds_TreeNode }; var haxe_ds_ObjectMap = function() { this.h = { __keys__ : { }}; }; $hxClasses["haxe.ds.ObjectMap"] = haxe_ds_ObjectMap; haxe_ds_ObjectMap.__name__ = ["haxe","ds","ObjectMap"]; haxe_ds_ObjectMap.__interfaces__ = [haxe_IMap]; haxe_ds_ObjectMap.assignId = function(obj) { return obj.__id__ = ++haxe_ds_ObjectMap.count; }; haxe_ds_ObjectMap.getId = function(obj) { return obj.__id__; }; haxe_ds_ObjectMap.prototype = { h: null ,set: function(key,value) { var id = key.__id__ || (key.__id__ = ++haxe_ds_ObjectMap.count); this.h[id] = value; this.h.__keys__[id] = key; } ,get: function(key) { return this.h[key.__id__]; } ,exists: function(key) { return this.h.__keys__[key.__id__] != null; } ,remove: function(key) { var id = key.__id__; if(this.h.__keys__[id] == null) { return false; } delete(this.h[id]); delete(this.h.__keys__[id]); return true; } ,keys: function() { var a = []; for( var key in this.h.__keys__ ) { if(this.h.hasOwnProperty(key)) { a.push(this.h.__keys__[key]); } } return HxOverrides.iter(a); } ,iterator: function() { return { ref : this.h, it : this.keys(), hasNext : function() { return this.it.hasNext(); }, next : function() { var i = this.it.next(); return this.ref[i.__id__]; }}; } ,__class__: haxe_ds_ObjectMap }; var haxe_ds__$StringMap_StringMapIterator = function(map,keys) { this.map = map; this.keys = keys; this.index = 0; this.count = keys.length; }; $hxClasses["haxe.ds._StringMap.StringMapIterator"] = haxe_ds__$StringMap_StringMapIterator; haxe_ds__$StringMap_StringMapIterator.__name__ = ["haxe","ds","_StringMap","StringMapIterator"]; haxe_ds__$StringMap_StringMapIterator.prototype = { map: null ,keys: null ,index: null ,count: null ,hasNext: function() { return this.index < this.count; } ,next: function() { var _this = this.map; var key = this.keys[this.index++]; if(__map_reserved[key] != null) { return _this.getReserved(key); } else { return _this.h[key]; } } ,__class__: haxe_ds__$StringMap_StringMapIterator }; var haxe_format_JsonParser = function(str) { this.str = str; this.pos = 0; }; $hxClasses["haxe.format.JsonParser"] = haxe_format_JsonParser; haxe_format_JsonParser.__name__ = ["haxe","format","JsonParser"]; haxe_format_JsonParser.prototype = { str: null ,pos: null ,parseRec: function() { while(true) { var c = this.str.charCodeAt(this.pos++); switch(c) { case 9:case 10:case 13:case 32: break; case 34: return this.parseString(); case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57: var c1 = c; var start = this.pos - 1; var minus = c1 == 45; var digit = !minus; var zero = c1 == 48; var point = false; var e = false; var pm = false; var end = false; while(true) { c1 = this.str.charCodeAt(this.pos++); switch(c1) { case 43:case 45: if(!e || pm) { this.invalidNumber(start); } digit = false; pm = true; break; case 46: if(minus || point) { this.invalidNumber(start); } digit = false; point = true; break; case 48: if(zero && !point) { this.invalidNumber(start); } if(minus) { minus = false; zero = true; } digit = true; break; case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57: if(zero && !point) { this.invalidNumber(start); } if(minus) { minus = false; } digit = true; zero = false; break; case 69:case 101: if(minus || zero || e) { this.invalidNumber(start); } digit = false; e = true; break; default: if(!digit) { this.invalidNumber(start); } this.pos--; end = true; } if(end) { break; } } var f = parseFloat(HxOverrides.substr(this.str,start,this.pos - start)); var i = f | 0; if(i == f) { return i; } else { return f; } break; case 91: var arr = []; var comma = null; while(true) { var c2 = this.str.charCodeAt(this.pos++); switch(c2) { case 9:case 10:case 13:case 32: break; case 44: if(comma) { comma = false; } else { this.invalidChar(); } break; case 93: if(comma == false) { this.invalidChar(); } return arr; default: if(comma) { this.invalidChar(); } this.pos--; arr.push(this.parseRec()); comma = true; } } break; case 102: var save = this.pos; if(this.str.charCodeAt(this.pos++) != 97 || this.str.charCodeAt(this.pos++) != 108 || this.str.charCodeAt(this.pos++) != 115 || this.str.charCodeAt(this.pos++) != 101) { this.pos = save; this.invalidChar(); } return false; case 110: var save1 = this.pos; if(this.str.charCodeAt(this.pos++) != 117 || this.str.charCodeAt(this.pos++) != 108 || this.str.charCodeAt(this.pos++) != 108) { this.pos = save1; this.invalidChar(); } return null; case 116: var save2 = this.pos; if(this.str.charCodeAt(this.pos++) != 114 || this.str.charCodeAt(this.pos++) != 117 || this.str.charCodeAt(this.pos++) != 101) { this.pos = save2; this.invalidChar(); } return true; case 123: var obj = { }; var field = null; var comma1 = null; while(true) { var c3 = this.str.charCodeAt(this.pos++); switch(c3) { case 9:case 10:case 13:case 32: break; case 34: if(comma1) { this.invalidChar(); } field = this.parseString(); break; case 44: if(comma1) { comma1 = false; } else { this.invalidChar(); } break; case 58: if(field == null) { this.invalidChar(); } obj[field] = this.parseRec(); field = null; comma1 = true; break; case 125: if(field != null || comma1 == false) { this.invalidChar(); } return obj; default: this.invalidChar(); } } break; default: this.invalidChar(); } } } ,parseString: function() { var start = this.pos; var buf = null; while(true) { var c = this.str.charCodeAt(this.pos++); if(c == 34) { break; } if(c == 92) { if(buf == null) { buf = new StringBuf(); } var s = this.str; var len = this.pos - start - 1; buf.b += len == null ? HxOverrides.substr(s,start,null) : HxOverrides.substr(s,start,len); c = this.str.charCodeAt(this.pos++); switch(c) { case 34:case 47:case 92: buf.b += String.fromCharCode(c); break; case 98: buf.b += "\x08"; break; case 102: buf.b += "\x0C"; break; case 110: buf.b += "\n"; break; case 114: buf.b += "\r"; break; case 116: buf.b += "\t"; break; case 117: var uc = Std.parseInt("0x" + HxOverrides.substr(this.str,this.pos,4)); this.pos += 4; buf.b += String.fromCharCode(uc); break; default: throw new js__$Boot_HaxeError("Invalid escape sequence \\" + String.fromCharCode(c) + " at position " + (this.pos - 1)); } start = this.pos; } else if(c != c) { throw new js__$Boot_HaxeError("Unclosed string"); } } if(buf == null) { return HxOverrides.substr(this.str,start,this.pos - start - 1); } else { var s1 = this.str; var len1 = this.pos - start - 1; buf.b += len1 == null ? HxOverrides.substr(s1,start,null) : HxOverrides.substr(s1,start,len1); return buf.b; } } ,invalidChar: function() { this.pos--; throw new js__$Boot_HaxeError("Invalid char " + this.str.charCodeAt(this.pos) + " at position " + this.pos); } ,invalidNumber: function(start) { throw new js__$Boot_HaxeError("Invalid number at position " + start + ": " + HxOverrides.substr(this.str,start,this.pos - start)); } ,__class__: haxe_format_JsonParser }; var haxe_format_JsonPrinter = function(replacer,space) { this.replacer = replacer; this.indent = space; this.pretty = space != null; this.nind = 0; this.buf = new StringBuf(); }; $hxClasses["haxe.format.JsonPrinter"] = haxe_format_JsonPrinter; haxe_format_JsonPrinter.__name__ = ["haxe","format","JsonPrinter"]; haxe_format_JsonPrinter.print = function(o,replacer,space) { var printer = new haxe_format_JsonPrinter(replacer,space); printer.write("",o); return printer.buf.b; }; haxe_format_JsonPrinter.prototype = { buf: null ,replacer: null ,indent: null ,pretty: null ,nind: null ,write: function(k,v) { if(this.replacer != null) { v = this.replacer(k,v); } var _g = Type["typeof"](v); switch(_g[1]) { case 0: this.buf.b += "null"; break; case 1: this.buf.b += Std.string(v); break; case 2: var v1 = isFinite(v) ? v : "null"; this.buf.b += Std.string(v1); break; case 3: this.buf.b += Std.string(v); break; case 4: this.fieldsString(v,Reflect.fields(v)); break; case 5: this.buf.b += "\"\""; break; case 6: var c = _g[2]; if(c == String) { this.quote(v); } else if(c == Array) { var v2 = v; this.buf.b += "["; var len = v2.length; var last = len - 1; var _g1 = 0; var _g2 = len; while(_g1 < _g2) { var i = _g1++; if(i > 0) { this.buf.b += ","; } else { this.nind++; } if(this.pretty) { this.buf.b += "\n"; } if(this.pretty) { var v3 = StringTools.lpad("",this.indent,this.nind * this.indent.length); this.buf.b += Std.string(v3); } this.write(i,v2[i]); if(i == last) { this.nind--; if(this.pretty) { this.buf.b += "\n"; } if(this.pretty) { var v4 = StringTools.lpad("",this.indent,this.nind * this.indent.length); this.buf.b += Std.string(v4); } } } this.buf.b += "]"; } else if(c == haxe_ds_StringMap) { var v5 = v; var o = { }; var k1 = v5.keys(); while(k1.hasNext()) { var k2 = k1.next(); o[k2] = __map_reserved[k2] != null ? v5.getReserved(k2) : v5.h[k2]; } this.fieldsString(o,Reflect.fields(o)); } else if(c == Date) { var v6 = v; this.quote(HxOverrides.dateStr(v6)); } else { this.fieldsString(v,Reflect.fields(v)); } break; case 7: var i1 = v[1]; this.buf.b += Std.string(i1); break; case 8: this.buf.b += "\"???\""; break; } } ,fieldsString: function(v,fields) { this.buf.b += "{"; var len = fields.length; var last = len - 1; var first = true; var _g1 = 0; var _g = len; while(_g1 < _g) { var i = _g1++; var f = fields[i]; var value = Reflect.field(v,f); if(Reflect.isFunction(value)) { continue; } if(first) { this.nind++; first = false; } else { this.buf.b += ","; } if(this.pretty) { this.buf.b += "\n"; } if(this.pretty) { var v1 = StringTools.lpad("",this.indent,this.nind * this.indent.length); this.buf.b += Std.string(v1); } this.quote(f); this.buf.b += ":"; if(this.pretty) { this.buf.b += " "; } this.write(f,value); if(i == last) { this.nind--; if(this.pretty) { this.buf.b += "\n"; } if(this.pretty) { var v2 = StringTools.lpad("",this.indent,this.nind * this.indent.length); this.buf.b += Std.string(v2); } } } this.buf.b += "}"; } ,quote: function(s) { this.buf.b += "\""; var i = 0; while(true) { var c = s.charCodeAt(i++); if(c != c) { break; } switch(c) { case 8: this.buf.b += "\\b"; break; case 9: this.buf.b += "\\t"; break; case 10: this.buf.b += "\\n"; break; case 12: this.buf.b += "\\f"; break; case 13: this.buf.b += "\\r"; break; case 34: this.buf.b += "\\\""; break; case 92: this.buf.b += "\\\\"; break; default: this.buf.b += String.fromCharCode(c); } } this.buf.b += "\""; } ,__class__: haxe_format_JsonPrinter }; var haxe_io_BytesBuffer = function() { this.b = []; }; $hxClasses["haxe.io.BytesBuffer"] = haxe_io_BytesBuffer; haxe_io_BytesBuffer.__name__ = ["haxe","io","BytesBuffer"]; haxe_io_BytesBuffer.prototype = { b: null ,getBytes: function() { var bytes = new haxe_io_Bytes(new Uint8Array(this.b).buffer); this.b = null; return bytes; } ,__class__: haxe_io_BytesBuffer }; var haxe_io_Input = function() { }; $hxClasses["haxe.io.Input"] = haxe_io_Input; haxe_io_Input.__name__ = ["haxe","io","Input"]; haxe_io_Input.prototype = { bigEndian: null ,readByte: function() { throw new js__$Boot_HaxeError("Not implemented"); } ,readBytes: function(s,pos,len) { var k = len; var b = s.b; if(pos < 0 || len < 0 || pos + len > s.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } try { while(k > 0) { b[pos] = this.readByte(); ++pos; --k; } } catch( eof ) { haxe_CallStack.lastException = eof; if (eof instanceof js__$Boot_HaxeError) eof = eof.val; if( js_Boot.__instanceof(eof,haxe_io_Eof) ) { } else throw(eof); } return len - k; } ,set_bigEndian: function(b) { this.bigEndian = b; return b; } ,readFullBytes: function(s,pos,len) { while(len > 0) { var k = this.readBytes(s,pos,len); if(k == 0) { throw new js__$Boot_HaxeError(haxe_io_Error.Blocked); } pos += k; len -= k; } } ,read: function(nbytes) { var s = new haxe_io_Bytes(new ArrayBuffer(nbytes)); var p = 0; while(nbytes > 0) { var k = this.readBytes(s,p,nbytes); if(k == 0) { throw new js__$Boot_HaxeError(haxe_io_Error.Blocked); } p += k; nbytes -= k; } return s; } ,readUInt16: function() { var ch1 = this.readByte(); var ch2 = this.readByte(); if(this.bigEndian) { return ch2 | ch1 << 8; } else { return ch1 | ch2 << 8; } } ,readInt32: function() { var ch1 = this.readByte(); var ch2 = this.readByte(); var ch3 = this.readByte(); var ch4 = this.readByte(); if(this.bigEndian) { return ch4 | ch3 << 8 | ch2 << 16 | ch1 << 24; } else { return ch1 | ch2 << 8 | ch3 << 16 | ch4 << 24; } } ,readString: function(len) { var b = new haxe_io_Bytes(new ArrayBuffer(len)); this.readFullBytes(b,0,len); return b.toString(); } ,__class__: haxe_io_Input ,__properties__: {set_bigEndian:"set_bigEndian"} }; var haxe_io_BytesInput = function(b,pos,len) { if(pos == null) { pos = 0; } if(len == null) { len = b.length - pos; } if(pos < 0 || len < 0 || pos + len > b.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } this.b = b.b; this.pos = pos; this.len = len; this.totlen = len; }; $hxClasses["haxe.io.BytesInput"] = haxe_io_BytesInput; haxe_io_BytesInput.__name__ = ["haxe","io","BytesInput"]; haxe_io_BytesInput.__super__ = haxe_io_Input; haxe_io_BytesInput.prototype = $extend(haxe_io_Input.prototype,{ b: null ,pos: null ,len: null ,totlen: null ,readByte: function() { if(this.len == 0) { throw new js__$Boot_HaxeError(new haxe_io_Eof()); } this.len--; return this.b[this.pos++]; } ,readBytes: function(buf,pos,len) { if(pos < 0 || len < 0 || pos + len > buf.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } if(this.len == 0 && len > 0) { throw new js__$Boot_HaxeError(new haxe_io_Eof()); } if(this.len < len) { len = this.len; } var b1 = this.b; var b2 = buf.b; var _g1 = 0; var _g = len; while(_g1 < _g) { var i = _g1++; b2[pos + i] = b1[this.pos + i]; } this.pos += len; this.len -= len; return len; } ,__class__: haxe_io_BytesInput }); var haxe_io_Output = function() { }; $hxClasses["haxe.io.Output"] = haxe_io_Output; haxe_io_Output.__name__ = ["haxe","io","Output"]; haxe_io_Output.prototype = { bigEndian: null ,writeByte: function(c) { throw new js__$Boot_HaxeError("Not implemented"); } ,writeBytes: function(s,pos,len) { if(pos < 0 || len < 0 || pos + len > s.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } var b = s.b; var k = len; while(k > 0) { this.writeByte(b[pos]); ++pos; --k; } return len; } ,set_bigEndian: function(b) { this.bigEndian = b; return b; } ,write: function(s) { var l = s.length; var p = 0; while(l > 0) { var k = this.writeBytes(s,p,l); if(k == 0) { throw new js__$Boot_HaxeError(haxe_io_Error.Blocked); } p += k; l -= k; } } ,writeFullBytes: function(s,pos,len) { while(len > 0) { var k = this.writeBytes(s,pos,len); pos += k; len -= k; } } ,writeInt32: function(x) { if(this.bigEndian) { this.writeByte(x >>> 24); this.writeByte(x >> 16 & 255); this.writeByte(x >> 8 & 255); this.writeByte(x & 255); } else { this.writeByte(x & 255); this.writeByte(x >> 8 & 255); this.writeByte(x >> 16 & 255); this.writeByte(x >>> 24); } } ,writeString: function(s) { var b = haxe_io_Bytes.ofString(s); this.writeFullBytes(b,0,b.length); } ,__class__: haxe_io_Output ,__properties__: {set_bigEndian:"set_bigEndian"} }; var haxe_io_BytesOutput = function() { this.b = new haxe_io_BytesBuffer(); }; $hxClasses["haxe.io.BytesOutput"] = haxe_io_BytesOutput; haxe_io_BytesOutput.__name__ = ["haxe","io","BytesOutput"]; haxe_io_BytesOutput.__super__ = haxe_io_Output; haxe_io_BytesOutput.prototype = $extend(haxe_io_Output.prototype,{ b: null ,writeByte: function(c) { this.b.b.push(c); } ,writeBytes: function(buf,pos,len) { var _this = this.b; if(pos < 0 || len < 0 || pos + len > buf.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } var b1 = _this.b; var b2 = buf.b; var _g1 = pos; var _g = pos + len; while(_g1 < _g) { var i = _g1++; _this.b.push(b2[i]); } return len; } ,getBytes: function() { return this.b.getBytes(); } ,__class__: haxe_io_BytesOutput }); var haxe_io_Eof = function() { }; $hxClasses["haxe.io.Eof"] = haxe_io_Eof; haxe_io_Eof.__name__ = ["haxe","io","Eof"]; haxe_io_Eof.prototype = { toString: function() { return "Eof"; } ,__class__: haxe_io_Eof }; var haxe_io_Error = $hxClasses["haxe.io.Error"] = { __ename__ : ["haxe","io","Error"], __constructs__ : ["Blocked","Overflow","OutsideBounds","Custom"] }; haxe_io_Error.Blocked = ["Blocked",0]; haxe_io_Error.Blocked.toString = $estr; haxe_io_Error.Blocked.__enum__ = haxe_io_Error; haxe_io_Error.Overflow = ["Overflow",1]; haxe_io_Error.Overflow.toString = $estr; haxe_io_Error.Overflow.__enum__ = haxe_io_Error; haxe_io_Error.OutsideBounds = ["OutsideBounds",2]; haxe_io_Error.OutsideBounds.toString = $estr; haxe_io_Error.OutsideBounds.__enum__ = haxe_io_Error; haxe_io_Error.Custom = function(e) { var $x = ["Custom",3,e]; $x.__enum__ = haxe_io_Error; $x.toString = $estr; return $x; }; haxe_io_Error.__empty_constructs__ = [haxe_io_Error.Blocked,haxe_io_Error.Overflow,haxe_io_Error.OutsideBounds]; var haxe_io_FPHelper = function() { }; $hxClasses["haxe.io.FPHelper"] = haxe_io_FPHelper; haxe_io_FPHelper.__name__ = ["haxe","io","FPHelper"]; haxe_io_FPHelper.i32ToFloat = function(i) { var sign = 1 - (i >>> 31 << 1); var exp = i >>> 23 & 255; var sig = i & 8388607; if(sig == 0 && exp == 0) { return 0.0; } return sign * (1 + Math.pow(2,-23) * sig) * Math.pow(2,exp - 127); }; haxe_io_FPHelper.floatToI32 = function(f) { if(f == 0) { return 0; } var af = f < 0 ? -f : f; var exp = Math.floor(Math.log(af) / 0.6931471805599453); if(exp < -127) { exp = -127; } else if(exp > 128) { exp = 128; } var sig = Math.round((af / Math.pow(2,exp) - 1) * 8388608); if(sig == 8388608 && exp < 128) { sig = 0; ++exp; } return (f < 0 ? -2147483648 : 0) | exp + 127 << 23 | sig; }; haxe_io_FPHelper.i64ToDouble = function(low,high) { var sign = 1 - (high >>> 31 << 1); var exp = (high >> 20 & 2047) - 1023; var sig = (high & 1048575) * 4294967296. + (low >>> 31) * 2147483648. + (low & 2147483647); if(sig == 0 && exp == -1023) { return 0.0; } return sign * (1.0 + Math.pow(2,-52) * sig) * Math.pow(2,exp); }; haxe_io_FPHelper.doubleToI64 = function(v) { var i64 = haxe_io_FPHelper.i64tmp; if(v == 0) { i64.low = 0; i64.high = 0; } else if(!isFinite(v)) { if(v > 0) { i64.low = 0; i64.high = 2146435072; } else { i64.low = 0; i64.high = -1048576; } } else { var av = v < 0 ? -v : v; var exp = Math.floor(Math.log(av) / 0.6931471805599453); var sig = Math.round((av / Math.pow(2,exp) - 1) * 4503599627370496.); var sig_l = sig | 0; var sig_h = sig / 4294967296.0 | 0; i64.low = sig_l; i64.high = (v < 0 ? -2147483648 : 0) | exp + 1023 << 20 | sig_h; } return i64; }; var haxe_io_Path = function(path) { switch(path) { case ".":case "..": this.dir = path; this.file = ""; return; } var c1 = path.lastIndexOf("/"); var c2 = path.lastIndexOf("\\"); if(c1 < c2) { this.dir = HxOverrides.substr(path,0,c2); path = HxOverrides.substr(path,c2 + 1,null); this.backslash = true; } else if(c2 < c1) { this.dir = HxOverrides.substr(path,0,c1); path = HxOverrides.substr(path,c1 + 1,null); } else { this.dir = null; } var cp = path.lastIndexOf("."); if(cp != -1) { this.ext = HxOverrides.substr(path,cp + 1,null); this.file = HxOverrides.substr(path,0,cp); } else { this.ext = null; this.file = path; } }; $hxClasses["haxe.io.Path"] = haxe_io_Path; haxe_io_Path.__name__ = ["haxe","io","Path"]; haxe_io_Path.directory = function(path) { var s = new haxe_io_Path(path); if(s.dir == null) { return ""; } return s.dir; }; haxe_io_Path.prototype = { dir: null ,file: null ,ext: null ,backslash: null ,__class__: haxe_io_Path }; var haxe_xml__$Fast_NodeAccess = function(x) { this.__x = x; }; $hxClasses["haxe.xml._Fast.NodeAccess"] = haxe_xml__$Fast_NodeAccess; haxe_xml__$Fast_NodeAccess.__name__ = ["haxe","xml","_Fast","NodeAccess"]; haxe_xml__$Fast_NodeAccess.prototype = { __x: null ,resolve: function(name) { var x = this.__x.elementsNamed(name).next(); if(x == null) { var xname; if(this.__x.nodeType == Xml.Document) { xname = "Document"; } else { var _this = this.__x; if(_this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + _this.nodeType); } xname = _this.nodeName; } throw new js__$Boot_HaxeError(xname + " is missing element " + name); } return new haxe_xml_Fast(x); } ,__class__: haxe_xml__$Fast_NodeAccess }; var haxe_xml__$Fast_AttribAccess = function(x) { this.__x = x; }; $hxClasses["haxe.xml._Fast.AttribAccess"] = haxe_xml__$Fast_AttribAccess; haxe_xml__$Fast_AttribAccess.__name__ = ["haxe","xml","_Fast","AttribAccess"]; haxe_xml__$Fast_AttribAccess.prototype = { __x: null ,resolve: function(name) { if(this.__x.nodeType == Xml.Document) { throw new js__$Boot_HaxeError("Cannot access document attribute " + name); } var v = this.__x.get(name); if(v == null) { var _this = this.__x; if(_this.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + _this.nodeType); } throw new js__$Boot_HaxeError(_this.nodeName + " is missing attribute " + name); } return v; } ,__class__: haxe_xml__$Fast_AttribAccess }; var haxe_xml__$Fast_HasAttribAccess = function(x) { this.__x = x; }; $hxClasses["haxe.xml._Fast.HasAttribAccess"] = haxe_xml__$Fast_HasAttribAccess; haxe_xml__$Fast_HasAttribAccess.__name__ = ["haxe","xml","_Fast","HasAttribAccess"]; haxe_xml__$Fast_HasAttribAccess.prototype = { __x: null ,resolve: function(name) { if(this.__x.nodeType == Xml.Document) { throw new js__$Boot_HaxeError("Cannot access document attribute " + name); } return this.__x.exists(name); } ,__class__: haxe_xml__$Fast_HasAttribAccess }; var haxe_xml__$Fast_HasNodeAccess = function(x) { this.__x = x; }; $hxClasses["haxe.xml._Fast.HasNodeAccess"] = haxe_xml__$Fast_HasNodeAccess; haxe_xml__$Fast_HasNodeAccess.__name__ = ["haxe","xml","_Fast","HasNodeAccess"]; haxe_xml__$Fast_HasNodeAccess.prototype = { __x: null ,__class__: haxe_xml__$Fast_HasNodeAccess }; var haxe_xml__$Fast_NodeListAccess = function(x) { this.__x = x; }; $hxClasses["haxe.xml._Fast.NodeListAccess"] = haxe_xml__$Fast_NodeListAccess; haxe_xml__$Fast_NodeListAccess.__name__ = ["haxe","xml","_Fast","NodeListAccess"]; haxe_xml__$Fast_NodeListAccess.prototype = { __x: null ,resolve: function(name) { var l = new List(); var x = this.__x.elementsNamed(name); while(x.hasNext()) { var x1 = x.next(); l.add(new haxe_xml_Fast(x1)); } return l; } ,__class__: haxe_xml__$Fast_NodeListAccess }; var haxe_xml_Fast = function(x) { if(x.nodeType != Xml.Document && x.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Invalid nodeType " + x.nodeType); } this.x = x; this.node = new haxe_xml__$Fast_NodeAccess(x); this.nodes = new haxe_xml__$Fast_NodeListAccess(x); this.att = new haxe_xml__$Fast_AttribAccess(x); this.has = new haxe_xml__$Fast_HasAttribAccess(x); this.hasNode = new haxe_xml__$Fast_HasNodeAccess(x); }; $hxClasses["haxe.xml.Fast"] = haxe_xml_Fast; haxe_xml_Fast.__name__ = ["haxe","xml","Fast"]; haxe_xml_Fast.prototype = { x: null ,node: null ,nodes: null ,att: null ,has: null ,hasNode: null ,__class__: haxe_xml_Fast }; var haxe_xml_XmlParserException = function(message,xml,position) { this.xml = xml; this.message = message; this.position = position; this.lineNumber = 1; this.positionAtLine = 0; var _g1 = 0; var _g = position; while(_g1 < _g) { var i = _g1++; var c = xml.charCodeAt(i); if(c == 10) { this.lineNumber++; this.positionAtLine = 0; } else if(c != 13) { this.positionAtLine++; } } }; $hxClasses["haxe.xml.XmlParserException"] = haxe_xml_XmlParserException; haxe_xml_XmlParserException.__name__ = ["haxe","xml","XmlParserException"]; haxe_xml_XmlParserException.prototype = { message: null ,lineNumber: null ,positionAtLine: null ,position: null ,xml: null ,toString: function() { return Type.getClassName(js_Boot.getClass(this)) + ": " + this.message + " at line " + this.lineNumber + " char " + this.positionAtLine; } ,__class__: haxe_xml_XmlParserException }; var haxe_xml_Parser = function() { }; $hxClasses["haxe.xml.Parser"] = haxe_xml_Parser; haxe_xml_Parser.__name__ = ["haxe","xml","Parser"]; haxe_xml_Parser.parse = function(str,strict) { if(strict == null) { strict = false; } var doc = Xml.createDocument(); haxe_xml_Parser.doParse(str,strict,0,doc); return doc; }; haxe_xml_Parser.doParse = function(str,strict,p,parent) { if(p == null) { p = 0; } var xml = null; var state = 1; var next = 1; var aname = null; var start = 0; var nsubs = 0; var nbrackets = 0; var c = str.charCodeAt(p); var buf = new StringBuf(); var escapeNext = 1; var attrValQuote = -1; while(c == c) { switch(state) { case 0: switch(c) { case 9:case 10:case 13:case 32: break; default: state = next; continue; } break; case 1: if(c == 60) { state = 0; next = 2; } else { start = p; state = 13; continue; } break; case 2: switch(c) { case 33: if(str.charCodeAt(p + 1) == 91) { p += 2; if(HxOverrides.substr(str,p,6).toUpperCase() != "CDATA[") { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected = 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c == 58 || c == 46 || c == 95 || c == 45)) { if(p == start) { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected node name",str,p)); } xml = Xml.createElement(HxOverrides.substr(str,start,p - start)); parent.addChild(xml); ++nsubs; state = 0; next = 4; continue; } break; case 4: switch(c) { case 47: state = 11; break; case 62: state = 9; break; default: state = 5; start = p; continue; } break; case 5: if(!(c >= 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c == 58 || c == 46 || c == 95 || c == 45)) { var tmp; if(start == p) { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected attribute name",str,p)); } tmp = HxOverrides.substr(str,start,p - start); aname = tmp; if(xml.exists(aname)) { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Duplicate attribute [" + aname + "]",str,p)); } state = 0; next = 6; continue; } break; case 6: if(c == 61) { state = 0; next = 7; } else { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected =",str,p)); } break; case 7: switch(c) { case 34:case 39: buf = new StringBuf(); state = 8; start = p + 1; attrValQuote = c; break; default: throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected \"",str,p)); } break; case 8: switch(c) { case 38: var len = p - start; buf.b += len == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len); state = 18; escapeNext = 8; start = p + 1; break; case 60:case 62: if(strict) { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Invalid unescaped " + String.fromCharCode(c) + " in attribute value",str,p)); } else if(c == attrValQuote) { var len1 = p - start; buf.b += len1 == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len1); var val = buf.b; buf = new StringBuf(); xml.set(aname,val); state = 0; next = 4; } break; default: if(c == attrValQuote) { var len2 = p - start; buf.b += len2 == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len2); var val1 = buf.b; buf = new StringBuf(); xml.set(aname,val1); state = 0; next = 4; } } break; case 9: p = haxe_xml_Parser.doParse(str,strict,p,xml); start = p; state = 1; break; case 10: if(!(c >= 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c == 58 || c == 46 || c == 95 || c == 45)) { if(start == p) { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected node name",str,p)); } var v = HxOverrides.substr(str,start,p - start); if(parent.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + parent.nodeType); } if(v != parent.nodeName) { if(parent.nodeType != Xml.Element) { throw new js__$Boot_HaxeError("Bad node type, expected Element but found " + parent.nodeType); } throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected ",str,p)); } state = 0; next = 12; continue; } break; case 11: if(c == 62) { state = 1; } else { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected >",str,p)); } break; case 12: if(c == 62) { if(nsubs == 0) { parent.addChild(Xml.createPCData("")); } return p; } else { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Expected >",str,p)); } break; case 13: if(c == 60) { var len3 = p - start; buf.b += len3 == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len3); var child = Xml.createPCData(buf.b); buf = new StringBuf(); parent.addChild(child); ++nsubs; state = 0; next = 2; } else if(c == 38) { var len4 = p - start; buf.b += len4 == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len4); state = 18; escapeNext = 13; start = p + 1; } break; case 14: if(c == 63 && str.charCodeAt(p + 1) == 62) { ++p; var str1 = HxOverrides.substr(str,start + 1,p - start - 2); parent.addChild(Xml.createProcessingInstruction(str1)); ++nsubs; state = 1; } break; case 15: if(c == 45 && str.charCodeAt(p + 1) == 45 && str.charCodeAt(p + 2) == 62) { parent.addChild(Xml.createComment(HxOverrides.substr(str,start,p - start))); ++nsubs; p += 2; state = 1; } break; case 16: if(c == 91) { ++nbrackets; } else if(c == 93) { --nbrackets; } else if(c == 62 && nbrackets == 0) { parent.addChild(Xml.createDocType(HxOverrides.substr(str,start,p - start))); ++nsubs; state = 1; } break; case 17: if(c == 93 && str.charCodeAt(p + 1) == 93 && str.charCodeAt(p + 2) == 62) { var child1 = Xml.createCData(HxOverrides.substr(str,start,p - start)); parent.addChild(child1); ++nsubs; p += 2; state = 1; } break; case 18: if(c == 59) { var s = HxOverrides.substr(str,start,p - start); if(s.charCodeAt(0) == 35) { var c1 = s.charCodeAt(1) == 120 ? Std.parseInt("0" + HxOverrides.substr(s,1,s.length - 1)) : Std.parseInt(HxOverrides.substr(s,1,s.length - 1)); buf.b += String.fromCharCode(c1); } else { var _this = haxe_xml_Parser.escapes; if(!(__map_reserved[s] != null ? _this.existsReserved(s) : _this.h.hasOwnProperty(s))) { if(strict) { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Undefined entity: " + s,str,p)); } buf.b += Std.string("&" + s + ";"); } else { var _this1 = haxe_xml_Parser.escapes; var x = __map_reserved[s] != null ? _this1.getReserved(s) : _this1.h[s]; buf.b += Std.string(x); } } start = p + 1; state = escapeNext; } else if(!(c >= 97 && c <= 122 || c >= 65 && c <= 90 || c >= 48 && c <= 57 || c == 58 || c == 46 || c == 95 || c == 45) && c != 35) { if(strict) { throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Invalid character in entity: " + String.fromCharCode(c),str,p)); } buf.b += "&"; var len5 = p - start; buf.b += len5 == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len5); start = p--; state = escapeNext; } break; } c = str.charCodeAt(++p); } if(state == 1) { start = p; state = 13; } if(state == 13) { if(p != start || nsubs == 0) { var len6 = p - start; buf.b += len6 == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len6); parent.addChild(Xml.createPCData(buf.b)); ++nsubs; } return p; } if(!strict && state == 18 && escapeNext == 13) { buf.b += "&"; var len7 = p - start; buf.b += len7 == null ? HxOverrides.substr(str,start,null) : HxOverrides.substr(str,start,len7); parent.addChild(Xml.createPCData(buf.b)); ++nsubs; return p; } throw new js__$Boot_HaxeError(new haxe_xml_XmlParserException("Unexpected end",str,p)); }; var haxe_zip_Compress = function() { }; $hxClasses["haxe.zip.Compress"] = haxe_zip_Compress; haxe_zip_Compress.__name__ = ["haxe","zip","Compress"]; haxe_zip_Compress.run = function(s,level) { throw new js__$Boot_HaxeError("Not implemented for this platform"); }; var haxe_zip_Huffman = $hxClasses["haxe.zip.Huffman"] = { __ename__ : ["haxe","zip","Huffman"], __constructs__ : ["Found","NeedBit","NeedBits"] }; haxe_zip_Huffman.Found = function(i) { var $x = ["Found",0,i]; $x.__enum__ = haxe_zip_Huffman; $x.toString = $estr; return $x; }; haxe_zip_Huffman.NeedBit = function(left,right) { var $x = ["NeedBit",1,left,right]; $x.__enum__ = haxe_zip_Huffman; $x.toString = $estr; return $x; }; haxe_zip_Huffman.NeedBits = function(n,table) { var $x = ["NeedBits",2,n,table]; $x.__enum__ = haxe_zip_Huffman; $x.toString = $estr; return $x; }; haxe_zip_Huffman.__empty_constructs__ = []; var haxe_zip_HuffTools = function() { }; $hxClasses["haxe.zip.HuffTools"] = haxe_zip_HuffTools; haxe_zip_HuffTools.__name__ = ["haxe","zip","HuffTools"]; haxe_zip_HuffTools.prototype = { treeDepth: function(t) { switch(t[1]) { case 0: return 0; case 1: var b = t[3]; var a = t[2]; var da = this.treeDepth(a); var db = this.treeDepth(b); return 1 + (da < db ? da : db); case 2: throw new js__$Boot_HaxeError("assert"); break; } } ,treeCompress: function(t) { var d = this.treeDepth(t); if(d == 0) { return t; } if(d == 1) { if(t[1] == 1) { var b = t[3]; var a = t[2]; return haxe_zip_Huffman.NeedBit(this.treeCompress(a),this.treeCompress(b)); } else { throw new js__$Boot_HaxeError("assert"); } } var size = 1 << d; var table = []; var _g1 = 0; var _g = size; while(_g1 < _g) { var i = _g1++; table.push(haxe_zip_Huffman.Found(-1)); } this.treeWalk(table,0,0,d,t); return haxe_zip_Huffman.NeedBits(d,table); } ,treeWalk: function(table,p,cd,d,t) { if(t[1] == 1) { var b = t[3]; var a = t[2]; if(d > 0) { this.treeWalk(table,p,cd + 1,d - 1,a); this.treeWalk(table,p | 1 << cd,cd + 1,d - 1,b); } else { table[p] = this.treeCompress(t); } } else { table[p] = this.treeCompress(t); } } ,treeMake: function(bits,maxbits,v,len) { if(len > maxbits) { throw new js__$Boot_HaxeError("Invalid huffman"); } var idx = v << 5 | len; if(bits.h.hasOwnProperty(idx)) { return haxe_zip_Huffman.Found(bits.h[idx]); } v <<= 1; ++len; return haxe_zip_Huffman.NeedBit(this.treeMake(bits,maxbits,v,len),this.treeMake(bits,maxbits,v | 1,len)); } ,make: function(lengths,pos,nlengths,maxbits) { var counts = []; var tmp = []; if(maxbits > 32) { throw new js__$Boot_HaxeError("Invalid huffman"); } var _g1 = 0; var _g = maxbits; while(_g1 < _g) { var i = _g1++; counts.push(0); tmp.push(0); } var _g11 = 0; var _g2 = nlengths; while(_g11 < _g2) { var i1 = _g11++; var p = lengths[i1 + pos]; if(p >= maxbits) { throw new js__$Boot_HaxeError("Invalid huffman"); } counts[p]++; } var code = 0; var _g12 = 1; var _g3 = maxbits - 1; while(_g12 < _g3) { var i2 = _g12++; code = code + counts[i2] << 1; tmp[i2] = code; } var bits = new haxe_ds_IntMap(); var _g13 = 0; var _g4 = nlengths; while(_g13 < _g4) { var i3 = _g13++; var l = lengths[i3 + pos]; if(l != 0) { var n = tmp[l - 1]; tmp[l - 1] = n + 1; bits.h[n << 5 | l] = i3; } } return this.treeCompress(haxe_zip_Huffman.NeedBit(this.treeMake(bits,maxbits,0,1),this.treeMake(bits,maxbits,1,1))); } ,__class__: haxe_zip_HuffTools }; var haxe_zip__$InflateImpl_Window = function(hasCrc) { this.buffer = new haxe_io_Bytes(new ArrayBuffer(65536)); this.pos = 0; if(hasCrc) { this.crc = new haxe_crypto_Adler32(); } }; $hxClasses["haxe.zip._InflateImpl.Window"] = haxe_zip__$InflateImpl_Window; haxe_zip__$InflateImpl_Window.__name__ = ["haxe","zip","_InflateImpl","Window"]; haxe_zip__$InflateImpl_Window.prototype = { buffer: null ,pos: null ,crc: null ,slide: function() { if(this.crc != null) { this.crc.update(this.buffer,0,32768); } var b = new haxe_io_Bytes(new ArrayBuffer(65536)); this.pos -= 32768; b.blit(0,this.buffer,32768,this.pos); this.buffer = b; } ,addBytes: function(b,p,len) { if(this.pos + len > 65536) { this.slide(); } this.buffer.blit(this.pos,b,p,len); this.pos += len; } ,addByte: function(c) { if(this.pos == 65536) { this.slide(); } this.buffer.b[this.pos] = c & 255; this.pos++; } ,getLastChar: function() { return this.buffer.b[this.pos - 1]; } ,available: function() { return this.pos; } ,checksum: function() { if(this.crc != null) { this.crc.update(this.buffer,0,this.pos); } return this.crc; } ,__class__: haxe_zip__$InflateImpl_Window }; var haxe_zip__$InflateImpl_State = $hxClasses["haxe.zip._InflateImpl.State"] = { __ename__ : ["haxe","zip","_InflateImpl","State"], __constructs__ : ["Head","Block","CData","Flat","Crc","Dist","DistOne","Done"] }; haxe_zip__$InflateImpl_State.Head = ["Head",0]; haxe_zip__$InflateImpl_State.Head.toString = $estr; haxe_zip__$InflateImpl_State.Head.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.Block = ["Block",1]; haxe_zip__$InflateImpl_State.Block.toString = $estr; haxe_zip__$InflateImpl_State.Block.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.CData = ["CData",2]; haxe_zip__$InflateImpl_State.CData.toString = $estr; haxe_zip__$InflateImpl_State.CData.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.Flat = ["Flat",3]; haxe_zip__$InflateImpl_State.Flat.toString = $estr; haxe_zip__$InflateImpl_State.Flat.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.Crc = ["Crc",4]; haxe_zip__$InflateImpl_State.Crc.toString = $estr; haxe_zip__$InflateImpl_State.Crc.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.Dist = ["Dist",5]; haxe_zip__$InflateImpl_State.Dist.toString = $estr; haxe_zip__$InflateImpl_State.Dist.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.DistOne = ["DistOne",6]; haxe_zip__$InflateImpl_State.DistOne.toString = $estr; haxe_zip__$InflateImpl_State.DistOne.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.Done = ["Done",7]; haxe_zip__$InflateImpl_State.Done.toString = $estr; haxe_zip__$InflateImpl_State.Done.__enum__ = haxe_zip__$InflateImpl_State; haxe_zip__$InflateImpl_State.__empty_constructs__ = [haxe_zip__$InflateImpl_State.Head,haxe_zip__$InflateImpl_State.Block,haxe_zip__$InflateImpl_State.CData,haxe_zip__$InflateImpl_State.Flat,haxe_zip__$InflateImpl_State.Crc,haxe_zip__$InflateImpl_State.Dist,haxe_zip__$InflateImpl_State.DistOne,haxe_zip__$InflateImpl_State.Done]; var haxe_zip_InflateImpl = function(i,header,crc) { if(crc == null) { crc = true; } if(header == null) { header = true; } this["final"] = false; this.htools = new haxe_zip_HuffTools(); this.huffman = this.buildFixedHuffman(); this.huffdist = null; this.len = 0; this.dist = 0; this.state = header ? haxe_zip__$InflateImpl_State.Head : haxe_zip__$InflateImpl_State.Block; this.input = i; this.bits = 0; this.nbits = 0; this.needed = 0; this.output = null; this.outpos = 0; this.lengths = []; var _g = 0; while(_g < 19) { var i1 = _g++; this.lengths.push(-1); } this.window = new haxe_zip__$InflateImpl_Window(crc); }; $hxClasses["haxe.zip.InflateImpl"] = haxe_zip_InflateImpl; haxe_zip_InflateImpl.__name__ = ["haxe","zip","InflateImpl"]; haxe_zip_InflateImpl.run = function(i,bufsize) { if(bufsize == null) { bufsize = 65536; } var buf = new haxe_io_Bytes(new ArrayBuffer(bufsize)); var output = new haxe_io_BytesBuffer(); var inflate = new haxe_zip_InflateImpl(i); while(true) { var len = inflate.readBytes(buf,0,bufsize); if(len < 0 || len > buf.length) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } var b1 = output.b; var b2 = buf.b; var _g1 = 0; var _g = len; while(_g1 < _g) { var i1 = _g1++; output.b.push(b2[i1]); } if(len < bufsize) { break; } } return output.getBytes(); }; haxe_zip_InflateImpl.prototype = { nbits: null ,bits: null ,state: null ,'final': null ,huffman: null ,huffdist: null ,htools: null ,len: null ,dist: null ,needed: null ,output: null ,outpos: null ,input: null ,lengths: null ,window: null ,buildFixedHuffman: function() { if(haxe_zip_InflateImpl.FIXED_HUFFMAN != null) { return haxe_zip_InflateImpl.FIXED_HUFFMAN; } var a = []; var _g = 0; while(_g < 288) { var n = _g++; a.push(n <= 143 ? 8 : n <= 255 ? 9 : n <= 279 ? 7 : 8); } haxe_zip_InflateImpl.FIXED_HUFFMAN = this.htools.make(a,0,288,10); return haxe_zip_InflateImpl.FIXED_HUFFMAN; } ,readBytes: function(b,pos,len) { this.needed = len; this.outpos = pos; this.output = b; if(len > 0) { while(this.inflateLoop()) { } } return len - this.needed; } ,getBits: function(n) { while(this.nbits < n) { this.bits |= this.input.readByte() << this.nbits; this.nbits += 8; } var b = this.bits & (1 << n) - 1; this.nbits -= n; this.bits >>= n; return b; } ,getBit: function() { if(this.nbits == 0) { this.nbits = 8; this.bits = this.input.readByte(); } var b = (this.bits & 1) == 1; this.nbits--; this.bits >>= 1; return b; } ,getRevBits: function(n) { if(n == 0) { return 0; } else if(this.getBit()) { return 1 << n - 1 | this.getRevBits(n - 1); } else { return this.getRevBits(n - 1); } } ,resetBits: function() { this.bits = 0; this.nbits = 0; } ,addBytes: function(b,p,len) { this.window.addBytes(b,p,len); this.output.blit(this.outpos,b,p,len); this.needed -= len; this.outpos += len; } ,addByte: function(b) { this.window.addByte(b); this.output.b[this.outpos] = b & 255; this.needed--; this.outpos++; } ,addDistOne: function(n) { var c = this.window.getLastChar(); var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; this.addByte(c); } } ,addDist: function(d,len) { this.addBytes(this.window.buffer,this.window.pos - d,len); } ,applyHuffman: function(h) { switch(h[1]) { case 0: var n = h[2]; return n; case 1: var b = h[3]; var a = h[2]; return this.applyHuffman(this.getBit() ? b : a); case 2: var tbl = h[3]; var n1 = h[2]; return this.applyHuffman(tbl[this.getBits(n1)]); } } ,inflateLengths: function(a,max) { var i = 0; var prev = 0; while(i < max) { var n = this.applyHuffman(this.huffman); switch(n) { case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15: prev = n; a[i] = n; ++i; break; case 16: var end = i + 3 + this.getBits(2); if(end > max) { throw new js__$Boot_HaxeError("Invalid data"); } while(i < end) { a[i] = prev; ++i; } break; case 17: i += 3 + this.getBits(3); if(i > max) { throw new js__$Boot_HaxeError("Invalid data"); } break; case 18: i += 11 + this.getBits(7); if(i > max) { throw new js__$Boot_HaxeError("Invalid data"); } break; default: throw new js__$Boot_HaxeError("Invalid data"); } } } ,inflateLoop: function() { var _g = this.state; switch(_g[1]) { case 0: var cmf = this.input.readByte(); var cm = cmf & 15; var cinfo = cmf >> 4; if(cm != 8) { throw new js__$Boot_HaxeError("Invalid data"); } var flg = this.input.readByte(); var fdict = (flg & 32) != 0; if(((cmf << 8) + flg) % 31 != 0) { throw new js__$Boot_HaxeError("Invalid data"); } if(fdict) { throw new js__$Boot_HaxeError("Unsupported dictionary"); } this.state = haxe_zip__$InflateImpl_State.Block; return true; case 1: this["final"] = this.getBit(); var _g1 = this.getBits(2); switch(_g1) { case 0: this.len = this.input.readUInt16(); var nlen = this.input.readUInt16(); if(nlen != 65535 - this.len) { throw new js__$Boot_HaxeError("Invalid data"); } this.state = haxe_zip__$InflateImpl_State.Flat; var r = this.inflateLoop(); this.resetBits(); return r; case 1: this.huffman = this.buildFixedHuffman(); this.huffdist = null; this.state = haxe_zip__$InflateImpl_State.CData; return true; case 2: var hlit = this.getBits(5) + 257; var hdist = this.getBits(5) + 1; var hclen = this.getBits(4) + 4; var _g11 = 0; var _g2 = hclen; while(_g11 < _g2) { var i = _g11++; this.lengths[haxe_zip_InflateImpl.CODE_LENGTHS_POS[i]] = this.getBits(3); } var _g3 = hclen; while(_g3 < 19) { var i1 = _g3++; this.lengths[haxe_zip_InflateImpl.CODE_LENGTHS_POS[i1]] = 0; } this.huffman = this.htools.make(this.lengths,0,19,8); var lengths = []; var _g12 = 0; var _g4 = hlit + hdist; while(_g12 < _g4) { var i2 = _g12++; lengths.push(0); } this.inflateLengths(lengths,hlit + hdist); this.huffdist = this.htools.make(lengths,hlit,hdist,16); this.huffman = this.htools.make(lengths,0,hlit,16); this.state = haxe_zip__$InflateImpl_State.CData; return true; default: throw new js__$Boot_HaxeError("Invalid data"); } break; case 2: var n = this.applyHuffman(this.huffman); if(n < 256) { this.addByte(n); return this.needed > 0; } else if(n == 256) { this.state = this["final"] ? haxe_zip__$InflateImpl_State.Crc : haxe_zip__$InflateImpl_State.Block; return true; } else { n -= 257; var extra_bits = haxe_zip_InflateImpl.LEN_EXTRA_BITS_TBL[n]; if(extra_bits == -1) { throw new js__$Boot_HaxeError("Invalid data"); } this.len = haxe_zip_InflateImpl.LEN_BASE_VAL_TBL[n] + this.getBits(extra_bits); var dist_code = this.huffdist == null ? this.getRevBits(5) : this.applyHuffman(this.huffdist); extra_bits = haxe_zip_InflateImpl.DIST_EXTRA_BITS_TBL[dist_code]; if(extra_bits == -1) { throw new js__$Boot_HaxeError("Invalid data"); } this.dist = haxe_zip_InflateImpl.DIST_BASE_VAL_TBL[dist_code] + this.getBits(extra_bits); if(this.dist > this.window.available()) { throw new js__$Boot_HaxeError("Invalid data"); } this.state = this.dist == 1 ? haxe_zip__$InflateImpl_State.DistOne : haxe_zip__$InflateImpl_State.Dist; return true; } break; case 3: var rlen = this.len < this.needed ? this.len : this.needed; var bytes = this.input.read(rlen); this.len -= rlen; this.addBytes(bytes,0,rlen); if(this.len == 0) { this.state = this["final"] ? haxe_zip__$InflateImpl_State.Crc : haxe_zip__$InflateImpl_State.Block; } return this.needed > 0; case 4: var calc = this.window.checksum(); if(calc == null) { this.state = haxe_zip__$InflateImpl_State.Done; return true; } var crc = haxe_crypto_Adler32.read(this.input); if(!calc.equals(crc)) { throw new js__$Boot_HaxeError("Invalid CRC"); } this.state = haxe_zip__$InflateImpl_State.Done; return true; case 5: while(this.len > 0 && this.needed > 0) { var rdist = this.len < this.dist ? this.len : this.dist; var rlen1 = this.needed < rdist ? this.needed : rdist; this.addDist(this.dist,rlen1); this.len -= rlen1; } if(this.len == 0) { this.state = haxe_zip__$InflateImpl_State.CData; } return this.needed > 0; case 6: var rlen2 = this.len < this.needed ? this.len : this.needed; this.addDistOne(rlen2); this.len -= rlen2; if(this.len == 0) { this.state = haxe_zip__$InflateImpl_State.CData; } return this.needed > 0; case 7: return false; } } ,__class__: haxe_zip_InflateImpl }; var haxe_zip_Uncompress = function() { }; $hxClasses["haxe.zip.Uncompress"] = haxe_zip_Uncompress; haxe_zip_Uncompress.__name__ = ["haxe","zip","Uncompress"]; haxe_zip_Uncompress.run = function(src,bufsize) { return haxe_zip_InflateImpl.run(new haxe_io_BytesInput(src),bufsize); }; var js__$Boot_HaxeError = function(val) { Error.call(this); this.val = val; this.message = String(val); if(Error.captureStackTrace) { Error.captureStackTrace(this,js__$Boot_HaxeError); } }; $hxClasses["js._Boot.HaxeError"] = js__$Boot_HaxeError; js__$Boot_HaxeError.__name__ = ["js","_Boot","HaxeError"]; js__$Boot_HaxeError.wrap = function(val) { if((val instanceof Error)) { return val; } else { return new js__$Boot_HaxeError(val); } }; js__$Boot_HaxeError.__super__ = Error; js__$Boot_HaxeError.prototype = $extend(Error.prototype,{ val: null ,__class__: js__$Boot_HaxeError }); var js_Boot = function() { }; $hxClasses["js.Boot"] = js_Boot; js_Boot.__name__ = ["js","Boot"]; js_Boot.__unhtml = function(s) { return s.split("&").join("&").split("<").join("<").split(">").join(">"); }; js_Boot.__trace = function(v,i) { var msg = i != null ? i.fileName + ":" + i.lineNumber + ": " : ""; msg += js_Boot.__string_rec(v,""); if(i != null && i.customParams != null) { var _g = 0; var _g1 = i.customParams; while(_g < _g1.length) { var v1 = _g1[_g]; ++_g; msg += "," + js_Boot.__string_rec(v1,""); } } var d; var tmp; if(typeof(document) != "undefined") { d = document.getElementById("haxe:trace"); tmp = d != null; } else { tmp = false; } if(tmp) { d.innerHTML += js_Boot.__unhtml(msg) + "
"; } else if(typeof console != "undefined" && console.log != null) { console.log(msg); } }; js_Boot.getClass = function(o) { if((o instanceof Array) && o.__enum__ == null) { return Array; } else { var cl = o.__class__; if(cl != null) { return cl; } var name = js_Boot.__nativeClassName(o); if(name != null) { return js_Boot.__resolveNativeClass(name); } return null; } }; js_Boot.__string_rec = function(o,s) { if(o == null) { return "null"; } if(s.length >= 5) { return "<...>"; } var t = typeof(o); if(t == "function" && (o.__name__ || o.__ename__)) { t = "object"; } switch(t) { case "function": return ""; case "object": if(o instanceof Array) { if(o.__enum__) { if(o.length == 2) { return o[0]; } var str = o[0] + "("; s += "\t"; var _g1 = 2; var _g = o.length; while(_g1 < _g) { var i = _g1++; if(i != 2) { str += "," + js_Boot.__string_rec(o[i],s); } else { str += js_Boot.__string_rec(o[i],s); } } return str + ")"; } var l = o.length; var i1; var str1 = "["; s += "\t"; var _g11 = 0; var _g2 = l; while(_g11 < _g2) { var i2 = _g11++; str1 += (i2 > 0 ? "," : "") + js_Boot.__string_rec(o[i2],s); } str1 += "]"; return str1; } var tostr; try { tostr = o.toString; } catch( e ) { haxe_CallStack.lastException = e; return "???"; } if(tostr != null && tostr != Object.toString && typeof(tostr) == "function") { var s2 = o.toString(); if(s2 != "[object Object]") { return s2; } } var k = null; var str2 = "{\n"; s += "\t"; var hasp = o.hasOwnProperty != null; for( var k in o ) { if(hasp && !o.hasOwnProperty(k)) { continue; } if(k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" || k == "__properties__") { continue; } if(str2.length != 2) { str2 += ", \n"; } str2 += s + k + " : " + js_Boot.__string_rec(o[k],s); } s = s.substring(1); str2 += "\n" + s + "}"; return str2; case "string": return o; default: return String(o); } }; js_Boot.__interfLoop = function(cc,cl) { if(cc == null) { return false; } if(cc == cl) { return true; } var intf = cc.__interfaces__; if(intf != null) { var _g1 = 0; var _g = intf.length; while(_g1 < _g) { var i = _g1++; var i1 = intf[i]; if(i1 == cl || js_Boot.__interfLoop(i1,cl)) { return true; } } } return js_Boot.__interfLoop(cc.__super__,cl); }; js_Boot.__instanceof = function(o,cl) { if(cl == null) { return false; } switch(cl) { case Array: if((o instanceof Array)) { return o.__enum__ == null; } else { return false; } break; case Bool: return typeof(o) == "boolean"; case Dynamic: return true; case Float: return typeof(o) == "number"; case Int: if(typeof(o) == "number") { return (o|0) === o; } else { return false; } break; case String: return typeof(o) == "string"; default: if(o != null) { if(typeof(cl) == "function") { if(o instanceof cl) { return true; } if(js_Boot.__interfLoop(js_Boot.getClass(o),cl)) { return true; } } else if(typeof(cl) == "object" && js_Boot.__isNativeObj(cl)) { if(o instanceof cl) { return true; } } } else { return false; } if(cl == Class ? o.__name__ != null : false) { return true; } if(cl == Enum ? o.__ename__ != null : false) { return true; } return o.__enum__ == cl; } }; js_Boot.__cast = function(o,t) { if(js_Boot.__instanceof(o,t)) { return o; } else { throw new js__$Boot_HaxeError("Cannot cast " + Std.string(o) + " to " + Std.string(t)); } }; js_Boot.__nativeClassName = function(o) { var name = js_Boot.__toStr.call(o).slice(8,-1); if(name == "Object" || name == "Function" || name == "Math" || name == "JSON") { return null; } return name; }; js_Boot.__isNativeObj = function(o) { return js_Boot.__nativeClassName(o) != null; }; js_Boot.__resolveNativeClass = function(name) { return $global[name]; }; var js_Browser = function() { }; $hxClasses["js.Browser"] = js_Browser; js_Browser.__name__ = ["js","Browser"]; js_Browser.alert = function(v) { window.alert(js_Boot.__string_rec(v,"")); }; var js_html__$CanvasElement_CanvasUtil = function() { }; $hxClasses["js.html._CanvasElement.CanvasUtil"] = js_html__$CanvasElement_CanvasUtil; js_html__$CanvasElement_CanvasUtil.__name__ = ["js","html","_CanvasElement","CanvasUtil"]; js_html__$CanvasElement_CanvasUtil.getContextWebGL = function(canvas,attribs) { var _g = 0; var _g1 = ["webgl","experimental-webgl"]; while(_g < _g1.length) { var name = _g1[_g]; ++_g; var ctx = canvas.getContext(name,attribs); if(ctx != null) { return ctx; } } return null; }; var js_html_compat_ArrayBuffer = function(a) { if((a instanceof Array) && a.__enum__ == null) { this.a = a; this.byteLength = a.length; } else { var len = a; this.a = []; var _g1 = 0; var _g = len; while(_g1 < _g) { var i = _g1++; this.a[i] = 0; } this.byteLength = len; } }; $hxClasses["js.html.compat.ArrayBuffer"] = js_html_compat_ArrayBuffer; js_html_compat_ArrayBuffer.__name__ = ["js","html","compat","ArrayBuffer"]; js_html_compat_ArrayBuffer.sliceImpl = function(begin,end) { var u = new Uint8Array(this,begin,end == null ? null : end - begin); var result = new ArrayBuffer(u.byteLength); var resultArray = new Uint8Array(result); resultArray.set(u); return result; }; js_html_compat_ArrayBuffer.prototype = { byteLength: null ,a: null ,slice: function(begin,end) { return new js_html_compat_ArrayBuffer(this.a.slice(begin,end)); } ,__class__: js_html_compat_ArrayBuffer }; var js_html_compat_DataView = function(buffer,byteOffset,byteLength) { this.buf = buffer; this.offset = byteOffset == null ? 0 : byteOffset; this.length = byteLength == null ? buffer.byteLength - this.offset : byteLength; if(this.offset < 0 || this.length < 0 || this.offset + this.length > buffer.byteLength) { throw new js__$Boot_HaxeError(haxe_io_Error.OutsideBounds); } this.byteLength = this.length; this.byteOffset = this.offset; this.buffer = this.buf; }; $hxClasses["js.html.compat.DataView"] = js_html_compat_DataView; js_html_compat_DataView.__name__ = ["js","html","compat","DataView"]; js_html_compat_DataView.prototype = { buf: null ,offset: null ,length: null ,byteLength: null ,byteOffset: null ,buffer: null ,getInt8: function(byteOffset) { var v = this.buf.a[this.offset + byteOffset]; if(v >= 128) { return v - 256; } else { return v; } } ,getUint8: function(byteOffset) { return this.buf.a[this.offset + byteOffset]; } ,getInt16: function(byteOffset,littleEndian) { var v = this.getUint16(byteOffset,littleEndian); if(v >= 32768) { return v - 65536; } else { return v; } } ,getUint16: function(byteOffset,littleEndian) { if(littleEndian) { return this.buf.a[this.offset + byteOffset] | this.buf.a[this.offset + byteOffset + 1] << 8; } else { return this.buf.a[this.offset + byteOffset] << 8 | this.buf.a[this.offset + byteOffset + 1]; } } ,getInt32: function(byteOffset,littleEndian) { var p = this.offset + byteOffset; var a = this.buf.a[p++]; var b = this.buf.a[p++]; var c = this.buf.a[p++]; var d = this.buf.a[p++]; if(littleEndian) { return a | b << 8 | c << 16 | d << 24; } else { return d | c << 8 | b << 16 | a << 24; } } ,getUint32: function(byteOffset,littleEndian) { var v = this.getInt32(byteOffset,littleEndian); if(v < 0) { return v + 4294967296.; } else { return v; } } ,getFloat32: function(byteOffset,littleEndian) { return haxe_io_FPHelper.i32ToFloat(this.getInt32(byteOffset,littleEndian)); } ,getFloat64: function(byteOffset,littleEndian) { var a = this.getInt32(byteOffset,littleEndian); var b = this.getInt32(byteOffset + 4,littleEndian); return haxe_io_FPHelper.i64ToDouble(littleEndian ? a : b,littleEndian ? b : a); } ,setInt8: function(byteOffset,value) { this.buf.a[byteOffset + this.offset] = value < 0 ? value + 128 & 255 : value & 255; } ,setUint8: function(byteOffset,value) { this.buf.a[byteOffset + this.offset] = value & 255; } ,setInt16: function(byteOffset,value,littleEndian) { this.setUint16(byteOffset,value < 0 ? value + 65536 : value,littleEndian); } ,setUint16: function(byteOffset,value,littleEndian) { var p = byteOffset + this.offset; if(littleEndian) { this.buf.a[p] = value & 255; this.buf.a[p++] = value >> 8 & 255; } else { this.buf.a[p++] = value >> 8 & 255; this.buf.a[p] = value & 255; } } ,setInt32: function(byteOffset,value,littleEndian) { this.setUint32(byteOffset,value,littleEndian); } ,setUint32: function(byteOffset,value,littleEndian) { var p = byteOffset + this.offset; if(littleEndian) { this.buf.a[p++] = value & 255; this.buf.a[p++] = value >> 8 & 255; this.buf.a[p++] = value >> 16 & 255; this.buf.a[p++] = value >>> 24; } else { this.buf.a[p++] = value >>> 24; this.buf.a[p++] = value >> 16 & 255; this.buf.a[p++] = value >> 8 & 255; this.buf.a[p++] = value & 255; } } ,setFloat32: function(byteOffset,value,littleEndian) { this.setUint32(byteOffset,haxe_io_FPHelper.floatToI32(value),littleEndian); } ,setFloat64: function(byteOffset,value,littleEndian) { var i64 = haxe_io_FPHelper.doubleToI64(value); if(littleEndian) { this.setUint32(byteOffset,i64.low); this.setUint32(byteOffset,i64.high); } else { this.setUint32(byteOffset,i64.high); this.setUint32(byteOffset,i64.low); } } ,__class__: js_html_compat_DataView }; var js_html_compat_Float32Array = function() { }; $hxClasses["js.html.compat.Float32Array"] = js_html_compat_Float32Array; js_html_compat_Float32Array.__name__ = ["js","html","compat","Float32Array"]; js_html_compat_Float32Array._new = function(arg1,offset,length) { var arr; if(typeof(arg1) == "number") { arr = []; var _g1 = 0; var _g = arg1; while(_g1 < _g) { var i = _g1++; arr[i] = 0; } arr.byteLength = arr.length << 2; arr.byteOffset = 0; var _g2 = []; var _g21 = 0; var _g11 = arr.length << 2; while(_g21 < _g11) { var i1 = _g21++; _g2.push(0); } arr.buffer = new js_html_compat_ArrayBuffer(_g2); } else if(js_Boot.__instanceof(arg1,js_html_compat_ArrayBuffer)) { var buffer = arg1; if(offset == null) { offset = 0; } if(length == null) { length = buffer.byteLength - offset >> 2; } arr = []; var _g12 = 0; var _g3 = length; while(_g12 < _g3) { var i2 = _g12++; var val = buffer.a[offset++] | buffer.a[offset++] << 8 | buffer.a[offset++] << 16 | buffer.a[offset++] << 24; arr.push(haxe_io_FPHelper.i32ToFloat(val)); } arr.byteLength = arr.length << 2; arr.byteOffset = offset; arr.buffer = buffer; } else if((arg1 instanceof Array) && arg1.__enum__ == null) { arr = arg1.slice(); var buffer1 = []; var _g4 = 0; while(_g4 < arr.length) { var f = arr[_g4]; ++_g4; var i3 = haxe_io_FPHelper.floatToI32(f); buffer1.push(i3 & 255); buffer1.push(i3 >> 8 & 255); buffer1.push(i3 >> 16 & 255); buffer1.push(i3 >>> 24); } arr.byteLength = arr.length << 2; arr.byteOffset = 0; arr.buffer = new js_html_compat_ArrayBuffer(buffer1); } else { throw new js__$Boot_HaxeError("TODO " + Std.string(arg1)); } arr.subarray = js_html_compat_Float32Array._subarray; arr.set = js_html_compat_Float32Array._set; return arr; }; js_html_compat_Float32Array._set = function(arg,offset) { if(js_Boot.__instanceof(arg.buffer,js_html_compat_ArrayBuffer)) { var a = arg; if(arg.byteLength + offset > this.byteLength) { throw new js__$Boot_HaxeError("set() outside of range"); } var _g1 = 0; var _g = arg.byteLength; while(_g1 < _g) { var i = _g1++; this[i + offset] = a[i]; } } else if((arg instanceof Array) && arg.__enum__ == null) { var a1 = arg; if(a1.length + offset > this.byteLength) { throw new js__$Boot_HaxeError("set() outside of range"); } var _g11 = 0; var _g2 = a1.length; while(_g11 < _g2) { var i1 = _g11++; this[i1 + offset] = a1[i1]; } } else { throw new js__$Boot_HaxeError("TODO"); } }; js_html_compat_Float32Array._subarray = function(start,end) { var a = js_html_compat_Float32Array._new(this.slice(start,end)); a.byteOffset = start * 4; return a; }; var js_html_compat_Float64Array = function() { }; $hxClasses["js.html.compat.Float64Array"] = js_html_compat_Float64Array; js_html_compat_Float64Array.__name__ = ["js","html","compat","Float64Array"]; js_html_compat_Float64Array._new = function(arg1,offset,length) { var arr; if(typeof(arg1) == "number") { arr = []; var _g1 = 0; var _g = arg1; while(_g1 < _g) { var i = _g1++; arr[i] = 0; } arr.byteLength = arr.length << 3; arr.byteOffset = 0; var _g2 = []; var _g21 = 0; var _g11 = arr.length << 3; while(_g21 < _g11) { var i1 = _g21++; _g2.push(0); } arr.buffer = new js_html_compat_ArrayBuffer(_g2); } else if(js_Boot.__instanceof(arg1,js_html_compat_ArrayBuffer)) { var buffer = arg1; if(offset == null) { offset = 0; } if(length == null) { length = buffer.byteLength - offset >> 3; } arr = []; var _g12 = 0; var _g3 = length; while(_g12 < _g3) { var i2 = _g12++; var val1 = buffer.a[offset++] | buffer.a[offset++] << 8 | buffer.a[offset++] << 16 | buffer.a[offset++] << 24; var val2 = buffer.a[offset++] | buffer.a[offset++] << 8 | buffer.a[offset++] << 16 | buffer.a[offset++] << 24; arr.push(haxe_io_FPHelper.i64ToDouble(val1,val2)); } arr.byteLength = arr.length << 3; arr.byteOffset = offset; arr.buffer = buffer; } else if((arg1 instanceof Array) && arg1.__enum__ == null) { arr = arg1.slice(); var buffer1 = []; var _g4 = 0; while(_g4 < arr.length) { var f = arr[_g4]; ++_g4; var v = haxe_io_FPHelper.doubleToI64(f); var i3 = v.low; buffer1.push(i3 & 255); buffer1.push(i3 >> 8 & 255); buffer1.push(i3 >> 16 & 255); buffer1.push(i3 >>> 24); var i4 = v.high; buffer1.push(i4 & 255); buffer1.push(i4 >> 8 & 255); buffer1.push(i4 >> 16 & 255); buffer1.push(i4 >>> 24); } arr.byteLength = arr.length << 3; arr.byteOffset = 0; arr.buffer = new js_html_compat_ArrayBuffer(buffer1); } else { throw new js__$Boot_HaxeError("TODO " + Std.string(arg1)); } arr.subarray = js_html_compat_Float64Array._subarray; arr.set = js_html_compat_Float64Array._set; return arr; }; js_html_compat_Float64Array._set = function(arg,offset) { if(js_Boot.__instanceof(arg.buffer,js_html_compat_ArrayBuffer)) { var a = arg; if(arg.byteLength + offset > this.byteLength) { throw new js__$Boot_HaxeError("set() outside of range"); } var _g1 = 0; var _g = arg.byteLength; while(_g1 < _g) { var i = _g1++; this[i + offset] = a[i]; } } else if((arg instanceof Array) && arg.__enum__ == null) { var a1 = arg; if(a1.length + offset > this.byteLength) { throw new js__$Boot_HaxeError("set() outside of range"); } var _g11 = 0; var _g2 = a1.length; while(_g11 < _g2) { var i1 = _g11++; this[i1 + offset] = a1[i1]; } } else { throw new js__$Boot_HaxeError("TODO"); } }; js_html_compat_Float64Array._subarray = function(start,end) { var a = js_html_compat_Float64Array._new(this.slice(start,end)); a.byteOffset = start * 8; return a; }; var js_html_compat_Uint8Array = function() { }; $hxClasses["js.html.compat.Uint8Array"] = js_html_compat_Uint8Array; js_html_compat_Uint8Array.__name__ = ["js","html","compat","Uint8Array"]; js_html_compat_Uint8Array._new = function(arg1,offset,length) { var arr; if(typeof(arg1) == "number") { arr = []; var _g1 = 0; var _g = arg1; while(_g1 < _g) { var i = _g1++; arr[i] = 0; } arr.byteLength = arr.length; arr.byteOffset = 0; arr.buffer = new js_html_compat_ArrayBuffer(arr); } else if(js_Boot.__instanceof(arg1,js_html_compat_ArrayBuffer)) { var buffer = arg1; if(offset == null) { offset = 0; } if(length == null) { length = buffer.byteLength - offset; } if(offset == 0) { arr = buffer.a; } else { arr = buffer.a.slice(offset,offset + length); } arr.byteLength = arr.length; arr.byteOffset = offset; arr.buffer = buffer; } else if((arg1 instanceof Array) && arg1.__enum__ == null) { arr = arg1.slice(); arr.byteLength = arr.length; arr.byteOffset = 0; arr.buffer = new js_html_compat_ArrayBuffer(arr); } else { throw new js__$Boot_HaxeError("TODO " + Std.string(arg1)); } arr.subarray = js_html_compat_Uint8Array._subarray; arr.set = js_html_compat_Uint8Array._set; return arr; }; js_html_compat_Uint8Array._set = function(arg,offset) { if(js_Boot.__instanceof(arg.buffer,js_html_compat_ArrayBuffer)) { var a = arg; if(arg.byteLength + offset > this.byteLength) { throw new js__$Boot_HaxeError("set() outside of range"); } var _g1 = 0; var _g = arg.byteLength; while(_g1 < _g) { var i = _g1++; this[i + offset] = a[i]; } } else if((arg instanceof Array) && arg.__enum__ == null) { var a1 = arg; if(a1.length + offset > this.byteLength) { throw new js__$Boot_HaxeError("set() outside of range"); } var _g11 = 0; var _g2 = a1.length; while(_g11 < _g2) { var i1 = _g11++; this[i1 + offset] = a1[i1]; } } else { throw new js__$Boot_HaxeError("TODO"); } }; js_html_compat_Uint8Array._subarray = function(start,end) { var a = js_html_compat_Uint8Array._new(this.slice(start,end)); a.byteOffset = start; return a; }; var lime__$backend_html5_GameDeviceData = function() { this.connected = true; this.buttons = []; this.axes = []; }; $hxClasses["lime._backend.html5.GameDeviceData"] = lime__$backend_html5_GameDeviceData; lime__$backend_html5_GameDeviceData.__name__ = ["lime","_backend","html5","GameDeviceData"]; lime__$backend_html5_GameDeviceData.prototype = { connected: null ,id: null ,isGamepad: null ,buttons: null ,axes: null ,__class__: lime__$backend_html5_GameDeviceData }; var lime__$backend_html5_HTML5AudioSource = function(parent) { this.parent = parent; this.id = -1; this.gain = 1; this.position = new lime_math_Vector4(); }; $hxClasses["lime._backend.html5.HTML5AudioSource"] = lime__$backend_html5_HTML5AudioSource; lime__$backend_html5_HTML5AudioSource.__name__ = ["lime","_backend","html5","HTML5AudioSource"]; lime__$backend_html5_HTML5AudioSource.prototype = { completed: null ,gain: null ,id: null ,length: null ,loops: null ,parent: null ,playing: null ,position: null ,dispose: function() { } ,init: function() { } ,play: function() { if(this.playing || this.parent.buffer == null) { return; } this.playing = true; var time = this.getCurrentTime(); this.completed = false; var cacheVolume = this.parent.buffer.__srcHowl._volume; this.parent.buffer.__srcHowl._volume = this.parent.get_gain(); this.id = this.parent.buffer.__srcHowl.play(); this.parent.buffer.__srcHowl._volume = cacheVolume; this.setPosition(this.parent.get_position()); this.parent.buffer.__srcHowl.on("end",$bind(this,this.howl_onEnd),this.id); this.setCurrentTime(time); } ,pause: function() { this.playing = false; this.parent.buffer.__srcHowl.pause(this.id); } ,stop: function() { this.playing = false; this.parent.buffer.__srcHowl.stop(this.id); } ,howl_onEnd: function() { this.playing = false; if(this.loops > 0) { this.loops--; this.stop(); this.play(); return; } else { this.parent.buffer.__srcHowl.stop(this.id); } this.completed = true; this.parent.onComplete.dispatch(); } ,getCurrentTime: function() { if(this.id == -1) { return 0; } if(this.completed) { return this.getLength(); } else { var time = (this.parent.buffer.__srcHowl.seek(this.id) * 1000 | 0) - this.parent.offset; if(time < 0) { return 0; } return time; } } ,setCurrentTime: function(value) { if(this.parent.buffer != null) { var pos = (value + this.parent.offset) / 1000; if(pos < 0) { pos = 0; } this.parent.buffer.__srcHowl.seek(pos,this.id); } return value; } ,getGain: function() { return this.gain; } ,setGain: function(value) { if(this.parent.buffer != null) { this.parent.buffer.__srcHowl.volume(value,this.id); } return this.gain = value; } ,getLength: function() { if(this.length != 0) { return this.length; } return this.parent.buffer.__srcHowl.duration() * 1000 | 0; } ,setLength: function(value) { return this.length = value; } ,getLoops: function() { return this.loops; } ,setLoops: function(value) { return this.loops = value; } ,getPosition: function() { return this.position; } ,setPosition: function(value) { this.position.x = value.x; this.position.y = value.y; this.position.z = value.z; this.position.w = value.w; return this.position; } ,__class__: lime__$backend_html5_HTML5AudioSource }; var lime__$backend_html5_HTML5GLRenderContext = function(context) { this.MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 37447; this.TIMEOUT_IGNORED = -1; this.INVALID_INDEX = -1; this.DEPTH32F_STENCIL8 = 36013; this.DEPTH_COMPONENT32F = 36012; this.DYNAMIC_COPY = 35050; this.DYNAMIC_READ = 35049; this.STATIC_COPY = 35046; this.STATIC_READ = 35045; this.STREAM_COPY = 35042; this.STREAM_READ = 35041; this.DEPTH_COMPONENT24 = 33190; this.MAX = 32776; this.MIN = 32775; this.STENCIL = 6146; this.DEPTH = 6145; this.COLOR = 6144; this.SYNC_FLUSH_COMMANDS_BIT = 1; this.WAIT_FAILED = 37149; this.CONDITION_SATISFIED = 37148; this.TIMEOUT_EXPIRED = 37147; this.ALREADY_SIGNALED = 37146; this.SIGNALED = 37145; this.UNSIGNALED = 37144; this.SYNC_GPU_COMMANDS_COMPLETE = 37143; this.SYNC_FENCE = 37142; this.SYNC_FLAGS = 37141; this.SYNC_STATUS = 37140; this.SYNC_CONDITION = 37139; this.OBJECT_TYPE = 37138; this.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 35398; this.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 35396; this.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 35395; this.UNIFORM_BLOCK_ACTIVE_UNIFORMS = 35394; this.UNIFORM_BLOCK_DATA_SIZE = 35392; this.UNIFORM_BLOCK_BINDING = 35391; this.UNIFORM_IS_ROW_MAJOR = 35390; this.UNIFORM_MATRIX_STRIDE = 35389; this.UNIFORM_ARRAY_STRIDE = 35388; this.UNIFORM_OFFSET = 35387; this.UNIFORM_BLOCK_INDEX = 35386; this.UNIFORM_SIZE = 35384; this.UNIFORM_TYPE = 35383; this.ACTIVE_UNIFORM_BLOCKS = 35382; this.UNIFORM_BUFFER_OFFSET_ALIGNMENT = 35380; this.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 35379; this.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 35377; this.MAX_UNIFORM_BLOCK_SIZE = 35376; this.MAX_UNIFORM_BUFFER_BINDINGS = 35375; this.MAX_COMBINED_UNIFORM_BLOCKS = 35374; this.MAX_FRAGMENT_UNIFORM_BLOCKS = 35373; this.MAX_VERTEX_UNIFORM_BLOCKS = 35371; this.UNIFORM_BUFFER_SIZE = 35370; this.UNIFORM_BUFFER_START = 35369; this.UNIFORM_BUFFER_BINDING = 35368; this.UNIFORM_BUFFER = 35345; this.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 36182; this.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 36052; this.RENDERBUFFER_SAMPLES = 36011; this.READ_FRAMEBUFFER_BINDING = 36010; this.DRAW_FRAMEBUFFER = 36009; this.READ_FRAMEBUFFER = 36008; this.DRAW_FRAMEBUFFER_BINDING = 36006; this.DEPTH24_STENCIL8 = 35056; this.FRAMEBUFFER_DEFAULT = 33304; this.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 33303; this.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 33302; this.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 33301; this.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 33300; this.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 33299; this.FRAMEBUFFER_ATTACHMENT_RED_SIZE = 33298; this.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 33297; this.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 33296; this.TRANSFORM_FEEDBACK_BINDING = 36389; this.TRANSFORM_FEEDBACK_ACTIVE = 36388; this.TRANSFORM_FEEDBACK_PAUSED = 36387; this.TRANSFORM_FEEDBACK = 36386; this.TRANSFORM_FEEDBACK_BUFFER_BINDING = 35983; this.TRANSFORM_FEEDBACK_BUFFER = 35982; this.SEPARATE_ATTRIBS = 35981; this.INTERLEAVED_ATTRIBS = 35980; this.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 35979; this.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 35978; this.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 35976; this.TRANSFORM_FEEDBACK_BUFFER_SIZE = 35973; this.TRANSFORM_FEEDBACK_BUFFER_START = 35972; this.TRANSFORM_FEEDBACK_VARYINGS = 35971; this.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 35968; this.TRANSFORM_FEEDBACK_BUFFER_MODE = 35967; this.VERTEX_ATTRIB_ARRAY_DIVISOR = 35070; this.VERTEX_ATTRIB_ARRAY_INTEGER = 35069; this.SIGNED_NORMALIZED = 36764; this.UNSIGNED_NORMALIZED = 35863; this.UNSIGNED_INT_VEC4 = 36296; this.UNSIGNED_INT_VEC3 = 36295; this.UNSIGNED_INT_VEC2 = 36294; this.FLOAT_MAT4x3 = 35690; this.FLOAT_MAT4x2 = 35689; this.FLOAT_MAT3x4 = 35688; this.FLOAT_MAT3x2 = 35687; this.FLOAT_MAT2x4 = 35686; this.FLOAT_MAT2x3 = 35685; this.COPY_WRITE_BUFFER_BINDING = 36663; this.COPY_READ_BUFFER_BINDING = 36662; this.COPY_WRITE_BUFFER = 36663; this.COPY_READ_BUFFER = 36662; this.PIXEL_UNPACK_BUFFER_BINDING = 35055; this.PIXEL_PACK_BUFFER_BINDING = 35053; this.PIXEL_UNPACK_BUFFER = 35052; this.PIXEL_PACK_BUFFER = 35051; this.SAMPLER_BINDING = 35097; this.MAX_SAMPLES = 36183; this.UNSIGNED_INT_SAMPLER_2D_ARRAY = 36311; this.UNSIGNED_INT_SAMPLER_CUBE = 36308; this.UNSIGNED_INT_SAMPLER_3D = 36307; this.UNSIGNED_INT_SAMPLER_2D = 36306; this.INT_SAMPLER_2D_ARRAY = 36303; this.INT_SAMPLER_CUBE = 36300; this.INT_SAMPLER_3D = 36299; this.INT_SAMPLER_2D = 36298; this.SAMPLER_CUBE_SHADOW = 36293; this.SAMPLER_2D_ARRAY_SHADOW = 36292; this.SAMPLER_2D_ARRAY = 36289; this.SAMPLER_2D_SHADOW = 35682; this.SAMPLER_3D = 35679; this.COLOR_ATTACHMENT15 = 36079; this.COLOR_ATTACHMENT14 = 36078; this.COLOR_ATTACHMENT13 = 36077; this.COLOR_ATTACHMENT12 = 36076; this.COLOR_ATTACHMENT11 = 36075; this.COLOR_ATTACHMENT10 = 36074; this.COLOR_ATTACHMENT9 = 36073; this.COLOR_ATTACHMENT8 = 36072; this.COLOR_ATTACHMENT7 = 36071; this.COLOR_ATTACHMENT6 = 36070; this.COLOR_ATTACHMENT5 = 36069; this.COLOR_ATTACHMENT4 = 36068; this.COLOR_ATTACHMENT3 = 36067; this.COLOR_ATTACHMENT2 = 36066; this.COLOR_ATTACHMENT1 = 36065; this.MAX_COLOR_ATTACHMENTS = 36063; this.DRAW_BUFFER15 = 34868; this.DRAW_BUFFER14 = 34867; this.DRAW_BUFFER13 = 34866; this.DRAW_BUFFER12 = 34865; this.DRAW_BUFFER11 = 34864; this.DRAW_BUFFER10 = 34863; this.DRAW_BUFFER9 = 34862; this.DRAW_BUFFER8 = 34861; this.DRAW_BUFFER7 = 34860; this.DRAW_BUFFER6 = 34859; this.DRAW_BUFFER5 = 34858; this.DRAW_BUFFER4 = 34857; this.DRAW_BUFFER3 = 34856; this.DRAW_BUFFER2 = 34855; this.DRAW_BUFFER1 = 34854; this.DRAW_BUFFER0 = 34853; this.MAX_DRAW_BUFFERS = 34852; this.ANY_SAMPLES_PASSED_CONSERVATIVE = 36202; this.ANY_SAMPLES_PASSED = 35887; this.QUERY_RESULT_AVAILABLE = 34919; this.QUERY_RESULT = 34918; this.CURRENT_QUERY = 34917; this.INT_2_10_10_10_REV = 36255; this.RG_INTEGER = 33320; this.RG = 33319; this.HALF_FLOAT = 5131; this.UNSIGNED_INT_24_8 = 34042; this.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269; this.UNSIGNED_INT_5_9_9_9_REV = 35902; this.UNSIGNED_INT_10F_11F_11F_REV = 35899; this.UNSIGNED_INT_2_10_10_10_REV = 33640; this.TEXTURE_IMMUTABLE_LEVELS = 33503; this.TEXTURE_IMMUTABLE_FORMAT = 37167; this.RGB10_A2UI = 36975; this.RGBA8_SNORM = 36759; this.RGB8_SNORM = 36758; this.RG8_SNORM = 36757; this.R8_SNORM = 36756; this.RG32UI = 33340; this.RG32I = 33339; this.RG16UI = 33338; this.RG16I = 33337; this.RG8UI = 33336; this.RG8I = 33335; this.R32UI = 33334; this.R32I = 33333; this.R16UI = 33332; this.R16I = 33331; this.R8UI = 33330; this.R8I = 33329; this.RG32F = 33328; this.RG16F = 33327; this.R32F = 33326; this.R16F = 33325; this.RG8 = 33323; this.R8 = 33321; this.RGBA_INTEGER = 36249; this.RGB_INTEGER = 36248; this.RED_INTEGER = 36244; this.RGB8I = 36239; this.RGBA8I = 36238; this.RGB16I = 36233; this.RGBA16I = 36232; this.RGB32I = 36227; this.RGBA32I = 36226; this.RGB8UI = 36221; this.RGBA8UI = 36220; this.RGB16UI = 36215; this.RGBA16UI = 36214; this.RGB32UI = 36209; this.RGBA32UI = 36208; this.RGB9_E5 = 35901; this.R11F_G11F_B10F = 35898; this.TEXTURE_BINDING_2D_ARRAY = 35869; this.TEXTURE_2D_ARRAY = 35866; this.RGB16F = 34843; this.RGBA16F = 34842; this.RGB32F = 34837; this.RGBA32F = 34836; this.COMPARE_REF_TO_TEXTURE = 34894; this.SRGB8_ALPHA8 = 35907; this.SRGB8 = 35905; this.SRGB = 35904; this.TEXTURE_COMPARE_FUNC = 34893; this.TEXTURE_COMPARE_MODE = 34892; this.TEXTURE_MAX_LEVEL = 33085; this.TEXTURE_BASE_LEVEL = 33084; this.TEXTURE_MAX_LOD = 33083; this.TEXTURE_MIN_LOD = 33082; this.TEXTURE_WRAP_R = 32882; this.TEXTURE_3D = 32879; this.RGB10_A2 = 32857; this.RGBA8 = 32856; this.RGB8 = 32849; this.RED = 6403; this.MAX_ELEMENT_INDEX = 36203; this.MAX_SERVER_WAIT_TIMEOUT = 37137; this.MAX_FRAGMENT_INPUT_COMPONENTS = 37157; this.MAX_VERTEX_OUTPUT_COMPONENTS = 37154; this.VERTEX_ARRAY_BINDING = 34229; this.RASTERIZER_DISCARD = 35977; this.FRAGMENT_SHADER_DERIVATIVE_HINT = 35723; this.MAX_VARYING_COMPONENTS = 35659; this.MAX_PROGRAM_TEXEL_OFFSET = 35077; this.MIN_PROGRAM_TEXEL_OFFSET = 35076; this.MAX_ARRAY_TEXTURE_LAYERS = 35071; this.MAX_VERTEX_UNIFORM_COMPONENTS = 35658; this.MAX_FRAGMENT_UNIFORM_COMPONENTS = 35657; this.MAX_TEXTURE_LOD_BIAS = 34045; this.MAX_ELEMENTS_INDICES = 33001; this.MAX_ELEMENTS_VERTICES = 33000; this.MAX_3D_TEXTURE_SIZE = 32883; this.UNPACK_IMAGE_HEIGHT = 32878; this.UNPACK_SKIP_IMAGES = 32877; this.TEXTURE_BINDING_3D = 32874; this.PACK_SKIP_PIXELS = 3332; this.PACK_SKIP_ROWS = 3331; this.PACK_ROW_LENGTH = 3330; this.UNPACK_SKIP_PIXELS = 3316; this.UNPACK_SKIP_ROWS = 3315; this.UNPACK_ROW_LENGTH = 3314; this.READ_BUFFER = 3074; this.BROWSER_DEFAULT_WEBGL = 37444; this.UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443; this.CONTEXT_LOST_WEBGL = 37442; this.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441; this.UNPACK_FLIP_Y_WEBGL = 37440; this.INVALID_FRAMEBUFFER_OPERATION = 1286; this.MAX_RENDERBUFFER_SIZE = 34024; this.RENDERBUFFER_BINDING = 36007; this.FRAMEBUFFER_BINDING = 36006; this.FRAMEBUFFER_UNSUPPORTED = 36061; this.FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057; this.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055; this.FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054; this.FRAMEBUFFER_COMPLETE = 36053; this.NONE = 0; this.DEPTH_STENCIL_ATTACHMENT = 33306; this.STENCIL_ATTACHMENT = 36128; this.DEPTH_ATTACHMENT = 36096; this.COLOR_ATTACHMENT0 = 36064; this.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051; this.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050; this.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049; this.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048; this.RENDERBUFFER_STENCIL_SIZE = 36181; this.RENDERBUFFER_DEPTH_SIZE = 36180; this.RENDERBUFFER_ALPHA_SIZE = 36179; this.RENDERBUFFER_BLUE_SIZE = 36178; this.RENDERBUFFER_GREEN_SIZE = 36177; this.RENDERBUFFER_RED_SIZE = 36176; this.RENDERBUFFER_INTERNAL_FORMAT = 36164; this.RENDERBUFFER_HEIGHT = 36163; this.RENDERBUFFER_WIDTH = 36162; this.DEPTH_STENCIL = 34041; this.STENCIL_INDEX8 = 36168; this.STENCIL_INDEX = 6401; this.DEPTH_COMPONENT16 = 33189; this.RGB565 = 36194; this.RGB5_A1 = 32855; this.RGBA4 = 32854; this.RENDERBUFFER = 36161; this.FRAMEBUFFER = 36160; this.HIGH_INT = 36341; this.MEDIUM_INT = 36340; this.LOW_INT = 36339; this.HIGH_FLOAT = 36338; this.MEDIUM_FLOAT = 36337; this.LOW_FLOAT = 36336; this.COMPILE_STATUS = 35713; this.POINT_SPRITE = 34913; this.VERTEX_PROGRAM_POINT_SIZE = 34370; this.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 34975; this.VERTEX_ATTRIB_ARRAY_POINTER = 34373; this.VERTEX_ATTRIB_ARRAY_NORMALIZED = 34922; this.VERTEX_ATTRIB_ARRAY_TYPE = 34341; this.VERTEX_ATTRIB_ARRAY_STRIDE = 34340; this.VERTEX_ATTRIB_ARRAY_SIZE = 34339; this.VERTEX_ATTRIB_ARRAY_ENABLED = 34338; this.SAMPLER_CUBE = 35680; this.SAMPLER_2D = 35678; this.FLOAT_MAT4 = 35676; this.FLOAT_MAT3 = 35675; this.FLOAT_MAT2 = 35674; this.BOOL_VEC4 = 35673; this.BOOL_VEC3 = 35672; this.BOOL_VEC2 = 35671; this.BOOL = 35670; this.INT_VEC4 = 35669; this.INT_VEC3 = 35668; this.INT_VEC2 = 35667; this.FLOAT_VEC4 = 35666; this.FLOAT_VEC3 = 35665; this.FLOAT_VEC2 = 35664; this.MIRRORED_REPEAT = 33648; this.CLAMP_TO_EDGE = 33071; this.REPEAT = 10497; this.ACTIVE_TEXTURE = 34016; this.TEXTURE31 = 34015; this.TEXTURE30 = 34014; this.TEXTURE29 = 34013; this.TEXTURE28 = 34012; this.TEXTURE27 = 34011; this.TEXTURE26 = 34010; this.TEXTURE25 = 34009; this.TEXTURE24 = 34008; this.TEXTURE23 = 34007; this.TEXTURE22 = 34006; this.TEXTURE21 = 34005; this.TEXTURE20 = 34004; this.TEXTURE19 = 34003; this.TEXTURE18 = 34002; this.TEXTURE17 = 34001; this.TEXTURE16 = 34000; this.TEXTURE15 = 33999; this.TEXTURE14 = 33998; this.TEXTURE13 = 33997; this.TEXTURE12 = 33996; this.TEXTURE11 = 33995; this.TEXTURE10 = 33994; this.TEXTURE9 = 33993; this.TEXTURE8 = 33992; this.TEXTURE7 = 33991; this.TEXTURE6 = 33990; this.TEXTURE5 = 33989; this.TEXTURE4 = 33988; this.TEXTURE3 = 33987; this.TEXTURE2 = 33986; this.TEXTURE1 = 33985; this.TEXTURE0 = 33984; this.MAX_CUBE_MAP_TEXTURE_SIZE = 34076; this.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074; this.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073; this.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072; this.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071; this.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070; this.TEXTURE_CUBE_MAP_POSITIVE_X = 34069; this.TEXTURE_BINDING_CUBE_MAP = 34068; this.TEXTURE_CUBE_MAP = 34067; this.TEXTURE = 5890; this.TEXTURE_2D = 3553; this.TEXTURE_WRAP_T = 10243; this.TEXTURE_WRAP_S = 10242; this.TEXTURE_MIN_FILTER = 10241; this.TEXTURE_MAG_FILTER = 10240; this.LINEAR_MIPMAP_LINEAR = 9987; this.NEAREST_MIPMAP_LINEAR = 9986; this.LINEAR_MIPMAP_NEAREST = 9985; this.NEAREST_MIPMAP_NEAREST = 9984; this.LINEAR = 9729; this.NEAREST = 9728; this.VERSION = 7938; this.RENDERER = 7937; this.VENDOR = 7936; this.DECR_WRAP = 34056; this.INCR_WRAP = 34055; this.INVERT = 5386; this.DECR = 7683; this.INCR = 7682; this.REPLACE = 7681; this.KEEP = 7680; this.ALWAYS = 519; this.GEQUAL = 518; this.NOTEQUAL = 517; this.GREATER = 516; this.LEQUAL = 515; this.EQUAL = 514; this.LESS = 513; this.NEVER = 512; this.CURRENT_PROGRAM = 35725; this.SHADING_LANGUAGE_VERSION = 35724; this.ACTIVE_ATTRIBUTES = 35721; this.ACTIVE_UNIFORMS = 35718; this.ATTACHED_SHADERS = 35717; this.VALIDATE_STATUS = 35715; this.LINK_STATUS = 35714; this.DELETE_STATUS = 35712; this.SHADER_TYPE = 35663; this.MAX_FRAGMENT_UNIFORM_VECTORS = 36349; this.MAX_TEXTURE_IMAGE_UNITS = 34930; this.MAX_VERTEX_TEXTURE_IMAGE_UNITS = 35660; this.MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661; this.MAX_VARYING_VECTORS = 36348; this.MAX_VERTEX_UNIFORM_VECTORS = 36347; this.MAX_VERTEX_ATTRIBS = 34921; this.VERTEX_SHADER = 35633; this.FRAGMENT_SHADER = 35632; this.UNSIGNED_SHORT_5_6_5 = 33635; this.UNSIGNED_SHORT_5_5_5_1 = 32820; this.UNSIGNED_SHORT_4_4_4_4 = 32819; this.LUMINANCE_ALPHA = 6410; this.LUMINANCE = 6409; this.RGBA = 6408; this.RGB = 6407; this.ALPHA = 6406; this.DEPTH_COMPONENT = 6402; this.FLOAT = 5126; this.UNSIGNED_INT = 5125; this.INT = 5124; this.UNSIGNED_SHORT = 5123; this.SHORT = 5122; this.UNSIGNED_BYTE = 5121; this.BYTE = 5120; this.GENERATE_MIPMAP_HINT = 33170; this.NICEST = 4354; this.FASTEST = 4353; this.DONT_CARE = 4352; this.COMPRESSED_TEXTURE_FORMATS = 34467; this.SAMPLE_COVERAGE_INVERT = 32939; this.SAMPLE_COVERAGE_VALUE = 32938; this.SAMPLES = 32937; this.SAMPLE_BUFFERS = 32936; this.TEXTURE_BINDING_2D = 32873; this.POLYGON_OFFSET_FACTOR = 32824; this.POLYGON_OFFSET_UNITS = 10752; this.STENCIL_BITS = 3415; this.DEPTH_BITS = 3414; this.ALPHA_BITS = 3413; this.BLUE_BITS = 3412; this.GREEN_BITS = 3411; this.RED_BITS = 3410; this.SUBPIXEL_BITS = 3408; this.MAX_VIEWPORT_DIMS = 3386; this.MAX_TEXTURE_SIZE = 3379; this.PACK_ALIGNMENT = 3333; this.UNPACK_ALIGNMENT = 3317; this.COLOR_WRITEMASK = 3107; this.COLOR_CLEAR_VALUE = 3106; this.SCISSOR_BOX = 3088; this.VIEWPORT = 2978; this.STENCIL_BACK_WRITEMASK = 36005; this.STENCIL_BACK_VALUE_MASK = 36004; this.STENCIL_BACK_REF = 36003; this.STENCIL_BACK_PASS_DEPTH_PASS = 34819; this.STENCIL_BACK_PASS_DEPTH_FAIL = 34818; this.STENCIL_BACK_FAIL = 34817; this.STENCIL_BACK_FUNC = 34816; this.STENCIL_WRITEMASK = 2968; this.STENCIL_VALUE_MASK = 2963; this.STENCIL_REF = 2967; this.STENCIL_PASS_DEPTH_PASS = 2966; this.STENCIL_PASS_DEPTH_FAIL = 2965; this.STENCIL_FAIL = 2964; this.STENCIL_FUNC = 2962; this.STENCIL_CLEAR_VALUE = 2961; this.DEPTH_FUNC = 2932; this.DEPTH_CLEAR_VALUE = 2931; this.DEPTH_WRITEMASK = 2930; this.DEPTH_RANGE = 2928; this.FRONT_FACE = 2886; this.CULL_FACE_MODE = 2885; this.ALIASED_LINE_WIDTH_RANGE = 33902; this.ALIASED_POINT_SIZE_RANGE = 33901; this.LINE_WIDTH = 2849; this.CCW = 2305; this.CW = 2304; this.OUT_OF_MEMORY = 1285; this.INVALID_OPERATION = 1282; this.INVALID_VALUE = 1281; this.INVALID_ENUM = 1280; this.NO_ERROR = 0; this.SAMPLE_COVERAGE = 32928; this.SAMPLE_ALPHA_TO_COVERAGE = 32926; this.POLYGON_OFFSET_FILL = 32823; this.SCISSOR_TEST = 3089; this.DEPTH_TEST = 2929; this.STENCIL_TEST = 2960; this.DITHER = 3024; this.BLEND = 3042; this.CULL_FACE = 2884; this.FRONT_AND_BACK = 1032; this.BACK = 1029; this.FRONT = 1028; this.CURRENT_VERTEX_ATTRIB = 34342; this.BUFFER_USAGE = 34661; this.BUFFER_SIZE = 34660; this.DYNAMIC_DRAW = 35048; this.STATIC_DRAW = 35044; this.STREAM_DRAW = 35040; this.ELEMENT_ARRAY_BUFFER_BINDING = 34965; this.ARRAY_BUFFER_BINDING = 34964; this.ELEMENT_ARRAY_BUFFER = 34963; this.ARRAY_BUFFER = 34962; this.BLEND_COLOR = 32773; this.ONE_MINUS_CONSTANT_ALPHA = 32772; this.CONSTANT_ALPHA = 32771; this.ONE_MINUS_CONSTANT_COLOR = 32770; this.CONSTANT_COLOR = 32769; this.BLEND_SRC_ALPHA = 32971; this.BLEND_DST_ALPHA = 32970; this.BLEND_SRC_RGB = 32969; this.BLEND_DST_RGB = 32968; this.FUNC_REVERSE_SUBTRACT = 32779; this.FUNC_SUBTRACT = 32778; this.BLEND_EQUATION_ALPHA = 34877; this.BLEND_EQUATION_RGB = 32777; this.BLEND_EQUATION = 32777; this.FUNC_ADD = 32774; this.SRC_ALPHA_SATURATE = 776; this.ONE_MINUS_DST_COLOR = 775; this.DST_COLOR = 774; this.ONE_MINUS_DST_ALPHA = 773; this.DST_ALPHA = 772; this.ONE_MINUS_SRC_ALPHA = 771; this.SRC_ALPHA = 770; this.ONE_MINUS_SRC_COLOR = 769; this.SRC_COLOR = 768; this.ONE = 1; this.ZERO = 0; this.TRIANGLE_FAN = 6; this.TRIANGLE_STRIP = 5; this.TRIANGLES = 4; this.LINE_STRIP = 3; this.LINE_LOOP = 2; this.LINES = 1; this.POINTS = 0; this.COLOR_BUFFER_BIT = 16384; this.STENCIL_BUFFER_BIT = 1024; this.DEPTH_BUFFER_BIT = 256; this.__context = context; this.version = 1; this.type = lime_graphics_opengl_GLContextType.WEBGL; if(context != null) { var gl = context; if(Object.prototype.hasOwnProperty.call(gl,"rawgl")) { gl = Reflect.field(context,"rawgl"); } if(Object.prototype.hasOwnProperty.call(window,"WebGL2RenderingContext") && js_Boot.__instanceof(gl,WebGL2RenderingContext)) { this.version = 2; } } }; $hxClasses["lime._backend.html5.HTML5GLRenderContext"] = lime__$backend_html5_HTML5GLRenderContext; lime__$backend_html5_HTML5GLRenderContext.__name__ = ["lime","_backend","html5","HTML5GLRenderContext"]; lime__$backend_html5_HTML5GLRenderContext.prototype = { DEPTH_BUFFER_BIT: null ,STENCIL_BUFFER_BIT: null ,COLOR_BUFFER_BIT: null ,POINTS: null ,LINES: null ,LINE_LOOP: null ,LINE_STRIP: null ,TRIANGLES: null ,TRIANGLE_STRIP: null ,TRIANGLE_FAN: null ,ZERO: null ,ONE: null ,SRC_COLOR: null ,ONE_MINUS_SRC_COLOR: null ,SRC_ALPHA: null ,ONE_MINUS_SRC_ALPHA: null ,DST_ALPHA: null ,ONE_MINUS_DST_ALPHA: null ,DST_COLOR: null ,ONE_MINUS_DST_COLOR: null ,SRC_ALPHA_SATURATE: null ,FUNC_ADD: null ,BLEND_EQUATION: null ,BLEND_EQUATION_RGB: null ,BLEND_EQUATION_ALPHA: null ,FUNC_SUBTRACT: null ,FUNC_REVERSE_SUBTRACT: null ,BLEND_DST_RGB: null ,BLEND_SRC_RGB: null ,BLEND_DST_ALPHA: null ,BLEND_SRC_ALPHA: null ,CONSTANT_COLOR: null ,ONE_MINUS_CONSTANT_COLOR: null ,CONSTANT_ALPHA: null ,ONE_MINUS_CONSTANT_ALPHA: null ,BLEND_COLOR: null ,ARRAY_BUFFER: null ,ELEMENT_ARRAY_BUFFER: null ,ARRAY_BUFFER_BINDING: null ,ELEMENT_ARRAY_BUFFER_BINDING: null ,STREAM_DRAW: null ,STATIC_DRAW: null ,DYNAMIC_DRAW: null ,BUFFER_SIZE: null ,BUFFER_USAGE: null ,CURRENT_VERTEX_ATTRIB: null ,FRONT: null ,BACK: null ,FRONT_AND_BACK: null ,CULL_FACE: null ,BLEND: null ,DITHER: null ,STENCIL_TEST: null ,DEPTH_TEST: null ,SCISSOR_TEST: null ,POLYGON_OFFSET_FILL: null ,SAMPLE_ALPHA_TO_COVERAGE: null ,SAMPLE_COVERAGE: null ,NO_ERROR: null ,INVALID_ENUM: null ,INVALID_VALUE: null ,INVALID_OPERATION: null ,OUT_OF_MEMORY: null ,CW: null ,CCW: null ,LINE_WIDTH: null ,ALIASED_POINT_SIZE_RANGE: null ,ALIASED_LINE_WIDTH_RANGE: null ,CULL_FACE_MODE: null ,FRONT_FACE: null ,DEPTH_RANGE: null ,DEPTH_WRITEMASK: null ,DEPTH_CLEAR_VALUE: null ,DEPTH_FUNC: null ,STENCIL_CLEAR_VALUE: null ,STENCIL_FUNC: null ,STENCIL_FAIL: null ,STENCIL_PASS_DEPTH_FAIL: null ,STENCIL_PASS_DEPTH_PASS: null ,STENCIL_REF: null ,STENCIL_VALUE_MASK: null ,STENCIL_WRITEMASK: null ,STENCIL_BACK_FUNC: null ,STENCIL_BACK_FAIL: null ,STENCIL_BACK_PASS_DEPTH_FAIL: null ,STENCIL_BACK_PASS_DEPTH_PASS: null ,STENCIL_BACK_REF: null ,STENCIL_BACK_VALUE_MASK: null ,STENCIL_BACK_WRITEMASK: null ,VIEWPORT: null ,SCISSOR_BOX: null ,COLOR_CLEAR_VALUE: null ,COLOR_WRITEMASK: null ,UNPACK_ALIGNMENT: null ,PACK_ALIGNMENT: null ,MAX_TEXTURE_SIZE: null ,MAX_VIEWPORT_DIMS: null ,SUBPIXEL_BITS: null ,RED_BITS: null ,GREEN_BITS: null ,BLUE_BITS: null ,ALPHA_BITS: null ,DEPTH_BITS: null ,STENCIL_BITS: null ,POLYGON_OFFSET_UNITS: null ,POLYGON_OFFSET_FACTOR: null ,TEXTURE_BINDING_2D: null ,SAMPLE_BUFFERS: null ,SAMPLES: null ,SAMPLE_COVERAGE_VALUE: null ,SAMPLE_COVERAGE_INVERT: null ,COMPRESSED_TEXTURE_FORMATS: null ,DONT_CARE: null ,FASTEST: null ,NICEST: null ,GENERATE_MIPMAP_HINT: null ,BYTE: null ,UNSIGNED_BYTE: null ,SHORT: null ,UNSIGNED_SHORT: null ,INT: null ,UNSIGNED_INT: null ,FLOAT: null ,DEPTH_COMPONENT: null ,ALPHA: null ,RGB: null ,RGBA: null ,LUMINANCE: null ,LUMINANCE_ALPHA: null ,UNSIGNED_SHORT_4_4_4_4: null ,UNSIGNED_SHORT_5_5_5_1: null ,UNSIGNED_SHORT_5_6_5: null ,FRAGMENT_SHADER: null ,VERTEX_SHADER: null ,MAX_VERTEX_ATTRIBS: null ,MAX_VERTEX_UNIFORM_VECTORS: null ,MAX_VARYING_VECTORS: null ,MAX_COMBINED_TEXTURE_IMAGE_UNITS: null ,MAX_VERTEX_TEXTURE_IMAGE_UNITS: null ,MAX_TEXTURE_IMAGE_UNITS: null ,MAX_FRAGMENT_UNIFORM_VECTORS: null ,SHADER_TYPE: null ,DELETE_STATUS: null ,LINK_STATUS: null ,VALIDATE_STATUS: null ,ATTACHED_SHADERS: null ,ACTIVE_UNIFORMS: null ,ACTIVE_ATTRIBUTES: null ,SHADING_LANGUAGE_VERSION: null ,CURRENT_PROGRAM: null ,NEVER: null ,LESS: null ,EQUAL: null ,LEQUAL: null ,GREATER: null ,NOTEQUAL: null ,GEQUAL: null ,ALWAYS: null ,KEEP: null ,REPLACE: null ,INCR: null ,DECR: null ,INVERT: null ,INCR_WRAP: null ,DECR_WRAP: null ,VENDOR: null ,RENDERER: null ,VERSION: null ,NEAREST: null ,LINEAR: null ,NEAREST_MIPMAP_NEAREST: null ,LINEAR_MIPMAP_NEAREST: null ,NEAREST_MIPMAP_LINEAR: null ,LINEAR_MIPMAP_LINEAR: null ,TEXTURE_MAG_FILTER: null ,TEXTURE_MIN_FILTER: null ,TEXTURE_WRAP_S: null ,TEXTURE_WRAP_T: null ,TEXTURE_2D: null ,TEXTURE: null ,TEXTURE_CUBE_MAP: null ,TEXTURE_BINDING_CUBE_MAP: null ,TEXTURE_CUBE_MAP_POSITIVE_X: null ,TEXTURE_CUBE_MAP_NEGATIVE_X: null ,TEXTURE_CUBE_MAP_POSITIVE_Y: null ,TEXTURE_CUBE_MAP_NEGATIVE_Y: null ,TEXTURE_CUBE_MAP_POSITIVE_Z: null ,TEXTURE_CUBE_MAP_NEGATIVE_Z: null ,MAX_CUBE_MAP_TEXTURE_SIZE: null ,TEXTURE0: null ,TEXTURE1: null ,TEXTURE2: null ,TEXTURE3: null ,TEXTURE4: null ,TEXTURE5: null ,TEXTURE6: null ,TEXTURE7: null ,TEXTURE8: null ,TEXTURE9: null ,TEXTURE10: null ,TEXTURE11: null ,TEXTURE12: null ,TEXTURE13: null ,TEXTURE14: null ,TEXTURE15: null ,TEXTURE16: null ,TEXTURE17: null ,TEXTURE18: null ,TEXTURE19: null ,TEXTURE20: null ,TEXTURE21: null ,TEXTURE22: null ,TEXTURE23: null ,TEXTURE24: null ,TEXTURE25: null ,TEXTURE26: null ,TEXTURE27: null ,TEXTURE28: null ,TEXTURE29: null ,TEXTURE30: null ,TEXTURE31: null ,ACTIVE_TEXTURE: null ,REPEAT: null ,CLAMP_TO_EDGE: null ,MIRRORED_REPEAT: null ,FLOAT_VEC2: null ,FLOAT_VEC3: null ,FLOAT_VEC4: null ,INT_VEC2: null ,INT_VEC3: null ,INT_VEC4: null ,BOOL: null ,BOOL_VEC2: null ,BOOL_VEC3: null ,BOOL_VEC4: null ,FLOAT_MAT2: null ,FLOAT_MAT3: null ,FLOAT_MAT4: null ,SAMPLER_2D: null ,SAMPLER_CUBE: null ,VERTEX_ATTRIB_ARRAY_ENABLED: null ,VERTEX_ATTRIB_ARRAY_SIZE: null ,VERTEX_ATTRIB_ARRAY_STRIDE: null ,VERTEX_ATTRIB_ARRAY_TYPE: null ,VERTEX_ATTRIB_ARRAY_NORMALIZED: null ,VERTEX_ATTRIB_ARRAY_POINTER: null ,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: null ,VERTEX_PROGRAM_POINT_SIZE: null ,POINT_SPRITE: null ,COMPILE_STATUS: null ,LOW_FLOAT: null ,MEDIUM_FLOAT: null ,HIGH_FLOAT: null ,LOW_INT: null ,MEDIUM_INT: null ,HIGH_INT: null ,FRAMEBUFFER: null ,RENDERBUFFER: null ,RGBA4: null ,RGB5_A1: null ,RGB565: null ,DEPTH_COMPONENT16: null ,STENCIL_INDEX: null ,STENCIL_INDEX8: null ,DEPTH_STENCIL: null ,RENDERBUFFER_WIDTH: null ,RENDERBUFFER_HEIGHT: null ,RENDERBUFFER_INTERNAL_FORMAT: null ,RENDERBUFFER_RED_SIZE: null ,RENDERBUFFER_GREEN_SIZE: null ,RENDERBUFFER_BLUE_SIZE: null ,RENDERBUFFER_ALPHA_SIZE: null ,RENDERBUFFER_DEPTH_SIZE: null ,RENDERBUFFER_STENCIL_SIZE: null ,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: null ,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: null ,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: null ,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: null ,COLOR_ATTACHMENT0: null ,DEPTH_ATTACHMENT: null ,STENCIL_ATTACHMENT: null ,DEPTH_STENCIL_ATTACHMENT: null ,NONE: null ,FRAMEBUFFER_COMPLETE: null ,FRAMEBUFFER_INCOMPLETE_ATTACHMENT: null ,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: null ,FRAMEBUFFER_INCOMPLETE_DIMENSIONS: null ,FRAMEBUFFER_UNSUPPORTED: null ,FRAMEBUFFER_BINDING: null ,RENDERBUFFER_BINDING: null ,MAX_RENDERBUFFER_SIZE: null ,INVALID_FRAMEBUFFER_OPERATION: null ,UNPACK_FLIP_Y_WEBGL: null ,UNPACK_PREMULTIPLY_ALPHA_WEBGL: null ,CONTEXT_LOST_WEBGL: null ,UNPACK_COLORSPACE_CONVERSION_WEBGL: null ,BROWSER_DEFAULT_WEBGL: null ,READ_BUFFER: null ,UNPACK_ROW_LENGTH: null ,UNPACK_SKIP_ROWS: null ,UNPACK_SKIP_PIXELS: null ,PACK_ROW_LENGTH: null ,PACK_SKIP_ROWS: null ,PACK_SKIP_PIXELS: null ,TEXTURE_BINDING_3D: null ,UNPACK_SKIP_IMAGES: null ,UNPACK_IMAGE_HEIGHT: null ,MAX_3D_TEXTURE_SIZE: null ,MAX_ELEMENTS_VERTICES: null ,MAX_ELEMENTS_INDICES: null ,MAX_TEXTURE_LOD_BIAS: null ,MAX_FRAGMENT_UNIFORM_COMPONENTS: null ,MAX_VERTEX_UNIFORM_COMPONENTS: null ,MAX_ARRAY_TEXTURE_LAYERS: null ,MIN_PROGRAM_TEXEL_OFFSET: null ,MAX_PROGRAM_TEXEL_OFFSET: null ,MAX_VARYING_COMPONENTS: null ,FRAGMENT_SHADER_DERIVATIVE_HINT: null ,RASTERIZER_DISCARD: null ,VERTEX_ARRAY_BINDING: null ,MAX_VERTEX_OUTPUT_COMPONENTS: null ,MAX_FRAGMENT_INPUT_COMPONENTS: null ,MAX_SERVER_WAIT_TIMEOUT: null ,MAX_ELEMENT_INDEX: null ,RED: null ,RGB8: null ,RGBA8: null ,RGB10_A2: null ,TEXTURE_3D: null ,TEXTURE_WRAP_R: null ,TEXTURE_MIN_LOD: null ,TEXTURE_MAX_LOD: null ,TEXTURE_BASE_LEVEL: null ,TEXTURE_MAX_LEVEL: null ,TEXTURE_COMPARE_MODE: null ,TEXTURE_COMPARE_FUNC: null ,SRGB: null ,SRGB8: null ,SRGB8_ALPHA8: null ,COMPARE_REF_TO_TEXTURE: null ,RGBA32F: null ,RGB32F: null ,RGBA16F: null ,RGB16F: null ,TEXTURE_2D_ARRAY: null ,TEXTURE_BINDING_2D_ARRAY: null ,R11F_G11F_B10F: null ,RGB9_E5: null ,RGBA32UI: null ,RGB32UI: null ,RGBA16UI: null ,RGB16UI: null ,RGBA8UI: null ,RGB8UI: null ,RGBA32I: null ,RGB32I: null ,RGBA16I: null ,RGB16I: null ,RGBA8I: null ,RGB8I: null ,RED_INTEGER: null ,RGB_INTEGER: null ,RGBA_INTEGER: null ,R8: null ,RG8: null ,R16F: null ,R32F: null ,RG16F: null ,RG32F: null ,R8I: null ,R8UI: null ,R16I: null ,R16UI: null ,R32I: null ,R32UI: null ,RG8I: null ,RG8UI: null ,RG16I: null ,RG16UI: null ,RG32I: null ,RG32UI: null ,R8_SNORM: null ,RG8_SNORM: null ,RGB8_SNORM: null ,RGBA8_SNORM: null ,RGB10_A2UI: null ,TEXTURE_IMMUTABLE_FORMAT: null ,TEXTURE_IMMUTABLE_LEVELS: null ,UNSIGNED_INT_2_10_10_10_REV: null ,UNSIGNED_INT_10F_11F_11F_REV: null ,UNSIGNED_INT_5_9_9_9_REV: null ,FLOAT_32_UNSIGNED_INT_24_8_REV: null ,UNSIGNED_INT_24_8: null ,HALF_FLOAT: null ,RG: null ,RG_INTEGER: null ,INT_2_10_10_10_REV: null ,CURRENT_QUERY: null ,QUERY_RESULT: null ,QUERY_RESULT_AVAILABLE: null ,ANY_SAMPLES_PASSED: null ,ANY_SAMPLES_PASSED_CONSERVATIVE: null ,MAX_DRAW_BUFFERS: null ,DRAW_BUFFER0: null ,DRAW_BUFFER1: null ,DRAW_BUFFER2: null ,DRAW_BUFFER3: null ,DRAW_BUFFER4: null ,DRAW_BUFFER5: null ,DRAW_BUFFER6: null ,DRAW_BUFFER7: null ,DRAW_BUFFER8: null ,DRAW_BUFFER9: null ,DRAW_BUFFER10: null ,DRAW_BUFFER11: null ,DRAW_BUFFER12: null ,DRAW_BUFFER13: null ,DRAW_BUFFER14: null ,DRAW_BUFFER15: null ,MAX_COLOR_ATTACHMENTS: null ,COLOR_ATTACHMENT1: null ,COLOR_ATTACHMENT2: null ,COLOR_ATTACHMENT3: null ,COLOR_ATTACHMENT4: null ,COLOR_ATTACHMENT5: null ,COLOR_ATTACHMENT6: null ,COLOR_ATTACHMENT7: null ,COLOR_ATTACHMENT8: null ,COLOR_ATTACHMENT9: null ,COLOR_ATTACHMENT10: null ,COLOR_ATTACHMENT11: null ,COLOR_ATTACHMENT12: null ,COLOR_ATTACHMENT13: null ,COLOR_ATTACHMENT14: null ,COLOR_ATTACHMENT15: null ,SAMPLER_3D: null ,SAMPLER_2D_SHADOW: null ,SAMPLER_2D_ARRAY: null ,SAMPLER_2D_ARRAY_SHADOW: null ,SAMPLER_CUBE_SHADOW: null ,INT_SAMPLER_2D: null ,INT_SAMPLER_3D: null ,INT_SAMPLER_CUBE: null ,INT_SAMPLER_2D_ARRAY: null ,UNSIGNED_INT_SAMPLER_2D: null ,UNSIGNED_INT_SAMPLER_3D: null ,UNSIGNED_INT_SAMPLER_CUBE: null ,UNSIGNED_INT_SAMPLER_2D_ARRAY: null ,MAX_SAMPLES: null ,SAMPLER_BINDING: null ,PIXEL_PACK_BUFFER: null ,PIXEL_UNPACK_BUFFER: null ,PIXEL_PACK_BUFFER_BINDING: null ,PIXEL_UNPACK_BUFFER_BINDING: null ,COPY_READ_BUFFER: null ,COPY_WRITE_BUFFER: null ,COPY_READ_BUFFER_BINDING: null ,COPY_WRITE_BUFFER_BINDING: null ,FLOAT_MAT2x3: null ,FLOAT_MAT2x4: null ,FLOAT_MAT3x2: null ,FLOAT_MAT3x4: null ,FLOAT_MAT4x2: null ,FLOAT_MAT4x3: null ,UNSIGNED_INT_VEC2: null ,UNSIGNED_INT_VEC3: null ,UNSIGNED_INT_VEC4: null ,UNSIGNED_NORMALIZED: null ,SIGNED_NORMALIZED: null ,VERTEX_ATTRIB_ARRAY_INTEGER: null ,VERTEX_ATTRIB_ARRAY_DIVISOR: null ,TRANSFORM_FEEDBACK_BUFFER_MODE: null ,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: null ,TRANSFORM_FEEDBACK_VARYINGS: null ,TRANSFORM_FEEDBACK_BUFFER_START: null ,TRANSFORM_FEEDBACK_BUFFER_SIZE: null ,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: null ,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: null ,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: null ,INTERLEAVED_ATTRIBS: null ,SEPARATE_ATTRIBS: null ,TRANSFORM_FEEDBACK_BUFFER: null ,TRANSFORM_FEEDBACK_BUFFER_BINDING: null ,TRANSFORM_FEEDBACK: null ,TRANSFORM_FEEDBACK_PAUSED: null ,TRANSFORM_FEEDBACK_ACTIVE: null ,TRANSFORM_FEEDBACK_BINDING: null ,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: null ,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: null ,FRAMEBUFFER_ATTACHMENT_RED_SIZE: null ,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: null ,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: null ,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: null ,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: null ,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: null ,FRAMEBUFFER_DEFAULT: null ,DEPTH24_STENCIL8: null ,DRAW_FRAMEBUFFER_BINDING: null ,READ_FRAMEBUFFER: null ,DRAW_FRAMEBUFFER: null ,READ_FRAMEBUFFER_BINDING: null ,RENDERBUFFER_SAMPLES: null ,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: null ,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: null ,UNIFORM_BUFFER: null ,UNIFORM_BUFFER_BINDING: null ,UNIFORM_BUFFER_START: null ,UNIFORM_BUFFER_SIZE: null ,MAX_VERTEX_UNIFORM_BLOCKS: null ,MAX_FRAGMENT_UNIFORM_BLOCKS: null ,MAX_COMBINED_UNIFORM_BLOCKS: null ,MAX_UNIFORM_BUFFER_BINDINGS: null ,MAX_UNIFORM_BLOCK_SIZE: null ,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: null ,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: null ,UNIFORM_BUFFER_OFFSET_ALIGNMENT: null ,ACTIVE_UNIFORM_BLOCKS: null ,UNIFORM_TYPE: null ,UNIFORM_SIZE: null ,UNIFORM_BLOCK_INDEX: null ,UNIFORM_OFFSET: null ,UNIFORM_ARRAY_STRIDE: null ,UNIFORM_MATRIX_STRIDE: null ,UNIFORM_IS_ROW_MAJOR: null ,UNIFORM_BLOCK_BINDING: null ,UNIFORM_BLOCK_DATA_SIZE: null ,UNIFORM_BLOCK_ACTIVE_UNIFORMS: null ,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: null ,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: null ,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: null ,OBJECT_TYPE: null ,SYNC_CONDITION: null ,SYNC_STATUS: null ,SYNC_FLAGS: null ,SYNC_FENCE: null ,SYNC_GPU_COMMANDS_COMPLETE: null ,UNSIGNALED: null ,SIGNALED: null ,ALREADY_SIGNALED: null ,TIMEOUT_EXPIRED: null ,CONDITION_SATISFIED: null ,WAIT_FAILED: null ,SYNC_FLUSH_COMMANDS_BIT: null ,COLOR: null ,DEPTH: null ,STENCIL: null ,MIN: null ,MAX: null ,DEPTH_COMPONENT24: null ,STREAM_READ: null ,STREAM_COPY: null ,STATIC_READ: null ,STATIC_COPY: null ,DYNAMIC_READ: null ,DYNAMIC_COPY: null ,DEPTH_COMPONENT32F: null ,DEPTH32F_STENCIL8: null ,INVALID_INDEX: null ,TIMEOUT_IGNORED: null ,MAX_CLIENT_WAIT_TIMEOUT_WEBGL: null ,type: null ,version: null ,__context: null ,__contextLost: null ,activeTexture: function(texture) { this.__context.activeTexture(texture); } ,attachShader: function(program,shader) { this.__context.attachShader(program,shader); } ,beginQuery: function(target,query) { this.__context.beginQuery(target,query); } ,beginTransformFeedback: function(primitiveNode) { this.__context.beginTransformFeedback(primitiveNode); } ,bindAttribLocation: function(program,index,name) { this.__context.bindAttribLocation(program,index,name); } ,bindBuffer: function(target,buffer) { this.__context.bindBuffer(target,buffer); } ,bindBufferBase: function(target,index,buffer) { this.__context.bindBufferBase(target,index,buffer); } ,bindBufferRange: function(target,index,buffer,offset,size) { this.__context.bindBufferRange(target,index,buffer,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(size)); } ,bindFramebuffer: function(target,framebuffer) { this.__context.bindFramebuffer(target,framebuffer); } ,bindRenderbuffer: function(target,renderbuffer) { this.__context.bindRenderbuffer(target,renderbuffer); } ,bindSampler: function(unit,sampler) { this.__context.bindSampler(unit,sampler); } ,bindTexture: function(target,texture) { this.__context.bindTexture(target,texture); } ,bindTransformFeedback: function(target,transformFeedback) { this.__context.bindTransformFeedback(target,transformFeedback); } ,bindVertexArray: function(vertexArray) { this.__context.bindVertexArray(vertexArray); } ,blendColor: function(red,green,blue,alpha) { this.__context.blendColor(red,green,blue,alpha); } ,blendEquation: function(mode) { this.__context.blendEquation(mode); } ,blendEquationSeparate: function(modeRGB,modeAlpha) { this.__context.blendEquationSeparate(modeRGB,modeAlpha); } ,blendFunc: function(sfactor,dfactor) { this.__context.blendFunc(sfactor,dfactor); } ,blendFuncSeparate: function(srcRGB,dstRGB,srcAlpha,dstAlpha) { this.__context.blendFuncSeparate(srcRGB,dstRGB,srcAlpha,dstAlpha); } ,blitFramebuffer: function(srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter) { this.__context.blitFramebuffer(srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter); } ,bufferData: function(target,size,data,usage) { this.__context.bufferData(target,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,size),usage); } ,bufferDataWEBGL: function(target,srcData,usage,srcOffset,length) { if(srcOffset != null) { this.__context.bufferData(target,srcData,usage,srcOffset,length); } else { this.__context.bufferData(target,srcData,usage); } } ,bufferSubData: function(target,dstByteOffset,size,data) { this.__context.bufferSubData(target,dstByteOffset,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,size)); } ,bufferSubDataWEBGL: function(target,dstByteOffset,srcData,srcOffset,length) { if(srcOffset != null) { this.__context.bufferSubData(target,dstByteOffset,srcData,srcOffset,length); } else { this.__context.bufferSubData(target,dstByteOffset,srcData); } } ,checkFramebufferStatus: function(target) { return this.__context.checkFramebufferStatus(target); } ,clear: function(mask) { this.__context.clear(mask); } ,clearBufferfi: function(buffer,drawbuffer,depth,stencil) { this.__context.clearBufferfi(buffer,drawbuffer,depth,stencil); } ,clearBufferfv: function(buffer,drawbuffer,values) { this.__context.clearBufferfv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(values)); } ,clearBufferfvWEBGL: function(buffer,drawbuffer,values,srcOffset) { this.__context.clearBufferfv(buffer,drawbuffer,values,srcOffset); } ,clearBufferiv: function(buffer,drawbuffer,values) { this.__context.clearBufferiv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(values)); } ,clearBufferivWEBGL: function(buffer,drawbuffer,values,srcOffset) { this.__context.clearBufferiv(buffer,drawbuffer,values,srcOffset); } ,clearBufferuiv: function(buffer,drawbuffer,values) { this.__context.clearBufferuiv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(values)); } ,clearBufferuivWEBGL: function(buffer,drawbuffer,values,srcOffset) { this.__context.clearBufferuiv(buffer,drawbuffer,values,srcOffset); } ,clearColor: function(red,green,blue,alpha) { this.__context.clearColor(red,green,blue,alpha); } ,clearDepth: function(depth) { this.__context.clearDepth(depth); } ,clearDepthf: function(depth) { this.__context.clearDepth(depth); } ,clearStencil: function(s) { this.__context.clearStencil(s); } ,clientWaitSync: function(sync,flags,timeout) { return this.__context.clientWaitSync(sync,flags,timeout); } ,copyBufferSubData: function(readTarget,writeTarget,readOffset,writeOffset,size) { } ,colorMask: function(red,green,blue,alpha) { this.__context.colorMask(red,green,blue,alpha); } ,compileShader: function(shader) { this.__context.compileShader(shader); } ,compressedTexImage2D: function(target,level,internalformat,width,height,border,imageSize,data) { this.__context.compressedTexImage2D(target,level,internalformat,width,height,border,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); } ,compressedTexImage2DWEBGL: function(target,level,internalformat,width,height,border,srcData,srcOffset,srcLengthOverride) { if(srcOffset != null) { this.__context.compressedTexImage2D(target,level,internalformat,width,height,border,srcData,srcOffset,srcLengthOverride); } else { this.__context.compressedTexImage2D(target,level,internalformat,width,height,border,srcData); } } ,compressedTexImage3D: function(target,level,internalformat,width,height,depth,border,imageSize,data) { this.__context.compressedTexImage3D(target,level,internalformat,width,height,depth,border,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); } ,compressedTexImage3DWEBGL: function(target,level,internalformat,width,height,depth,border,srcData,srcOffset,srcLengthOverride) { this.__context.compressedTexImage3D(target,level,internalformat,width,height,depth,border,srcData,srcOffset,srcLengthOverride); } ,compressedTexSubImage2D: function(target,level,xoffset,yoffset,width,height,format,imageSize,data) { this.__context.compressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); } ,compressedTexSubImage2DWEBGL: function(target,level,xoffset,yoffset,width,height,format,srcData,srcOffset,srcLengthOverride) { if(srcOffset != null) { this.__context.compressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,srcData,srcOffset,srcLengthOverride); } else { this.__context.compressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,srcData); } } ,compressedTexSubImage3D: function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,imageSize,data) { this.__context.compressedTexSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); } ,compressedTexSubImage3DWEBGL: function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,srcData,srcOffset,srcLengthOverride) { this.__context.compressedTexSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,srcData,srcOffset,srcLengthOverride); } ,copySubBufferData: function(readTarget,writeTarget,readOffset,writeOffset,size) { this.__context.copySubBufferData(readTarget,writeTarget,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(readOffset)),lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(writeOffset)),size); } ,copyTexImage2D: function(target,level,internalformat,x,y,width,height,border) { this.__context.copyTexImage2D(target,level,internalformat,x,y,width,height,border); } ,copyTexSubImage2D: function(target,level,xoffset,yoffset,x,y,width,height) { this.__context.copyTexSubImage2D(target,level,xoffset,yoffset,x,y,width,height); } ,copyTexSubImage3D: function(target,level,xoffset,yoffset,zoffset,x,y,width,height) { this.__context.copyTexSubImage3D(target,level,xoffset,yoffset,zoffset,x,y,width,height); } ,createBuffer: function() { return this.__context.createBuffer(); } ,createFramebuffer: function() { return this.__context.createFramebuffer(); } ,createProgram: function() { return this.__context.createProgram(); } ,createQuery: function() { return this.__context.createQuery(); } ,createRenderbuffer: function() { return this.__context.createRenderbuffer(); } ,createSampler: function() { return this.__context.createSampler(); } ,createShader: function(type) { return this.__context.createShader(type); } ,createTexture: function() { return this.__context.createTexture(); } ,createTransformFeedback: function() { return this.__context.createTransformFeedback(); } ,createVertexArray: function() { return this.__context.createVertexArray(); } ,cullFace: function(mode) { this.__context.cullFace(mode); } ,deleteBuffer: function(buffer) { this.__context.deleteBuffer(buffer); } ,deleteFramebuffer: function(framebuffer) { this.__context.deleteFramebuffer(framebuffer); } ,deleteProgram: function(program) { this.__context.deleteProgram(program); } ,deleteQuery: function(query) { this.__context.deleteQuery(query); } ,deleteRenderbuffer: function(renderbuffer) { this.__context.deleteRenderbuffer(renderbuffer); } ,deleteSampler: function(sampler) { this.__context.deleteSampler(sampler); } ,deleteShader: function(shader) { this.__context.deleteShader(shader); } ,deleteSync: function(sync) { this.__context.deleteSync(sync); } ,deleteTexture: function(texture) { this.__context.deleteTexture(texture); } ,deleteTransformFeedback: function(transformFeedback) { this.__context.deleteTransformFeedback(transformFeedback); } ,deleteVertexArray: function(vertexArray) { this.__context.deleteVertexArray(vertexArray); } ,depthFunc: function(func) { this.__context.depthFunc(func); } ,depthMask: function(flag) { this.__context.depthMask(flag); } ,depthRange: function(zNear,zFar) { this.__context.depthRange(zNear,zFar); } ,depthRangef: function(zNear,zFar) { this.__context.depthRange(zNear,zFar); } ,detachShader: function(program,shader) { this.__context.detachShader(program,shader); } ,disable: function(cap) { this.__context.disable(cap); } ,disableVertexAttribArray: function(index) { this.__context.disableVertexAttribArray(index); } ,drawArrays: function(mode,first,count) { this.__context.drawArrays(mode,first,count); } ,drawArraysInstanced: function(mode,first,count,instanceCount) { this.__context.drawArraysInstanced(mode,first,count,instanceCount); } ,drawBuffers: function(buffers) { this.__context.drawBuffers(buffers); } ,drawElements: function(mode,count,type,offset) { this.__context.drawElements(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); } ,drawElementsInstanced: function(mode,count,type,offset,instanceCount) { this.__context.drawElementsInstanced(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),instanceCount); } ,drawRangeElements: function(mode,start,end,count,type,offset) { this.__context.drawRangeElements(mode,start,end,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset))); } ,enable: function(cap) { this.__context.enable(cap); } ,enableVertexAttribArray: function(index) { this.__context.enableVertexAttribArray(index); } ,endQuery: function(target) { this.__context.endQuery(target); } ,endTransformFeedback: function() { this.__context.endTransformFeedback(); } ,fenceSync: function(condition,flags) { return this.__context.fenceSync(condition,flags); } ,finish: function() { this.__context.finish(); } ,flush: function() { this.__context.flush(); } ,framebufferRenderbuffer: function(target,attachment,renderbuffertarget,renderbuffer) { this.__context.framebufferRenderbuffer(target,attachment,renderbuffertarget,renderbuffer); } ,framebufferTexture2D: function(target,attachment,textarget,texture,level) { this.__context.framebufferTexture2D(target,attachment,textarget,texture,level); } ,framebufferTextureLayer: function(target,attachment,texture,level,layer) { this.__context.framebufferTextureLayer(target,attachment,texture,level,layer); } ,frontFace: function(mode) { this.__context.frontFace(mode); } ,generateMipmap: function(target) { this.__context.generateMipmap(target); } ,getActiveAttrib: function(program,index) { return this.__context.getActiveAttrib(program,index); } ,getActiveUniform: function(program,index) { return this.__context.getActiveUniform(program,index); } ,getActiveUniformBlocki: function(program,uniformBlockIndex,pname) { return this.__context.getActiveUniformBlockParameter(program,uniformBlockIndex,pname); } ,getActiveUniformBlockiv: function(program,uniformBlockIndex,pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); view[0] = this.__context.getActiveUniformBlockParameter(program,uniformBlockIndex,pname); } ,getActiveUniformBlockName: function(program,uniformBlockIndex) { return this.__context.getActiveUniformBlockName(program,uniformBlockIndex); } ,getActiveUniformBlockParameter: function(program,uniformBlockIndex,pname) { return this.__context.getActiveUniformBlockParameter(program,uniformBlockIndex,pname); } ,getActiveUniforms: function(program,uniformIndices,pname) { return this.__context.getActiveUniforms(program,uniformIndices,pname); } ,getActiveUniformsiv: function(program,uniformIndices,pname,params) { } ,getAttachedShaders: function(program) { return this.__context.getAttachedShaders(program); } ,getAttribLocation: function(program,name) { return this.__context.getAttribLocation(program,name); } ,getBoolean: function(pname) { return this.__context.getParameter(pname); } ,getBooleanv: function(pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt8Array(params); var result = this.__context.getParameter(pname); if((result instanceof Array) && result.__enum__ == null) { var data = result; var _g1 = 0; var _g = data.length; while(_g1 < _g) { var i = _g1++; view[i] = data[i] ? 1 : 0; } } else { view[0] = js_Boot.__cast(result , Bool) ? 1 : 0; } } ,getBufferParameter: function(target,pname) { return this.__context.getBufferParameter(target,pname); } ,getBufferParameteri: function(target,pname) { return this.__context.getBufferParameter(target,pname); } ,getBufferParameteri64v: function(target,pname,params) { } ,getBufferParameteriv: function(target,pname,data) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(data); view[0] = this.__context.getBufferParameter(target,pname); } ,getBufferPointerv: function(target,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); } ,getBufferSubData: function(target,offset,size,data) { this.__context.getBufferSubData(target,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,size)); } ,getBufferSubDataWEBGL: function(target,srcByteOffset,dstData,srcOffset,length) { if(srcOffset != null) { this.__context.getBufferSubData(target,srcByteOffset,dstData,srcOffset,length); } else { this.__context.getBufferSubData(target,srcByteOffset,dstData); } } ,getContextAttributes: function() { return this.__context.getContextAttributes(); } ,getError: function() { return this.__context.getError(); } ,getExtension: function(name) { return this.__context.getExtension(name); } ,getFloat: function(pname) { return this.__context.getParameter(pname); } ,getFloatv: function(pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(params); var result = this.__context.getParameter(pname); if(js_Boot.__instanceof(result,ArrayBufferView)) { var data = result; var _g1 = 0; var _g = data.length; while(_g1 < _g) { var i = _g1++; view[i] = data[i]; } } else { view[0] = js_Boot.__cast(result , Float); } } ,getFragDataLocation: function(program,name) { return this.__context.getFragDataLocation(program,name); } ,getFramebufferAttachmentParameter: function(target,attachment,pname) { return this.__context.getFramebufferAttachmentParameter(target,attachment,pname); } ,getFramebufferAttachmentParameteri: function(target,attachment,pname) { return this.__context.getFramebufferAttachmentParameter(target,attachment,pname); } ,getFramebufferAttachmentParameteriv: function(target,attachment,pname,params) { var value = this.__context.getFramebufferAttachmentParameter(target,attachment,pname); var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); view[0] = value; } ,getIndexedParameter: function(target,index) { return this.__context.getIndexedParameter(target,index); } ,getInteger: function(pname) { return this.__context.getParameter(pname); } ,getInteger64: function(pname) { var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; } ,getInteger64i: function(pname) { var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; } ,getInteger64i_v: function(pname,index,params) { } ,getInteger64v: function(pname,params) { } ,getIntegeri: function(pname) { return 0; } ,getIntegeri_v: function(pname,index,params) { } ,getIntegerv: function(pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); var result = this.__context.getParameter(pname); if(js_Boot.__instanceof(result,ArrayBufferView)) { var data = result; var _g1 = 0; var _g = data.length; while(_g1 < _g) { var i = _g1++; view[i] = data[i]; } } else { view[0] = js_Boot.__cast(result , Int); } } ,getInternalformati: function(target,internalformat,pname) { return 0; } ,getInternalformativ: function(target,internalformat,pname,bufSize,params) { } ,getInternalformatParameter: function(target,internalformat,pname) { return this.__context.getInternalformatParameter(target,internalformat,pname); } ,getParameter: function(pname) { return this.__context.getParameter(pname); } ,getProgramBinary: function(program,binaryFormat) { return null; } ,getProgrami: function(program,pname) { return this.__context.getProgramParameter(program,pname); } ,getProgramiv: function(program,pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); view[0] = this.__context.getProgramParameter(program,pname); } ,getProgramInfoLog: function(program) { return this.__context.getProgramInfoLog(program); } ,getProgramParameter: function(program,pname) { return this.__context.getProgramParameter(program,pname); } ,getQuery: function(target,pname) { return this.__context.getQuery(target,pname); } ,getQueryi: function(target,pname) { return 0; } ,getQueryiv: function(target,pname,params) { } ,getQueryObjectui: function(query,pname) { return 0; } ,getQueryObjectuiv: function(query,pname,params) { } ,getQueryParameter: function(query,pname) { return this.__context.getQueryParameter(query,pname); } ,getRenderbufferParameter: function(target,pname) { return this.__context.getRenderbufferParameter(target,pname); } ,getRenderbufferParameteri: function(target,pname) { return this.__context.getRenderbufferParameter(target,pname); } ,getRenderbufferParameteriv: function(target,pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); view[0] = this.__context.getRenderbufferParameter(target,pname); } ,getSamplerParameter: function(sampler,pname) { return this.__context.getSamplerParameter(sampler,pname); } ,getSamplerParameterf: function(sampler,pname) { return 0; } ,getSamplerParameterfv: function(sampler,pname,params) { } ,getSamplerParameteri: function(sampler,pname) { return 0; } ,getSamplerParameteriv: function(sampler,pname,params) { } ,getShaderi: function(shader,pname) { return this.__context.getShaderParameter(shader,pname); } ,getShaderiv: function(shader,pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); view[0] = this.__context.getShaderParameter(shader,pname); } ,getShaderInfoLog: function(shader) { return this.__context.getShaderInfoLog(shader); } ,getShaderParameter: function(shader,pname) { return this.__context.getShaderParameter(shader,pname); } ,getShaderPrecisionFormat: function(shadertype,precisiontype) { return this.__context.getShaderPrecisionFormat(shadertype,precisiontype); } ,getShaderSource: function(shader) { return this.__context.getShaderSource(shader); } ,getString: function(pname) { if(pname == 7939) { return this.__context.getSupportedExtensions().join(" "); } else { return this.__context.getParameter(pname); } } ,getStringi: function(name,index) { return null; } ,getSupportedExtensions: function() { return this.__context.getSupportedExtensions(); } ,getSyncParameter: function(sync,pname) { return this.__context.getSyncParameter(sync,pname); } ,getSyncParameteri: function(sync,pname) { return 0; } ,getSyncParameteriv: function(sync,pname,params) { } ,getTexParameter: function(target,pname) { return this.__context.getTexParameter(target,pname); } ,getTexParameterf: function(target,pname) { return this.__context.getTexParameter(target,pname); } ,getTexParameterfv: function(target,pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(params); view[0] = this.__context.getTexParameter(target,pname); } ,getTexParameteri: function(target,pname) { return this.__context.getTexParameter(target,pname); } ,getTexParameteriv: function(target,pname,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); view[0] = this.__context.getTexParameter(target,pname); } ,getTransformFeedbackVarying: function(program,index) { return this.__context.getTransformFeedbackVarying(program,index); } ,getUniform: function(program,location) { return this.__context.getUniform(program,location); } ,getUniformf: function(program,location) { return this.__context.getUniform(program,location); } ,getUniformfv: function(program,location,params) { var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(params); view[0] = this.__context.getUniform(program,location); } ,getUniformi: function(program,location) { return this.__context.getUniform(program,location); } ,getUniformiv: function(program,location,params) { var value = this.__context.getUniform(program,location); var view = lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(params); view[0] = value; } ,getUniformui: function(program,location) { return 0; } ,getUniformuiv: function(program,location,params) { } ,getUniformBlockIndex: function(program,uniformBlockName) { return this.__context.getUniformBlockIndex(program,uniformBlockName); } ,getUniformIndices: function(program,uniformNames) { return this.__context.getUniformIndices(program,uniformNames); } ,getUniformLocation: function(program,name) { return this.__context.getUniformLocation(program,name); } ,getVertexAttrib: function(index,pname) { return this.__context.getVertexAttrib(index,pname); } ,getVertexAttribf: function(index,pname) { return 0; } ,getVertexAttribfv: function(index,pname,params) { } ,getVertexAttribi: function(index,pname) { return 0; } ,getVertexAttribIi: function(index,pname) { return 0; } ,getVertexAttribIiv: function(index,pname,params) { } ,getVertexAttribIui: function(index,pname) { return 0; } ,getVertexAttribIuiv: function(index,pname,params) { } ,getVertexAttribiv: function(index,pname,params) { } ,getVertexAttribOffset: function(index,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(this.__context.getVertexAttribOffset(index,pname)); } ,getVertexAttribPointerv: function(index,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(this.__context.getVertexAttribOffset(index,pname)); } ,hint: function(target,mode) { this.__context.hint(target,mode); } ,invalidateFramebuffer: function(target,attachments) { this.__context.invalidateFramebuffer(target,attachments); } ,invalidateSubFramebuffer: function(target,attachments,x,y,width,height) { this.__context.invalidateSubFramebuffer(target,attachments,x,y,width,height); } ,isBuffer: function(buffer) { return this.__context.isBuffer(buffer); } ,isContextLost: function() { if(!this.__contextLost) { return this.__context.isContextLost(); } else { return true; } } ,isEnabled: function(cap) { return this.__context.isEnabled(cap); } ,isFramebuffer: function(framebuffer) { return this.__context.isFramebuffer(framebuffer); } ,isProgram: function(program) { return this.__context.isProgram(program); } ,isQuery: function(query) { return this.__context.isQuery(query); } ,isRenderbuffer: function(renderbuffer) { return this.__context.isRenderbuffer(renderbuffer); } ,isSampler: function(sampler) { return this.__context.isSampler(sampler); } ,isShader: function(shader) { return this.__context.isShader(shader); } ,isSync: function(sync) { return this.__context.isSync(sync); } ,isTexture: function(texture) { return this.__context.isTexture(texture); } ,isTransformFeedback: function(transformFeedback) { return this.__context.isTransformFeedback(transformFeedback); } ,isVertexArray: function(vertexArray) { return this.__context.isVertexArray(vertexArray); } ,lineWidth: function(width) { this.__context.lineWidth(width); } ,linkProgram: function(program) { this.__context.linkProgram(program); } ,mapBufferRange: function(target,offset,length,access) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); } ,pauseTransformFeedback: function() { this.__context.pauseTransformFeedback(); } ,pixelStorei: function(pname,param) { this.__context.pixelStorei(pname,param); } ,polygonOffset: function(factor,units) { this.__context.polygonOffset(factor,units); } ,programBinary: function(program,binaryFormat,binary,length) { } ,programParameteri: function(program,pname,value) { } ,readBuffer: function(src) { this.__context.readBuffer(src); } ,readPixels: function(x,y,width,height,format,type,pixels) { this.__context.readPixels(x,y,width,height,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(pixels)); } ,readPixelsWEBGL: function(x,y,width,height,format,type,pixels,dstOffset) { if(dstOffset != null) { this.__context.readPixels(x,y,width,height,format,type,pixels,dstOffset); } else { this.__context.readPixels(x,y,width,height,format,type,pixels); } } ,releaseShaderCompiler: function() { } ,renderbufferStorage: function(target,internalformat,width,height) { this.__context.renderbufferStorage(target,internalformat,width,height); } ,renderbufferStorageMultisample: function(target,samples,internalFormat,width,height) { this.__context.renderbufferStorageMultisample(target,samples,internalFormat,width,height); } ,resumeTransformFeedback: function() { this.__context.resumeTransformFeedback(); } ,sampleCoverage: function(value,invert) { this.__context.sampleCoverage(value,invert); } ,samplerParameterf: function(sampler,pname,param) { this.__context.samplerParameterf(sampler,pname,param); } ,samplerParameteri: function(sampler,pname,param) { this.__context.samplerParameteri(sampler,pname,param); } ,scissor: function(x,y,width,height) { this.__context.scissor(x,y,width,height); } ,shaderBinary: function(shaders,binaryformat,binary,length) { } ,shaderSource: function(shader,source) { this.__context.shaderSource(shader,source); } ,stencilFunc: function(func,ref,mask) { this.__context.stencilFunc(func,ref,mask); } ,stencilFuncSeparate: function(face,func,ref,mask) { this.__context.stencilFuncSeparate(face,func,ref,mask); } ,stencilMask: function(mask) { this.__context.stencilMask(mask); } ,stencilMaskSeparate: function(face,mask) { this.__context.stencilMaskSeparate(face,mask); } ,stencilOp: function(fail,zfail,zpass) { this.__context.stencilOp(fail,zfail,zpass); } ,stencilOpSeparate: function(face,fail,zfail,zpass) { this.__context.stencilOpSeparate(face,fail,zfail,zpass); } ,texImage2D: function(target,level,internalformat,width,height,border,format,type,data) { this.__context.texImage2D(target,level,internalformat,width,height,border,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); } ,texImage2DWEBGL: function(target,level,internalformat,width,height,border,format,type,srcData,srcOffset) { if(srcOffset != null) { this.__context.texImage2D(target,level,internalformat,width,height,border,format,type,srcData,srcOffset); } else if(format != null) { this.__context.texImage2D(target,level,internalformat,width,height,border,format,type,srcData); } else { this.__context.texImage2D(target,level,internalformat,width,height,border); } } ,texImage3D: function(target,level,internalformat,width,height,depth,border,format,type,data) { this.__context.texImage3D(target,level,internalformat,width,height,depth,border,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); } ,texImage3DWEBGL: function(target,level,internalformat,width,height,depth,border,format,type,srcData,srcOffset) { this.__context.texImage3D(target,level,internalformat,width,height,depth,border,format,type,srcData,srcOffset); } ,texStorage2D: function(target,level,internalformat,width,height) { this.__context.texStorage2D(target,level,internalformat,width,height); } ,texStorage3D: function(target,level,internalformat,width,height,depth) { this.__context.texStorage3D(target,level,internalformat,width,height,depth); } ,texParameterf: function(target,pname,param) { this.__context.texParameterf(target,pname,param); } ,texParameteri: function(target,pname,param) { this.__context.texParameteri(target,pname,param); } ,texSubImage2D: function(target,level,xoffset,yoffset,width,height,format,type,data) { this.__context.texSubImage2D(target,level,xoffset,yoffset,width,height,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); } ,texSubImage2DWEBGL: function(target,level,xoffset,yoffset,width,height,format,type,srcData,srcOffset) { if(srcOffset != null) { this.__context.texSubImage2D(target,level,xoffset,yoffset,width,height,format,type,srcData,srcOffset); } else if(type != null) { this.__context.texSubImage2D(target,level,xoffset,yoffset,width,height,format,type,srcData); } else { this.__context.texSubImage2D(target,level,xoffset,yoffset,width,height,format); } } ,texSubImage3D: function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,data) { this.__context.texSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); } ,texSubImage3DWEBGL: function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,source,srcOffset) { this.__context.texSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,source,srcOffset); } ,transformFeedbackVaryings: function(program,varyings,bufferMode) { this.__context.transformFeedbackVaryings(program,varyings,bufferMode); } ,uniform1f: function(location,v0) { this.__context.uniform1f(location,v0); } ,uniform1fv: function(location,count,v) { this.__context.uniform1fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4)); } ,uniform1fvWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform1fv(location,data,srcOffset,srcLength); } else { this.__context.uniform1fv(location,data); } } ,uniform1i: function(location,v0) { this.__context.uniform1i(location,v0); } ,uniform1iv: function(location,count,v) { this.__context.uniform1iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4)); } ,uniform1ivWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform1iv(location,data,srcOffset,srcLength); } else { this.__context.uniform1iv(location,data); } } ,uniform1ui: function(location,v0) { this.__context.uniform1ui(location,v0); return; } ,uniform1uiv: function(location,count,v) { this.__context.uniform1uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4)); } ,uniform1uivWEBGL: function(location,data,srcOffset,srcLength) { this.__context.uniform1uiv(location,data,srcOffset,srcLength); } ,uniform2f: function(location,v0,v1) { this.__context.uniform2f(location,v0,v1); } ,uniform2fv: function(location,count,v) { this.__context.uniform2fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 2)); } ,uniform2fvWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform2fv(location,data,srcOffset,srcLength); } else { this.__context.uniform2fv(location,data); } } ,uniform2i: function(location,x,y) { this.__context.uniform2i(location,x,y); } ,uniform2iv: function(location,count,v) { this.__context.uniform2iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 2)); } ,uniform2ivWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform2iv(location,data,srcOffset,srcLength); } else { this.__context.uniform2iv(location,data); } } ,uniform2ui: function(location,v0,v1) { this.__context.uniform2ui(location,v0,v1); } ,uniform2uiv: function(location,count,v) { this.__context.uniform2uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 2)); } ,uniform2uivWEBGL: function(location,data,srcOffset,srcLength) { this.__context.uniform2uiv(location,data,srcOffset,srcLength); } ,uniform3f: function(location,v0,v1,v2) { this.__context.uniform3f(location,v0,v1,v2); } ,uniform3fv: function(location,count,v) { this.__context.uniform3fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 3)); } ,uniform3fvWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform3fv(location,data,srcOffset,srcLength); } else { this.__context.uniform3fv(location,data); } } ,uniform3i: function(location,x,y,z) { this.__context.uniform3i(location,x,y,z); } ,uniform3iv: function(location,count,v) { this.__context.uniform3iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 3)); } ,uniform3ivWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform3iv(location,data,srcOffset,srcLength); } else { this.__context.uniform3iv(location,data); } } ,uniform3ui: function(location,v0,v1,v2) { this.__context.uniform3ui(location,v0,v1,v2); } ,uniform3uiv: function(location,count,v) { this.__context.uniform3uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 3)); } ,uniform3uivWEBGL: function(location,data,srcOffset,srcLength) { this.__context.uniform3uiv(location,data,srcOffset,srcLength); } ,uniform4f: function(location,v0,v1,v2,v3) { this.__context.uniform4f(location,v0,v1,v2,v3); } ,uniform4fv: function(location,count,v) { this.__context.uniform4fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 4)); } ,uniform4fvWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform4fv(location,data,srcOffset,srcLength); } else { this.__context.uniform4fv(location,data); } } ,uniform4i: function(location,v0,v1,v2,v3) { this.__context.uniform4i(location,v0,v1,v2,v3); } ,uniform4iv: function(location,count,v) { this.__context.uniform4iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 4)); } ,uniform4ivWEBGL: function(location,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniform4iv(location,data,srcOffset,srcLength); } else { this.__context.uniform4iv(location,data); } } ,uniform4ui: function(location,v0,v1,v2,v3) { this.__context.uniform4ui(location,v0,v1,v2,v3); } ,uniform4uiv: function(location,count,v) { this.__context.uniform4uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 4)); } ,uniform4uivWEBGL: function(location,data,srcOffset,srcLength) { this.__context.uniform4uiv(location,data,srcOffset,srcLength); } ,uniformBlockBinding: function(program,uniformBlockIndex,uniformBlockBinding) { this.__context.uniformBlockBinding(program,uniformBlockIndex,uniformBlockBinding); } ,uniformMatrix2fv: function(location,count,transpose,v) { this.__context.uniformMatrix2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 4)); } ,uniformMatrix2fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniformMatrix2fv(location,transpose,data,srcOffset,srcLength); } else { this.__context.uniformMatrix2fv(location,transpose,data); } } ,uniformMatrix2x3fv: function(location,count,transpose,v) { this.__context.uniformMatrix2x3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 6)); } ,uniformMatrix2x3fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { this.__context.uniformMatrix2x3fv(location,transpose,data,srcOffset,srcLength); } ,uniformMatrix2x4fv: function(location,count,transpose,v) { this.__context.uniformMatrix2x4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 8)); } ,uniformMatrix2x4fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { this.__context.uniformMatrix2x4fv(location,transpose,data,srcOffset,srcLength); } ,uniformMatrix3fv: function(location,count,transpose,v) { this.__context.uniformMatrix3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 9)); } ,uniformMatrix3fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniformMatrix3fv(location,transpose,data,srcOffset,srcLength); } else { this.__context.uniformMatrix3fv(location,transpose,data); } } ,uniformMatrix3x2fv: function(location,count,transpose,v) { this.__context.uniformMatrix3x2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 6)); } ,uniformMatrix3x2fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { this.__context.uniformMatrix3x2fv(location,transpose,data,srcOffset,srcLength); } ,uniformMatrix3x4fv: function(location,count,transpose,v) { this.__context.uniformMatrix3x4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 12)); } ,uniformMatrix3x4fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { this.__context.uniformMatrix3x4fv(location,transpose,data,srcOffset,srcLength); } ,uniformMatrix4fv: function(location,count,transpose,v) { this.__context.uniformMatrix4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 16)); } ,uniformMatrix4fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniformMatrix4fv(location,transpose,data,srcOffset,srcLength); } else { this.__context.uniformMatrix4fv(location,transpose,data); } } ,uniformMatrix4x2fv: function(location,count,transpose,v) { this.__context.uniformMatrix4x2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 8)); } ,uniformMatrix4x2fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { if(srcOffset != null) { this.__context.uniformMatrix4x2fv(location,transpose,data,srcOffset,srcLength); } else { this.__context.uniformMatrix4x2fv(location,transpose,data); } } ,uniformMatrix4x3fv: function(location,count,transpose,v) { this.__context.uniformMatrix4x3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 12)); } ,uniformMatrix4x3fvWEBGL: function(location,transpose,data,srcOffset,srcLength) { this.__context.uniformMatrix4x3fv(location,transpose,data,srcOffset,srcLength); } ,unmapBuffer: function(target) { return false; } ,useProgram: function(program) { this.__context.useProgram(program); } ,validateProgram: function(program) { this.__context.validateProgram(program); } ,vertexAttrib1f: function(index,v0) { this.__context.vertexAttrib1f(index,v0); } ,vertexAttrib1fv: function(index,v) { this.__context.vertexAttrib1fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); } ,vertexAttrib1fvWEBGL: function(index,v) { this.__context.vertexAttrib1fv(index,v); } ,vertexAttrib2f: function(index,v0,v1) { this.__context.vertexAttrib2f(index,v0,v1); } ,vertexAttrib2fv: function(index,v) { this.__context.vertexAttrib2fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); } ,vertexAttrib2fvWEBGL: function(index,v) { this.__context.vertexAttrib2fv(index,v); } ,vertexAttrib3f: function(index,v0,v1,v2) { this.__context.vertexAttrib3f(index,v0,v1,v2); } ,vertexAttrib3fv: function(index,v) { this.__context.vertexAttrib3fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); } ,vertexAttrib3fvWEBGL: function(index,v) { this.__context.vertexAttrib3fv(index,v); } ,vertexAttrib4f: function(index,v0,v1,v2,v3) { this.__context.vertexAttrib4f(index,v0,v1,v2,v3); } ,vertexAttrib4fv: function(index,v) { this.__context.vertexAttrib4fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); } ,vertexAttrib4fvWEBGL: function(index,v) { this.__context.vertexAttrib4fv(index,v); } ,vertexAttribDivisor: function(index,divisor) { this.__context.vertexAttribDivisor(index,divisor); } ,vertexAttribI4i: function(index,v0,v1,v2,v3) { this.__context.vertexAttribI4i(index,v0,v1,v2,v3); } ,vertexAttribI4iv: function(index,v) { this.__context.vertexAttribI4iv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v)); } ,vertexAttribI4ivWEBGL: function(index,v) { this.__context.vertexAttribI4iv(index,v); } ,vertexAttribI4ui: function(index,v0,v1,v2,v3) { this.__context.vertexAttribI4ui(index,v0,v1,v2,v3); } ,vertexAttribI4uiv: function(index,v) { this.__context.vertexAttribI4uiv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v)); } ,vertexAttribI4uivWEBGL: function(index,v) { this.__context.vertexAttribI4uiv(index,v); } ,vertexAttribIPointer: function(index,size,type,stride,offset) { this.__context.vertexAttribIPointer(index,size,type,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset))); } ,vertexAttribPointer: function(index,size,type,normalized,stride,offset) { this.__context.vertexAttribPointer(index,size,type,normalized,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); } ,viewport: function(x,y,width,height) { this.__context.viewport(x,y,width,height); } ,waitSync: function(sync,flags,timeout) { this.__context.waitSync(sync,flags,timeout); } ,get_canvas: function() { return this.__context.canvas; } ,get_drawingBufferHeight: function() { return this.__context.drawingBufferHeight; } ,get_drawingBufferWidth: function() { return this.__context.drawingBufferWidth; } ,__class__: lime__$backend_html5_HTML5GLRenderContext ,__properties__: {get_drawingBufferWidth:"get_drawingBufferWidth",get_drawingBufferHeight:"get_drawingBufferHeight",get_canvas:"get_canvas"} }; var lime__$backend_html5_HTML5HTTPRequest = function() { }; $hxClasses["lime._backend.html5.HTML5HTTPRequest"] = lime__$backend_html5_HTML5HTTPRequest; lime__$backend_html5_HTML5HTTPRequest.__name__ = ["lime","_backend","html5","HTML5HTTPRequest"]; lime__$backend_html5_HTML5HTTPRequest.loadImage = function(uri) { var promise = new lime_app_Promise(); if(lime__$backend_html5_HTML5HTTPRequest.activeRequests < lime__$backend_html5_HTML5HTTPRequest.requestLimit) { lime__$backend_html5_HTML5HTTPRequest.activeRequests++; lime__$backend_html5_HTML5HTTPRequest.__loadImage(uri,promise); } else { lime__$backend_html5_HTML5HTTPRequest.requestQueue.add({ instance : null, uri : uri, promise : promise, type : "IMAGE"}); } return promise.future; }; lime__$backend_html5_HTML5HTTPRequest.processQueue = function() { if(lime__$backend_html5_HTML5HTTPRequest.activeRequests < lime__$backend_html5_HTML5HTTPRequest.requestLimit && lime__$backend_html5_HTML5HTTPRequest.requestQueue.length > 0) { lime__$backend_html5_HTML5HTTPRequest.activeRequests++; var queueItem = lime__$backend_html5_HTML5HTTPRequest.requestQueue.pop(); var _g = queueItem.type; switch(_g) { case "BINARY": queueItem.instance.__loadData(queueItem.uri,queueItem.promise); break; case "IMAGE": lime__$backend_html5_HTML5HTTPRequest.__loadImage(queueItem.uri,queueItem.promise); break; case "TEXT": queueItem.instance.__loadText(queueItem.uri,queueItem.promise); break; default: lime__$backend_html5_HTML5HTTPRequest.activeRequests--; } } }; lime__$backend_html5_HTML5HTTPRequest.__fixHostname = function(hostname) { if(hostname == null) { return ""; } else { return hostname; } }; lime__$backend_html5_HTML5HTTPRequest.__fixPort = function(port,protocol) { if(port == null || port == "") { switch(protocol) { case "ftp:": return "21"; case "gopher:": return "70"; case "http:": return "80"; case "https:": return "443"; case "ws:": return "80"; case "wss:": return "443"; default: return ""; } } return port; }; lime__$backend_html5_HTML5HTTPRequest.__fixProtocol = function(protocol) { if(protocol == null || protocol == "") { return "http:"; } else { return protocol; } }; lime__$backend_html5_HTML5HTTPRequest.__isSameOrigin = function(path) { if(lime__$backend_html5_HTML5HTTPRequest.originElement == null) { lime__$backend_html5_HTML5HTTPRequest.originElement = window.document.createElement("a"); lime__$backend_html5_HTML5HTTPRequest.originHostname = lime__$backend_html5_HTML5HTTPRequest.__fixHostname(window.location.hostname); lime__$backend_html5_HTML5HTTPRequest.originProtocol = lime__$backend_html5_HTML5HTTPRequest.__fixProtocol(window.location.protocol); lime__$backend_html5_HTML5HTTPRequest.originPort = lime__$backend_html5_HTML5HTTPRequest.__fixPort(window.location.port,lime__$backend_html5_HTML5HTTPRequest.originProtocol); } var a = lime__$backend_html5_HTML5HTTPRequest.originElement; a.href = path; if(a.hostname == "") { a.href = a.href; } var hostname = lime__$backend_html5_HTML5HTTPRequest.__fixHostname(a.hostname); var protocol = lime__$backend_html5_HTML5HTTPRequest.__fixProtocol(a.protocol); var port = lime__$backend_html5_HTML5HTTPRequest.__fixPort(a.port,protocol); var sameOrigin = protocol != "file:" && hostname == lime__$backend_html5_HTML5HTTPRequest.originHostname && protocol == lime__$backend_html5_HTML5HTTPRequest.originProtocol && port == lime__$backend_html5_HTML5HTTPRequest.originPort; return sameOrigin; }; lime__$backend_html5_HTML5HTTPRequest.__loadImage = function(uri,promise) { var image = new Image(); if(!lime__$backend_html5_HTML5HTTPRequest.__isSameOrigin(uri)) { image.crossOrigin = "Anonymous"; } image.addEventListener("load",function(event) { var buffer = new lime_graphics_ImageBuffer(null,image.width,image.height); buffer.__srcImage = image; lime__$backend_html5_HTML5HTTPRequest.activeRequests--; lime__$backend_html5_HTML5HTTPRequest.processQueue(); promise.complete(new lime_graphics_Image(buffer)); },false); image.addEventListener("progress",function(event1) { promise.progress(event1.loaded,event1.total); },false); image.addEventListener("error",function(event2) { lime__$backend_html5_HTML5HTTPRequest.activeRequests--; lime__$backend_html5_HTML5HTTPRequest.processQueue(); promise.error(event2.detail); },false); image.src = uri; }; lime__$backend_html5_HTML5HTTPRequest.prototype = { binary: null ,parent: null ,request: null ,cancel: function() { if(this.request != null) { this.request.abort(); } } ,init: function(parent) { this.parent = parent; } ,load: function(uri,progress,readyStateChange) { this.request = new XMLHttpRequest(); if(this.parent.method == "POST") { this.request.upload.addEventListener("progress",progress,false); } else { this.request.addEventListener("progress",progress,false); } this.request.onreadystatechange = readyStateChange; var query = ""; if(this.parent.data == null) { var key = this.parent.formData.keys(); while(key.hasNext()) { var key1 = key.next(); if(query.length > 0) { query += "&"; } var query1 = encodeURIComponent(key1) + "="; var _this = this.parent.formData; var s = Std.string(__map_reserved[key1] != null ? _this.getReserved(key1) : _this.h[key1]); query += query1 + encodeURIComponent(s); } if(this.parent.method == "GET" && query != "") { if(uri.indexOf("?") > -1) { uri += "&" + query; } else { uri += "?" + query; } query = ""; } } this.request.open(Std.string(this.parent.method),uri,true); if(this.parent.timeout > 0) { this.request.timeout = this.parent.timeout; } if(this.binary) { this.request.responseType = "arraybuffer"; } var contentType = null; var _g = 0; var _g1 = this.parent.headers; while(_g < _g1.length) { var header = _g1[_g]; ++_g; if(header.name == "Content-Type") { contentType = header.value; } else { this.request.setRequestHeader(header.name,header.value); } } if(this.parent.contentType != null) { contentType = this.parent.contentType; } if(contentType == null) { if(this.parent.data != null) { contentType = "application/octet-stream"; } else if(query != "") { contentType = "application/x-www-form-urlencoded"; } } if(contentType != null) { this.request.setRequestHeader("Content-Type",contentType); } if(this.parent.data != null) { this.request.send(this.parent.data.b.bufferValue); } else { this.request.send(query); } } ,loadData: function(uri) { var promise = new lime_app_Promise(); if(lime__$backend_html5_HTML5HTTPRequest.activeRequests < lime__$backend_html5_HTML5HTTPRequest.requestLimit) { lime__$backend_html5_HTML5HTTPRequest.activeRequests++; this.__loadData(uri,promise); } else { lime__$backend_html5_HTML5HTTPRequest.requestQueue.add({ instance : this, uri : uri, promise : promise, type : "BINARY"}); } return promise.future; } ,loadText: function(uri) { var promise = new lime_app_Promise(); if(lime__$backend_html5_HTML5HTTPRequest.activeRequests < lime__$backend_html5_HTML5HTTPRequest.requestLimit) { lime__$backend_html5_HTML5HTTPRequest.activeRequests++; this.__loadText(uri,promise); } else { lime__$backend_html5_HTML5HTTPRequest.requestQueue.add({ instance : this, uri : uri, promise : promise, type : "TEXT"}); } return promise.future; } ,processResponse: function() { if(this.parent.enableResponseHeaders) { this.parent.responseHeaders = []; var name; var value; var _g = 0; var _g1 = this.request.getAllResponseHeaders().split("\n"); while(_g < _g1.length) { var line = _g1[_g]; ++_g; name = StringTools.trim(HxOverrides.substr(line,0,line.indexOf(":"))); value = StringTools.trim(HxOverrides.substr(line,line.indexOf(":") + 1,null)); if(name != "") { this.parent.responseHeaders.push(new lime_net_HTTPRequestHeader(name,value)); } } } this.parent.responseStatus = this.request.status; } ,__loadData: function(uri,promise) { var _gthis = this; var progress = function(event) { promise.progress(event.loaded,event.total); }; var readyStateChange = function(event1) { if(_gthis.request.readyState != 4) { return; } if(_gthis.request.status != null && (_gthis.request.status >= 200 && _gthis.request.status < 400 || _gthis.request.status == 0)) { var bytes; if(_gthis.request.responseType == "") { bytes = haxe_io_Bytes.ofString(_gthis.request.responseText); } else { bytes = haxe_io_Bytes.ofData(_gthis.request.response); } _gthis.processResponse(); promise.complete(bytes); } else { _gthis.processResponse(); promise.error(_gthis.request.status); } _gthis.request = null; lime__$backend_html5_HTML5HTTPRequest.activeRequests--; lime__$backend_html5_HTML5HTTPRequest.processQueue(); }; this.binary = true; this.load(uri,progress,readyStateChange); } ,__loadText: function(uri,promise) { var _gthis = this; var progress = function(event) { promise.progress(event.loaded,event.total); }; var readyStateChange = function(event1) { if(_gthis.request.readyState != 4) { return; } if(_gthis.request.status != null && (_gthis.request.status >= 200 && _gthis.request.status <= 400 || _gthis.request.status == 0)) { _gthis.processResponse(); promise.complete(_gthis.request.responseText); } else { _gthis.processResponse(); promise.error(_gthis.request.status); } _gthis.request = null; lime__$backend_html5_HTML5HTTPRequest.activeRequests--; lime__$backend_html5_HTML5HTTPRequest.processQueue(); }; this.binary = false; this.load(uri,progress,readyStateChange); } ,__class__: lime__$backend_html5_HTML5HTTPRequest }; var lime__$backend_html5_HTML5Mouse = function() { }; $hxClasses["lime._backend.html5.HTML5Mouse"] = lime__$backend_html5_HTML5Mouse; lime__$backend_html5_HTML5Mouse.__name__ = ["lime","_backend","html5","HTML5Mouse"]; lime__$backend_html5_HTML5Mouse.hide = function() { if(!lime__$backend_html5_HTML5Mouse.__hidden) { lime__$backend_html5_HTML5Mouse.__hidden = true; var _g = 0; var _g1 = lime_app_Application.current.__windows; while(_g < _g1.length) { var $window = _g1[_g]; ++_g; $window.backend.element.style.cursor = "none"; } } }; lime__$backend_html5_HTML5Mouse.show = function() { if(lime__$backend_html5_HTML5Mouse.__hidden) { lime__$backend_html5_HTML5Mouse.__hidden = false; var cacheValue = lime__$backend_html5_HTML5Mouse.__cursor; lime__$backend_html5_HTML5Mouse.__cursor = null; lime__$backend_html5_HTML5Mouse.set_cursor(cacheValue); } }; lime__$backend_html5_HTML5Mouse.warp = function(x,y,window) { }; lime__$backend_html5_HTML5Mouse.get_cursor = function() { if(lime__$backend_html5_HTML5Mouse.__cursor == null) { return lime_ui_MouseCursor.DEFAULT; } return lime__$backend_html5_HTML5Mouse.__cursor; }; lime__$backend_html5_HTML5Mouse.set_cursor = function(value) { if(lime__$backend_html5_HTML5Mouse.__cursor != value) { if(!lime__$backend_html5_HTML5Mouse.__hidden) { var _g = 0; var _g1 = lime_app_Application.current.__windows; while(_g < _g1.length) { var $window = _g1[_g]; ++_g; var tmp; switch(value[1]) { case 0: tmp = "default"; break; case 1: tmp = "crosshair"; break; case 3: tmp = "move"; break; case 4: tmp = "pointer"; break; case 5: tmp = "nesw-resize"; break; case 6: tmp = "ns-resize"; break; case 7: tmp = "nwse-resize"; break; case 8: tmp = "ew-resize"; break; case 9: tmp = "text"; break; case 10: tmp = "wait"; break; case 11: tmp = "wait"; break; default: tmp = "auto"; } $window.backend.element.style.cursor = tmp; } } lime__$backend_html5_HTML5Mouse.__cursor = value; } return lime__$backend_html5_HTML5Mouse.__cursor; }; lime__$backend_html5_HTML5Mouse.get_lock = function() { return false; }; lime__$backend_html5_HTML5Mouse.set_lock = function(value) { return value; }; var lime__$backend_html5_HTML5Renderer = function(parent) { this.parent = parent; }; $hxClasses["lime._backend.html5.HTML5Renderer"] = lime__$backend_html5_HTML5Renderer; lime__$backend_html5_HTML5Renderer.__name__ = ["lime","_backend","html5","HTML5Renderer"]; lime__$backend_html5_HTML5Renderer.prototype = { parent: null ,create: function() { this.createContext(); var _g = this.parent.context; if(_g[1] == 0) { this.parent.window.backend.canvas.addEventListener("webglcontextlost",$bind(this,this.handleEvent),false); this.parent.window.backend.canvas.addEventListener("webglcontextrestored",$bind(this,this.handleEvent),false); } } ,createContext: function() { if(this.parent.window.backend.div != null) { this.parent.context = lime_graphics_RenderContext.DOM(this.parent.window.backend.div); this.parent.type = lime_graphics_RendererType.DOM; } else if(this.parent.window.backend.canvas != null) { var webgl = null; if(!Object.prototype.hasOwnProperty.call(this.parent.window.config,"hardware") || this.parent.window.config.hardware) { var options = { alpha : Object.prototype.hasOwnProperty.call(this.parent.window.config,"background") && this.parent.window.config.background == null, antialias : Object.prototype.hasOwnProperty.call(this.parent.window.config,"antialiasing") && this.parent.window.config.antialiasing > 0, depth : Object.prototype.hasOwnProperty.call(this.parent.window.config,"depthBuffer") ? this.parent.window.config.depthBuffer : true, premultipliedAlpha : true, stencil : Object.prototype.hasOwnProperty.call(this.parent.window.config,"stencilBuffer") && this.parent.window.config.stencilBuffer, preserveDrawingBuffer : false}; var _g = 0; var _g1 = ["webgl2","webgl","experimental-webgl"]; while(_g < _g1.length) { var name = _g1[_g]; ++_g; webgl = this.parent.window.backend.canvas.getContext(name,options); if(webgl != null) { break; } } } if(webgl == null) { this.parent.context = lime_graphics_RenderContext.CANVAS(this.parent.window.backend.canvas.getContext("2d")); this.parent.type = lime_graphics_RendererType.CANVAS; } else { lime_graphics_opengl_GL.context = new lime__$backend_html5_HTML5GLRenderContext(webgl); this.parent.context = lime_graphics_RenderContext.OPENGL(lime_graphics_opengl_GL.context); this.parent.type = lime_graphics_RendererType.OPENGL; } } } ,flip: function() { } ,handleEvent: function(event) { var _g = event.type; switch(_g) { case "webglcontextlost": event.preventDefault(); if(lime_graphics_opengl_GL.context != null) { lime_graphics_opengl_GL.context.__contextLost = true; } this.parent.context = null; this.parent.onContextLost.dispatch(); break; case "webglcontextrestored": this.createContext(); this.parent.onContextRestored.dispatch(this.parent.context); break; default: } } ,readPixels: function(rect) { if(this.parent.window.backend.canvas != null) { if(rect == null) { rect = new lime_math_Rectangle(0,0,this.parent.window.backend.canvas.width,this.parent.window.backend.canvas.height); } else { rect.__contract(0,0,this.parent.window.backend.canvas.width,this.parent.window.backend.canvas.height); } if(rect.width > 0 && rect.height > 0) { var canvas = window.document.createElement("canvas"); canvas.width = rect.width | 0; canvas.height = rect.height | 0; var context = canvas.getContext("2d"); context.drawImage(this.parent.window.backend.canvas,-rect.x,-rect.y); return lime_graphics_Image.fromCanvas(canvas); } } return null; } ,render: function() { } ,__class__: lime__$backend_html5_HTML5Renderer }; var lime__$backend_html5_HTML5Window = function(parent) { this.unusedTouchesPool = new List(); this.scale = 1.0; this.currentTouches = new haxe_ds_IntMap(); this.parent = parent; if(parent.config != null && Object.prototype.hasOwnProperty.call(parent.config,"element")) { this.element = parent.config.element; } if(parent.config != null && Object.prototype.hasOwnProperty.call(parent.config,"allowHighDPI") && parent.config.allowHighDPI) { this.scale = window.devicePixelRatio; } parent.__scale = this.scale; this.cacheMouseX = 0; this.cacheMouseY = 0; }; $hxClasses["lime._backend.html5.HTML5Window"] = lime__$backend_html5_HTML5Window; lime__$backend_html5_HTML5Window.__name__ = ["lime","_backend","html5","HTML5Window"]; lime__$backend_html5_HTML5Window.prototype = { canvas: null ,div: null ,element: null ,cacheElementHeight: null ,cacheElementWidth: null ,cacheMouseX: null ,cacheMouseY: null ,currentTouches: null ,enableTextEvents: null ,isFullscreen: null ,parent: null ,primaryTouch: null ,requestedFullscreen: null ,resizeElement: null ,scale: null ,setHeight: null ,setWidth: null ,unusedTouchesPool: null ,alert: function(message,title) { if(message != null) { js_Browser.alert(message); } } ,close: function() { this.parent.application.removeWindow(this.parent); } ,create: function(application) { this.setWidth = this.parent.__width; this.setHeight = this.parent.__height; this.parent.id = lime__$backend_html5_HTML5Window.windowID++; if(js_Boot.__instanceof(this.element,HTMLCanvasElement)) { this.canvas = this.element; } else { this.canvas = window.document.createElement("canvas"); } if(this.canvas != null) { var style = this.canvas.style; style.setProperty("-webkit-transform","translateZ(0)",null); style.setProperty("transform","translateZ(0)",null); } else if(this.div != null) { var style1 = this.div.style; style1.setProperty("-webkit-transform","translate3D(0,0,0)",null); style1.setProperty("transform","translate3D(0,0,0)",null); style1.position = "relative"; style1.overflow = "hidden"; style1.setProperty("-webkit-user-select","none",null); style1.setProperty("-moz-user-select","none",null); style1.setProperty("-ms-user-select","none",null); style1.setProperty("-o-user-select","none",null); } if(this.parent.__width == 0 && this.parent.__height == 0) { if(this.element != null) { this.parent.set_width(this.element.clientWidth); this.parent.set_height(this.element.clientHeight); } else { this.parent.set_width(window.innerWidth); this.parent.set_height(window.innerHeight); } this.cacheElementWidth = this.parent.__width; this.cacheElementHeight = this.parent.__height; this.resizeElement = true; } if(this.canvas != null) { this.canvas.width = Math.round(this.parent.__width * this.scale); this.canvas.height = Math.round(this.parent.__height * this.scale); this.canvas.style.width = this.parent.__width + "px"; this.canvas.style.height = this.parent.__height + "px"; } else { this.div.style.width = this.parent.__width + "px"; this.div.style.height = this.parent.__height + "px"; } this.updateSize(); if(this.element != null) { if(this.canvas != null) { if(this.element != this.canvas) { this.element.appendChild(this.canvas); } } else { this.element.appendChild(this.div); } var events = ["mousedown","mouseenter","mouseleave","mousemove","mouseup","wheel"]; var _g = 0; while(_g < events.length) { var event = events[_g]; ++_g; this.element.addEventListener(event,$bind(this,this.handleMouseEvent),true); } window.document.addEventListener("dragstart",function(e) { if(e.target.nodeName.toLowerCase() == "img") { e.preventDefault(); return false; } return true; },false); this.element.addEventListener("contextmenu",$bind(this,this.handleContextMenuEvent),true); this.element.addEventListener("touchstart",$bind(this,this.handleTouchEvent),true); this.element.addEventListener("touchmove",$bind(this,this.handleTouchEvent),true); this.element.addEventListener("touchend",$bind(this,this.handleTouchEvent),true); this.element.addEventListener("gamepadconnected",$bind(this,this.handleGamepadEvent),true); this.element.addEventListener("gamepaddisconnected",$bind(this,this.handleGamepadEvent),true); } } ,focus: function() { } ,getDisplay: function() { return lime_system_System.getDisplay(0); } ,getDisplayMode: function() { return lime_system_System.getDisplay(0).currentMode; } ,setDisplayMode: function(value) { return value; } ,getEnableTextEvents: function() { return this.enableTextEvents; } ,handleContextMenuEvent: function(event) { if(this.parent.onMouseUp.canceled) { event.preventDefault(); } } ,handleCutOrCopyEvent: function(event) { event.clipboardData.setData("text/plain",lime_system_Clipboard.get_text()); event.preventDefault(); } ,handleFocusEvent: function(event) { if(this.enableTextEvents) { haxe_Timer.delay(function() { lime__$backend_html5_HTML5Window.textInput.focus(); },20); } } ,handleFullscreenEvent: function(event) { var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement; if(fullscreenElement != null) { this.isFullscreen = true; this.parent.__fullscreen = true; if(this.requestedFullscreen) { this.requestedFullscreen = false; this.parent.onFullscreen.dispatch(); } } else { this.isFullscreen = false; this.parent.__fullscreen = false; var changeEvents = ["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","MSFullscreenChange"]; var errorEvents = ["fullscreenerror","mozfullscreenerror","webkitfullscreenerror","MSFullscreenError"]; var _g1 = 0; var _g = changeEvents.length; while(_g1 < _g) { var i = _g1++; window.document.removeEventListener(changeEvents[i],$bind(this,this.handleFullscreenEvent),false); window.document.removeEventListener(errorEvents[i],$bind(this,this.handleFullscreenEvent),false); } } } ,handleGamepadEvent: function(event) { var _g = event.type; switch(_g) { case "gamepadconnected": lime_ui_Joystick.__connect(event.gamepad.index); if(event.gamepad.mapping == "standard") { lime_ui_Gamepad.__connect(event.gamepad.index); } break; case "gamepaddisconnected": lime_ui_Joystick.__disconnect(event.gamepad.index); lime_ui_Gamepad.__disconnect(event.gamepad.index); break; default: } } ,handleInputEvent: function(event) { if(lime__$backend_html5_HTML5Window.textInput.value != lime__$backend_html5_HTML5Window.dummyCharacter) { if(lime__$backend_html5_HTML5Window.textInput.value.charAt(0) == lime__$backend_html5_HTML5Window.dummyCharacter) { this.parent.onTextInput.dispatch(HxOverrides.substr(lime__$backend_html5_HTML5Window.textInput.value,1,null)); } else { this.parent.onTextInput.dispatch(lime__$backend_html5_HTML5Window.textInput.value); } lime__$backend_html5_HTML5Window.textInput.value = lime__$backend_html5_HTML5Window.dummyCharacter; } } ,handleMouseEvent: function(event) { var x = 0.0; var y = 0.0; if(event.type != "wheel") { if(this.element != null) { if(this.canvas != null) { var rect = this.canvas.getBoundingClientRect(); x = (event.clientX - rect.left) * (this.parent.__width / rect.width); y = (event.clientY - rect.top) * (this.parent.__height / rect.height); } else if(this.div != null) { var rect1 = this.div.getBoundingClientRect(); x = event.clientX - rect1.left; y = event.clientY - rect1.top; } else { var rect2 = this.element.getBoundingClientRect(); x = (event.clientX - rect2.left) * (this.parent.__width / rect2.width); y = (event.clientY - rect2.top) * (this.parent.__height / rect2.height); } } else { x = event.clientX; y = event.clientY; } var _g = event.type; switch(_g) { case "mousedown": this.parent.onMouseDown.dispatch(x,y,event.button); if(this.parent.onMouseDown.canceled) { event.preventDefault(); } break; case "mouseenter": if(event.target == this.element) { this.parent.onEnter.dispatch(); if(this.parent.onEnter.canceled) { event.preventDefault(); } } break; case "mouseleave": if(event.target == this.element) { this.parent.onLeave.dispatch(); if(this.parent.onLeave.canceled) { event.preventDefault(); } } break; case "mousemove": if(x != this.cacheMouseX || y != this.cacheMouseY) { this.parent.onMouseMove.dispatch(x,y); this.parent.onMouseMoveRelative.dispatch(x - this.cacheMouseX,y - this.cacheMouseY); if(this.parent.onMouseMove.canceled || this.parent.onMouseMoveRelative.canceled) { event.preventDefault(); } } break; case "mouseup": this.parent.onMouseUp.dispatch(x,y,event.button); if(this.parent.onMouseUp.canceled) { event.preventDefault(); } break; default: } this.cacheMouseX = x; this.cacheMouseY = y; } else { this.parent.onMouseWheel.dispatch(event.deltaX,-event.deltaY); if(this.parent.onMouseWheel.canceled) { event.preventDefault(); } } } ,handlePasteEvent: function(event) { if(event.clipboardData.types.indexOf("text/plain") > -1) { var text = event.clipboardData.getData("text/plain"); lime_system_Clipboard.set_text(text); if(this.enableTextEvents) { this.parent.onTextInput.dispatch(text); } event.preventDefault(); } } ,handleResizeEvent: function(event) { this.primaryTouch = null; this.updateSize(); } ,handleTouchEvent: function(event) { event.preventDefault(); var rect = null; if(this.element != null) { if(this.canvas != null) { rect = this.canvas.getBoundingClientRect(); } else if(this.div != null) { rect = this.div.getBoundingClientRect(); } else { rect = this.element.getBoundingClientRect(); } } var windowWidth = this.setWidth; var windowHeight = this.setHeight; if(windowWidth == 0 || windowHeight == 0) { if(rect != null) { windowWidth = rect.width; windowHeight = rect.height; } else { windowWidth = 1; windowHeight = 1; } } var _g = 0; var _g1 = event.changedTouches; while(_g < _g1.length) { var data = _g1[_g]; ++_g; var x = 0.0; var y = 0.0; if(rect != null) { x = (data.clientX - rect.left) * (windowWidth / rect.width); y = (data.clientY - rect.top) * (windowHeight / rect.height); } else { x = data.clientX; y = data.clientY; } var _g2 = event.type; switch(_g2) { case "touchend": var touch = this.currentTouches.get(data.identifier); if(touch != null) { var cacheX = touch.x; var cacheY = touch.y; touch.x = x / windowWidth; touch.y = y / windowHeight; touch.dx = touch.x - cacheX; touch.dy = touch.y - cacheY; touch.pressure = data.force; lime_ui_Touch.onEnd.dispatch(touch); this.currentTouches.remove(data.identifier); this.unusedTouchesPool.add(touch); if(touch == this.primaryTouch) { this.parent.onMouseUp.dispatch(x,y,0); this.primaryTouch = null; } } break; case "touchmove": var touch1 = this.currentTouches.get(data.identifier); if(touch1 != null) { var cacheX1 = touch1.x; var cacheY1 = touch1.y; touch1.x = x / windowWidth; touch1.y = y / windowHeight; touch1.dx = touch1.x - cacheX1; touch1.dy = touch1.y - cacheY1; touch1.pressure = data.force; lime_ui_Touch.onMove.dispatch(touch1); if(touch1 == this.primaryTouch) { this.parent.onMouseMove.dispatch(x,y); } } break; case "touchstart": var touch2 = this.unusedTouchesPool.pop(); if(touch2 == null) { touch2 = new lime_ui_Touch(x / windowWidth,y / windowHeight,data.identifier,0,0,data.force,this.parent.id); } else { touch2.x = x / windowWidth; touch2.y = y / windowHeight; touch2.id = data.identifier; touch2.dx = 0; touch2.dy = 0; touch2.pressure = data.force; touch2.device = this.parent.id; } this.currentTouches.set(data.identifier,touch2); lime_ui_Touch.onStart.dispatch(touch2); if(this.primaryTouch == null) { this.primaryTouch = touch2; } if(touch2 == this.primaryTouch) { this.parent.onMouseDown.dispatch(x,y,0); } break; default: } } } ,move: function(x,y) { } ,resize: function(width,height) { } ,setBorderless: function(value) { return value; } ,setClipboard: function(value) { var inputEnabled = this.enableTextEvents; this.setEnableTextEvents(true); var cacheText = lime__$backend_html5_HTML5Window.textInput.value; lime__$backend_html5_HTML5Window.textInput.value = value; lime__$backend_html5_HTML5Window.textInput.select(); if(window.document.queryCommandEnabled("copy")) { window.document.execCommand("copy"); } lime__$backend_html5_HTML5Window.textInput.value = cacheText; this.setEnableTextEvents(inputEnabled); } ,setEnableTextEvents: function(value) { if(value) { if(lime__$backend_html5_HTML5Window.textInput == null) { lime__$backend_html5_HTML5Window.textInput = window.document.createElement("input"); lime__$backend_html5_HTML5Window.textInput.type = "text"; lime__$backend_html5_HTML5Window.textInput.style.position = "absolute"; lime__$backend_html5_HTML5Window.textInput.style.opacity = "0"; lime__$backend_html5_HTML5Window.textInput.style.color = "transparent"; lime__$backend_html5_HTML5Window.textInput.value = lime__$backend_html5_HTML5Window.dummyCharacter; lime__$backend_html5_HTML5Window.textInput.autocapitalize = "off"; lime__$backend_html5_HTML5Window.textInput.autocorrect = "off"; lime__$backend_html5_HTML5Window.textInput.autocomplete = "off"; lime__$backend_html5_HTML5Window.textInput.style.left = "0px"; lime__$backend_html5_HTML5Window.textInput.style.top = "50%"; if(new EReg("(iPad|iPhone|iPod).*OS 8_","gi").match(window.navigator.userAgent)) { lime__$backend_html5_HTML5Window.textInput.style.fontSize = "0px"; lime__$backend_html5_HTML5Window.textInput.style.width = "0px"; lime__$backend_html5_HTML5Window.textInput.style.height = "0px"; } else { lime__$backend_html5_HTML5Window.textInput.style.width = "1px"; lime__$backend_html5_HTML5Window.textInput.style.height = "1px"; } lime__$backend_html5_HTML5Window.textInput.style.pointerEvents = "none"; lime__$backend_html5_HTML5Window.textInput.style.zIndex = "-10000000"; window.document.body.appendChild(lime__$backend_html5_HTML5Window.textInput); } if(!this.enableTextEvents) { lime__$backend_html5_HTML5Window.textInput.addEventListener("input",$bind(this,this.handleInputEvent),true); lime__$backend_html5_HTML5Window.textInput.addEventListener("blur",$bind(this,this.handleFocusEvent),true); lime__$backend_html5_HTML5Window.textInput.addEventListener("cut",$bind(this,this.handleCutOrCopyEvent),true); lime__$backend_html5_HTML5Window.textInput.addEventListener("copy",$bind(this,this.handleCutOrCopyEvent),true); lime__$backend_html5_HTML5Window.textInput.addEventListener("paste",$bind(this,this.handlePasteEvent),true); } lime__$backend_html5_HTML5Window.textInput.focus(); lime__$backend_html5_HTML5Window.textInput.select(); } else if(lime__$backend_html5_HTML5Window.textInput != null) { lime__$backend_html5_HTML5Window.textInput.removeEventListener("input",$bind(this,this.handleInputEvent),true); lime__$backend_html5_HTML5Window.textInput.removeEventListener("blur",$bind(this,this.handleFocusEvent),true); lime__$backend_html5_HTML5Window.textInput.removeEventListener("cut",$bind(this,this.handleCutOrCopyEvent),true); lime__$backend_html5_HTML5Window.textInput.removeEventListener("copy",$bind(this,this.handleCutOrCopyEvent),true); lime__$backend_html5_HTML5Window.textInput.removeEventListener("paste",$bind(this,this.handlePasteEvent),true); lime__$backend_html5_HTML5Window.textInput.blur(); } return this.enableTextEvents = value; } ,setFullscreen: function(value) { if(value) { if(!this.requestedFullscreen && !this.isFullscreen) { this.requestedFullscreen = true; if(($_=this.element,$bind($_,$_.requestFullscreen))) { document.addEventListener("fullscreenchange",$bind(this,this.handleFullscreenEvent),false); document.addEventListener("fullscreenerror",$bind(this,this.handleFullscreenEvent),false); this.element.requestFullscreen(); } else if(this.element.mozRequestFullScreen) { document.addEventListener("mozfullscreenchange",$bind(this,this.handleFullscreenEvent),false); document.addEventListener("mozfullscreenerror",$bind(this,this.handleFullscreenEvent),false); this.element.mozRequestFullScreen(); } else if(this.element.webkitRequestFullscreen) { document.addEventListener("webkitfullscreenchange",$bind(this,this.handleFullscreenEvent),false); document.addEventListener("webkitfullscreenerror",$bind(this,this.handleFullscreenEvent),false); this.element.webkitRequestFullscreen(); } else if(this.element.msRequestFullscreen) { document.addEventListener("MSFullscreenChange",$bind(this,this.handleFullscreenEvent),false); document.addEventListener("MSFullscreenError",$bind(this,this.handleFullscreenEvent),false); this.element.msRequestFullscreen(); } } } else if(this.isFullscreen) { this.requestedFullscreen = false; if(document.exitFullscreen) { document.exitFullscreen(); } else if(document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if(document.webkitExitFullscreen) { document.webkitExitFullscreen(); } else if(document.msExitFullscreen) { document.msExitFullscreen(); } } return value; } ,setIcon: function(image) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(image); var link = window.document.querySelector("link[rel*='icon']"); if(link == null) { link = window.document.createElement("link"); } link.type = "image/x-icon"; link.rel = "shortcut icon"; link.href = image.buffer.get_src().toDataURL("image/x-icon"); window.document.getElementsByTagName("head")[0].appendChild(link); } ,setMaximized: function(value) { return false; } ,setMinimized: function(value) { return false; } ,setResizable: function(value) { return value; } ,setTitle: function(value) { if(value != null) { window.document.title = value; } return value; } ,updateSize: function() { var elementWidth; var elementHeight; if(this.element != null) { elementWidth = this.element.clientWidth; elementHeight = this.element.clientHeight; } else { elementWidth = window.innerWidth; elementHeight = window.innerHeight; } if(elementWidth != this.cacheElementWidth || elementHeight != this.cacheElementHeight) { this.cacheElementWidth = elementWidth; this.cacheElementHeight = elementHeight; var stretch = this.resizeElement || this.setWidth == 0 && this.setHeight == 0; if(this.element != null && (this.div == null || this.div != null && stretch)) { if(stretch) { if(this.parent.__width != elementWidth || this.parent.__height != elementHeight) { this.parent.set_width(elementWidth); this.parent.set_height(elementHeight); if(this.canvas != null) { if(this.element != this.canvas) { this.canvas.width = Math.round(elementWidth * this.scale); this.canvas.height = Math.round(elementHeight * this.scale); this.canvas.style.width = elementWidth + "px"; this.canvas.style.height = elementHeight + "px"; } } else { this.div.style.width = elementWidth + "px"; this.div.style.height = elementHeight + "px"; } this.parent.onResize.dispatch(elementWidth,elementHeight); } } else { var scaleX = this.setWidth != 0 ? elementWidth / this.setWidth : 1; var scaleY = this.setHeight != 0 ? elementHeight / this.setHeight : 1; var targetWidth = elementWidth; var targetHeight = elementHeight; var marginLeft = 0; var marginTop = 0; if(scaleX < scaleY) { targetHeight = Math.floor(this.setHeight * scaleX); marginTop = Math.floor((elementHeight - targetHeight) / 2); } else { targetWidth = Math.floor(this.setWidth * scaleY); marginLeft = Math.floor((elementWidth - targetWidth) / 2); } if(this.canvas != null) { if(this.element != this.canvas) { this.canvas.style.width = targetWidth + "px"; this.canvas.style.height = targetHeight + "px"; this.canvas.style.marginLeft = marginLeft + "px"; this.canvas.style.marginTop = marginTop + "px"; } } else { this.div.style.width = targetWidth + "px"; this.div.style.height = targetHeight + "px"; this.div.style.marginLeft = marginLeft + "px"; this.div.style.marginTop = marginTop + "px"; } } } } } ,__class__: lime__$backend_html5_HTML5Window }; var lime__$backend_native_NativeCFFI = function() { }; $hxClasses["lime._backend.native.NativeCFFI"] = lime__$backend_native_NativeCFFI; lime__$backend_native_NativeCFFI.__name__ = ["lime","_backend","native","NativeCFFI"]; var lime__$macros_AssetsMacro = function() { }; $hxClasses["lime._macros.AssetsMacro"] = lime__$macros_AssetsMacro; lime__$macros_AssetsMacro.__name__ = ["lime","_macros","AssetsMacro"]; var lime_app_Event = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app.Event"] = lime_app_Event; lime_app_Event.__name__ = ["lime","app","Event"]; lime_app_Event.prototype = { canceled: null ,__listeners: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,dispatch: null ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__class__: lime_app_Event }; var lime_app_Future = function(work,async) { if(async == null) { async = false; } if(work != null) { if(async) { var promise = new lime_app_Promise(); promise.future = this; lime_app__$Future_FutureWork.queue({ promise : promise, work : work}); } else { try { this.value = work(); this.isComplete = true; } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.error = e; this.isError = true; } } } }; $hxClasses["lime.app.Future"] = lime_app_Future; lime_app_Future.__name__ = ["lime","app","Future"]; lime_app_Future.ofEvents = function(onComplete,onError,onProgress) { var promise = new lime_app_Promise(); onComplete.add(function(data) { promise.complete(data); },true); if(onError != null) { onError.add(function(error) { promise.error(error); },true); } if(onProgress != null) { onProgress.add(function(progress,total) { promise.progress(progress,total); },true); } return promise.future; }; lime_app_Future.withError = function(error) { var future = new lime_app_Future(); future.isError = true; future.error = error; return future; }; lime_app_Future.withValue = function(value) { var future = new lime_app_Future(); future.isComplete = true; future.value = value; return future; }; lime_app_Future.prototype = { error: null ,isComplete: null ,isError: null ,value: null ,__completeListeners: null ,__errorListeners: null ,__progressListeners: null ,onComplete: function(listener) { if(listener != null) { if(this.isComplete) { listener(this.value); } else if(!this.isError) { if(this.__completeListeners == null) { this.__completeListeners = []; } this.__completeListeners.push(listener); } } return this; } ,onError: function(listener) { if(listener != null) { if(this.isError) { listener(this.error); } else if(!this.isComplete) { if(this.__errorListeners == null) { this.__errorListeners = []; } this.__errorListeners.push(listener); } } return this; } ,onProgress: function(listener) { if(listener != null) { if(this.__progressListeners == null) { this.__progressListeners = []; } this.__progressListeners.push(listener); } return this; } ,ready: function(waitTime) { if(waitTime == null) { waitTime = -1; } if(this.isComplete || this.isError) { return this; } else { lime_utils_Log.warn("Cannot block thread in JavaScript",{ fileName : "Future.hx", lineNumber : 157, className : "lime.app.Future", methodName : "ready"}); return this; } } ,result: function(waitTime) { if(waitTime == null) { waitTime = -1; } this.ready(waitTime); if(this.isComplete) { return this.value; } else { return null; } } ,then: function(next) { if(this.isComplete) { return next(this.value); } else if(this.isError) { var future = new lime_app_Future(); future.onError(this.error); return future; } else { var promise = new lime_app_Promise(); this.onError($bind(promise,promise.error)); this.onProgress($bind(promise,promise.progress)); this.onComplete(function(val) { var future1 = next(val); future1.onError($bind(promise,promise.error)); future1.onComplete($bind(promise,promise.complete)); }); return promise.future; } } ,__class__: lime_app_Future }; var lime_app__$Future_FutureWork = function() { }; $hxClasses["lime.app._Future.FutureWork"] = lime_app__$Future_FutureWork; lime_app__$Future_FutureWork.__name__ = ["lime","app","_Future","FutureWork"]; lime_app__$Future_FutureWork.queue = function(state) { if(lime_app__$Future_FutureWork.threadPool == null) { lime_app__$Future_FutureWork.threadPool = new lime_system_ThreadPool(); lime_app__$Future_FutureWork.threadPool.doWork.add(lime_app__$Future_FutureWork.threadPool_doWork); lime_app__$Future_FutureWork.threadPool.onComplete.add(lime_app__$Future_FutureWork.threadPool_onComplete); lime_app__$Future_FutureWork.threadPool.onError.add(lime_app__$Future_FutureWork.threadPool_onError); } lime_app__$Future_FutureWork.threadPool.queue(state); }; lime_app__$Future_FutureWork.threadPool_doWork = function(state) { try { var result = state.work(); lime_app__$Future_FutureWork.threadPool.sendComplete({ promise : state.promise, result : result}); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; lime_app__$Future_FutureWork.threadPool.sendError({ promise : state.promise, error : e}); } }; lime_app__$Future_FutureWork.threadPool_onComplete = function(state) { state.promise.complete(state.result); }; lime_app__$Future_FutureWork.threadPool_onError = function(state) { state.promise.error(state.error); }; var lime_app_Preloader = function() { this.bytesTotalCache = new haxe_ds_StringMap(); this.bytesLoadedCache2 = new haxe_ds_StringMap(); this.bytesLoadedCache = new haxe_ds_ObjectMap(); this.onProgress = new lime_app__$Event_$Int_$Int_$Void(); this.onComplete = new lime_app__$Event_$Void_$Void(); this.bytesLoaded = 0; this.bytesTotal = 0; this.libraries = []; this.libraryNames = []; this.onProgress.add($bind(this,this.update)); }; $hxClasses["lime.app.Preloader"] = lime_app_Preloader; lime_app_Preloader.__name__ = ["lime","app","Preloader"]; lime_app_Preloader.prototype = { complete: null ,onComplete: null ,onProgress: null ,bytesLoaded: null ,bytesLoadedCache: null ,bytesLoadedCache2: null ,bytesTotal: null ,bytesTotalCache: null ,initLibraryNames: null ,libraries: null ,libraryNames: null ,loadedLibraries: null ,loadedStage: null ,preloadComplete: null ,preloadStarted: null ,simulateProgress: null ,addLibrary: function(library) { this.libraries.push(library); } ,addLibraryName: function(name) { if(this.libraryNames.indexOf(name) == -1) { this.libraryNames.push(name); } } ,create: function(config) { } ,load: function() { var _gthis = this; var _g = 0; var _g1 = this.libraries; while(_g < _g1.length) { var library = _g1[_g]; ++_g; this.bytesTotal += library.bytesTotal; } this.loadedLibraries = -1; this.preloadStarted = false; var _g2 = 0; var _g11 = this.libraries; while(_g2 < _g11.length) { var library1 = [_g11[_g2]]; ++_g2; lime_utils_Log.verbose("Preloading asset library",{ fileName : "Preloader.hx", lineNumber : 153, className : "lime.app.Preloader", methodName : "load"}); library1[0].load().onProgress((function(library2) { return function(loaded,total) { if(_gthis.bytesLoadedCache.h.__keys__[library2[0].__id__] == null) { _gthis.bytesLoaded += loaded; } else { _gthis.bytesLoaded += loaded - _gthis.bytesLoadedCache.h[library2[0].__id__]; } _gthis.bytesLoadedCache.set(library2[0],loaded); if(!_gthis.simulateProgress) { _gthis.onProgress.dispatch(_gthis.bytesLoaded,_gthis.bytesTotal); } }; })(library1)).onComplete((function(library3) { return function(_) { if(_gthis.bytesLoadedCache.h.__keys__[library3[0].__id__] == null) { _gthis.bytesLoaded += library3[0].bytesTotal; } else { _gthis.bytesLoaded += library3[0].bytesTotal - _gthis.bytesLoadedCache.h[library3[0].__id__]; } _gthis.loadedAssetLibrary(); }; })(library1)).onError((function() { return function(e) { lime_utils_Log.error(e,{ fileName : "Preloader.hx", lineNumber : 191, className : "lime.app.Preloader", methodName : "load"}); }; })()); } var _g3 = 0; var _g12 = this.libraryNames; while(_g3 < _g12.length) { var name = _g12[_g3]; ++_g3; this.bytesTotal += 200; } this.loadedLibraries++; this.preloadStarted = true; this.updateProgress(); } ,loadedAssetLibrary: function(name) { this.loadedLibraries++; var current = this.loadedLibraries; if(!this.preloadStarted) { ++current; } var totalLibraries = this.libraries.length + this.libraryNames.length; if(name != null) { lime_utils_Log.verbose("Loaded asset library: " + name + " [" + current + "/" + totalLibraries + "]",{ fileName : "Preloader.hx", lineNumber : 223, className : "lime.app.Preloader", methodName : "loadedAssetLibrary"}); } else { lime_utils_Log.verbose("Loaded asset library [" + current + "/" + totalLibraries + "]",{ fileName : "Preloader.hx", lineNumber : 227, className : "lime.app.Preloader", methodName : "loadedAssetLibrary"}); } this.updateProgress(); } ,start: function() { if(this.complete) { return; } this.complete = true; this.onComplete.dispatch(); } ,update: function(loaded,total) { } ,updateProgress: function() { var _gthis = this; if(!this.simulateProgress) { this.onProgress.dispatch(this.bytesLoaded,this.bytesTotal); } if(this.loadedLibraries == this.libraries.length && !this.initLibraryNames) { this.initLibraryNames = true; var _g = 0; var _g1 = this.libraryNames; while(_g < _g1.length) { var name = [_g1[_g]]; ++_g; lime_utils_Log.verbose("Preloading asset library: " + name[0],{ fileName : "Preloader.hx", lineNumber : 276, className : "lime.app.Preloader", methodName : "updateProgress"}); lime_utils_Assets.loadLibrary(name[0]).onProgress((function(name1) { return function(loaded,total) { if(total > 0) { var _this = _gthis.bytesTotalCache; if(!(__map_reserved[name1[0]] != null ? _this.existsReserved(name1[0]) : _this.h.hasOwnProperty(name1[0]))) { var _this1 = _gthis.bytesTotalCache; if(__map_reserved[name1[0]] != null) { _this1.setReserved(name1[0],total); } else { _this1.h[name1[0]] = total; } _gthis.bytesTotal += total - 200; } if(loaded > total) { loaded = total; } var _this2 = _gthis.bytesLoadedCache2; if(!(__map_reserved[name1[0]] != null ? _this2.existsReserved(name1[0]) : _this2.h.hasOwnProperty(name1[0]))) { _gthis.bytesLoaded += loaded; } else { var _this3 = _gthis.bytesLoadedCache2; _gthis.bytesLoaded += loaded - (__map_reserved[name1[0]] != null ? _this3.getReserved(name1[0]) : _this3.h[name1[0]]); } var _this4 = _gthis.bytesLoadedCache2; if(__map_reserved[name1[0]] != null) { _this4.setReserved(name1[0],loaded); } else { _this4.h[name1[0]] = loaded; } if(!_gthis.simulateProgress) { _gthis.onProgress.dispatch(_gthis.bytesLoaded,_gthis.bytesTotal); } } }; })(name)).onComplete((function(name2) { return function(library) { var total1 = 200; var _this5 = _gthis.bytesTotalCache; if(__map_reserved[name2[0]] != null ? _this5.existsReserved(name2[0]) : _this5.h.hasOwnProperty(name2[0])) { var _this6 = _gthis.bytesTotalCache; if(__map_reserved[name2[0]] != null) { total1 = _this6.getReserved(name2[0]); } else { total1 = _this6.h[name2[0]]; } } var _this7 = _gthis.bytesLoadedCache2; if(!(__map_reserved[name2[0]] != null ? _this7.existsReserved(name2[0]) : _this7.h.hasOwnProperty(name2[0]))) { _gthis.bytesLoaded += total1; } else { var _this8 = _gthis.bytesLoadedCache2; _gthis.bytesLoaded += total1 - (__map_reserved[name2[0]] != null ? _this8.getReserved(name2[0]) : _this8.h[name2[0]]); } _gthis.loadedAssetLibrary(name2[0]); }; })(name)).onError((function() { return function(e) { lime_utils_Log.error(e,{ fileName : "Preloader.hx", lineNumber : 335, className : "lime.app.Preloader", methodName : "updateProgress"}); }; })()); } } if(!this.simulateProgress && this.loadedLibraries == this.libraries.length + this.libraryNames.length) { if(!this.preloadComplete) { this.preloadComplete = true; lime_utils_Log.verbose("Preload complete",{ fileName : "Preloader.hx", lineNumber : 349, className : "lime.app.Preloader", methodName : "updateProgress"}); } this.start(); } } ,__class__: lime_app_Preloader }; var lime_app_Promise = function() { this.future = new lime_app_Future(); }; $hxClasses["lime.app.Promise"] = lime_app_Promise; lime_app_Promise.__name__ = ["lime","app","Promise"]; lime_app_Promise.prototype = { future: null ,isComplete: null ,isError: null ,complete: function(data) { if(!this.future.isError) { this.future.isComplete = true; this.future.value = data; if(this.future.__completeListeners != null) { var _g = 0; var _g1 = this.future.__completeListeners; while(_g < _g1.length) { var listener = _g1[_g]; ++_g; listener(data); } this.future.__completeListeners = null; } } return this; } ,completeWith: function(future) { future.onComplete($bind(this,this.complete)); future.onError($bind(this,this.error)); future.onProgress($bind(this,this.progress)); return this; } ,error: function(msg) { if(!this.future.isComplete) { this.future.isError = true; this.future.error = msg; if(this.future.__errorListeners != null) { var _g = 0; var _g1 = this.future.__errorListeners; while(_g < _g1.length) { var listener = _g1[_g]; ++_g; listener(msg); } this.future.__errorListeners = null; } } return this; } ,progress: function(progress,total) { if(!this.future.isError && !this.future.isComplete) { if(this.future.__progressListeners != null) { var _g = 0; var _g1 = this.future.__progressListeners; while(_g < _g1.length) { var listener = _g1[_g]; ++_g; listener(progress,total); } } } return this; } ,get_isComplete: function() { return this.future.isComplete; } ,get_isError: function() { return this.future.isError; } ,__class__: lime_app_Promise ,__properties__: {get_isError:"get_isError",get_isComplete:"get_isComplete"} }; var lime_app__$Event_$Dynamic_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Dynamic_Void"] = lime_app__$Event_$Dynamic_$Void; lime_app__$Event_$Dynamic_$Void.__name__ = ["lime","app","_Event_Dynamic_Void"]; lime_app__$Event_$Dynamic_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Dynamic_$Void }; var lime_app__$Event_$Float_$Float_$Int_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Float_Float_Int_Void"] = lime_app__$Event_$Float_$Float_$Int_$Void; lime_app__$Event_$Float_$Float_$Int_$Void.__name__ = ["lime","app","_Event_Float_Float_Int_Void"]; lime_app__$Event_$Float_$Float_$Int_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1,a2) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1,a2); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Float_$Float_$Int_$Void }; var lime_app__$Event_$Float_$Float_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Float_Float_Void"] = lime_app__$Event_$Float_$Float_$Void; lime_app__$Event_$Float_$Float_$Void.__name__ = ["lime","app","_Event_Float_Float_Void"]; lime_app__$Event_$Float_$Float_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Float_$Float_$Void }; var lime_app__$Event_$Int_$Float_$Float_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Int_Float_Float_Void"] = lime_app__$Event_$Int_$Float_$Float_$Void; lime_app__$Event_$Int_$Float_$Float_$Void.__name__ = ["lime","app","_Event_Int_Float_Float_Void"]; lime_app__$Event_$Int_$Float_$Float_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1,a2) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1,a2); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Int_$Float_$Float_$Void }; var lime_app__$Event_$Int_$Float_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Int_Float_Void"] = lime_app__$Event_$Int_$Float_$Void; lime_app__$Event_$Int_$Float_$Void.__name__ = ["lime","app","_Event_Int_Float_Void"]; lime_app__$Event_$Int_$Float_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Int_$Float_$Void }; var lime_app__$Event_$Int_$Int_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Int_Int_Void"] = lime_app__$Event_$Int_$Int_$Void; lime_app__$Event_$Int_$Int_$Void.__name__ = ["lime","app","_Event_Int_Int_Void"]; lime_app__$Event_$Int_$Int_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Int_$Int_$Void }; var lime_app__$Event_$Int_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Int_Void"] = lime_app__$Event_$Int_$Void; lime_app__$Event_$Int_$Void.__name__ = ["lime","app","_Event_Int_Void"]; lime_app__$Event_$Int_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Int_$Void }; var lime_app__$Event_$Int_$lime_$ui_$JoystickHatPosition_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Int_lime_ui_JoystickHatPosition_Void"] = lime_app__$Event_$Int_$lime_$ui_$JoystickHatPosition_$Void; lime_app__$Event_$Int_$lime_$ui_$JoystickHatPosition_$Void.__name__ = ["lime","app","_Event_Int_lime_ui_JoystickHatPosition_Void"]; lime_app__$Event_$Int_$lime_$ui_$JoystickHatPosition_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Int_$lime_$ui_$JoystickHatPosition_$Void }; var lime_app__$Event_$String_$Int_$Int_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_String_Int_Int_Void"] = lime_app__$Event_$String_$Int_$Int_$Void; lime_app__$Event_$String_$Int_$Int_$Void.__name__ = ["lime","app","_Event_String_Int_Int_Void"]; lime_app__$Event_$String_$Int_$Int_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1,a2) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1,a2); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$String_$Int_$Int_$Void }; var lime_app__$Event_$String_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_String_Void"] = lime_app__$Event_$String_$Void; lime_app__$Event_$String_$Void.__name__ = ["lime","app","_Event_String_Void"]; lime_app__$Event_$String_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$String_$Void }; var lime_app__$Event_$Void_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_Void_Void"] = lime_app__$Event_$Void_$Void; lime_app__$Event_$Void_$Void.__name__ = ["lime","app","_Event_Void_Void"]; lime_app__$Event_$Void_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function() { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$Void_$Void }; var lime_app__$Event_$haxe_$Function_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_haxe_Function_Void"] = lime_app__$Event_$haxe_$Function_$Void; lime_app__$Event_$haxe_$Function_$Void.__name__ = ["lime","app","_Event_haxe_Function_Void"]; lime_app__$Event_$haxe_$Function_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$haxe_$Function_$Void }; var lime_app__$Event_$lime_$graphics_$RenderContext_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_lime_graphics_RenderContext_Void"] = lime_app__$Event_$lime_$graphics_$RenderContext_$Void; lime_app__$Event_$lime_$graphics_$RenderContext_$Void.__name__ = ["lime","app","_Event_lime_graphics_RenderContext_Void"]; lime_app__$Event_$lime_$graphics_$RenderContext_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$lime_$graphics_$RenderContext_$Void }; var lime_app__$Event_$lime_$ui_$GamepadAxis_$Float_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_lime_ui_GamepadAxis_Float_Void"] = lime_app__$Event_$lime_$ui_$GamepadAxis_$Float_$Void; lime_app__$Event_$lime_$ui_$GamepadAxis_$Float_$Void.__name__ = ["lime","app","_Event_lime_ui_GamepadAxis_Float_Void"]; lime_app__$Event_$lime_$ui_$GamepadAxis_$Float_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$lime_$ui_$GamepadAxis_$Float_$Void }; var lime_app__$Event_$lime_$ui_$GamepadButton_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_lime_ui_GamepadButton_Void"] = lime_app__$Event_$lime_$ui_$GamepadButton_$Void; lime_app__$Event_$lime_$ui_$GamepadButton_$Void.__name__ = ["lime","app","_Event_lime_ui_GamepadButton_Void"]; lime_app__$Event_$lime_$ui_$GamepadButton_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$lime_$ui_$GamepadButton_$Void }; var lime_app__$Event_$lime_$ui_$Gamepad_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_lime_ui_Gamepad_Void"] = lime_app__$Event_$lime_$ui_$Gamepad_$Void; lime_app__$Event_$lime_$ui_$Gamepad_$Void.__name__ = ["lime","app","_Event_lime_ui_Gamepad_Void"]; lime_app__$Event_$lime_$ui_$Gamepad_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$lime_$ui_$Gamepad_$Void }; var lime_app__$Event_$lime_$ui_$Joystick_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_lime_ui_Joystick_Void"] = lime_app__$Event_$lime_$ui_$Joystick_$Void; lime_app__$Event_$lime_$ui_$Joystick_$Void.__name__ = ["lime","app","_Event_lime_ui_Joystick_Void"]; lime_app__$Event_$lime_$ui_$Joystick_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$lime_$ui_$Joystick_$Void }; var lime_app__$Event_$lime_$ui_$KeyCode_$lime_$ui_$KeyModifier_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"] = lime_app__$Event_$lime_$ui_$KeyCode_$lime_$ui_$KeyModifier_$Void; lime_app__$Event_$lime_$ui_$KeyCode_$lime_$ui_$KeyModifier_$Void.__name__ = ["lime","app","_Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"]; lime_app__$Event_$lime_$ui_$KeyCode_$lime_$ui_$KeyModifier_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a,a1) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a,a1); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$lime_$ui_$KeyCode_$lime_$ui_$KeyModifier_$Void }; var lime_app__$Event_$lime_$ui_$Touch_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_lime_ui_Touch_Void"] = lime_app__$Event_$lime_$ui_$Touch_$Void; lime_app__$Event_$lime_$ui_$Touch_$Void.__name__ = ["lime","app","_Event_lime_ui_Touch_Void"]; lime_app__$Event_$lime_$ui_$Touch_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$lime_$ui_$Touch_$Void }; var lime_app__$Event_$ofEvents_$T_$Void = function() { this.canceled = false; this.__listeners = []; this.__priorities = []; this.__repeat = []; }; $hxClasses["lime.app._Event_ofEvents_T_Void"] = lime_app__$Event_$ofEvents_$T_$Void; lime_app__$Event_$ofEvents_$T_$Void.__name__ = ["lime","app","_Event_ofEvents_T_Void"]; lime_app__$Event_$ofEvents_$T_$Void.prototype = { canceled: null ,__repeat: null ,__priorities: null ,add: function(listener,once,priority) { if(priority == null) { priority = 0; } if(once == null) { once = false; } var _g1 = 0; var _g = this.__priorities.length; while(_g1 < _g) { var i = _g1++; if(priority > this.__priorities[i]) { this.__listeners.splice(i,0,listener); this.__priorities.splice(i,0,priority); this.__repeat.splice(i,0,!once); return; } } this.__listeners.push(listener); this.__priorities.push(priority); this.__repeat.push(!once); } ,cancel: function() { this.canceled = true; } ,has: function(listener) { var _g = 0; var _g1 = this.__listeners; while(_g < _g1.length) { var l = _g1[_g]; ++_g; if(Reflect.compareMethods(l,listener)) { return true; } } return false; } ,remove: function(listener) { var i = this.__listeners.length; while(--i >= 0) if(Reflect.compareMethods(this.__listeners[i],listener)) { this.__listeners.splice(i,1); this.__priorities.splice(i,1); this.__repeat.splice(i,1); } } ,__listeners: null ,dispatch: function(a) { this.canceled = false; var listeners = this.__listeners; var repeat = this.__repeat; var i = 0; while(i < listeners.length) { listeners[i](a); if(!repeat[i]) { this.remove(listeners[i]); } else { ++i; } if(this.canceled) { break; } } } ,__class__: lime_app__$Event_$ofEvents_$T_$Void }; var lime_graphics_ConsoleRenderContext = function() { }; $hxClasses["lime.graphics.ConsoleRenderContext"] = lime_graphics_ConsoleRenderContext; lime_graphics_ConsoleRenderContext.__name__ = ["lime","graphics","ConsoleRenderContext"]; lime_graphics_ConsoleRenderContext.prototype = { createIndexBuffer: function(indices,count) { return new lime_graphics_console_IndexBuffer(); } ,createVertexBuffer: function(decl,count) { return new lime_graphics_console_VertexBuffer(); } ,lookupShader: function(name) { return new lime_graphics_console_Shader(); } ,clear: function(r,g,b,a,depth,stencil) { if(stencil == null) { stencil = 0; } if(depth == null) { depth = 1.0; } } ,bindShader: function(shader) { } ,setViewport: function(x,y,width,height,nearPlane,farPlane) { if(farPlane == null) { farPlane = 1.0; } if(nearPlane == null) { nearPlane = 0.0; } } ,setVertexShaderConstantF: function(startRegister,vec4,vec4count) { } ,setVertexSource: function(vb) { } ,setIndexSource: function(ib) { } ,draw: function(primitive,startVertex,primitiveCount) { } ,drawIndexed: function(primitive,vertexCount,startIndex,primitiveCount) { } ,get_width: function() { return 0; } ,get_height: function() { return 0; } ,__class__: lime_graphics_ConsoleRenderContext ,__properties__: {get_height:"get_height",get_width:"get_width"} }; var lime_graphics_FlashRenderContext = function() { }; $hxClasses["lime.graphics.FlashRenderContext"] = lime_graphics_FlashRenderContext; lime_graphics_FlashRenderContext.__name__ = ["lime","graphics","FlashRenderContext"]; lime_graphics_FlashRenderContext.prototype = { accessibilityImplementation: null ,accessibilityProperties: null ,alpha: null ,blendMode: null ,blendShader: null ,buttonMode: null ,cacheAsBitmap: null ,contextMenu: null ,doubleClickEnabled: null ,dropTarget: null ,filters: null ,focusRect: null ,graphics: null ,height: null ,hitArea: null ,loaderInfo: null ,mask: null ,mouseChildren: null ,mouseEnabled: null ,mouseX: null ,mouseY: null ,name: null ,needsSoftKeyboard: null ,numChildren: null ,opaqueBackground: null ,parent: null ,root: null ,rotation: null ,rotationX: null ,rotationY: null ,rotationZ: null ,scale9Grid: null ,scaleX: null ,scaleY: null ,scaleZ: null ,scrollRect: null ,softKeyboardInputAreaOfInterest: null ,soundTransform: null ,stage: null ,tabChildren: null ,tabEnabled: null ,tabIndex: null ,textSnapshot: null ,transform: null ,useHandCursor: null ,visible: null ,width: null ,x: null ,y: null ,z: null ,addChild: function(child) { return null; } ,addChildAt: function(child,index) { return null; } ,addEventListener: function(type,listener,useCapture,priority,useWeakReference) { if(useWeakReference == null) { useWeakReference = false; } if(priority == null) { priority = 0; } if(useCapture == null) { useCapture = false; } } ,areInaccessibleObjectsUnderPoint: function(point) { return false; } ,contains: function(child) { return false; } ,dispatchEvent: function(event) { return false; } ,getBounds: function(targetCoordinateSpace) { return null; } ,getChildAt: function(index) { return null; } ,getChildByName: function(name) { return null; } ,getChildIndex: function(child) { return 0; } ,getObjectsUnderPoint: function(point) { return null; } ,getRect: function(targetCoordinateSpace) { return null; } ,globalToLocal: function(point) { return null; } ,globalToLocal3D: function(point) { return null; } ,hasEventListener: function(type) { return false; } ,hitTestObject: function(obj) { return false; } ,hitTestPoint: function(x,y,shapeFlag) { if(shapeFlag == null) { shapeFlag = false; } return false; } ,local3DToGlobal: function(point3d) { return null; } ,localToGlobal: function(point) { return null; } ,removeChild: function(child) { return null; } ,removeChildAt: function(index) { return null; } ,removeChildren: function(beginIndex,endIndex) { if(endIndex == null) { endIndex = 2147483647; } if(beginIndex == null) { beginIndex = 0; } } ,removeEventListener: function(type,listener,useCapture) { if(useCapture == null) { useCapture = false; } } ,requestSoftKeyboard: function() { return false; } ,setChildIndex: function(child,index) { } ,startDrag: function(lockCenter,bounds) { if(lockCenter == null) { lockCenter = false; } } ,startTouchDrag: function(touchPointID,lockCenter,bounds) { if(lockCenter == null) { lockCenter = false; } } ,stopAllMovieClips: function() { } ,stopDrag: function() { } ,stopTouchDrag: function(touchPointID) { } ,swapChildren: function(child1,child2) { } ,swapChildrenAt: function(index1,index2) { } ,toString: function() { return null; } ,willTrigger: function(type) { return false; } ,__class__: lime_graphics_FlashRenderContext }; var lime_graphics_Image = function(buffer,offsetX,offsetY,width,height,color,type) { if(height == null) { height = -1; } if(width == null) { width = -1; } if(offsetY == null) { offsetY = 0; } if(offsetX == null) { offsetX = 0; } this.offsetX = offsetX; this.offsetY = offsetY; this.width = width; this.height = height; this.version = 0; if(type == null) { type = lime_graphics_ImageType.CANVAS; } this.type = type; if(buffer == null) { if(width > 0 && height > 0) { var _g = this.type; switch(_g[1]) { case 0: this.buffer = new lime_graphics_ImageBuffer(null,width,height); lime_graphics_utils_ImageCanvasUtil.createCanvas(this,width,height); if(color != null && color != 0) { this.fillRect(new lime_math_Rectangle(0,0,width,height),color); } break; case 1: var elements = width * height * 4; var this1; if(elements != null) { this1 = new Uint8Array(elements); } else { this1 = null; } this.buffer = new lime_graphics_ImageBuffer(this1,width,height); if(color != null && color != 0) { this.fillRect(new lime_math_Rectangle(0,0,width,height),color); } break; case 2: break; default: } } } else { this.__fromImageBuffer(buffer); } }; $hxClasses["lime.graphics.Image"] = lime_graphics_Image; lime_graphics_Image.__name__ = ["lime","graphics","Image"]; lime_graphics_Image.fromBase64 = function(base64,type) { if(base64 == null) { return null; } var image = new lime_graphics_Image(); image.__fromBase64(base64,type); return image; }; lime_graphics_Image.fromBitmapData = function(bitmapData) { if(bitmapData == null) { return null; } return bitmapData.image; }; lime_graphics_Image.fromBytes = function(bytes) { if(bytes == null) { return null; } var image = new lime_graphics_Image(); image.__fromBytes(bytes); return image; }; lime_graphics_Image.fromCanvas = function(canvas) { if(canvas == null) { return null; } var buffer = new lime_graphics_ImageBuffer(null,canvas.width,canvas.height); buffer.set_src(canvas); var image = new lime_graphics_Image(buffer); image.type = lime_graphics_ImageType.CANVAS; return image; }; lime_graphics_Image.fromFile = function(path) { if(path == null) { return null; } var image = new lime_graphics_Image(); image.__fromFile(path); return image; }; lime_graphics_Image.fromImageElement = function(image) { if(image == null) { return null; } var buffer = new lime_graphics_ImageBuffer(null,image.width,image.height); buffer.set_src(image); var _image = new lime_graphics_Image(buffer); _image.type = lime_graphics_ImageType.CANVAS; return _image; }; lime_graphics_Image.loadFromBase64 = function(base64,type) { if(base64 == null || type == null) { return lime_app_Future.withValue(null); } return lime__$backend_html5_HTML5HTTPRequest.loadImage("data:" + type + ";base64," + base64); }; lime_graphics_Image.loadFromBytes = function(bytes) { if(bytes == null) { return lime_app_Future.withValue(null); } var type = ""; if(lime_graphics_Image.__isPNG(bytes)) { type = "image/png"; } else if(lime_graphics_Image.__isJPG(bytes)) { type = "image/jpeg"; } else if(lime_graphics_Image.__isGIF(bytes)) { type = "image/gif"; } else if(lime_graphics_Image.__isWebP(bytes)) { type = "image/webp"; } else { return lime_app_Future.withValue(null); } return lime_graphics_Image.loadFromBase64(lime_graphics_Image.__base64Encode(bytes),type); }; lime_graphics_Image.loadFromFile = function(path) { if(path == null) { return lime_app_Future.withValue(null); } return lime__$backend_html5_HTML5HTTPRequest.loadImage(path); }; lime_graphics_Image.__base64Encode = function(bytes) { var extension; var _g = bytes.length % 3; switch(_g) { case 1: extension = "=="; break; case 2: extension = "="; break; default: extension = ""; } if(lime_graphics_Image.__base64Encoder == null) { lime_graphics_Image.__base64Encoder = new haxe_crypto_BaseCode(haxe_io_Bytes.ofString(lime_graphics_Image.__base64Chars)); } return lime_graphics_Image.__base64Encoder.encodeBytes(bytes).toString() + extension; }; lime_graphics_Image.__isGIF = function(bytes) { if(bytes == null || bytes.length < 6) { return false; } var header = bytes.getString(0,6); if(header != "GIF87a") { return header == "GIF89a"; } else { return true; } }; lime_graphics_Image.__isJPG = function(bytes) { if(bytes == null || bytes.length < 4) { return false; } if(bytes.b[0] == 255 && bytes.b[1] == 216 && bytes.b[bytes.length - 2] == 255) { return bytes.b[bytes.length - 1] == 217; } else { return false; } }; lime_graphics_Image.__isPNG = function(bytes) { if(bytes == null || bytes.length < 8) { return false; } if(bytes.b[0] == 137 && bytes.b[1] == 80 && bytes.b[2] == 78 && bytes.b[3] == 71 && bytes.b[4] == 13 && bytes.b[5] == 10 && bytes.b[6] == 26) { return bytes.b[7] == 10; } else { return false; } }; lime_graphics_Image.__isWebP = function(bytes) { if(bytes == null || bytes.length < 16) { return false; } if(bytes.getString(0,4) == "RIFF") { return bytes.getString(8,4) == "WEBP"; } else { return false; } }; lime_graphics_Image.prototype = { buffer: null ,dirty: null ,height: null ,offsetX: null ,offsetY: null ,rect: null ,type: null ,version: null ,width: null ,x: null ,y: null ,clone: function() { if(this.buffer != null) { if(this.type == lime_graphics_ImageType.CANVAS) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this); } else { lime_graphics_utils_ImageCanvasUtil.convertToData(this); } var image = new lime_graphics_Image(this.buffer.clone(),this.offsetX,this.offsetY,this.width,this.height,null,this.type); image.version = this.version; return image; } else { return new lime_graphics_Image(null,this.offsetX,this.offsetY,this.width,this.height,null,this.type); } } ,colorTransform: function(rect,colorMatrix) { rect = this.__clipRect(rect); if(this.buffer == null || rect == null) { return; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.colorTransform(this,rect,colorMatrix); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageDataUtil.colorTransform(this,rect,colorMatrix); break; case 2: rect.offset(this.offsetX,this.offsetY); this.buffer.__srcBitmapData.colorTransform(rect.__toFlashRectangle(),lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__toFlashColorTransform(colorMatrix)); break; default: } } ,copyChannel: function(sourceImage,sourceRect,destPoint,sourceChannel,destChannel) { sourceRect = this.__clipRect(sourceRect); if(this.buffer == null || sourceRect == null) { return; } if(destChannel == lime_graphics_ImageChannel.ALPHA && !this.get_transparent()) { return; } if(sourceRect.width <= 0 || sourceRect.height <= 0) { return; } if(sourceRect.x + sourceRect.width > sourceImage.width) { sourceRect.width = sourceImage.width - sourceRect.x; } if(sourceRect.y + sourceRect.height > sourceImage.height) { sourceRect.height = sourceImage.height - sourceRect.y; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.copyChannel(this,sourceImage,sourceRect,destPoint,sourceChannel,destChannel); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); lime_graphics_utils_ImageDataUtil.copyChannel(this,sourceImage,sourceRect,destPoint,sourceChannel,destChannel); break; case 2: var srcChannel; switch(sourceChannel[1]) { case 0: srcChannel = 1; break; case 1: srcChannel = 2; break; case 2: srcChannel = 4; break; case 3: srcChannel = 8; break; } var dstChannel; switch(destChannel[1]) { case 0: dstChannel = 1; break; case 1: dstChannel = 2; break; case 2: dstChannel = 4; break; case 3: dstChannel = 8; break; } sourceRect.offset(sourceImage.offsetX,sourceImage.offsetY); destPoint.offset(this.offsetX,this.offsetY); this.buffer.__srcBitmapData.copyChannel(sourceImage.buffer.get_src(),sourceRect.__toFlashRectangle(),destPoint.__toFlashPoint(),srcChannel,dstChannel); break; default: } } ,copyPixels: function(sourceImage,sourceRect,destPoint,alphaImage,alphaPoint,mergeAlpha) { if(mergeAlpha == null) { mergeAlpha = false; } if(this.buffer == null || sourceImage == null) { return; } if(sourceRect.width <= 0 || sourceRect.height <= 0) { return; } if(this.width <= 0 || this.height <= 0) { return; } if(sourceRect.x + sourceRect.width > sourceImage.width) { sourceRect.width = sourceImage.width - sourceRect.x; } if(sourceRect.y + sourceRect.height > sourceImage.height) { sourceRect.height = sourceImage.height - sourceRect.y; } if(sourceRect.x < 0) { sourceRect.width += sourceRect.x; sourceRect.x = 0; } if(sourceRect.y < 0) { sourceRect.height += sourceRect.y; sourceRect.y = 0; } if(destPoint.x + sourceRect.width > this.width) { sourceRect.width = this.width - destPoint.x; } if(destPoint.y + sourceRect.height > this.height) { sourceRect.height = this.height - destPoint.y; } if(destPoint.x < 0) { sourceRect.width += destPoint.x; sourceRect.x -= destPoint.x; destPoint.x = 0; } if(destPoint.y < 0) { sourceRect.height += destPoint.y; sourceRect.y -= destPoint.y; destPoint.y = 0; } if(sourceImage == this && destPoint.x < sourceRect.get_right() && destPoint.y < sourceRect.get_bottom()) { sourceImage = this.clone(); } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); if(alphaImage != null) { lime_graphics_utils_ImageCanvasUtil.convertToData(alphaImage); } lime_graphics_utils_ImageDataUtil.copyPixels(this,sourceImage,sourceRect,destPoint,alphaImage,alphaPoint,mergeAlpha); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); if(alphaImage != null) { lime_graphics_utils_ImageCanvasUtil.convertToData(alphaImage); } lime_graphics_utils_ImageDataUtil.copyPixels(this,sourceImage,sourceRect,destPoint,alphaImage,alphaPoint,mergeAlpha); break; case 2: sourceRect.offset(sourceImage.offsetX,sourceImage.offsetY); destPoint.offset(this.offsetX,this.offsetY); if(alphaImage != null && alphaPoint != null) { alphaPoint.offset(alphaImage.offsetX,alphaImage.offsetY); } this.buffer.__srcBitmapData.copyPixels(sourceImage.buffer.__srcBitmapData,sourceRect.__toFlashRectangle(),destPoint.__toFlashPoint(),alphaImage != null ? alphaImage.buffer.get_src() : null,alphaPoint != null ? alphaPoint.__toFlashPoint() : null,mergeAlpha); break; default: } } ,encode: function(format,quality) { if(quality == null) { quality = 90; } if(format == null) { format = "png"; } switch(format) { case "bmp": return lime_graphics_format_BMP.encode(this); case "jpeg":case "jpg": return lime_graphics_format_JPEG.encode(this,quality); case "png": return lime_graphics_format_PNG.encode(this); default: } return null; } ,fillRect: function(rect,color,format) { rect = this.__clipRect(rect); if(this.buffer == null || rect == null) { return; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.fillRect(this,rect,color,format); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); if(this.buffer.data.length == 0) { return; } lime_graphics_utils_ImageDataUtil.fillRect(this,rect,color,format); break; case 2: rect.offset(this.offsetX,this.offsetY); var argb; if(format == null) { var rgba = color; var this1 = 0; var argb1 = this1; argb1 = (rgba & 255 & 255) << 24 | (rgba >>> 24 & 255 & 255) << 16 | (rgba >>> 16 & 255 & 255) << 8 | rgba >>> 8 & 255 & 255; argb = argb1; } else { switch(format) { case 1: argb = color; break; case 2: var bgra = color; var this2 = 0; var argb2 = this2; argb2 = (bgra & 255 & 255) << 24 | (bgra >>> 8 & 255 & 255) << 16 | (bgra >>> 16 & 255 & 255) << 8 | bgra >>> 24 & 255 & 255; argb = argb2; break; default: var rgba1 = color; var this3 = 0; var argb3 = this3; argb3 = (rgba1 & 255 & 255) << 24 | (rgba1 >>> 24 & 255 & 255) << 16 | (rgba1 >>> 16 & 255 & 255) << 8 | rgba1 >>> 8 & 255 & 255; argb = argb3; } } this.buffer.__srcBitmapData.fillRect(rect.__toFlashRectangle(),argb); break; default: } } ,floodFill: function(x,y,color,format) { if(this.buffer == null) { return; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.floodFill(this,x,y,color,format); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageDataUtil.floodFill(this,x,y,color,format); break; case 2: var argb; if(format == null) { var rgba = color; var this1 = 0; var argb1 = this1; argb1 = (rgba & 255 & 255) << 24 | (rgba >>> 24 & 255 & 255) << 16 | (rgba >>> 16 & 255 & 255) << 8 | rgba >>> 8 & 255 & 255; argb = argb1; } else { switch(format) { case 1: argb = color; break; case 2: var bgra = color; var this2 = 0; var argb2 = this2; argb2 = (bgra & 255 & 255) << 24 | (bgra >>> 8 & 255 & 255) << 16 | (bgra >>> 16 & 255 & 255) << 8 | bgra >>> 24 & 255 & 255; argb = argb2; break; default: var rgba1 = color; var this3 = 0; var argb3 = this3; argb3 = (rgba1 & 255 & 255) << 24 | (rgba1 >>> 24 & 255 & 255) << 16 | (rgba1 >>> 16 & 255 & 255) << 8 | rgba1 >>> 8 & 255 & 255; argb = argb3; } } this.buffer.__srcBitmapData.floodFill(x + this.offsetX,y + this.offsetY,argb); break; default: } } ,getColorBoundsRect: function(mask,color,findColor,format) { if(findColor == null) { findColor = true; } if(this.buffer == null) { return null; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.convertToData(this); return lime_graphics_utils_ImageDataUtil.getColorBoundsRect(this,mask,color,findColor,format); case 1: return lime_graphics_utils_ImageDataUtil.getColorBoundsRect(this,mask,color,findColor,format); case 2: var rect = this.buffer.__srcBitmapData.getColorBoundsRect(mask,color,findColor); return new lime_math_Rectangle(rect.x,rect.y,rect.width,rect.height); default: return null; } } ,getPixel: function(x,y,format) { if(this.buffer == null || x < 0 || y < 0 || x >= this.width || y >= this.height) { return 0; } var _g = this.type; switch(_g[1]) { case 0: return lime_graphics_utils_ImageCanvasUtil.getPixel(this,x,y,format); case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); return lime_graphics_utils_ImageDataUtil.getPixel(this,x,y,format); case 2: var color = this.buffer.__srcBitmapData.getPixel(x + this.offsetX,y + this.offsetY); if(format == null) { var this1 = 0; var rgba = this1; rgba = (color >>> 16 & 255 & 255) << 24 | (color >>> 8 & 255 & 255) << 16 | (color & 255 & 255) << 8 | color >>> 24 & 255 & 255; var rgba1 = rgba; return rgba1; } else { switch(format) { case 1: return color; case 2: var this2 = 0; var bgra = this2; bgra = (color & 255 & 255) << 24 | (color >>> 8 & 255 & 255) << 16 | (color >>> 16 & 255 & 255) << 8 | color >>> 24 & 255 & 255; var bgra1 = bgra; return bgra1; default: var this3 = 0; var rgba2 = this3; rgba2 = (color >>> 16 & 255 & 255) << 24 | (color >>> 8 & 255 & 255) << 16 | (color & 255 & 255) << 8 | color >>> 24 & 255 & 255; var rgba3 = rgba2; return rgba3; } } break; default: return 0; } } ,getPixel32: function(x,y,format) { if(this.buffer == null || x < 0 || y < 0 || x >= this.width || y >= this.height) { return 0; } var _g = this.type; switch(_g[1]) { case 0: return lime_graphics_utils_ImageCanvasUtil.getPixel32(this,x,y,format); case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); return lime_graphics_utils_ImageDataUtil.getPixel32(this,x,y,format); case 2: var color = this.buffer.__srcBitmapData.getPixel32(x + this.offsetX,y + this.offsetY); if(format == null) { var this1 = 0; var rgba = this1; rgba = (color >>> 16 & 255 & 255) << 24 | (color >>> 8 & 255 & 255) << 16 | (color & 255 & 255) << 8 | color >>> 24 & 255 & 255; var rgba1 = rgba; return rgba1; } else { switch(format) { case 1: return color; case 2: var this2 = 0; var bgra = this2; bgra = (color & 255 & 255) << 24 | (color >>> 8 & 255 & 255) << 16 | (color >>> 16 & 255 & 255) << 8 | color >>> 24 & 255 & 255; var bgra1 = bgra; return bgra1; default: var this3 = 0; var rgba2 = this3; rgba2 = (color >>> 16 & 255 & 255) << 24 | (color >>> 8 & 255 & 255) << 16 | (color & 255 & 255) << 8 | color >>> 24 & 255 & 255; var rgba3 = rgba2; return rgba3; } } break; default: return 0; } } ,getPixels: function(rect,format) { if(this.buffer == null) { return null; } var _g = this.type; switch(_g[1]) { case 0: return lime_graphics_utils_ImageCanvasUtil.getPixels(this,rect,format); case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); return lime_graphics_utils_ImageDataUtil.getPixels(this,rect,format); case 2: return null; default: return null; } } ,merge: function(sourceImage,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) { if(this.buffer == null || sourceImage == null) { return; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this); lime_graphics_utils_ImageCanvasUtil.merge(this,sourceImage,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); lime_graphics_utils_ImageDataUtil.merge(this,sourceImage,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier); break; case 2: sourceRect.offset(this.offsetX,this.offsetY); this.buffer.__srcBitmapData.merge(sourceImage.buffer.__srcBitmapData,sourceRect.__toFlashRectangle(),destPoint.__toFlashPoint(),redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier); break; default: return; } } ,resize: function(newWidth,newHeight) { var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.resize(this,newWidth,newHeight); break; case 1: lime_graphics_utils_ImageDataUtil.resize(this,newWidth,newHeight); break; case 2: break; default: } this.buffer.width = newWidth; this.buffer.height = newHeight; this.offsetX = 0; this.offsetY = 0; this.width = newWidth; this.height = newHeight; } ,scroll: function(x,y) { if(this.buffer == null) { return; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.scroll(this,x,y); break; case 1: this.copyPixels(this,this.get_rect(),new lime_math_Vector2(x,y)); break; case 2: this.buffer.__srcBitmapData.scroll(x + this.offsetX,y + this.offsetX); break; default: } } ,setPixel: function(x,y,color,format) { if(this.buffer == null || x < 0 || y < 0 || x >= this.width || y >= this.height) { return; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.setPixel(this,x,y,color,format); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageDataUtil.setPixel(this,x,y,color,format); break; case 2: var argb; if(format == null) { var rgba = color; var this1 = 0; var argb1 = this1; argb1 = (rgba & 255 & 255) << 24 | (rgba >>> 24 & 255 & 255) << 16 | (rgba >>> 16 & 255 & 255) << 8 | rgba >>> 8 & 255 & 255; argb = argb1; } else { switch(format) { case 1: argb = color; break; case 2: var bgra = color; var this2 = 0; var argb2 = this2; argb2 = (bgra & 255 & 255) << 24 | (bgra >>> 8 & 255 & 255) << 16 | (bgra >>> 16 & 255 & 255) << 8 | bgra >>> 24 & 255 & 255; argb = argb2; break; default: var rgba1 = color; var this3 = 0; var argb3 = this3; argb3 = (rgba1 & 255 & 255) << 24 | (rgba1 >>> 24 & 255 & 255) << 16 | (rgba1 >>> 16 & 255 & 255) << 8 | rgba1 >>> 8 & 255 & 255; argb = argb3; } } this.buffer.__srcBitmapData.setPixel(x + this.offsetX,y + this.offsetX,argb); break; default: } } ,setPixel32: function(x,y,color,format) { if(this.buffer == null || x < 0 || y < 0 || x >= this.width || y >= this.height) { return; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.setPixel32(this,x,y,color,format); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageDataUtil.setPixel32(this,x,y,color,format); break; case 2: var argb; if(format == null) { var rgba = color; var this1 = 0; var argb1 = this1; argb1 = (rgba & 255 & 255) << 24 | (rgba >>> 24 & 255 & 255) << 16 | (rgba >>> 16 & 255 & 255) << 8 | rgba >>> 8 & 255 & 255; argb = argb1; } else { switch(format) { case 1: argb = color; break; case 2: var bgra = color; var this2 = 0; var argb2 = this2; argb2 = (bgra & 255 & 255) << 24 | (bgra >>> 8 & 255 & 255) << 16 | (bgra >>> 16 & 255 & 255) << 8 | bgra >>> 24 & 255 & 255; argb = argb2; break; default: var rgba1 = color; var this3 = 0; var argb3 = this3; argb3 = (rgba1 & 255 & 255) << 24 | (rgba1 >>> 24 & 255 & 255) << 16 | (rgba1 >>> 16 & 255 & 255) << 8 | rgba1 >>> 8 & 255 & 255; argb = argb3; } } this.buffer.__srcBitmapData.setPixel32(x + this.offsetX,y + this.offsetY,argb); break; default: } } ,setPixels: function(rect,bytePointer,format,endian) { rect = this.__clipRect(rect); if(this.buffer == null || rect == null) { return; } if(endian == null) { endian = lime_system_Endian.BIG_ENDIAN; } var _g = this.type; switch(_g[1]) { case 0: lime_graphics_utils_ImageCanvasUtil.setPixels(this,rect,bytePointer,format,endian); break; case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageDataUtil.setPixels(this,rect,bytePointer,format,endian); break; case 2: break; default: } } ,threshold: function(sourceImage,sourceRect,destPoint,operation,threshold,color,mask,copySource,format) { if(copySource == null) { copySource = false; } if(mask == null) { mask = -1; } if(color == null) { color = 0; } if(this.buffer == null || sourceImage == null || sourceRect == null) { return 0; } var _g = this.type; switch(_g[1]) { case 0:case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); return lime_graphics_utils_ImageDataUtil.threshold(this,sourceImage,sourceRect,destPoint,operation,threshold,color,mask,copySource,format); case 2: var _color; if(format == null) { var rgba = color; var this1 = 0; var argb = this1; argb = (rgba & 255 & 255) << 24 | (rgba >>> 24 & 255 & 255) << 16 | (rgba >>> 16 & 255 & 255) << 8 | rgba >>> 8 & 255 & 255; _color = argb; } else { switch(format) { case 1: _color = color; break; case 2: var bgra = color; var this2 = 0; var argb1 = this2; argb1 = (bgra & 255 & 255) << 24 | (bgra >>> 8 & 255 & 255) << 16 | (bgra >>> 16 & 255 & 255) << 8 | bgra >>> 24 & 255 & 255; _color = argb1; break; default: var rgba1 = color; var this3 = 0; var argb2 = this3; argb2 = (rgba1 & 255 & 255) << 24 | (rgba1 >>> 24 & 255 & 255) << 16 | (rgba1 >>> 16 & 255 & 255) << 8 | rgba1 >>> 8 & 255 & 255; _color = argb2; } } var _mask; if(format == null) { var rgba2 = mask; var this4 = 0; var argb3 = this4; argb3 = (rgba2 & 255 & 255) << 24 | (rgba2 >>> 24 & 255 & 255) << 16 | (rgba2 >>> 16 & 255 & 255) << 8 | rgba2 >>> 8 & 255 & 255; _mask = argb3; } else { switch(format) { case 1: _mask = mask; break; case 2: var bgra1 = mask; var this5 = 0; var argb4 = this5; argb4 = (bgra1 & 255 & 255) << 24 | (bgra1 >>> 8 & 255 & 255) << 16 | (bgra1 >>> 16 & 255 & 255) << 8 | bgra1 >>> 24 & 255 & 255; _mask = argb4; break; default: var rgba3 = mask; var this6 = 0; var argb5 = this6; argb5 = (rgba3 & 255 & 255) << 24 | (rgba3 >>> 24 & 255 & 255) << 16 | (rgba3 >>> 16 & 255 & 255) << 8 | rgba3 >>> 8 & 255 & 255; _mask = argb5; } } sourceRect.offset(sourceImage.offsetX,sourceImage.offsetY); destPoint.offset(this.offsetX,this.offsetY); return this.buffer.__srcBitmapData.threshold(sourceImage.buffer.get_src(),sourceRect.__toFlashRectangle(),destPoint.__toFlashPoint(),operation,threshold,_color,_mask,copySource); default: } return 0; } ,__clipRect: function(r) { if(r == null) { return null; } if(r.x < 0) { r.width -= -r.x; r.x = 0; if(r.x + r.width <= 0) { return null; } } if(r.y < 0) { r.height -= -r.y; r.y = 0; if(r.y + r.height <= 0) { return null; } } if(r.x + r.width >= this.width) { r.width -= r.x + r.width - this.width; if(r.width <= 0) { return null; } } if(r.y + r.height >= this.height) { r.height -= r.y + r.height - this.height; if(r.height <= 0) { return null; } } return r; } ,__fromBase64: function(base64,type,onload) { var _gthis = this; var image = new Image(); var image_onLoaded = function(event) { _gthis.buffer = new lime_graphics_ImageBuffer(null,image.width,image.height); _gthis.buffer.__srcImage = image; _gthis.offsetX = 0; _gthis.offsetY = 0; _gthis.width = _gthis.buffer.width; _gthis.height = _gthis.buffer.height; if(onload != null) { onload(_gthis); } }; image.addEventListener("load",image_onLoaded,false); image.src = "data:" + type + ";base64," + base64; } ,__fromBytes: function(bytes,onload) { var type = ""; if(lime_graphics_Image.__isPNG(bytes)) { type = "image/png"; } else if(lime_graphics_Image.__isJPG(bytes)) { type = "image/jpeg"; } else if(lime_graphics_Image.__isGIF(bytes)) { type = "image/gif"; } else { return; } this.__fromBase64(lime_graphics_Image.__base64Encode(bytes),type,onload); } ,__fromFile: function(path,onload,onerror) { var _gthis = this; var image = new Image(); if(!lime__$backend_html5_HTML5HTTPRequest.__isSameOrigin(path)) { image.crossOrigin = "Anonymous"; } image.onload = function(_) { _gthis.buffer = new lime_graphics_ImageBuffer(null,image.width,image.height); _gthis.buffer.__srcImage = image; _gthis.width = image.width; _gthis.height = image.height; if(onload != null) { onload(_gthis); } }; image.onerror = function(_1) { if(onerror != null) { onerror(); } }; image.src = path; var image1 = image.complete; } ,__fromImageBuffer: function(buffer) { this.buffer = buffer; if(buffer != null) { if(this.width == -1) { this.width = buffer.width; } if(this.height == -1) { this.height = buffer.height; } } } ,get_data: function() { if(this.buffer.data == null && this.buffer.width > 0 && this.buffer.height > 0) { lime_graphics_utils_ImageCanvasUtil.convertToData(this); } return this.buffer.data; } ,set_data: function(value) { return this.buffer.data = value; } ,get_format: function() { return this.buffer.format; } ,set_format: function(value) { if(this.buffer.format != value) { var _g = this.type; if(_g[1] == 1) { lime_graphics_utils_ImageDataUtil.setFormat(this,value); } } return this.buffer.format = value; } ,get_powerOfTwo: function() { if(this.buffer.width != 0 && (this.buffer.width & ~this.buffer.width + 1) == this.buffer.width) { if(this.buffer.height != 0) { return (this.buffer.height & ~this.buffer.height + 1) == this.buffer.height; } else { return false; } } else { return false; } } ,set_powerOfTwo: function(value) { if(value != this.get_powerOfTwo()) { var newWidth = 1; var newHeight = 1; while(newWidth < this.buffer.width) newWidth <<= 1; while(newHeight < this.buffer.height) newHeight <<= 1; var _g = this.type; switch(_g[1]) { case 0: break; case 1: lime_graphics_utils_ImageDataUtil.resizeBuffer(this,newWidth,newHeight); break; case 2: break; default: } } return value; } ,get_premultiplied: function() { return this.buffer.premultiplied; } ,set_premultiplied: function(value) { if(value && !this.buffer.premultiplied) { var _g = this.type; switch(_g[1]) { case 0:case 1: lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageDataUtil.multiplyAlpha(this); break; default: } } else if(!value && this.buffer.premultiplied) { var _g1 = this.type; if(_g1[1] == 1) { lime_graphics_utils_ImageCanvasUtil.convertToData(this); lime_graphics_utils_ImageDataUtil.unmultiplyAlpha(this); } } return value; } ,get_rect: function() { return new lime_math_Rectangle(0,0,this.width,this.height); } ,get_src: function() { if(this.buffer.__srcCanvas == null) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this); } return this.buffer.get_src(); } ,set_src: function(value) { return this.buffer.set_src(value); } ,get_transparent: function() { if(this.buffer == null) { return false; } return this.buffer.transparent; } ,set_transparent: function(value) { if(this.buffer == null) { return false; } return this.buffer.transparent = value; } ,__class__: lime_graphics_Image ,__properties__: {set_transparent:"set_transparent",get_transparent:"get_transparent",set_src:"set_src",get_src:"get_src",get_rect:"get_rect",set_premultiplied:"set_premultiplied",get_premultiplied:"get_premultiplied",set_powerOfTwo:"set_powerOfTwo",get_powerOfTwo:"get_powerOfTwo",set_format:"set_format",get_format:"get_format",set_data:"set_data",get_data:"get_data"} }; var lime_graphics_ImageBuffer = function(data,width,height,bitsPerPixel,format) { if(bitsPerPixel == null) { bitsPerPixel = 32; } if(height == null) { height = 0; } if(width == null) { width = 0; } this.data = data; this.width = width; this.height = height; this.bitsPerPixel = bitsPerPixel; this.format = format == null ? 0 : format; this.premultiplied = false; this.transparent = true; }; $hxClasses["lime.graphics.ImageBuffer"] = lime_graphics_ImageBuffer; lime_graphics_ImageBuffer.__name__ = ["lime","graphics","ImageBuffer"]; lime_graphics_ImageBuffer.prototype = { bitsPerPixel: null ,data: null ,format: null ,height: null ,premultiplied: null ,transparent: null ,width: null ,__srcBitmapData: null ,__srcCanvas: null ,__srcContext: null ,__srcCustom: null ,__srcImage: null ,__srcImageData: null ,clone: function() { var buffer = new lime_graphics_ImageBuffer(this.data,this.width,this.height,this.bitsPerPixel); if(this.data != null) { var elements = this.data.byteLength; var this1; if(elements != null) { this1 = new Uint8Array(elements); } else { this1 = null; } buffer.data = this1; var view = this.data; var this2; if(view != null) { this2 = new Uint8Array(view); } else { this2 = null; } var copy = this2; buffer.data.set(copy); } else if(this.__srcImageData != null) { buffer.__srcCanvas = window.document.createElement("canvas"); buffer.__srcContext = buffer.__srcCanvas.getContext("2d"); buffer.__srcCanvas.width = this.__srcImageData.width; buffer.__srcCanvas.height = this.__srcImageData.height; buffer.__srcImageData = buffer.__srcContext.createImageData(this.__srcImageData.width,this.__srcImageData.height); var copy1 = new Uint8ClampedArray(this.__srcImageData.data); buffer.__srcImageData.data.set(copy1); } else if(this.__srcCanvas != null) { buffer.__srcCanvas = window.document.createElement("canvas"); buffer.__srcContext = buffer.__srcCanvas.getContext("2d"); buffer.__srcCanvas.width = this.__srcCanvas.width; buffer.__srcCanvas.height = this.__srcCanvas.height; buffer.__srcContext.drawImage(this.__srcCanvas,0,0); } else { buffer.__srcImage = this.__srcImage; } buffer.bitsPerPixel = this.bitsPerPixel; buffer.format = this.format; buffer.premultiplied = this.premultiplied; buffer.transparent = this.transparent; return buffer; } ,get_src: function() { if(this.__srcImage != null) { return this.__srcImage; } return this.__srcCanvas; } ,set_src: function(value) { if(js_Boot.__instanceof(value,Image)) { this.__srcImage = value; } else if(js_Boot.__instanceof(value,HTMLCanvasElement)) { this.__srcCanvas = value; this.__srcContext = this.__srcCanvas.getContext("2d"); } return value; } ,get_stride: function() { return this.width * 4; } ,__class__: lime_graphics_ImageBuffer ,__properties__: {get_stride:"get_stride",set_src:"set_src",get_src:"get_src"} }; var lime_graphics_ImageChannel = $hxClasses["lime.graphics.ImageChannel"] = { __ename__ : ["lime","graphics","ImageChannel"], __constructs__ : ["RED","GREEN","BLUE","ALPHA"] }; lime_graphics_ImageChannel.RED = ["RED",0]; lime_graphics_ImageChannel.RED.toString = $estr; lime_graphics_ImageChannel.RED.__enum__ = lime_graphics_ImageChannel; lime_graphics_ImageChannel.GREEN = ["GREEN",1]; lime_graphics_ImageChannel.GREEN.toString = $estr; lime_graphics_ImageChannel.GREEN.__enum__ = lime_graphics_ImageChannel; lime_graphics_ImageChannel.BLUE = ["BLUE",2]; lime_graphics_ImageChannel.BLUE.toString = $estr; lime_graphics_ImageChannel.BLUE.__enum__ = lime_graphics_ImageChannel; lime_graphics_ImageChannel.ALPHA = ["ALPHA",3]; lime_graphics_ImageChannel.ALPHA.toString = $estr; lime_graphics_ImageChannel.ALPHA.__enum__ = lime_graphics_ImageChannel; lime_graphics_ImageChannel.__empty_constructs__ = [lime_graphics_ImageChannel.RED,lime_graphics_ImageChannel.GREEN,lime_graphics_ImageChannel.BLUE,lime_graphics_ImageChannel.ALPHA]; var lime_graphics_ImageType = $hxClasses["lime.graphics.ImageType"] = { __ename__ : ["lime","graphics","ImageType"], __constructs__ : ["CANVAS","DATA","FLASH","CUSTOM"] }; lime_graphics_ImageType.CANVAS = ["CANVAS",0]; lime_graphics_ImageType.CANVAS.toString = $estr; lime_graphics_ImageType.CANVAS.__enum__ = lime_graphics_ImageType; lime_graphics_ImageType.DATA = ["DATA",1]; lime_graphics_ImageType.DATA.toString = $estr; lime_graphics_ImageType.DATA.__enum__ = lime_graphics_ImageType; lime_graphics_ImageType.FLASH = ["FLASH",2]; lime_graphics_ImageType.FLASH.toString = $estr; lime_graphics_ImageType.FLASH.__enum__ = lime_graphics_ImageType; lime_graphics_ImageType.CUSTOM = ["CUSTOM",3]; lime_graphics_ImageType.CUSTOM.toString = $estr; lime_graphics_ImageType.CUSTOM.__enum__ = lime_graphics_ImageType; lime_graphics_ImageType.__empty_constructs__ = [lime_graphics_ImageType.CANVAS,lime_graphics_ImageType.DATA,lime_graphics_ImageType.FLASH,lime_graphics_ImageType.CUSTOM]; var lime_graphics_RenderContext = $hxClasses["lime.graphics.RenderContext"] = { __ename__ : ["lime","graphics","RenderContext"], __constructs__ : ["OPENGL","CANVAS","DOM","FLASH","CAIRO","CONSOLE","CUSTOM","NONE"] }; lime_graphics_RenderContext.OPENGL = function(gl) { var $x = ["OPENGL",0,gl]; $x.__enum__ = lime_graphics_RenderContext; $x.toString = $estr; return $x; }; lime_graphics_RenderContext.CANVAS = function(context) { var $x = ["CANVAS",1,context]; $x.__enum__ = lime_graphics_RenderContext; $x.toString = $estr; return $x; }; lime_graphics_RenderContext.DOM = function(element) { var $x = ["DOM",2,element]; $x.__enum__ = lime_graphics_RenderContext; $x.toString = $estr; return $x; }; lime_graphics_RenderContext.FLASH = function(stage) { var $x = ["FLASH",3,stage]; $x.__enum__ = lime_graphics_RenderContext; $x.toString = $estr; return $x; }; lime_graphics_RenderContext.CAIRO = function(cairo) { var $x = ["CAIRO",4,cairo]; $x.__enum__ = lime_graphics_RenderContext; $x.toString = $estr; return $x; }; lime_graphics_RenderContext.CONSOLE = function(context) { var $x = ["CONSOLE",5,context]; $x.__enum__ = lime_graphics_RenderContext; $x.toString = $estr; return $x; }; lime_graphics_RenderContext.CUSTOM = function(data) { var $x = ["CUSTOM",6,data]; $x.__enum__ = lime_graphics_RenderContext; $x.toString = $estr; return $x; }; lime_graphics_RenderContext.NONE = ["NONE",7]; lime_graphics_RenderContext.NONE.toString = $estr; lime_graphics_RenderContext.NONE.__enum__ = lime_graphics_RenderContext; lime_graphics_RenderContext.__empty_constructs__ = [lime_graphics_RenderContext.NONE]; var lime_graphics_Renderer = function(window) { this.onRender = new lime_app__$Event_$Void_$Void(); this.onContextRestored = new lime_app__$Event_$lime_$graphics_$RenderContext_$Void(); this.onContextLost = new lime_app__$Event_$Void_$Void(); this.window = window; this.backend = new lime__$backend_html5_HTML5Renderer(this); this.window.renderer = this; }; $hxClasses["lime.graphics.Renderer"] = lime_graphics_Renderer; lime_graphics_Renderer.__name__ = ["lime","graphics","Renderer"]; lime_graphics_Renderer.prototype = { context: null ,onContextLost: null ,onContextRestored: null ,onRender: null ,type: null ,window: null ,backend: null ,create: function() { this.backend.create(); } ,flip: function() { this.backend.flip(); } ,readPixels: function(rect) { return this.backend.readPixels(rect); } ,render: function() { this.backend.render(); } ,__class__: lime_graphics_Renderer }; var lime_graphics_RendererType = $hxClasses["lime.graphics.RendererType"] = { __ename__ : ["lime","graphics","RendererType"], __constructs__ : ["OPENGL","CANVAS","DOM","FLASH","CAIRO","CONSOLE","CUSTOM"] }; lime_graphics_RendererType.OPENGL = ["OPENGL",0]; lime_graphics_RendererType.OPENGL.toString = $estr; lime_graphics_RendererType.OPENGL.__enum__ = lime_graphics_RendererType; lime_graphics_RendererType.CANVAS = ["CANVAS",1]; lime_graphics_RendererType.CANVAS.toString = $estr; lime_graphics_RendererType.CANVAS.__enum__ = lime_graphics_RendererType; lime_graphics_RendererType.DOM = ["DOM",2]; lime_graphics_RendererType.DOM.toString = $estr; lime_graphics_RendererType.DOM.__enum__ = lime_graphics_RendererType; lime_graphics_RendererType.FLASH = ["FLASH",3]; lime_graphics_RendererType.FLASH.toString = $estr; lime_graphics_RendererType.FLASH.__enum__ = lime_graphics_RendererType; lime_graphics_RendererType.CAIRO = ["CAIRO",4]; lime_graphics_RendererType.CAIRO.toString = $estr; lime_graphics_RendererType.CAIRO.__enum__ = lime_graphics_RendererType; lime_graphics_RendererType.CONSOLE = ["CONSOLE",5]; lime_graphics_RendererType.CONSOLE.toString = $estr; lime_graphics_RendererType.CONSOLE.__enum__ = lime_graphics_RendererType; lime_graphics_RendererType.CUSTOM = ["CUSTOM",6]; lime_graphics_RendererType.CUSTOM.toString = $estr; lime_graphics_RendererType.CUSTOM.__enum__ = lime_graphics_RendererType; lime_graphics_RendererType.__empty_constructs__ = [lime_graphics_RendererType.OPENGL,lime_graphics_RendererType.CANVAS,lime_graphics_RendererType.DOM,lime_graphics_RendererType.FLASH,lime_graphics_RendererType.CAIRO,lime_graphics_RendererType.CONSOLE,lime_graphics_RendererType.CUSTOM]; var lime_graphics_cairo_Cairo = function(surface) { var tmp = surface != null; }; $hxClasses["lime.graphics.cairo.Cairo"] = lime_graphics_cairo_Cairo; lime_graphics_cairo_Cairo.__name__ = ["lime","graphics","cairo","Cairo"]; lime_graphics_cairo_Cairo.__properties__ = {get_versionString:"get_versionString",get_version:"get_version"}; lime_graphics_cairo_Cairo.get_version = function() { return 0; }; lime_graphics_cairo_Cairo.get_versionString = function() { return ""; }; lime_graphics_cairo_Cairo.prototype = { target: null ,userData: null ,handle: null ,arc: function(xc,yc,radius,angle1,angle2) { } ,arcNegative: function(xc,yc,radius,angle1,angle2) { } ,clip: function() { } ,clipExtents: function(x1,y1,x2,y2) { } ,clipPreserve: function() { } ,closePath: function() { } ,copyPage: function() { } ,curveTo: function(x1,y1,x2,y2,x3,y3) { } ,fill: function() { } ,fillExtents: function(x1,y1,x2,y2) { } ,fillPreserve: function() { } ,identityMatrix: function() { } ,inClip: function(x,y) { return false; } ,inFill: function(x,y) { return false; } ,inStroke: function(x,y) { return false; } ,lineTo: function(x,y) { } ,moveTo: function(x,y) { } ,mask: function(pattern) { } ,maskSurface: function(surface,x,y) { } ,newPath: function() { } ,paint: function() { } ,paintWithAlpha: function(alpha) { } ,popGroup: function() { return null; } ,popGroupToSource: function() { } ,pushGroup: function() { } ,pushGroupWithContent: function(content) { } ,recreate: function(surface) { } ,rectangle: function(x,y,width,height) { } ,relCurveTo: function(dx1,dy1,dx2,dy2,dx3,dy3) { } ,relLineTo: function(dx,dy) { } ,relMoveTo: function(dx,dy) { } ,resetClip: function() { } ,restore: function() { } ,save: function() { } ,setFontSize: function(size) { } ,setSourceRGB: function(r,g,b) { } ,setSourceRGBA: function(r,g,b,a) { } ,setSourceSurface: function(surface,x,y) { } ,showGlyphs: function(glyphs) { } ,showPage: function() { } ,showText: function(utf8) { } ,status: function() { return 0; } ,stroke: function() { } ,strokeExtents: function(x1,y1,x2,y2) { } ,strokePreserve: function() { } ,textPath: function(utf8) { } ,transform: function(matrix) { } ,rotate: function(amount) { } ,scale: function(x,y) { } ,translate: function(x,y) { } ,get_antialias: function() { return 0; } ,set_antialias: function(value) { return value; } ,get_currentPoint: function() { return null; } ,get_dash: function() { return []; } ,set_dash: function(value) { return value; } ,get_dashCount: function() { return 0; } ,get_fillRule: function() { return 0; } ,set_fillRule: function(value) { return value; } ,get_fontFace: function() { return 0; } ,set_fontFace: function(value) { return value; } ,get_fontOptions: function() { return null; } ,set_fontOptions: function(value) { return value; } ,get_groupTarget: function() { return 0; } ,get_hasCurrentPoint: function() { return false; } ,get_lineCap: function() { return 0; } ,set_lineCap: function(value) { return value; } ,get_lineJoin: function() { return 0; } ,set_lineJoin: function(value) { return value; } ,get_lineWidth: function() { return 0; } ,set_lineWidth: function(value) { return value; } ,get_matrix: function() { return null; } ,set_matrix: function(value) { return value; } ,get_miterLimit: function() { return 0; } ,set_miterLimit: function(value) { return value; } ,get_operator: function() { return 0; } ,set_operator: function(value) { return value; } ,get_source: function() { return 0; } ,set_source: function(value) { return value; } ,get_target: function() { return 0; } ,get_tolerance: function() { return 0; } ,set_tolerance: function(value) { return value; } ,__class__: lime_graphics_cairo_Cairo ,__properties__: {set_tolerance:"set_tolerance",get_tolerance:"get_tolerance",get_target:"get_target",set_source:"set_source",get_source:"get_source",set_operator:"set_operator",get_operator:"get_operator",set_miterLimit:"set_miterLimit",get_miterLimit:"get_miterLimit",set_matrix:"set_matrix",get_matrix:"get_matrix",set_lineWidth:"set_lineWidth",get_lineWidth:"get_lineWidth",set_lineJoin:"set_lineJoin",get_lineJoin:"get_lineJoin",set_lineCap:"set_lineCap",get_lineCap:"get_lineCap",get_hasCurrentPoint:"get_hasCurrentPoint",get_groupTarget:"get_groupTarget",set_fontOptions:"set_fontOptions",get_fontOptions:"get_fontOptions",set_fontFace:"set_fontFace",get_fontFace:"get_fontFace",set_fillRule:"set_fillRule",get_fillRule:"get_fillRule",get_dashCount:"get_dashCount",set_dash:"set_dash",get_dash:"get_dash",get_currentPoint:"get_currentPoint",set_antialias:"set_antialias",get_antialias:"get_antialias"} }; var lime_graphics_cairo__$CairoFTFontFace_CairoFTFontFace_$Impl_$ = {}; $hxClasses["lime.graphics.cairo._CairoFTFontFace.CairoFTFontFace_Impl_"] = lime_graphics_cairo__$CairoFTFontFace_CairoFTFontFace_$Impl_$; lime_graphics_cairo__$CairoFTFontFace_CairoFTFontFace_$Impl_$.__name__ = ["lime","graphics","cairo","_CairoFTFontFace","CairoFTFontFace_Impl_"]; lime_graphics_cairo__$CairoFTFontFace_CairoFTFontFace_$Impl_$._new = function() { var this1 = 0; return this1; }; lime_graphics_cairo__$CairoFTFontFace_CairoFTFontFace_$Impl_$.create = function(face,loadFlags) { return 0; }; var lime_graphics_cairo__$CairoFontFace_CairoFontFace_$Impl_$ = {}; $hxClasses["lime.graphics.cairo._CairoFontFace.CairoFontFace_Impl_"] = lime_graphics_cairo__$CairoFontFace_CairoFontFace_$Impl_$; lime_graphics_cairo__$CairoFontFace_CairoFontFace_$Impl_$.__name__ = ["lime","graphics","cairo","_CairoFontFace","CairoFontFace_Impl_"]; lime_graphics_cairo__$CairoFontFace_CairoFontFace_$Impl_$._new = function() { var this1 = null; return this1; }; lime_graphics_cairo__$CairoFontFace_CairoFontFace_$Impl_$.status = function(this1) { return 0; }; var lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$ = {}; $hxClasses["lime.graphics.cairo._CairoFontOptions.CairoFontOptions_Impl_"] = lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.__name__ = ["lime","graphics","cairo","_CairoFontOptions","CairoFontOptions_Impl_"]; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.__properties__ = {set_subpixelOrder:"set_subpixelOrder",get_subpixelOrder:"get_subpixelOrder",set_hintStyle:"set_hintStyle",get_hintStyle:"get_hintStyle",set_hintMetrics:"set_hintMetrics",get_hintMetrics:"get_hintMetrics",set_antialias:"set_antialias",get_antialias:"get_antialias"}; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$._new = function() { var this1 = null; return this1; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.get_antialias = function(this1) { return 0; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.set_antialias = function(this1,value) { return value; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.get_hintMetrics = function(this1) { return 0; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.set_hintMetrics = function(this1,value) { return value; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.get_hintStyle = function(this1) { return 0; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.set_hintStyle = function(this1,value) { return value; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.get_subpixelOrder = function(this1) { return 0; }; lime_graphics_cairo__$CairoFontOptions_CairoFontOptions_$Impl_$.set_subpixelOrder = function(this1,value) { return value; }; var lime_graphics_cairo_CairoGlyph = function(index,x,y) { if(y == null) { y = 0; } if(x == null) { x = 0; } this.index = index; this.x = x; this.y = y; }; $hxClasses["lime.graphics.cairo.CairoGlyph"] = lime_graphics_cairo_CairoGlyph; lime_graphics_cairo_CairoGlyph.__name__ = ["lime","graphics","cairo","CairoGlyph"]; lime_graphics_cairo_CairoGlyph.prototype = { index: null ,x: null ,y: null ,__class__: lime_graphics_cairo_CairoGlyph }; var lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$ = {}; $hxClasses["lime.graphics.cairo._CairoImageSurface.CairoImageSurface_Impl_"] = lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.__name__ = ["lime","graphics","cairo","_CairoImageSurface","CairoImageSurface_Impl_"]; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.__properties__ = {get_width:"get_width",get_stride:"get_stride",get_height:"get_height",get_format:"get_format",get_data:"get_data"}; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$._new = function(format,width,height) { var this1 = 0; return this1; }; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.create = function(data,format,width,height,stride) { return 0; }; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.fromImage = function(image) { return null; }; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.get_data = function(this1) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); }; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.get_format = function(this1) { return 0; }; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.get_height = function(this1) { return 0; }; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.get_stride = function(this1) { return 0; }; lime_graphics_cairo__$CairoImageSurface_CairoImageSurface_$Impl_$.get_width = function(this1) { return 0; }; var lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$ = {}; $hxClasses["lime.graphics.cairo._CairoPattern.CairoPattern_Impl_"] = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.__name__ = ["lime","graphics","cairo","_CairoPattern","CairoPattern_Impl_"]; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.__properties__ = {set_matrix:"set_matrix",get_matrix:"get_matrix",set_filter:"set_filter",get_filter:"get_filter",set_extend:"set_extend",get_extend:"get_extend",get_colorStopCount:"get_colorStopCount"}; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$._new = function(handle) { var this1 = handle; return this1; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.addColorStopRGB = function(this1,offset,r,g,b) { }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.addColorStopRGBA = function(this1,offset,r,g,b,a) { }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createForSurface = function(surface) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createLinear = function(x0,y0,x1,y1) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createRadial = function(cx0,cy0,radius0,cx1,cy1,radius1) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createRGB = function(r,g,b) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createRGBA = function(r,g,b,a) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.get_colorStopCount = function(this1) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.get_extend = function(this1) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_extend = function(this1,value) { return value; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.get_filter = function(this1) { return 0; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_filter = function(this1,value) { return value; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.get_matrix = function(this1) { return null; }; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_matrix = function(this1,value) { return value; }; var lime_graphics_cairo__$CairoSurface_CairoSurface_$Impl_$ = {}; $hxClasses["lime.graphics.cairo._CairoSurface.CairoSurface_Impl_"] = lime_graphics_cairo__$CairoSurface_CairoSurface_$Impl_$; lime_graphics_cairo__$CairoSurface_CairoSurface_$Impl_$.__name__ = ["lime","graphics","cairo","_CairoSurface","CairoSurface_Impl_"]; lime_graphics_cairo__$CairoSurface_CairoSurface_$Impl_$.flush = function(this1) { }; var lime_graphics_console_IndexBuffer = function() { }; $hxClasses["lime.graphics.console.IndexBuffer"] = lime_graphics_console_IndexBuffer; lime_graphics_console_IndexBuffer.__name__ = ["lime","graphics","console","IndexBuffer"]; lime_graphics_console_IndexBuffer.prototype = { __class__: lime_graphics_console_IndexBuffer }; var lime_graphics_console_Primitive = $hxClasses["lime.graphics.console.Primitive"] = { __ename__ : ["lime","graphics","console","Primitive"], __constructs__ : ["Point","Line","LineStrip","Triangle","TriangleStrip"] }; lime_graphics_console_Primitive.Point = ["Point",0]; lime_graphics_console_Primitive.Point.toString = $estr; lime_graphics_console_Primitive.Point.__enum__ = lime_graphics_console_Primitive; lime_graphics_console_Primitive.Line = ["Line",1]; lime_graphics_console_Primitive.Line.toString = $estr; lime_graphics_console_Primitive.Line.__enum__ = lime_graphics_console_Primitive; lime_graphics_console_Primitive.LineStrip = ["LineStrip",2]; lime_graphics_console_Primitive.LineStrip.toString = $estr; lime_graphics_console_Primitive.LineStrip.__enum__ = lime_graphics_console_Primitive; lime_graphics_console_Primitive.Triangle = ["Triangle",3]; lime_graphics_console_Primitive.Triangle.toString = $estr; lime_graphics_console_Primitive.Triangle.__enum__ = lime_graphics_console_Primitive; lime_graphics_console_Primitive.TriangleStrip = ["TriangleStrip",4]; lime_graphics_console_Primitive.TriangleStrip.toString = $estr; lime_graphics_console_Primitive.TriangleStrip.__enum__ = lime_graphics_console_Primitive; lime_graphics_console_Primitive.__empty_constructs__ = [lime_graphics_console_Primitive.Point,lime_graphics_console_Primitive.Line,lime_graphics_console_Primitive.LineStrip,lime_graphics_console_Primitive.Triangle,lime_graphics_console_Primitive.TriangleStrip]; var lime_graphics_console_Shader = function() { }; $hxClasses["lime.graphics.console.Shader"] = lime_graphics_console_Shader; lime_graphics_console_Shader.__name__ = ["lime","graphics","console","Shader"]; lime_graphics_console_Shader.prototype = { __class__: lime_graphics_console_Shader }; var lime_graphics_console_VertexBuffer = function() { }; $hxClasses["lime.graphics.console.VertexBuffer"] = lime_graphics_console_VertexBuffer; lime_graphics_console_VertexBuffer.__name__ = ["lime","graphics","console","VertexBuffer"]; lime_graphics_console_VertexBuffer.prototype = { lock: function() { return new lime_graphics_console_VertexOutput(); } ,unlock: function() { } ,__class__: lime_graphics_console_VertexBuffer }; var lime_graphics_console_VertexOutput = function() { }; $hxClasses["lime.graphics.console.VertexOutput"] = lime_graphics_console_VertexOutput; lime_graphics_console_VertexOutput.__name__ = ["lime","graphics","console","VertexOutput"]; lime_graphics_console_VertexOutput.prototype = { vec2: function(x,y) { } ,vec3: function(x,y,z) { } ,color: function(r,g,b,a) { } ,__class__: lime_graphics_console_VertexOutput }; var lime_graphics_format_BMP = function() { }; $hxClasses["lime.graphics.format.BMP"] = lime_graphics_format_BMP; lime_graphics_format_BMP.__name__ = ["lime","graphics","format","BMP"]; lime_graphics_format_BMP.encode = function(image,type) { if(image.get_premultiplied() || image.get_format() != 0) { image = image.clone(); image.set_premultiplied(false); image.set_format(0); } if(type == null) { type = lime_graphics_format_BMPType.RGB; } var fileHeaderLength = 14; var infoHeaderLength = 40; var pixelValuesLength = image.width * image.height * 4; if(type != null) { switch(type[1]) { case 0: pixelValuesLength = image.width * 3 + image.width * 3 % 4 + image.height * 3 + image.height * 3; break; case 1: infoHeaderLength = 108; break; case 2: fileHeaderLength = 0; pixelValuesLength += image.width * image.height; break; } } var data = new haxe_io_Bytes(new ArrayBuffer(fileHeaderLength + infoHeaderLength + pixelValuesLength)); var position = 0; if(fileHeaderLength > 0) { data.b[position++] = 66; data.b[position++] = 77; data.setInt32(position,data.length); position += 4; data.setUInt16(position,0); position += 2; data.setUInt16(position,0); position += 2; data.setInt32(position,fileHeaderLength + infoHeaderLength); position += 4; } data.setInt32(position,infoHeaderLength); position += 4; data.setInt32(position,image.width); position += 4; data.setInt32(position,type == lime_graphics_format_BMPType.ICO ? image.height * 2 : image.height); position += 4; data.setUInt16(position,1); position += 2; data.setUInt16(position,type == lime_graphics_format_BMPType.RGB ? 24 : 32); position += 2; data.setInt32(position,type == lime_graphics_format_BMPType.BITFIELD ? 3 : 0); position += 4; data.setInt32(position,pixelValuesLength); position += 4; data.setInt32(position,11824); position += 4; data.setInt32(position,11824); position += 4; data.setInt32(position,0); position += 4; data.setInt32(position,0); position += 4; if(type == lime_graphics_format_BMPType.BITFIELD) { data.setInt32(position,16711680); position += 4; data.setInt32(position,65280); position += 4; data.setInt32(position,255); position += 4; data.setInt32(position,-16777216); position += 4; data.b[position++] = 32; data.b[position++] = 110; data.b[position++] = 105; data.b[position++] = 87; var _g = 0; while(_g < 48) { var i = _g++; data.b[position++] = 0; } } var pixels = image.getPixels(new lime_math_Rectangle(0,0,image.width,image.height),1); var readPosition = 0; var a; var r; var g; var b; if(type != null) { switch(type[1]) { case 0: var _g1 = 0; var _g2 = image.height; while(_g1 < _g2) { var y = _g1++; readPosition = (image.height - 1 - y) * 4 * image.width; var _g3 = 0; var _g21 = image.width; while(_g3 < _g21) { var x = _g3++; a = pixels.b[readPosition++]; r = pixels.b[readPosition++]; g = pixels.b[readPosition++]; b = pixels.b[readPosition++]; data.b[position++] = b & 255; data.b[position++] = g & 255; data.b[position++] = r & 255; } var _g31 = 0; var _g22 = image.width * 3 % 4; while(_g31 < _g22) { var i1 = _g31++; data.b[position++] = 0; } } break; case 1: var _g11 = 0; var _g4 = image.height; while(_g11 < _g4) { var y1 = _g11++; readPosition = (image.height - 1 - y1) * 4 * image.width; var _g32 = 0; var _g23 = image.width; while(_g32 < _g23) { var x1 = _g32++; a = pixels.b[readPosition++]; r = pixels.b[readPosition++]; g = pixels.b[readPosition++]; b = pixels.b[readPosition++]; data.b[position++] = b & 255; data.b[position++] = g & 255; data.b[position++] = r & 255; data.b[position++] = a & 255; } } break; case 2: var andMask = new haxe_io_Bytes(new ArrayBuffer(image.width * image.height)); var maskPosition = 0; var _g12 = 0; var _g5 = image.height; while(_g12 < _g5) { var y2 = _g12++; readPosition = (image.height - 1 - y2) * 4 * image.width; var _g33 = 0; var _g24 = image.width; while(_g33 < _g24) { var x2 = _g33++; a = pixels.b[readPosition++]; r = pixels.b[readPosition++]; g = pixels.b[readPosition++]; b = pixels.b[readPosition++]; data.b[position++] = b & 255; data.b[position++] = g & 255; data.b[position++] = r & 255; data.b[position++] = a & 255; andMask.b[maskPosition++] = 0; } } data.blit(position,andMask,0,image.width * image.height); break; } } return data; }; var lime_graphics_format_BMPType = $hxClasses["lime.graphics.format.BMPType"] = { __ename__ : ["lime","graphics","format","BMPType"], __constructs__ : ["RGB","BITFIELD","ICO"] }; lime_graphics_format_BMPType.RGB = ["RGB",0]; lime_graphics_format_BMPType.RGB.toString = $estr; lime_graphics_format_BMPType.RGB.__enum__ = lime_graphics_format_BMPType; lime_graphics_format_BMPType.BITFIELD = ["BITFIELD",1]; lime_graphics_format_BMPType.BITFIELD.toString = $estr; lime_graphics_format_BMPType.BITFIELD.__enum__ = lime_graphics_format_BMPType; lime_graphics_format_BMPType.ICO = ["ICO",2]; lime_graphics_format_BMPType.ICO.toString = $estr; lime_graphics_format_BMPType.ICO.__enum__ = lime_graphics_format_BMPType; lime_graphics_format_BMPType.__empty_constructs__ = [lime_graphics_format_BMPType.RGB,lime_graphics_format_BMPType.BITFIELD,lime_graphics_format_BMPType.ICO]; var lime_graphics_format_JPEG = function() { }; $hxClasses["lime.graphics.format.JPEG"] = lime_graphics_format_JPEG; lime_graphics_format_JPEG.__name__ = ["lime","graphics","format","JPEG"]; lime_graphics_format_JPEG.decodeBytes = function(bytes,decodeData) { if(decodeData == null) { decodeData = true; } return null; }; lime_graphics_format_JPEG.decodeFile = function(path,decodeData) { if(decodeData == null) { decodeData = true; } return null; }; lime_graphics_format_JPEG.encode = function(image,quality) { if(image.get_premultiplied() || image.get_format() != 0) { image = image.clone(); image.set_premultiplied(false); image.set_format(0); } lime_graphics_utils_ImageCanvasUtil.sync(image,false); if(image.buffer.__srcCanvas != null) { var data = image.buffer.__srcCanvas.toDataURL("image/jpeg",quality / 100); var buffer = window.atob(data.split(";base64,")[1]); var bytes = new haxe_io_Bytes(new ArrayBuffer(buffer.length)); var _g1 = 0; var _g = buffer.length; while(_g1 < _g) { var i = _g1++; var v = HxOverrides.cca(buffer,i); bytes.b[i] = v & 255; } return bytes; } return null; }; var lime_graphics_format_PNG = function() { }; $hxClasses["lime.graphics.format.PNG"] = lime_graphics_format_PNG; lime_graphics_format_PNG.__name__ = ["lime","graphics","format","PNG"]; lime_graphics_format_PNG.decodeBytes = function(bytes,decodeData) { if(decodeData == null) { decodeData = true; } return null; }; lime_graphics_format_PNG.decodeFile = function(path,decodeData) { if(decodeData == null) { decodeData = true; } return null; }; lime_graphics_format_PNG.encode = function(image) { if(image.get_premultiplied() || image.get_format() != 0) { image = image.clone(); image.set_premultiplied(false); image.set_format(0); } lime_graphics_utils_ImageCanvasUtil.sync(image,false); if(image.buffer.__srcCanvas != null) { var data = image.buffer.__srcCanvas.toDataURL("image/png"); var buffer = window.atob(data.split(";base64,")[1]); var bytes = new haxe_io_Bytes(new ArrayBuffer(buffer.length)); var _g1 = 0; var _g = buffer.length; while(_g1 < _g) { var i = _g1++; var v = HxOverrides.cca(buffer,i); bytes.b[i] = v & 255; } return bytes; } return null; }; var lime_graphics_opengl_GL = function() { }; $hxClasses["lime.graphics.opengl.GL"] = lime_graphics_opengl_GL; lime_graphics_opengl_GL.__name__ = ["lime","graphics","opengl","GL"]; lime_graphics_opengl_GL.__properties__ = {get_version:"get_version",get_type:"get_type"}; lime_graphics_opengl_GL.activeTexture = function(texture) { lime_graphics_opengl_GL.context.__context.activeTexture(texture); }; lime_graphics_opengl_GL.attachShader = function(program,shader) { lime_graphics_opengl_GL.context.__context.attachShader(program,shader); }; lime_graphics_opengl_GL.beginQuery = function(target,query) { lime_graphics_opengl_GL.context.__context.beginQuery(target,query); }; lime_graphics_opengl_GL.beginTransformFeedback = function(primitiveNode) { lime_graphics_opengl_GL.context.__context.beginTransformFeedback(primitiveNode); }; lime_graphics_opengl_GL.bindAttribLocation = function(program,index,name) { lime_graphics_opengl_GL.context.__context.bindAttribLocation(program,index,name); }; lime_graphics_opengl_GL.bindBuffer = function(target,buffer) { lime_graphics_opengl_GL.context.__context.bindBuffer(target,buffer); }; lime_graphics_opengl_GL.bindBufferBase = function(target,index,buffer) { lime_graphics_opengl_GL.context.__context.bindBufferBase(target,index,buffer); }; lime_graphics_opengl_GL.bindBufferRange = function(target,index,buffer,offset,size) { lime_graphics_opengl_GL.context.__context.bindBufferRange(target,index,buffer,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(size)); }; lime_graphics_opengl_GL.bindFramebuffer = function(target,framebuffer) { lime_graphics_opengl_GL.context.__context.bindFramebuffer(target,framebuffer); }; lime_graphics_opengl_GL.bindRenderbuffer = function(target,renderbuffer) { lime_graphics_opengl_GL.context.__context.bindRenderbuffer(target,renderbuffer); }; lime_graphics_opengl_GL.bindSampler = function(unit,sampler) { lime_graphics_opengl_GL.context.__context.bindSampler(unit,sampler); }; lime_graphics_opengl_GL.bindTexture = function(target,texture) { lime_graphics_opengl_GL.context.__context.bindTexture(target,texture); }; lime_graphics_opengl_GL.bindTransformFeedback = function(target,transformFeedback) { lime_graphics_opengl_GL.context.__context.bindTransformFeedback(target,transformFeedback); }; lime_graphics_opengl_GL.bindVertexArray = function(vertexArray) { lime_graphics_opengl_GL.context.__context.bindVertexArray(vertexArray); }; lime_graphics_opengl_GL.blitFramebuffer = function(srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter) { lime_graphics_opengl_GL.context.__context.blitFramebuffer(srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter); }; lime_graphics_opengl_GL.blendColor = function(red,green,blue,alpha) { lime_graphics_opengl_GL.context.__context.blendColor(red,green,blue,alpha); }; lime_graphics_opengl_GL.blendEquation = function(mode) { lime_graphics_opengl_GL.context.__context.blendEquation(mode); }; lime_graphics_opengl_GL.blendEquationSeparate = function(modeRGB,modeAlpha) { lime_graphics_opengl_GL.context.__context.blendEquationSeparate(modeRGB,modeAlpha); }; lime_graphics_opengl_GL.blendFunc = function(sfactor,dfactor) { lime_graphics_opengl_GL.context.__context.blendFunc(sfactor,dfactor); }; lime_graphics_opengl_GL.blendFuncSeparate = function(srcRGB,dstRGB,srcAlpha,dstAlpha) { lime_graphics_opengl_GL.context.__context.blendFuncSeparate(srcRGB,dstRGB,srcAlpha,dstAlpha); }; lime_graphics_opengl_GL.bufferData = function(target,size,srcData,usage) { lime_graphics_opengl_GL.context.__context.bufferData(target,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(srcData,size),usage); }; lime_graphics_opengl_GL.bufferDataWEBGL = function(target,srcData,usage,srcOffset,length) { lime_graphics_opengl_GL.context.bufferDataWEBGL(target,srcData,usage,srcOffset,length); }; lime_graphics_opengl_GL.bufferSubData = function(target,dstByteOffset,size,srcData) { lime_graphics_opengl_GL.context.__context.bufferSubData(target,dstByteOffset,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(srcData,size)); }; lime_graphics_opengl_GL.bufferSubDataWEBGL = function(target,dstByteOffset,srcData,srcOffset,length) { lime_graphics_opengl_GL.context.bufferSubDataWEBGL(target,dstByteOffset,srcData,srcOffset,length); }; lime_graphics_opengl_GL.checkFramebufferStatus = function(target) { return lime_graphics_opengl_GL.context.__context.checkFramebufferStatus(target); }; lime_graphics_opengl_GL.clear = function(mask) { lime_graphics_opengl_GL.context.__context.clear(mask); }; lime_graphics_opengl_GL.clearBufferfi = function(buffer,drawbuffer,depth,stencil) { lime_graphics_opengl_GL.context.__context.clearBufferfi(buffer,drawbuffer,depth,stencil); }; lime_graphics_opengl_GL.clearBufferfv = function(buffer,drawbuffer,value) { lime_graphics_opengl_GL.context.__context.clearBufferfv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(value)); }; lime_graphics_opengl_GL.clearBufferfvWEBGL = function(buffer,drawbuffer,values,srcOffset) { lime_graphics_opengl_GL.context.__context.clearBufferfv(buffer,drawbuffer,values,srcOffset); }; lime_graphics_opengl_GL.clearBufferiv = function(buffer,drawbuffer,value) { lime_graphics_opengl_GL.context.__context.clearBufferiv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(value)); }; lime_graphics_opengl_GL.clearBufferivWEBGL = function(buffer,drawbuffer,values,srcOffset) { lime_graphics_opengl_GL.context.__context.clearBufferiv(buffer,drawbuffer,values,srcOffset); }; lime_graphics_opengl_GL.clearBufferuiv = function(buffer,drawbuffer,value) { lime_graphics_opengl_GL.context.__context.clearBufferuiv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(value)); }; lime_graphics_opengl_GL.clearBufferuivWEBGL = function(buffer,drawbuffer,values,srcOffset) { lime_graphics_opengl_GL.context.__context.clearBufferuiv(buffer,drawbuffer,values,srcOffset); }; lime_graphics_opengl_GL.clearColor = function(red,green,blue,alpha) { lime_graphics_opengl_GL.context.__context.clearColor(red,green,blue,alpha); }; lime_graphics_opengl_GL.clearDepth = function(depth) { lime_graphics_opengl_GL.context.__context.clearDepth(depth); }; lime_graphics_opengl_GL.clearDepthf = function(depth) { lime_graphics_opengl_GL.context.__context.clearDepth(depth); }; lime_graphics_opengl_GL.clearStencil = function(s) { lime_graphics_opengl_GL.context.__context.clearStencil(s); }; lime_graphics_opengl_GL.clientWaitSync = function(sync,flags,timeout) { return lime_graphics_opengl_GL.context.__context.clientWaitSync(sync,flags,timeout); }; lime_graphics_opengl_GL.colorMask = function(red,green,blue,alpha) { lime_graphics_opengl_GL.context.__context.colorMask(red,green,blue,alpha); }; lime_graphics_opengl_GL.compileShader = function(shader) { lime_graphics_opengl_GL.context.__context.compileShader(shader); }; lime_graphics_opengl_GL.compressedTexImage2D = function(target,level,internalformat,width,height,border,imageSize,data) { lime_graphics_opengl_GL.context.__context.compressedTexImage2D(target,level,internalformat,width,height,border,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl_GL.compressedTexImage2DWEBGL = function(target,level,internalformat,width,height,border,srcData,srcOffset,srcLengthOverride) { lime_graphics_opengl_GL.context.compressedTexImage2DWEBGL(target,level,internalformat,width,height,border,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl_GL.compressedTexImage3D = function(target,level,internalformat,width,height,depth,border,imageSize,data) { lime_graphics_opengl_GL.context.__context.compressedTexImage3D(target,level,internalformat,width,height,depth,border,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl_GL.compressedTexImage3DWEBGL = function(target,level,internalformat,width,height,depth,border,srcData,srcOffset,srcLengthOverride) { lime_graphics_opengl_GL.context.__context.compressedTexImage3D(target,level,internalformat,width,height,depth,border,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl_GL.compressedTexSubImage2D = function(target,level,xoffset,yoffset,width,height,format,imageSize,data) { lime_graphics_opengl_GL.context.__context.compressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl_GL.compressedTexSubImage2DWEBGL = function(target,level,xoffset,yoffset,width,height,format,srcData,srcOffset,srcLengthOverride) { lime_graphics_opengl_GL.context.compressedTexSubImage2DWEBGL(target,level,xoffset,yoffset,width,height,format,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl_GL.compressedTexSubImage3D = function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,imageSize,data) { lime_graphics_opengl_GL.context.__context.compressedTexSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl_GL.compressedTexSubImage3DWEBGL = function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,srcData,srcOffset,srcLengthOverride) { lime_graphics_opengl_GL.context.__context.compressedTexSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl_GL.copyBufferSubData = function(readTarget,writeTarget,readOffset,writeOffset,size) { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.copyTexImage2D = function(target,level,internalformat,x,y,width,height,border) { lime_graphics_opengl_GL.context.__context.copyTexImage2D(target,level,internalformat,x,y,width,height,border); }; lime_graphics_opengl_GL.copyTexSubImage2D = function(target,level,xoffset,yoffset,x,y,width,height) { lime_graphics_opengl_GL.context.__context.copyTexSubImage2D(target,level,xoffset,yoffset,x,y,width,height); }; lime_graphics_opengl_GL.copyTexSubImage3D = function(target,level,xoffset,yoffset,zoffset,x,y,width,height) { lime_graphics_opengl_GL.context.__context.copyTexSubImage3D(target,level,xoffset,yoffset,zoffset,x,y,width,height); }; lime_graphics_opengl_GL.createBuffer = function() { return lime_graphics_opengl_GL.context.__context.createBuffer(); }; lime_graphics_opengl_GL.createFramebuffer = function() { return lime_graphics_opengl_GL.context.__context.createFramebuffer(); }; lime_graphics_opengl_GL.createProgram = function() { return lime_graphics_opengl_GL.context.__context.createProgram(); }; lime_graphics_opengl_GL.createQuery = function() { return lime_graphics_opengl_GL.context.__context.createQuery(); }; lime_graphics_opengl_GL.createRenderbuffer = function() { return lime_graphics_opengl_GL.context.__context.createRenderbuffer(); }; lime_graphics_opengl_GL.createSampler = function() { return lime_graphics_opengl_GL.context.__context.createSampler(); }; lime_graphics_opengl_GL.createShader = function(type) { return lime_graphics_opengl_GL.context.__context.createShader(type); }; lime_graphics_opengl_GL.createTexture = function() { return lime_graphics_opengl_GL.context.__context.createTexture(); }; lime_graphics_opengl_GL.createTransformFeedback = function() { return lime_graphics_opengl_GL.context.__context.createTransformFeedback(); }; lime_graphics_opengl_GL.createVertexArray = function() { return lime_graphics_opengl_GL.context.__context.createVertexArray(); }; lime_graphics_opengl_GL.cullFace = function(mode) { lime_graphics_opengl_GL.context.__context.cullFace(mode); }; lime_graphics_opengl_GL.deleteBuffer = function(buffer) { lime_graphics_opengl_GL.context.__context.deleteBuffer(buffer); }; lime_graphics_opengl_GL.deleteFramebuffer = function(framebuffer) { lime_graphics_opengl_GL.context.__context.deleteFramebuffer(framebuffer); }; lime_graphics_opengl_GL.deleteProgram = function(program) { lime_graphics_opengl_GL.context.__context.deleteProgram(program); }; lime_graphics_opengl_GL.deleteQuery = function(query) { lime_graphics_opengl_GL.context.__context.deleteQuery(query); }; lime_graphics_opengl_GL.deleteRenderbuffer = function(renderbuffer) { lime_graphics_opengl_GL.context.__context.deleteRenderbuffer(renderbuffer); }; lime_graphics_opengl_GL.deleteSampler = function(sampler) { lime_graphics_opengl_GL.context.__context.deleteSampler(sampler); }; lime_graphics_opengl_GL.deleteShader = function(shader) { lime_graphics_opengl_GL.context.__context.deleteShader(shader); }; lime_graphics_opengl_GL.deleteSync = function(sync) { lime_graphics_opengl_GL.context.__context.deleteSync(sync); }; lime_graphics_opengl_GL.deleteTexture = function(texture) { lime_graphics_opengl_GL.context.__context.deleteTexture(texture); }; lime_graphics_opengl_GL.deleteTransformFeedback = function(transformFeedback) { lime_graphics_opengl_GL.context.__context.deleteTransformFeedback(transformFeedback); }; lime_graphics_opengl_GL.deleteVertexArray = function(vertexArray) { lime_graphics_opengl_GL.context.__context.deleteVertexArray(vertexArray); }; lime_graphics_opengl_GL.depthFunc = function(func) { lime_graphics_opengl_GL.context.__context.depthFunc(func); }; lime_graphics_opengl_GL.depthMask = function(flag) { lime_graphics_opengl_GL.context.__context.depthMask(flag); }; lime_graphics_opengl_GL.depthRange = function(zNear,zFar) { lime_graphics_opengl_GL.context.__context.depthRange(zNear,zFar); }; lime_graphics_opengl_GL.depthRangef = function(zNear,zFar) { lime_graphics_opengl_GL.context.__context.depthRange(zNear,zFar); }; lime_graphics_opengl_GL.detachShader = function(program,shader) { lime_graphics_opengl_GL.context.__context.detachShader(program,shader); }; lime_graphics_opengl_GL.disable = function(cap) { lime_graphics_opengl_GL.context.__context.disable(cap); }; lime_graphics_opengl_GL.disableVertexAttribArray = function(index) { lime_graphics_opengl_GL.context.__context.disableVertexAttribArray(index); }; lime_graphics_opengl_GL.drawArrays = function(mode,first,count) { lime_graphics_opengl_GL.context.__context.drawArrays(mode,first,count); }; lime_graphics_opengl_GL.drawArraysInstanced = function(mode,first,count,instanceCount) { lime_graphics_opengl_GL.context.__context.drawArraysInstanced(mode,first,count,instanceCount); }; lime_graphics_opengl_GL.drawBuffers = function(buffers) { lime_graphics_opengl_GL.context.__context.drawBuffers(buffers); }; lime_graphics_opengl_GL.drawElements = function(mode,count,type,offset) { var _this = lime_graphics_opengl_GL.context; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(offset); _this.__context.drawElements(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); }; lime_graphics_opengl_GL.drawElementsInstanced = function(mode,count,type,offset,instanceCount) { lime_graphics_opengl_GL.context.__context.drawElementsInstanced(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),instanceCount); }; lime_graphics_opengl_GL.drawRangeElements = function(mode,start,end,count,type,offset) { lime_graphics_opengl_GL.context.__context.drawRangeElements(mode,start,end,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset))); }; lime_graphics_opengl_GL.enable = function(cap) { lime_graphics_opengl_GL.context.__context.enable(cap); }; lime_graphics_opengl_GL.enableVertexAttribArray = function(index) { lime_graphics_opengl_GL.context.__context.enableVertexAttribArray(index); }; lime_graphics_opengl_GL.endQuery = function(target) { lime_graphics_opengl_GL.context.__context.endQuery(target); }; lime_graphics_opengl_GL.endTransformFeedback = function() { lime_graphics_opengl_GL.context.__context.endTransformFeedback(); }; lime_graphics_opengl_GL.fenceSync = function(condition,flags) { return lime_graphics_opengl_GL.context.__context.fenceSync(condition,flags); }; lime_graphics_opengl_GL.finish = function() { lime_graphics_opengl_GL.context.__context.finish(); }; lime_graphics_opengl_GL.flush = function() { lime_graphics_opengl_GL.context.__context.flush(); }; lime_graphics_opengl_GL.framebufferRenderbuffer = function(target,attachment,renderbuffertarget,renderbuffer) { lime_graphics_opengl_GL.context.__context.framebufferRenderbuffer(target,attachment,renderbuffertarget,renderbuffer); }; lime_graphics_opengl_GL.framebufferTexture2D = function(target,attachment,textarget,texture,level) { lime_graphics_opengl_GL.context.__context.framebufferTexture2D(target,attachment,textarget,texture,level); }; lime_graphics_opengl_GL.framebufferTextureLayer = function(target,attachment,texture,level,layer) { lime_graphics_opengl_GL.context.__context.framebufferTextureLayer(target,attachment,texture,level,layer); }; lime_graphics_opengl_GL.frontFace = function(mode) { lime_graphics_opengl_GL.context.__context.frontFace(mode); }; lime_graphics_opengl_GL.generateMipmap = function(target) { lime_graphics_opengl_GL.context.__context.generateMipmap(target); }; lime_graphics_opengl_GL.getActiveAttrib = function(program,index) { return lime_graphics_opengl_GL.context.__context.getActiveAttrib(program,index); }; lime_graphics_opengl_GL.getActiveUniform = function(program,index) { return lime_graphics_opengl_GL.context.__context.getActiveUniform(program,index); }; lime_graphics_opengl_GL.getActiveUniformBlocki = function(program,uniformBlockIndex,pname) { return lime_graphics_opengl_GL.context.__context.getActiveUniformBlockParameter(program,uniformBlockIndex,pname); }; lime_graphics_opengl_GL.getActiveUniformBlockiv = function(program,uniformBlockIndex,pname,params) { lime_graphics_opengl_GL.context.getActiveUniformBlockiv(program,uniformBlockIndex,pname,params); }; lime_graphics_opengl_GL.getActiveUniformBlockName = function(program,uniformBlockIndex) { return lime_graphics_opengl_GL.context.__context.getActiveUniformBlockName(program,uniformBlockIndex); }; lime_graphics_opengl_GL.getActiveUniformBlockParameter = function(program,uniformBlockIndex,pname) { return lime_graphics_opengl_GL.context.__context.getActiveUniformBlockParameter(program,uniformBlockIndex,pname); }; lime_graphics_opengl_GL.getActiveUniforms = function(program,uniformIndices,pname) { return lime_graphics_opengl_GL.context.__context.getActiveUniforms(program,uniformIndices,pname); }; lime_graphics_opengl_GL.getActiveUniformsiv = function(program,uniformIndices,pname,params) { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.getAttachedShaders = function(program) { return lime_graphics_opengl_GL.context.__context.getAttachedShaders(program); }; lime_graphics_opengl_GL.getAttribLocation = function(program,name) { return lime_graphics_opengl_GL.context.__context.getAttribLocation(program,name); }; lime_graphics_opengl_GL.getBoolean = function(pname) { return lime_graphics_opengl_GL.context.__context.getParameter(pname); }; lime_graphics_opengl_GL.getBooleanv = function(pname,params) { lime_graphics_opengl_GL.context.getBooleanv(pname,params); }; lime_graphics_opengl_GL.getBufferParameter = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getBufferParameter(target,pname); }; lime_graphics_opengl_GL.getBufferParameteri = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getBufferParameter(target,pname); }; lime_graphics_opengl_GL.getBufferParameteri64v = function(target,pname,params) { lime_graphics_opengl_GL.context.getBufferParameteri64v(target,pname,params); return; }; lime_graphics_opengl_GL.getBufferParameteriv = function(target,pname,data) { lime_graphics_opengl_GL.context.getBufferParameteriv(target,pname,data); return; }; lime_graphics_opengl_GL.getBufferPointerv = function(target,pname) { var _this = lime_graphics_opengl_GL.context; return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); }; lime_graphics_opengl_GL.getBufferSubData = function(target,offset,size,data) { lime_graphics_opengl_GL.context.__context.getBufferSubData(target,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,size)); }; lime_graphics_opengl_GL.getBufferSubDataWEBGL = function(target,srcByteOffset,dstData,srcOffset,length) { lime_graphics_opengl_GL.context.getBufferSubDataWEBGL(target,srcByteOffset,dstData,srcOffset,length); }; lime_graphics_opengl_GL.getContextAttributes = function() { return lime_graphics_opengl_GL.context.__context.getContextAttributes(); }; lime_graphics_opengl_GL.getError = function() { return lime_graphics_opengl_GL.context.__context.getError(); }; lime_graphics_opengl_GL.getExtension = function(name) { return lime_graphics_opengl_GL.context.__context.getExtension(name); }; lime_graphics_opengl_GL.getFloat = function(pname) { return lime_graphics_opengl_GL.context.__context.getParameter(pname); }; lime_graphics_opengl_GL.getFloatv = function(pname,params) { lime_graphics_opengl_GL.context.getFloatv(pname,params); }; lime_graphics_opengl_GL.getFragDataLocation = function(program,name) { return lime_graphics_opengl_GL.context.__context.getFragDataLocation(program,name); }; lime_graphics_opengl_GL.getFramebufferAttachmentParameter = function(target,attachment,pname) { return lime_graphics_opengl_GL.context.__context.getFramebufferAttachmentParameter(target,attachment,pname); }; lime_graphics_opengl_GL.getFramebufferAttachmentParameteri = function(target,attachment,pname) { return lime_graphics_opengl_GL.context.__context.getFramebufferAttachmentParameter(target,attachment,pname); }; lime_graphics_opengl_GL.getFramebufferAttachmentParameteriv = function(target,attachment,pname,params) { lime_graphics_opengl_GL.context.getFramebufferAttachmentParameteriv(target,attachment,pname,params); }; lime_graphics_opengl_GL.getIndexedParameter = function(target,index) { return lime_graphics_opengl_GL.context.__context.getIndexedParameter(target,index); }; lime_graphics_opengl_GL.getInteger = function(pname) { return lime_graphics_opengl_GL.context.__context.getParameter(pname); }; lime_graphics_opengl_GL.getInteger64 = function(pname) { var _this = lime_graphics_opengl_GL.context; var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; }; lime_graphics_opengl_GL.getInteger64i = function(pname) { var _this = lime_graphics_opengl_GL.context; var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; }; lime_graphics_opengl_GL.getInteger64i_v = function(pname,index,params) { var _this = lime_graphics_opengl_GL.context; return; }; lime_graphics_opengl_GL.getInteger64v = function(pname,params) { lime_graphics_opengl_GL.context.getInteger64v(pname,params); return; }; lime_graphics_opengl_GL.getIntegeri_v = function(pname,index,params) { var _this = lime_graphics_opengl_GL.context; return; }; lime_graphics_opengl_GL.getIntegerv = function(pname,params) { lime_graphics_opengl_GL.context.getIntegerv(pname,params); }; lime_graphics_opengl_GL.getInternalformati = function(target,internalformat,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getInternalformativ = function(target,internalformat,pname,bufSize,params) { lime_graphics_opengl_GL.context.getInternalformativ(target,internalformat,pname,bufSize,params); }; lime_graphics_opengl_GL.getInternalformatParameter = function(target,internalformat,pname) { return lime_graphics_opengl_GL.context.__context.getInternalformatParameter(target,internalformat,pname); }; lime_graphics_opengl_GL.getParameter = function(pname) { return lime_graphics_opengl_GL.context.__context.getParameter(pname); }; lime_graphics_opengl_GL.getProgrami = function(program,pname) { return lime_graphics_opengl_GL.context.__context.getProgramParameter(program,pname); }; lime_graphics_opengl_GL.getProgramiv = function(program,pname,params) { lime_graphics_opengl_GL.context.getProgramiv(program,pname,params); }; lime_graphics_opengl_GL.getProgramBinary = function(program,binaryFormat) { var _this = lime_graphics_opengl_GL.context; return null; }; lime_graphics_opengl_GL.getProgramInfoLog = function(program) { return lime_graphics_opengl_GL.context.__context.getProgramInfoLog(program); }; lime_graphics_opengl_GL.getProgramParameter = function(program,pname) { return lime_graphics_opengl_GL.context.__context.getProgramParameter(program,pname); }; lime_graphics_opengl_GL.getQuery = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getQuery(target,pname); }; lime_graphics_opengl_GL.getQueryi = function(target,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getQueryiv = function(target,pname,params) { lime_graphics_opengl_GL.context.getQueryiv(target,pname,params); }; lime_graphics_opengl_GL.getQueryObjectui = function(query,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getQueryObjectuiv = function(query,pname,params) { lime_graphics_opengl_GL.context.getQueryObjectuiv(query,pname,params); }; lime_graphics_opengl_GL.getQueryParameter = function(query,pname) { return lime_graphics_opengl_GL.context.__context.getQueryParameter(query,pname); }; lime_graphics_opengl_GL.getRenderbufferParameter = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getRenderbufferParameter(target,pname); }; lime_graphics_opengl_GL.getRenderbufferParameteri = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getRenderbufferParameter(target,pname); }; lime_graphics_opengl_GL.getRenderbufferParameteriv = function(target,pname,params) { lime_graphics_opengl_GL.context.getRenderbufferParameteriv(target,pname,params); }; lime_graphics_opengl_GL.getSamplerParameter = function(sampler,pname) { return lime_graphics_opengl_GL.context.__context.getSamplerParameter(sampler,pname); }; lime_graphics_opengl_GL.getSamplerParameterf = function(sampler,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getSamplerParameterfv = function(sampler,pname,params) { lime_graphics_opengl_GL.context.getSamplerParameterfv(sampler,pname,params); }; lime_graphics_opengl_GL.getSamplerParameteri = function(sampler,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getSamplerParameteriv = function(sampler,pname,params) { lime_graphics_opengl_GL.context.getSamplerParameteriv(sampler,pname,params); }; lime_graphics_opengl_GL.getShaderi = function(shader,pname) { return lime_graphics_opengl_GL.context.__context.getShaderParameter(shader,pname); }; lime_graphics_opengl_GL.getShaderiv = function(shader,pname,params) { lime_graphics_opengl_GL.context.getShaderiv(shader,pname,params); }; lime_graphics_opengl_GL.getShaderInfoLog = function(shader) { return lime_graphics_opengl_GL.context.__context.getShaderInfoLog(shader); }; lime_graphics_opengl_GL.getShaderParameter = function(shader,pname) { return lime_graphics_opengl_GL.context.__context.getShaderParameter(shader,pname); }; lime_graphics_opengl_GL.getShaderPrecisionFormat = function(shadertype,precisiontype) { return lime_graphics_opengl_GL.context.__context.getShaderPrecisionFormat(shadertype,precisiontype); }; lime_graphics_opengl_GL.getShaderSource = function(shader) { return lime_graphics_opengl_GL.context.__context.getShaderSource(shader); }; lime_graphics_opengl_GL.getString = function(name) { return lime_graphics_opengl_GL.context.getString(name); }; lime_graphics_opengl_GL.getStringi = function(name,index) { var _this = lime_graphics_opengl_GL.context; return null; }; lime_graphics_opengl_GL.getSupportedExtensions = function() { return lime_graphics_opengl_GL.context.__context.getSupportedExtensions(); }; lime_graphics_opengl_GL.getSyncParameter = function(sync,pname) { return lime_graphics_opengl_GL.context.__context.getSyncParameter(sync,pname); }; lime_graphics_opengl_GL.getSyncParameteri = function(sync,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getSyncParameteriv = function(sync,pname,params) { lime_graphics_opengl_GL.context.getSyncParameteriv(sync,pname,params); }; lime_graphics_opengl_GL.getTexParameter = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getTexParameter(target,pname); }; lime_graphics_opengl_GL.getTexParameterf = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getTexParameter(target,pname); }; lime_graphics_opengl_GL.getTexParameterfv = function(target,pname,params) { lime_graphics_opengl_GL.context.getTexParameterfv(target,pname,params); }; lime_graphics_opengl_GL.getTexParameteri = function(target,pname) { return lime_graphics_opengl_GL.context.__context.getTexParameter(target,pname); }; lime_graphics_opengl_GL.getTexParameteriv = function(target,pname,params) { lime_graphics_opengl_GL.context.getTexParameteriv(target,pname,params); }; lime_graphics_opengl_GL.getTransformFeedbackVarying = function(program,index) { return lime_graphics_opengl_GL.context.__context.getTransformFeedbackVarying(program,index); }; lime_graphics_opengl_GL.getUniform = function(program,location) { return lime_graphics_opengl_GL.context.__context.getUniform(program,location); }; lime_graphics_opengl_GL.getUniformf = function(program,location) { return lime_graphics_opengl_GL.context.__context.getUniform(program,location); }; lime_graphics_opengl_GL.getUniformfv = function(program,location,params) { lime_graphics_opengl_GL.context.getUniformfv(program,location,params); }; lime_graphics_opengl_GL.getUniformi = function(program,location) { return lime_graphics_opengl_GL.context.__context.getUniform(program,location); }; lime_graphics_opengl_GL.getUniformiv = function(program,location,params) { lime_graphics_opengl_GL.context.getUniformiv(program,location,params); }; lime_graphics_opengl_GL.getUniformui = function(program,location) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getUniformuiv = function(program,location,params) { lime_graphics_opengl_GL.context.getUniformuiv(program,location,params); }; lime_graphics_opengl_GL.getUniformBlockIndex = function(program,uniformBlockName) { return lime_graphics_opengl_GL.context.__context.getUniformBlockIndex(program,uniformBlockName); }; lime_graphics_opengl_GL.getUniformIndices = function(program,uniformNames) { return lime_graphics_opengl_GL.context.__context.getUniformIndices(program,uniformNames); }; lime_graphics_opengl_GL.getUniformLocation = function(program,name) { return lime_graphics_opengl_GL.context.__context.getUniformLocation(program,name); }; lime_graphics_opengl_GL.getVertexAttrib = function(index,pname) { return lime_graphics_opengl_GL.context.__context.getVertexAttrib(index,pname); }; lime_graphics_opengl_GL.getVertexAttribf = function(index,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getVertexAttribfv = function(index,pname,params) { lime_graphics_opengl_GL.context.getVertexAttribfv(index,pname,params); }; lime_graphics_opengl_GL.getVertexAttribi = function(index,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getVertexAttribIi = function(index,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getVertexAttribIiv = function(index,pname,params) { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.getVertexAttribIui = function(index,pname) { var _this = lime_graphics_opengl_GL.context; return 0; }; lime_graphics_opengl_GL.getVertexAttribIuiv = function(index,pname,params) { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.getVertexAttribiv = function(index,pname,params) { lime_graphics_opengl_GL.context.getVertexAttribiv(index,pname,params); }; lime_graphics_opengl_GL.getVertexAttribOffset = function(index,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_graphics_opengl_GL.context.__context.getVertexAttribOffset(index,pname)); }; lime_graphics_opengl_GL.getVertexAttribPointerv = function(index,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_graphics_opengl_GL.context.__context.getVertexAttribOffset(index,pname)); }; lime_graphics_opengl_GL.hint = function(target,mode) { lime_graphics_opengl_GL.context.__context.hint(target,mode); }; lime_graphics_opengl_GL.invalidateFramebuffer = function(target,attachments) { lime_graphics_opengl_GL.context.__context.invalidateFramebuffer(target,attachments); }; lime_graphics_opengl_GL.invalidateSubFramebuffer = function(target,attachments,x,y,width,height) { lime_graphics_opengl_GL.context.__context.invalidateSubFramebuffer(target,attachments,x,y,width,height); }; lime_graphics_opengl_GL.isBuffer = function(buffer) { return lime_graphics_opengl_GL.context.__context.isBuffer(buffer); }; lime_graphics_opengl_GL.isContextLost = function() { var _this = lime_graphics_opengl_GL.context; if(!_this.__contextLost) { return _this.__context.isContextLost(); } else { return true; } }; lime_graphics_opengl_GL.isEnabled = function(cap) { return lime_graphics_opengl_GL.context.__context.isEnabled(cap); }; lime_graphics_opengl_GL.isFramebuffer = function(framebuffer) { return lime_graphics_opengl_GL.context.__context.isFramebuffer(framebuffer); }; lime_graphics_opengl_GL.isProgram = function(program) { return lime_graphics_opengl_GL.context.__context.isProgram(program); }; lime_graphics_opengl_GL.isQuery = function(query) { return lime_graphics_opengl_GL.context.__context.isQuery(query); }; lime_graphics_opengl_GL.isRenderbuffer = function(renderbuffer) { return lime_graphics_opengl_GL.context.__context.isRenderbuffer(renderbuffer); }; lime_graphics_opengl_GL.isSampler = function(sampler) { return lime_graphics_opengl_GL.context.__context.isSampler(sampler); }; lime_graphics_opengl_GL.isShader = function(shader) { return lime_graphics_opengl_GL.context.__context.isShader(shader); }; lime_graphics_opengl_GL.isSync = function(sync) { return lime_graphics_opengl_GL.context.__context.isSync(sync); }; lime_graphics_opengl_GL.isTexture = function(texture) { return lime_graphics_opengl_GL.context.__context.isTexture(texture); }; lime_graphics_opengl_GL.isTransformFeedback = function(transformFeedback) { return lime_graphics_opengl_GL.context.__context.isTransformFeedback(transformFeedback); }; lime_graphics_opengl_GL.isVertexArray = function(vertexArray) { return lime_graphics_opengl_GL.context.__context.isVertexArray(vertexArray); }; lime_graphics_opengl_GL.lineWidth = function(width) { lime_graphics_opengl_GL.context.__context.lineWidth(width); }; lime_graphics_opengl_GL.linkProgram = function(program) { lime_graphics_opengl_GL.context.__context.linkProgram(program); }; lime_graphics_opengl_GL.mapBufferRange = function(target,offset,length,access) { var _this = lime_graphics_opengl_GL.context; return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); }; lime_graphics_opengl_GL.pauseTransformFeedback = function() { lime_graphics_opengl_GL.context.__context.pauseTransformFeedback(); }; lime_graphics_opengl_GL.pixelStorei = function(pname,param) { lime_graphics_opengl_GL.context.__context.pixelStorei(pname,param); }; lime_graphics_opengl_GL.polygonOffset = function(factor,units) { lime_graphics_opengl_GL.context.__context.polygonOffset(factor,units); }; lime_graphics_opengl_GL.programBinary = function(program,binaryFormat,binary,length) { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.programParameteri = function(program,pname,value) { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.readBuffer = function(src) { lime_graphics_opengl_GL.context.__context.readBuffer(src); }; lime_graphics_opengl_GL.readPixels = function(x,y,width,height,format,type,pixels) { var _this = lime_graphics_opengl_GL.context; var pixels1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromBytesPointer(pixels); _this.__context.readPixels(x,y,width,height,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(pixels1)); }; lime_graphics_opengl_GL.readPixelsWEBGL = function(x,y,width,height,format,type,pixels,dstOffset) { lime_graphics_opengl_GL.context.readPixelsWEBGL(x,y,width,height,format,type,pixels,dstOffset); }; lime_graphics_opengl_GL.releaseShaderCompiler = function() { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.renderbufferStorage = function(target,internalformat,width,height) { lime_graphics_opengl_GL.context.__context.renderbufferStorage(target,internalformat,width,height); }; lime_graphics_opengl_GL.renderbufferStorageMultisample = function(target,samples,internalformat,width,height) { lime_graphics_opengl_GL.context.__context.renderbufferStorageMultisample(target,samples,internalformat,width,height); }; lime_graphics_opengl_GL.resumeTransformFeedback = function() { lime_graphics_opengl_GL.context.__context.resumeTransformFeedback(); }; lime_graphics_opengl_GL.sampleCoverage = function(value,invert) { lime_graphics_opengl_GL.context.__context.sampleCoverage(value,invert); }; lime_graphics_opengl_GL.samplerParameterf = function(sampler,pname,param) { lime_graphics_opengl_GL.context.__context.samplerParameterf(sampler,pname,param); }; lime_graphics_opengl_GL.samplerParameteri = function(sampler,pname,param) { lime_graphics_opengl_GL.context.__context.samplerParameteri(sampler,pname,param); }; lime_graphics_opengl_GL.scissor = function(x,y,width,height) { lime_graphics_opengl_GL.context.__context.scissor(x,y,width,height); }; lime_graphics_opengl_GL.shaderBinary = function(shaders,binaryformat,binary,length) { var _this = lime_graphics_opengl_GL.context; }; lime_graphics_opengl_GL.shaderSource = function(shader,source) { lime_graphics_opengl_GL.context.__context.shaderSource(shader,source); }; lime_graphics_opengl_GL.stencilFunc = function(func,ref,mask) { lime_graphics_opengl_GL.context.__context.stencilFunc(func,ref,mask); }; lime_graphics_opengl_GL.stencilFuncSeparate = function(face,func,ref,mask) { lime_graphics_opengl_GL.context.__context.stencilFuncSeparate(face,func,ref,mask); }; lime_graphics_opengl_GL.stencilMask = function(mask) { lime_graphics_opengl_GL.context.__context.stencilMask(mask); }; lime_graphics_opengl_GL.stencilMaskSeparate = function(face,mask) { lime_graphics_opengl_GL.context.__context.stencilMaskSeparate(face,mask); }; lime_graphics_opengl_GL.stencilOp = function(fail,zfail,zpass) { lime_graphics_opengl_GL.context.__context.stencilOp(fail,zfail,zpass); }; lime_graphics_opengl_GL.stencilOpSeparate = function(face,fail,zfail,zpass) { lime_graphics_opengl_GL.context.__context.stencilOpSeparate(face,fail,zfail,zpass); }; lime_graphics_opengl_GL.texImage2D = function(target,level,internalformat,width,height,border,format,type,data) { lime_graphics_opengl_GL.context.__context.texImage2D(target,level,internalformat,width,height,border,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl_GL.texImage2DWEBGL = function(target,level,internalformat,width,height,border,format,type,srcData,srcOffset) { lime_graphics_opengl_GL.context.texImage2DWEBGL(target,level,internalformat,width,height,border,format,type,srcData,srcOffset); }; lime_graphics_opengl_GL.texImage3D = function(target,level,internalformat,width,height,depth,border,format,type,data) { lime_graphics_opengl_GL.context.__context.texImage3D(target,level,internalformat,width,height,depth,border,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl_GL.texImage3DWEBGL = function(target,level,internalformat,width,height,depth,border,format,type,srcData,srcOffset) { lime_graphics_opengl_GL.context.__context.texImage3D(target,level,internalformat,width,height,depth,border,format,type,srcData,srcOffset); }; lime_graphics_opengl_GL.texStorage2D = function(target,level,internalformat,width,height) { lime_graphics_opengl_GL.context.__context.texStorage2D(target,level,internalformat,width,height); }; lime_graphics_opengl_GL.texStorage3D = function(target,level,internalformat,width,height,depth) { lime_graphics_opengl_GL.context.__context.texStorage3D(target,level,internalformat,width,height,depth); }; lime_graphics_opengl_GL.texParameterf = function(target,pname,param) { lime_graphics_opengl_GL.context.__context.texParameterf(target,pname,param); }; lime_graphics_opengl_GL.texParameteri = function(target,pname,param) { lime_graphics_opengl_GL.context.__context.texParameteri(target,pname,param); }; lime_graphics_opengl_GL.texSubImage2D = function(target,level,xoffset,yoffset,width,height,format,type,pixels) { var _this = lime_graphics_opengl_GL.context; var data = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(pixels); _this.__context.texSubImage2D(target,level,xoffset,yoffset,width,height,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl_GL.texSubImage2DWEBGL = function(target,level,xoffset,yoffset,width,height,format,type,srcData,srcOffset) { lime_graphics_opengl_GL.context.texSubImage2DWEBGL(target,level,xoffset,yoffset,width,height,format,type,srcData,srcOffset); }; lime_graphics_opengl_GL.texSubImage3D = function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,data) { lime_graphics_opengl_GL.context.__context.texSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl_GL.texSubImage3DWEBGL = function(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,source,srcOffset) { lime_graphics_opengl_GL.context.__context.texSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,source,srcOffset); }; lime_graphics_opengl_GL.transformFeedbackVaryings = function(program,varyings,bufferMode) { lime_graphics_opengl_GL.context.__context.transformFeedbackVaryings(program,varyings,bufferMode); }; lime_graphics_opengl_GL.uniform1f = function(location,v0) { lime_graphics_opengl_GL.context.__context.uniform1f(location,v0); }; lime_graphics_opengl_GL.uniform1fv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform1fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4)); }; lime_graphics_opengl_GL.uniform1fvWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform1fvWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform1i = function(location,v0) { lime_graphics_opengl_GL.context.__context.uniform1i(location,v0); }; lime_graphics_opengl_GL.uniform1iv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform1iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4)); }; lime_graphics_opengl_GL.uniform1ivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform1ivWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform1ui = function(location,v0) { lime_graphics_opengl_GL.context.__context.uniform1ui(location,v0); }; lime_graphics_opengl_GL.uniform1uiv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform1uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4)); }; lime_graphics_opengl_GL.uniform1uivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniform1uiv(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform2f = function(location,v0,v1) { lime_graphics_opengl_GL.context.__context.uniform2f(location,v0,v1); }; lime_graphics_opengl_GL.uniform2fv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform2fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 2)); }; lime_graphics_opengl_GL.uniform2fvWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform2fvWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform2i = function(location,x,y) { lime_graphics_opengl_GL.context.__context.uniform2i(location,x,y); }; lime_graphics_opengl_GL.uniform2iv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform2iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 2)); }; lime_graphics_opengl_GL.uniform2ivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform2ivWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform2ui = function(location,x,y) { lime_graphics_opengl_GL.context.__context.uniform2ui(location,x,y); }; lime_graphics_opengl_GL.uniform2uiv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform2uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 2)); }; lime_graphics_opengl_GL.uniform2uivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniform2uiv(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform3f = function(location,v0,v1,v2) { lime_graphics_opengl_GL.context.__context.uniform3f(location,v0,v1,v2); }; lime_graphics_opengl_GL.uniform3fv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform3fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 3)); }; lime_graphics_opengl_GL.uniform3fvWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform3fvWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform3i = function(location,v0,v1,v2) { lime_graphics_opengl_GL.context.__context.uniform3i(location,v0,v1,v2); }; lime_graphics_opengl_GL.uniform3iv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform3iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 3)); }; lime_graphics_opengl_GL.uniform3ivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform3ivWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform3ui = function(location,v0,v1,v2) { lime_graphics_opengl_GL.context.__context.uniform3ui(location,v0,v1,v2); }; lime_graphics_opengl_GL.uniform3uiv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform3uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 3)); }; lime_graphics_opengl_GL.uniform3uivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniform3uiv(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform4f = function(location,v0,v1,v2,v3) { lime_graphics_opengl_GL.context.__context.uniform4f(location,v0,v1,v2,v3); }; lime_graphics_opengl_GL.uniform4fv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform4fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 4)); }; lime_graphics_opengl_GL.uniform4fvWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform4fvWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform4i = function(location,v0,v1,v2,v3) { lime_graphics_opengl_GL.context.__context.uniform4i(location,v0,v1,v2,v3); }; lime_graphics_opengl_GL.uniform4iv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform4iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 4)); }; lime_graphics_opengl_GL.uniform4ivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniform4ivWEBGL(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniform4ui = function(location,v0,v1,v2,v3) { lime_graphics_opengl_GL.context.__context.uniform4ui(location,v0,v1,v2,v3); }; lime_graphics_opengl_GL.uniform4uiv = function(location,count,v) { lime_graphics_opengl_GL.context.__context.uniform4uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 4)); }; lime_graphics_opengl_GL.uniform4uivWEBGL = function(location,data,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniform4uiv(location,data,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformBlockBinding = function(program,uniformBlockIndex,uniformBlockBinding) { lime_graphics_opengl_GL.context.__context.uniformBlockBinding(program,uniformBlockIndex,uniformBlockBinding); }; lime_graphics_opengl_GL.uniformMatrix2fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 4)); }; lime_graphics_opengl_GL.uniformMatrix2fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniformMatrix2fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix2x3fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix2x3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 6)); }; lime_graphics_opengl_GL.uniformMatrix2x3fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniformMatrix2x3fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix2x4fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix2x4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 8)); }; lime_graphics_opengl_GL.uniformMatrix2x4fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniformMatrix2x4fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix3fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 9)); }; lime_graphics_opengl_GL.uniformMatrix3fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniformMatrix3fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix3x2fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix3x2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 6)); }; lime_graphics_opengl_GL.uniformMatrix3x2fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniformMatrix3x2fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix3x4fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix3x4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 12)); }; lime_graphics_opengl_GL.uniformMatrix3x4fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniformMatrix3x4fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix4fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 16)); }; lime_graphics_opengl_GL.uniformMatrix4fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniformMatrix4fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix4x2fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix4x2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 8)); }; lime_graphics_opengl_GL.uniformMatrix4x2fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.uniformMatrix4x2fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.uniformMatrix4x3fv = function(location,count,transpose,v) { lime_graphics_opengl_GL.context.__context.uniformMatrix4x3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 12)); }; lime_graphics_opengl_GL.uniformMatrix4x3fvWEBGL = function(location,transpose,v,srcOffset,srcLength) { lime_graphics_opengl_GL.context.__context.uniformMatrix4x3fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl_GL.unmapBuffer = function(target) { var _this = lime_graphics_opengl_GL.context; return false; }; lime_graphics_opengl_GL.useProgram = function(program) { lime_graphics_opengl_GL.__currentProgram = program; lime_graphics_opengl_GL.context.__context.useProgram(program); }; lime_graphics_opengl_GL.validateProgram = function(program) { lime_graphics_opengl_GL.context.__context.validateProgram(program); }; lime_graphics_opengl_GL.vertexAttrib1f = function(index,v0) { lime_graphics_opengl_GL.context.__context.vertexAttrib1f(index,v0); }; lime_graphics_opengl_GL.vertexAttrib1fv = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib1fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttrib1fvWEBGL = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib1fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttrib2f = function(index,v0,v1) { lime_graphics_opengl_GL.context.__context.vertexAttrib2f(index,v0,v1); }; lime_graphics_opengl_GL.vertexAttrib2fv = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib2fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttrib2fvWEBGL = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib2fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttrib3f = function(index,v0,v1,v2) { lime_graphics_opengl_GL.context.__context.vertexAttrib3f(index,v0,v1,v2); }; lime_graphics_opengl_GL.vertexAttrib3fv = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib3fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttrib3fvWEBGL = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib3fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttrib4f = function(index,v0,v1,v2,v3) { lime_graphics_opengl_GL.context.__context.vertexAttrib4f(index,v0,v1,v2,v3); }; lime_graphics_opengl_GL.vertexAttrib4fv = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib4fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttrib4fvWEBGL = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttrib4fv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl_GL.vertexAttribDivisor = function(index,divisor) { lime_graphics_opengl_GL.context.__context.vertexAttribDivisor(index,divisor); }; lime_graphics_opengl_GL.vertexAttribI4i = function(index,v0,v1,v2,v3) { lime_graphics_opengl_GL.context.__context.vertexAttribI4i(index,v0,v1,v2,v3); }; lime_graphics_opengl_GL.vertexAttribI4iv = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttribI4iv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v)); }; lime_graphics_opengl_GL.vertexAttribI4ivWEBGL = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttribI4iv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v)); }; lime_graphics_opengl_GL.vertexAttribI4ui = function(index,v0,v1,v2,v3) { lime_graphics_opengl_GL.context.__context.vertexAttribI4ui(index,v0,v1,v2,v3); }; lime_graphics_opengl_GL.vertexAttribI4uiv = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttribI4uiv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v)); }; lime_graphics_opengl_GL.vertexAttribI4uivWEBGL = function(index,v) { lime_graphics_opengl_GL.context.__context.vertexAttribI4uiv(index,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v)); }; lime_graphics_opengl_GL.vertexAttribIPointer = function(index,size,type,stride,offset) { lime_graphics_opengl_GL.context.__context.vertexAttribIPointer(index,size,type,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset))); }; lime_graphics_opengl_GL.vertexAttribPointer = function(index,size,type,normalized,stride,offset) { lime_graphics_opengl_GL.context.__context.vertexAttribPointer(index,size,type,normalized,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); }; lime_graphics_opengl_GL.viewport = function(x,y,width,height) { lime_graphics_opengl_GL.context.__context.viewport(x,y,width,height); }; lime_graphics_opengl_GL.waitSync = function(sync,flags,timeout) { lime_graphics_opengl_GL.context.__context.waitSync(sync,flags,timeout); }; lime_graphics_opengl_GL.get_type = function() { return lime_graphics_opengl_GL.context.type; }; lime_graphics_opengl_GL.get_version = function() { return lime_graphics_opengl_GL.context.version; }; lime_graphics_opengl_GL.__getObjectID = function(object) { if(object == null) { return 0; } else { return object.id; } }; var lime_graphics_opengl_GLContextType = $hxClasses["lime.graphics.opengl.GLContextType"] = { __ename__ : ["lime","graphics","opengl","GLContextType"], __constructs__ : ["OPENGL","GLES","WEBGL"] }; lime_graphics_opengl_GLContextType.OPENGL = ["OPENGL",0]; lime_graphics_opengl_GLContextType.OPENGL.toString = $estr; lime_graphics_opengl_GLContextType.OPENGL.__enum__ = lime_graphics_opengl_GLContextType; lime_graphics_opengl_GLContextType.GLES = ["GLES",1]; lime_graphics_opengl_GLContextType.GLES.toString = $estr; lime_graphics_opengl_GLContextType.GLES.__enum__ = lime_graphics_opengl_GLContextType; lime_graphics_opengl_GLContextType.WEBGL = ["WEBGL",2]; lime_graphics_opengl_GLContextType.WEBGL.toString = $estr; lime_graphics_opengl_GLContextType.WEBGL.__enum__ = lime_graphics_opengl_GLContextType; lime_graphics_opengl_GLContextType.__empty_constructs__ = [lime_graphics_opengl_GLContextType.OPENGL,lime_graphics_opengl_GLContextType.GLES,lime_graphics_opengl_GLContextType.WEBGL]; var lime_graphics_opengl__$GLES2Context_GLES2Context_$Impl_$ = {}; $hxClasses["lime.graphics.opengl._GLES2Context.GLES2Context_Impl_"] = lime_graphics_opengl__$GLES2Context_GLES2Context_$Impl_$; lime_graphics_opengl__$GLES2Context_GLES2Context_$Impl_$.__name__ = ["lime","graphics","opengl","_GLES2Context","GLES2Context_Impl_"]; lime_graphics_opengl__$GLES2Context_GLES2Context_$Impl_$.fromGL = function(gl) { return lime_graphics_opengl_GL.context; }; var lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$ = {}; $hxClasses["lime.graphics.opengl._GLES3Context.GLES3Context_Impl_"] = lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.__name__ = ["lime","graphics","opengl","_GLES3Context","GLES3Context_Impl_"]; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.__properties__ = {get_version:"get_version",get_type:"get_type",get_MAX_CLIENT_WAIT_TIMEOUT_WEBGL:"get_MAX_CLIENT_WAIT_TIMEOUT_WEBGL",get_TIMEOUT_IGNORED:"get_TIMEOUT_IGNORED",get_INVALID_INDEX:"get_INVALID_INDEX",get_DEPTH32F_STENCIL8:"get_DEPTH32F_STENCIL8",get_DEPTH_COMPONENT32F:"get_DEPTH_COMPONENT32F",get_DYNAMIC_COPY:"get_DYNAMIC_COPY",get_DYNAMIC_READ:"get_DYNAMIC_READ",get_STATIC_COPY:"get_STATIC_COPY",get_STATIC_READ:"get_STATIC_READ",get_STREAM_COPY:"get_STREAM_COPY",get_STREAM_READ:"get_STREAM_READ",get_DEPTH_COMPONENT24:"get_DEPTH_COMPONENT24",get_MAX:"get_MAX",get_MIN:"get_MIN",get_STENCIL:"get_STENCIL",get_DEPTH:"get_DEPTH",get_COLOR:"get_COLOR",get_SYNC_FLUSH_COMMANDS_BIT:"get_SYNC_FLUSH_COMMANDS_BIT",get_WAIT_FAILED:"get_WAIT_FAILED",get_CONDITION_SATISFIED:"get_CONDITION_SATISFIED",get_TIMEOUT_EXPIRED:"get_TIMEOUT_EXPIRED",get_ALREADY_SIGNALED:"get_ALREADY_SIGNALED",get_SIGNALED:"get_SIGNALED",get_UNSIGNALED:"get_UNSIGNALED",get_SYNC_GPU_COMMANDS_COMPLETE:"get_SYNC_GPU_COMMANDS_COMPLETE",get_SYNC_FENCE:"get_SYNC_FENCE",get_SYNC_FLAGS:"get_SYNC_FLAGS",get_SYNC_STATUS:"get_SYNC_STATUS",get_SYNC_CONDITION:"get_SYNC_CONDITION",get_OBJECT_TYPE:"get_OBJECT_TYPE",get_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:"get_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",get_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:"get_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",get_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:"get_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",get_UNIFORM_BLOCK_ACTIVE_UNIFORMS:"get_UNIFORM_BLOCK_ACTIVE_UNIFORMS",get_UNIFORM_BLOCK_DATA_SIZE:"get_UNIFORM_BLOCK_DATA_SIZE",get_UNIFORM_BLOCK_BINDING:"get_UNIFORM_BLOCK_BINDING",get_UNIFORM_IS_ROW_MAJOR:"get_UNIFORM_IS_ROW_MAJOR",get_UNIFORM_MATRIX_STRIDE:"get_UNIFORM_MATRIX_STRIDE",get_UNIFORM_ARRAY_STRIDE:"get_UNIFORM_ARRAY_STRIDE",get_UNIFORM_OFFSET:"get_UNIFORM_OFFSET",get_UNIFORM_BLOCK_INDEX:"get_UNIFORM_BLOCK_INDEX",get_UNIFORM_SIZE:"get_UNIFORM_SIZE",get_UNIFORM_TYPE:"get_UNIFORM_TYPE",get_ACTIVE_UNIFORM_BLOCKS:"get_ACTIVE_UNIFORM_BLOCKS",get_UNIFORM_BUFFER_OFFSET_ALIGNMENT:"get_UNIFORM_BUFFER_OFFSET_ALIGNMENT",get_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:"get_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",get_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:"get_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",get_MAX_UNIFORM_BLOCK_SIZE:"get_MAX_UNIFORM_BLOCK_SIZE",get_MAX_UNIFORM_BUFFER_BINDINGS:"get_MAX_UNIFORM_BUFFER_BINDINGS",get_MAX_COMBINED_UNIFORM_BLOCKS:"get_MAX_COMBINED_UNIFORM_BLOCKS",get_MAX_FRAGMENT_UNIFORM_BLOCKS:"get_MAX_FRAGMENT_UNIFORM_BLOCKS",get_MAX_VERTEX_UNIFORM_BLOCKS:"get_MAX_VERTEX_UNIFORM_BLOCKS",get_UNIFORM_BUFFER_SIZE:"get_UNIFORM_BUFFER_SIZE",get_UNIFORM_BUFFER_START:"get_UNIFORM_BUFFER_START",get_UNIFORM_BUFFER_BINDING:"get_UNIFORM_BUFFER_BINDING",get_UNIFORM_BUFFER:"get_UNIFORM_BUFFER",get_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:"get_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:"get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",get_RENDERBUFFER_SAMPLES:"get_RENDERBUFFER_SAMPLES",get_READ_FRAMEBUFFER_BINDING:"get_READ_FRAMEBUFFER_BINDING",get_DRAW_FRAMEBUFFER:"get_DRAW_FRAMEBUFFER",get_READ_FRAMEBUFFER:"get_READ_FRAMEBUFFER",get_DRAW_FRAMEBUFFER_BINDING:"get_DRAW_FRAMEBUFFER_BINDING",get_DEPTH24_STENCIL8:"get_DEPTH24_STENCIL8",get_FRAMEBUFFER_DEFAULT:"get_FRAMEBUFFER_DEFAULT",get_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:"get_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",get_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:"get_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",get_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:"get_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",get_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:"get_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",get_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:"get_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",get_FRAMEBUFFER_ATTACHMENT_RED_SIZE:"get_FRAMEBUFFER_ATTACHMENT_RED_SIZE",get_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:"get_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",get_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:"get_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",get_TRANSFORM_FEEDBACK_BINDING:"get_TRANSFORM_FEEDBACK_BINDING",get_TRANSFORM_FEEDBACK_ACTIVE:"get_TRANSFORM_FEEDBACK_ACTIVE",get_TRANSFORM_FEEDBACK_PAUSED:"get_TRANSFORM_FEEDBACK_PAUSED",get_TRANSFORM_FEEDBACK:"get_TRANSFORM_FEEDBACK",get_TRANSFORM_FEEDBACK_BUFFER_BINDING:"get_TRANSFORM_FEEDBACK_BUFFER_BINDING",get_TRANSFORM_FEEDBACK_BUFFER:"get_TRANSFORM_FEEDBACK_BUFFER",get_SEPARATE_ATTRIBS:"get_SEPARATE_ATTRIBS",get_INTERLEAVED_ATTRIBS:"get_INTERLEAVED_ATTRIBS",get_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:"get_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",get_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:"get_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",get_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:"get_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",get_TRANSFORM_FEEDBACK_BUFFER_SIZE:"get_TRANSFORM_FEEDBACK_BUFFER_SIZE",get_TRANSFORM_FEEDBACK_BUFFER_START:"get_TRANSFORM_FEEDBACK_BUFFER_START",get_TRANSFORM_FEEDBACK_VARYINGS:"get_TRANSFORM_FEEDBACK_VARYINGS",get_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:"get_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",get_TRANSFORM_FEEDBACK_BUFFER_MODE:"get_TRANSFORM_FEEDBACK_BUFFER_MODE",get_VERTEX_ATTRIB_ARRAY_DIVISOR:"get_VERTEX_ATTRIB_ARRAY_DIVISOR",get_VERTEX_ATTRIB_ARRAY_INTEGER:"get_VERTEX_ATTRIB_ARRAY_INTEGER",get_SIGNED_NORMALIZED:"get_SIGNED_NORMALIZED",get_UNSIGNED_NORMALIZED:"get_UNSIGNED_NORMALIZED",get_UNSIGNED_INT_VEC4:"get_UNSIGNED_INT_VEC4",get_UNSIGNED_INT_VEC3:"get_UNSIGNED_INT_VEC3",get_UNSIGNED_INT_VEC2:"get_UNSIGNED_INT_VEC2",get_FLOAT_MAT4x3:"get_FLOAT_MAT4x3",get_FLOAT_MAT4x2:"get_FLOAT_MAT4x2",get_FLOAT_MAT3x4:"get_FLOAT_MAT3x4",get_FLOAT_MAT3x2:"get_FLOAT_MAT3x2",get_FLOAT_MAT2x4:"get_FLOAT_MAT2x4",get_FLOAT_MAT2x3:"get_FLOAT_MAT2x3",get_COPY_WRITE_BUFFER_BINDING:"get_COPY_WRITE_BUFFER_BINDING",get_COPY_READ_BUFFER_BINDING:"get_COPY_READ_BUFFER_BINDING",get_COPY_WRITE_BUFFER:"get_COPY_WRITE_BUFFER",get_COPY_READ_BUFFER:"get_COPY_READ_BUFFER",get_PIXEL_UNPACK_BUFFER_BINDING:"get_PIXEL_UNPACK_BUFFER_BINDING",get_PIXEL_PACK_BUFFER_BINDING:"get_PIXEL_PACK_BUFFER_BINDING",get_PIXEL_UNPACK_BUFFER:"get_PIXEL_UNPACK_BUFFER",get_PIXEL_PACK_BUFFER:"get_PIXEL_PACK_BUFFER",get_SAMPLER_BINDING:"get_SAMPLER_BINDING",get_MAX_SAMPLES:"get_MAX_SAMPLES",get_UNSIGNED_INT_SAMPLER_2D_ARRAY:"get_UNSIGNED_INT_SAMPLER_2D_ARRAY",get_UNSIGNED_INT_SAMPLER_CUBE:"get_UNSIGNED_INT_SAMPLER_CUBE",get_UNSIGNED_INT_SAMPLER_3D:"get_UNSIGNED_INT_SAMPLER_3D",get_UNSIGNED_INT_SAMPLER_2D:"get_UNSIGNED_INT_SAMPLER_2D",get_INT_SAMPLER_2D_ARRAY:"get_INT_SAMPLER_2D_ARRAY",get_INT_SAMPLER_CUBE:"get_INT_SAMPLER_CUBE",get_INT_SAMPLER_3D:"get_INT_SAMPLER_3D",get_INT_SAMPLER_2D:"get_INT_SAMPLER_2D",get_SAMPLER_CUBE_SHADOW:"get_SAMPLER_CUBE_SHADOW",get_SAMPLER_2D_ARRAY_SHADOW:"get_SAMPLER_2D_ARRAY_SHADOW",get_SAMPLER_2D_ARRAY:"get_SAMPLER_2D_ARRAY",get_SAMPLER_2D_SHADOW:"get_SAMPLER_2D_SHADOW",get_SAMPLER_3D:"get_SAMPLER_3D",get_COLOR_ATTACHMENT15:"get_COLOR_ATTACHMENT15",get_COLOR_ATTACHMENT14:"get_COLOR_ATTACHMENT14",get_COLOR_ATTACHMENT13:"get_COLOR_ATTACHMENT13",get_COLOR_ATTACHMENT12:"get_COLOR_ATTACHMENT12",get_COLOR_ATTACHMENT11:"get_COLOR_ATTACHMENT11",get_COLOR_ATTACHMENT10:"get_COLOR_ATTACHMENT10",get_COLOR_ATTACHMENT9:"get_COLOR_ATTACHMENT9",get_COLOR_ATTACHMENT8:"get_COLOR_ATTACHMENT8",get_COLOR_ATTACHMENT7:"get_COLOR_ATTACHMENT7",get_COLOR_ATTACHMENT6:"get_COLOR_ATTACHMENT6",get_COLOR_ATTACHMENT5:"get_COLOR_ATTACHMENT5",get_COLOR_ATTACHMENT4:"get_COLOR_ATTACHMENT4",get_COLOR_ATTACHMENT3:"get_COLOR_ATTACHMENT3",get_COLOR_ATTACHMENT2:"get_COLOR_ATTACHMENT2",get_COLOR_ATTACHMENT1:"get_COLOR_ATTACHMENT1",get_MAX_COLOR_ATTACHMENTS:"get_MAX_COLOR_ATTACHMENTS",get_DRAW_BUFFER15:"get_DRAW_BUFFER15",get_DRAW_BUFFER14:"get_DRAW_BUFFER14",get_DRAW_BUFFER13:"get_DRAW_BUFFER13",get_DRAW_BUFFER12:"get_DRAW_BUFFER12",get_DRAW_BUFFER11:"get_DRAW_BUFFER11",get_DRAW_BUFFER10:"get_DRAW_BUFFER10",get_DRAW_BUFFER9:"get_DRAW_BUFFER9",get_DRAW_BUFFER8:"get_DRAW_BUFFER8",get_DRAW_BUFFER7:"get_DRAW_BUFFER7",get_DRAW_BUFFER6:"get_DRAW_BUFFER6",get_DRAW_BUFFER5:"get_DRAW_BUFFER5",get_DRAW_BUFFER4:"get_DRAW_BUFFER4",get_DRAW_BUFFER3:"get_DRAW_BUFFER3",get_DRAW_BUFFER2:"get_DRAW_BUFFER2",get_DRAW_BUFFER1:"get_DRAW_BUFFER1",get_DRAW_BUFFER0:"get_DRAW_BUFFER0",get_MAX_DRAW_BUFFERS:"get_MAX_DRAW_BUFFERS",get_ANY_SAMPLES_PASSED_CONSERVATIVE:"get_ANY_SAMPLES_PASSED_CONSERVATIVE",get_ANY_SAMPLES_PASSED:"get_ANY_SAMPLES_PASSED",get_QUERY_RESULT_AVAILABLE:"get_QUERY_RESULT_AVAILABLE",get_QUERY_RESULT:"get_QUERY_RESULT",get_CURRENT_QUERY:"get_CURRENT_QUERY",get_INT_2_10_10_10_REV:"get_INT_2_10_10_10_REV",get_RG_INTEGER:"get_RG_INTEGER",get_RG:"get_RG",get_HALF_FLOAT:"get_HALF_FLOAT",get_UNSIGNED_INT_24_8:"get_UNSIGNED_INT_24_8",get_FLOAT_32_UNSIGNED_INT_24_8_REV:"get_FLOAT_32_UNSIGNED_INT_24_8_REV",get_UNSIGNED_INT_5_9_9_9_REV:"get_UNSIGNED_INT_5_9_9_9_REV",get_UNSIGNED_INT_10F_11F_11F_REV:"get_UNSIGNED_INT_10F_11F_11F_REV",get_UNSIGNED_INT_2_10_10_10_REV:"get_UNSIGNED_INT_2_10_10_10_REV",get_TEXTURE_IMMUTABLE_LEVELS:"get_TEXTURE_IMMUTABLE_LEVELS",get_TEXTURE_IMMUTABLE_FORMAT:"get_TEXTURE_IMMUTABLE_FORMAT",get_RGB10_A2UI:"get_RGB10_A2UI",get_RGBA8_SNORM:"get_RGBA8_SNORM",get_RGB8_SNORM:"get_RGB8_SNORM",get_RG8_SNORM:"get_RG8_SNORM",get_R8_SNORM:"get_R8_SNORM",get_RG32UI:"get_RG32UI",get_RG32I:"get_RG32I",get_RG16UI:"get_RG16UI",get_RG16I:"get_RG16I",get_RG8UI:"get_RG8UI",get_RG8I:"get_RG8I",get_R32UI:"get_R32UI",get_R32I:"get_R32I",get_R16UI:"get_R16UI",get_R16I:"get_R16I",get_R8UI:"get_R8UI",get_R8I:"get_R8I",get_RG32F:"get_RG32F",get_RG16F:"get_RG16F",get_R32F:"get_R32F",get_R16F:"get_R16F",get_RG8:"get_RG8",get_R8:"get_R8",get_RGBA_INTEGER:"get_RGBA_INTEGER",get_RGB_INTEGER:"get_RGB_INTEGER",get_RED_INTEGER:"get_RED_INTEGER",get_RGB8I:"get_RGB8I",get_RGBA8I:"get_RGBA8I",get_RGB16I:"get_RGB16I",get_RGBA16I:"get_RGBA16I",get_RGB32I:"get_RGB32I",get_RGBA32I:"get_RGBA32I",get_RGB8UI:"get_RGB8UI",get_RGBA8UI:"get_RGBA8UI",get_RGB16UI:"get_RGB16UI",get_RGBA16UI:"get_RGBA16UI",get_RGB32UI:"get_RGB32UI",get_RGBA32UI:"get_RGBA32UI",get_RGB9_E5:"get_RGB9_E5",get_R11F_G11F_B10F:"get_R11F_G11F_B10F",get_TEXTURE_BINDING_2D_ARRAY:"get_TEXTURE_BINDING_2D_ARRAY",get_TEXTURE_2D_ARRAY:"get_TEXTURE_2D_ARRAY",get_RGB16F:"get_RGB16F",get_RGBA16F:"get_RGBA16F",get_RGB32F:"get_RGB32F",get_RGBA32F:"get_RGBA32F",get_COMPARE_REF_TO_TEXTURE:"get_COMPARE_REF_TO_TEXTURE",get_SRGB8_ALPHA8:"get_SRGB8_ALPHA8",get_SRGB8:"get_SRGB8",get_SRGB:"get_SRGB",get_TEXTURE_COMPARE_FUNC:"get_TEXTURE_COMPARE_FUNC",get_TEXTURE_COMPARE_MODE:"get_TEXTURE_COMPARE_MODE",get_TEXTURE_MAX_LEVEL:"get_TEXTURE_MAX_LEVEL",get_TEXTURE_BASE_LEVEL:"get_TEXTURE_BASE_LEVEL",get_TEXTURE_MAX_LOD:"get_TEXTURE_MAX_LOD",get_TEXTURE_MIN_LOD:"get_TEXTURE_MIN_LOD",get_TEXTURE_WRAP_R:"get_TEXTURE_WRAP_R",get_TEXTURE_3D:"get_TEXTURE_3D",get_RGB10_A2:"get_RGB10_A2",get_RGBA8:"get_RGBA8",get_RGB8:"get_RGB8",get_RED:"get_RED",get_MAX_ELEMENT_INDEX:"get_MAX_ELEMENT_INDEX",get_MAX_SERVER_WAIT_TIMEOUT:"get_MAX_SERVER_WAIT_TIMEOUT",get_MAX_FRAGMENT_INPUT_COMPONENTS:"get_MAX_FRAGMENT_INPUT_COMPONENTS",get_MAX_VERTEX_OUTPUT_COMPONENTS:"get_MAX_VERTEX_OUTPUT_COMPONENTS",get_VERTEX_ARRAY_BINDING:"get_VERTEX_ARRAY_BINDING",get_RASTERIZER_DISCARD:"get_RASTERIZER_DISCARD",get_FRAGMENT_SHADER_DERIVATIVE_HINT:"get_FRAGMENT_SHADER_DERIVATIVE_HINT",get_MAX_VARYING_COMPONENTS:"get_MAX_VARYING_COMPONENTS",get_MAX_PROGRAM_TEXEL_OFFSET:"get_MAX_PROGRAM_TEXEL_OFFSET",get_MIN_PROGRAM_TEXEL_OFFSET:"get_MIN_PROGRAM_TEXEL_OFFSET",get_MAX_ARRAY_TEXTURE_LAYERS:"get_MAX_ARRAY_TEXTURE_LAYERS",get_MAX_VERTEX_UNIFORM_COMPONENTS:"get_MAX_VERTEX_UNIFORM_COMPONENTS",get_MAX_FRAGMENT_UNIFORM_COMPONENTS:"get_MAX_FRAGMENT_UNIFORM_COMPONENTS",get_MAX_TEXTURE_LOD_BIAS:"get_MAX_TEXTURE_LOD_BIAS",get_MAX_ELEMENTS_INDICES:"get_MAX_ELEMENTS_INDICES",get_MAX_ELEMENTS_VERTICES:"get_MAX_ELEMENTS_VERTICES",get_MAX_3D_TEXTURE_SIZE:"get_MAX_3D_TEXTURE_SIZE",get_UNPACK_IMAGE_HEIGHT:"get_UNPACK_IMAGE_HEIGHT",get_UNPACK_SKIP_IMAGES:"get_UNPACK_SKIP_IMAGES",get_TEXTURE_BINDING_3D:"get_TEXTURE_BINDING_3D",get_PACK_SKIP_PIXELS:"get_PACK_SKIP_PIXELS",get_PACK_SKIP_ROWS:"get_PACK_SKIP_ROWS",get_PACK_ROW_LENGTH:"get_PACK_ROW_LENGTH",get_UNPACK_SKIP_PIXELS:"get_UNPACK_SKIP_PIXELS",get_UNPACK_SKIP_ROWS:"get_UNPACK_SKIP_ROWS",get_UNPACK_ROW_LENGTH:"get_UNPACK_ROW_LENGTH",get_READ_BUFFER:"get_READ_BUFFER",get_BROWSER_DEFAULT_WEBGL:"get_BROWSER_DEFAULT_WEBGL",get_UNPACK_COLORSPACE_CONVERSION_WEBGL:"get_UNPACK_COLORSPACE_CONVERSION_WEBGL",get_CONTEXT_LOST_WEBGL:"get_CONTEXT_LOST_WEBGL",get_UNPACK_PREMULTIPLY_ALPHA_WEBGL:"get_UNPACK_PREMULTIPLY_ALPHA_WEBGL",get_UNPACK_FLIP_Y_WEBGL:"get_UNPACK_FLIP_Y_WEBGL",get_INVALID_FRAMEBUFFER_OPERATION:"get_INVALID_FRAMEBUFFER_OPERATION",get_MAX_RENDERBUFFER_SIZE:"get_MAX_RENDERBUFFER_SIZE",get_RENDERBUFFER_BINDING:"get_RENDERBUFFER_BINDING",get_FRAMEBUFFER_BINDING:"get_FRAMEBUFFER_BINDING",get_FRAMEBUFFER_UNSUPPORTED:"get_FRAMEBUFFER_UNSUPPORTED",get_FRAMEBUFFER_INCOMPLETE_DIMENSIONS:"get_FRAMEBUFFER_INCOMPLETE_DIMENSIONS",get_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:"get_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",get_FRAMEBUFFER_INCOMPLETE_ATTACHMENT:"get_FRAMEBUFFER_INCOMPLETE_ATTACHMENT",get_FRAMEBUFFER_COMPLETE:"get_FRAMEBUFFER_COMPLETE",get_NONE:"get_NONE",get_DEPTH_STENCIL_ATTACHMENT:"get_DEPTH_STENCIL_ATTACHMENT",get_STENCIL_ATTACHMENT:"get_STENCIL_ATTACHMENT",get_DEPTH_ATTACHMENT:"get_DEPTH_ATTACHMENT",get_COLOR_ATTACHMENT0:"get_COLOR_ATTACHMENT0",get_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:"get_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:"get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",get_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:"get_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",get_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:"get_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",get_RENDERBUFFER_STENCIL_SIZE:"get_RENDERBUFFER_STENCIL_SIZE",get_RENDERBUFFER_DEPTH_SIZE:"get_RENDERBUFFER_DEPTH_SIZE",get_RENDERBUFFER_ALPHA_SIZE:"get_RENDERBUFFER_ALPHA_SIZE",get_RENDERBUFFER_BLUE_SIZE:"get_RENDERBUFFER_BLUE_SIZE",get_RENDERBUFFER_GREEN_SIZE:"get_RENDERBUFFER_GREEN_SIZE",get_RENDERBUFFER_RED_SIZE:"get_RENDERBUFFER_RED_SIZE",get_RENDERBUFFER_INTERNAL_FORMAT:"get_RENDERBUFFER_INTERNAL_FORMAT",get_RENDERBUFFER_HEIGHT:"get_RENDERBUFFER_HEIGHT",get_RENDERBUFFER_WIDTH:"get_RENDERBUFFER_WIDTH",get_DEPTH_STENCIL:"get_DEPTH_STENCIL",get_STENCIL_INDEX8:"get_STENCIL_INDEX8",get_STENCIL_INDEX:"get_STENCIL_INDEX",get_DEPTH_COMPONENT16:"get_DEPTH_COMPONENT16",get_RGB565:"get_RGB565",get_RGB5_A1:"get_RGB5_A1",get_RGBA4:"get_RGBA4",get_RENDERBUFFER:"get_RENDERBUFFER",get_FRAMEBUFFER:"get_FRAMEBUFFER",get_HIGH_INT:"get_HIGH_INT",get_MEDIUM_INT:"get_MEDIUM_INT",get_LOW_INT:"get_LOW_INT",get_HIGH_FLOAT:"get_HIGH_FLOAT",get_MEDIUM_FLOAT:"get_MEDIUM_FLOAT",get_LOW_FLOAT:"get_LOW_FLOAT",get_COMPILE_STATUS:"get_COMPILE_STATUS",get_POINT_SPRITE:"get_POINT_SPRITE",get_VERTEX_PROGRAM_POINT_SIZE:"get_VERTEX_PROGRAM_POINT_SIZE",get_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:"get_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",get_VERTEX_ATTRIB_ARRAY_POINTER:"get_VERTEX_ATTRIB_ARRAY_POINTER",get_VERTEX_ATTRIB_ARRAY_NORMALIZED:"get_VERTEX_ATTRIB_ARRAY_NORMALIZED",get_VERTEX_ATTRIB_ARRAY_TYPE:"get_VERTEX_ATTRIB_ARRAY_TYPE",get_VERTEX_ATTRIB_ARRAY_STRIDE:"get_VERTEX_ATTRIB_ARRAY_STRIDE",get_VERTEX_ATTRIB_ARRAY_SIZE:"get_VERTEX_ATTRIB_ARRAY_SIZE",get_VERTEX_ATTRIB_ARRAY_ENABLED:"get_VERTEX_ATTRIB_ARRAY_ENABLED",get_SAMPLER_CUBE:"get_SAMPLER_CUBE",get_SAMPLER_2D:"get_SAMPLER_2D",get_FLOAT_MAT4:"get_FLOAT_MAT4",get_FLOAT_MAT3:"get_FLOAT_MAT3",get_FLOAT_MAT2:"get_FLOAT_MAT2",get_BOOL_VEC4:"get_BOOL_VEC4",get_BOOL_VEC3:"get_BOOL_VEC3",get_BOOL_VEC2:"get_BOOL_VEC2",get_BOOL:"get_BOOL",get_INT_VEC4:"get_INT_VEC4",get_INT_VEC3:"get_INT_VEC3",get_INT_VEC2:"get_INT_VEC2",get_FLOAT_VEC4:"get_FLOAT_VEC4",get_FLOAT_VEC3:"get_FLOAT_VEC3",get_FLOAT_VEC2:"get_FLOAT_VEC2",get_MIRRORED_REPEAT:"get_MIRRORED_REPEAT",get_CLAMP_TO_EDGE:"get_CLAMP_TO_EDGE",get_REPEAT:"get_REPEAT",get_ACTIVE_TEXTURE:"get_ACTIVE_TEXTURE",get_TEXTURE31:"get_TEXTURE31",get_TEXTURE30:"get_TEXTURE30",get_TEXTURE29:"get_TEXTURE29",get_TEXTURE28:"get_TEXTURE28",get_TEXTURE27:"get_TEXTURE27",get_TEXTURE26:"get_TEXTURE26",get_TEXTURE25:"get_TEXTURE25",get_TEXTURE24:"get_TEXTURE24",get_TEXTURE23:"get_TEXTURE23",get_TEXTURE22:"get_TEXTURE22",get_TEXTURE21:"get_TEXTURE21",get_TEXTURE20:"get_TEXTURE20",get_TEXTURE19:"get_TEXTURE19",get_TEXTURE18:"get_TEXTURE18",get_TEXTURE17:"get_TEXTURE17",get_TEXTURE16:"get_TEXTURE16",get_TEXTURE15:"get_TEXTURE15",get_TEXTURE14:"get_TEXTURE14",get_TEXTURE13:"get_TEXTURE13",get_TEXTURE12:"get_TEXTURE12",get_TEXTURE11:"get_TEXTURE11",get_TEXTURE10:"get_TEXTURE10",get_TEXTURE9:"get_TEXTURE9",get_TEXTURE8:"get_TEXTURE8",get_TEXTURE7:"get_TEXTURE7",get_TEXTURE6:"get_TEXTURE6",get_TEXTURE5:"get_TEXTURE5",get_TEXTURE4:"get_TEXTURE4",get_TEXTURE3:"get_TEXTURE3",get_TEXTURE2:"get_TEXTURE2",get_TEXTURE1:"get_TEXTURE1",get_TEXTURE0:"get_TEXTURE0",get_MAX_CUBE_MAP_TEXTURE_SIZE:"get_MAX_CUBE_MAP_TEXTURE_SIZE",get_TEXTURE_CUBE_MAP_NEGATIVE_Z:"get_TEXTURE_CUBE_MAP_NEGATIVE_Z",get_TEXTURE_CUBE_MAP_POSITIVE_Z:"get_TEXTURE_CUBE_MAP_POSITIVE_Z",get_TEXTURE_CUBE_MAP_NEGATIVE_Y:"get_TEXTURE_CUBE_MAP_NEGATIVE_Y",get_TEXTURE_CUBE_MAP_POSITIVE_Y:"get_TEXTURE_CUBE_MAP_POSITIVE_Y",get_TEXTURE_CUBE_MAP_NEGATIVE_X:"get_TEXTURE_CUBE_MAP_NEGATIVE_X",get_TEXTURE_CUBE_MAP_POSITIVE_X:"get_TEXTURE_CUBE_MAP_POSITIVE_X",get_TEXTURE_BINDING_CUBE_MAP:"get_TEXTURE_BINDING_CUBE_MAP",get_TEXTURE_CUBE_MAP:"get_TEXTURE_CUBE_MAP",get_TEXTURE:"get_TEXTURE",get_TEXTURE_2D:"get_TEXTURE_2D",get_TEXTURE_WRAP_T:"get_TEXTURE_WRAP_T",get_TEXTURE_WRAP_S:"get_TEXTURE_WRAP_S",get_TEXTURE_MIN_FILTER:"get_TEXTURE_MIN_FILTER",get_TEXTURE_MAG_FILTER:"get_TEXTURE_MAG_FILTER",get_LINEAR_MIPMAP_LINEAR:"get_LINEAR_MIPMAP_LINEAR",get_NEAREST_MIPMAP_LINEAR:"get_NEAREST_MIPMAP_LINEAR",get_LINEAR_MIPMAP_NEAREST:"get_LINEAR_MIPMAP_NEAREST",get_NEAREST_MIPMAP_NEAREST:"get_NEAREST_MIPMAP_NEAREST",get_LINEAR:"get_LINEAR",get_NEAREST:"get_NEAREST",get_VERSION:"get_VERSION",get_RENDERER:"get_RENDERER",get_VENDOR:"get_VENDOR",get_DECR_WRAP:"get_DECR_WRAP",get_INCR_WRAP:"get_INCR_WRAP",get_INVERT:"get_INVERT",get_DECR:"get_DECR",get_INCR:"get_INCR",get_REPLACE:"get_REPLACE",get_KEEP:"get_KEEP",get_ALWAYS:"get_ALWAYS",get_GEQUAL:"get_GEQUAL",get_NOTEQUAL:"get_NOTEQUAL",get_GREATER:"get_GREATER",get_LEQUAL:"get_LEQUAL",get_EQUAL:"get_EQUAL",get_LESS:"get_LESS",get_NEVER:"get_NEVER",get_CURRENT_PROGRAM:"get_CURRENT_PROGRAM",get_SHADING_LANGUAGE_VERSION:"get_SHADING_LANGUAGE_VERSION",get_ACTIVE_ATTRIBUTES:"get_ACTIVE_ATTRIBUTES",get_ACTIVE_UNIFORMS:"get_ACTIVE_UNIFORMS",get_ATTACHED_SHADERS:"get_ATTACHED_SHADERS",get_VALIDATE_STATUS:"get_VALIDATE_STATUS",get_LINK_STATUS:"get_LINK_STATUS",get_DELETE_STATUS:"get_DELETE_STATUS",get_SHADER_TYPE:"get_SHADER_TYPE",get_MAX_FRAGMENT_UNIFORM_VECTORS:"get_MAX_FRAGMENT_UNIFORM_VECTORS",get_MAX_TEXTURE_IMAGE_UNITS:"get_MAX_TEXTURE_IMAGE_UNITS",get_MAX_VERTEX_TEXTURE_IMAGE_UNITS:"get_MAX_VERTEX_TEXTURE_IMAGE_UNITS",get_MAX_COMBINED_TEXTURE_IMAGE_UNITS:"get_MAX_COMBINED_TEXTURE_IMAGE_UNITS",get_MAX_VARYING_VECTORS:"get_MAX_VARYING_VECTORS",get_MAX_VERTEX_UNIFORM_VECTORS:"get_MAX_VERTEX_UNIFORM_VECTORS",get_MAX_VERTEX_ATTRIBS:"get_MAX_VERTEX_ATTRIBS",get_VERTEX_SHADER:"get_VERTEX_SHADER",get_FRAGMENT_SHADER:"get_FRAGMENT_SHADER",get_UNSIGNED_SHORT_5_6_5:"get_UNSIGNED_SHORT_5_6_5",get_UNSIGNED_SHORT_5_5_5_1:"get_UNSIGNED_SHORT_5_5_5_1",get_UNSIGNED_SHORT_4_4_4_4:"get_UNSIGNED_SHORT_4_4_4_4",get_LUMINANCE_ALPHA:"get_LUMINANCE_ALPHA",get_LUMINANCE:"get_LUMINANCE",get_RGBA:"get_RGBA",get_RGB:"get_RGB",get_ALPHA:"get_ALPHA",get_DEPTH_COMPONENT:"get_DEPTH_COMPONENT",get_FLOAT:"get_FLOAT",get_UNSIGNED_INT:"get_UNSIGNED_INT",get_INT:"get_INT",get_UNSIGNED_SHORT:"get_UNSIGNED_SHORT",get_SHORT:"get_SHORT",get_UNSIGNED_BYTE:"get_UNSIGNED_BYTE",get_BYTE:"get_BYTE",get_GENERATE_MIPMAP_HINT:"get_GENERATE_MIPMAP_HINT",get_NICEST:"get_NICEST",get_FASTEST:"get_FASTEST",get_DONT_CARE:"get_DONT_CARE",get_COMPRESSED_TEXTURE_FORMATS:"get_COMPRESSED_TEXTURE_FORMATS",get_SAMPLE_COVERAGE_INVERT:"get_SAMPLE_COVERAGE_INVERT",get_SAMPLE_COVERAGE_VALUE:"get_SAMPLE_COVERAGE_VALUE",get_SAMPLES:"get_SAMPLES",get_SAMPLE_BUFFERS:"get_SAMPLE_BUFFERS",get_TEXTURE_BINDING_2D:"get_TEXTURE_BINDING_2D",get_POLYGON_OFFSET_FACTOR:"get_POLYGON_OFFSET_FACTOR",get_POLYGON_OFFSET_UNITS:"get_POLYGON_OFFSET_UNITS",get_STENCIL_BITS:"get_STENCIL_BITS",get_DEPTH_BITS:"get_DEPTH_BITS",get_ALPHA_BITS:"get_ALPHA_BITS",get_BLUE_BITS:"get_BLUE_BITS",get_GREEN_BITS:"get_GREEN_BITS",get_RED_BITS:"get_RED_BITS",get_SUBPIXEL_BITS:"get_SUBPIXEL_BITS",get_MAX_VIEWPORT_DIMS:"get_MAX_VIEWPORT_DIMS",get_MAX_TEXTURE_SIZE:"get_MAX_TEXTURE_SIZE",get_PACK_ALIGNMENT:"get_PACK_ALIGNMENT",get_UNPACK_ALIGNMENT:"get_UNPACK_ALIGNMENT",get_COLOR_WRITEMASK:"get_COLOR_WRITEMASK",get_COLOR_CLEAR_VALUE:"get_COLOR_CLEAR_VALUE",get_SCISSOR_BOX:"get_SCISSOR_BOX",get_VIEWPORT:"get_VIEWPORT",get_STENCIL_BACK_WRITEMASK:"get_STENCIL_BACK_WRITEMASK",get_STENCIL_BACK_VALUE_MASK:"get_STENCIL_BACK_VALUE_MASK",get_STENCIL_BACK_REF:"get_STENCIL_BACK_REF",get_STENCIL_BACK_PASS_DEPTH_PASS:"get_STENCIL_BACK_PASS_DEPTH_PASS",get_STENCIL_BACK_PASS_DEPTH_FAIL:"get_STENCIL_BACK_PASS_DEPTH_FAIL",get_STENCIL_BACK_FAIL:"get_STENCIL_BACK_FAIL",get_STENCIL_BACK_FUNC:"get_STENCIL_BACK_FUNC",get_STENCIL_WRITEMASK:"get_STENCIL_WRITEMASK",get_STENCIL_VALUE_MASK:"get_STENCIL_VALUE_MASK",get_STENCIL_REF:"get_STENCIL_REF",get_STENCIL_PASS_DEPTH_PASS:"get_STENCIL_PASS_DEPTH_PASS",get_STENCIL_PASS_DEPTH_FAIL:"get_STENCIL_PASS_DEPTH_FAIL",get_STENCIL_FAIL:"get_STENCIL_FAIL",get_STENCIL_FUNC:"get_STENCIL_FUNC",get_STENCIL_CLEAR_VALUE:"get_STENCIL_CLEAR_VALUE",get_DEPTH_FUNC:"get_DEPTH_FUNC",get_DEPTH_CLEAR_VALUE:"get_DEPTH_CLEAR_VALUE",get_DEPTH_WRITEMASK:"get_DEPTH_WRITEMASK",get_DEPTH_RANGE:"get_DEPTH_RANGE",get_FRONT_FACE:"get_FRONT_FACE",get_CULL_FACE_MODE:"get_CULL_FACE_MODE",get_ALIASED_LINE_WIDTH_RANGE:"get_ALIASED_LINE_WIDTH_RANGE",get_ALIASED_POINT_SIZE_RANGE:"get_ALIASED_POINT_SIZE_RANGE",get_LINE_WIDTH:"get_LINE_WIDTH",get_CCW:"get_CCW",get_CW:"get_CW",get_OUT_OF_MEMORY:"get_OUT_OF_MEMORY",get_INVALID_OPERATION:"get_INVALID_OPERATION",get_INVALID_VALUE:"get_INVALID_VALUE",get_INVALID_ENUM:"get_INVALID_ENUM",get_NO_ERROR:"get_NO_ERROR",get_SAMPLE_COVERAGE:"get_SAMPLE_COVERAGE",get_SAMPLE_ALPHA_TO_COVERAGE:"get_SAMPLE_ALPHA_TO_COVERAGE",get_POLYGON_OFFSET_FILL:"get_POLYGON_OFFSET_FILL",get_SCISSOR_TEST:"get_SCISSOR_TEST",get_DEPTH_TEST:"get_DEPTH_TEST",get_STENCIL_TEST:"get_STENCIL_TEST",get_DITHER:"get_DITHER",get_BLEND:"get_BLEND",get_CULL_FACE:"get_CULL_FACE",get_FRONT_AND_BACK:"get_FRONT_AND_BACK",get_BACK:"get_BACK",get_FRONT:"get_FRONT",get_CURRENT_VERTEX_ATTRIB:"get_CURRENT_VERTEX_ATTRIB",get_BUFFER_USAGE:"get_BUFFER_USAGE",get_BUFFER_SIZE:"get_BUFFER_SIZE",get_DYNAMIC_DRAW:"get_DYNAMIC_DRAW",get_STATIC_DRAW:"get_STATIC_DRAW",get_STREAM_DRAW:"get_STREAM_DRAW",get_ELEMENT_ARRAY_BUFFER_BINDING:"get_ELEMENT_ARRAY_BUFFER_BINDING",get_ARRAY_BUFFER_BINDING:"get_ARRAY_BUFFER_BINDING",get_ELEMENT_ARRAY_BUFFER:"get_ELEMENT_ARRAY_BUFFER",get_ARRAY_BUFFER:"get_ARRAY_BUFFER",get_BLEND_COLOR:"get_BLEND_COLOR",get_ONE_MINUS_CONSTANT_ALPHA:"get_ONE_MINUS_CONSTANT_ALPHA",get_CONSTANT_ALPHA:"get_CONSTANT_ALPHA",get_ONE_MINUS_CONSTANT_COLOR:"get_ONE_MINUS_CONSTANT_COLOR",get_CONSTANT_COLOR:"get_CONSTANT_COLOR",get_BLEND_SRC_ALPHA:"get_BLEND_SRC_ALPHA",get_BLEND_DST_ALPHA:"get_BLEND_DST_ALPHA",get_BLEND_SRC_RGB:"get_BLEND_SRC_RGB",get_BLEND_DST_RGB:"get_BLEND_DST_RGB",get_FUNC_REVERSE_SUBTRACT:"get_FUNC_REVERSE_SUBTRACT",get_FUNC_SUBTRACT:"get_FUNC_SUBTRACT",get_BLEND_EQUATION_ALPHA:"get_BLEND_EQUATION_ALPHA",get_BLEND_EQUATION_RGB:"get_BLEND_EQUATION_RGB",get_BLEND_EQUATION:"get_BLEND_EQUATION",get_FUNC_ADD:"get_FUNC_ADD",get_SRC_ALPHA_SATURATE:"get_SRC_ALPHA_SATURATE",get_ONE_MINUS_DST_COLOR:"get_ONE_MINUS_DST_COLOR",get_DST_COLOR:"get_DST_COLOR",get_ONE_MINUS_DST_ALPHA:"get_ONE_MINUS_DST_ALPHA",get_DST_ALPHA:"get_DST_ALPHA",get_ONE_MINUS_SRC_ALPHA:"get_ONE_MINUS_SRC_ALPHA",get_SRC_ALPHA:"get_SRC_ALPHA",get_ONE_MINUS_SRC_COLOR:"get_ONE_MINUS_SRC_COLOR",get_SRC_COLOR:"get_SRC_COLOR",get_ONE:"get_ONE",get_ZERO:"get_ZERO",get_TRIANGLE_FAN:"get_TRIANGLE_FAN",get_TRIANGLE_STRIP:"get_TRIANGLE_STRIP",get_TRIANGLES:"get_TRIANGLES",get_LINE_STRIP:"get_LINE_STRIP",get_LINE_LOOP:"get_LINE_LOOP",get_LINES:"get_LINES",get_POINTS:"get_POINTS",get_COLOR_BUFFER_BIT:"get_COLOR_BUFFER_BIT",get_STENCIL_BUFFER_BIT:"get_STENCIL_BUFFER_BIT",get_DEPTH_BUFFER_BIT:"get_DEPTH_BUFFER_BIT",get_EXTENSIONS:"get_EXTENSIONS"}; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_EXTENSIONS = function(this1) { return 7939; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_BUFFER_BIT = function(this1) { return this1.DEPTH_BUFFER_BIT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BUFFER_BIT = function(this1) { return this1.STENCIL_BUFFER_BIT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_BUFFER_BIT = function(this1) { return this1.COLOR_BUFFER_BIT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_POINTS = function(this1) { return this1.POINTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINES = function(this1) { return this1.LINES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINE_LOOP = function(this1) { return this1.LINE_LOOP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINE_STRIP = function(this1) { return this1.LINE_STRIP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRIANGLES = function(this1) { return this1.TRIANGLES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRIANGLE_STRIP = function(this1) { return this1.TRIANGLE_STRIP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRIANGLE_FAN = function(this1) { return this1.TRIANGLE_FAN; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ZERO = function(this1) { return this1.ZERO; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ONE = function(this1) { return this1.ONE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SRC_COLOR = function(this1) { return this1.SRC_COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ONE_MINUS_SRC_COLOR = function(this1) { return this1.ONE_MINUS_SRC_COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SRC_ALPHA = function(this1) { return this1.SRC_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ONE_MINUS_SRC_ALPHA = function(this1) { return this1.ONE_MINUS_SRC_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DST_ALPHA = function(this1) { return this1.DST_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ONE_MINUS_DST_ALPHA = function(this1) { return this1.ONE_MINUS_DST_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DST_COLOR = function(this1) { return this1.DST_COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ONE_MINUS_DST_COLOR = function(this1) { return this1.ONE_MINUS_DST_COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SRC_ALPHA_SATURATE = function(this1) { return this1.SRC_ALPHA_SATURATE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FUNC_ADD = function(this1) { return this1.FUNC_ADD; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_EQUATION = function(this1) { return this1.BLEND_EQUATION; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_EQUATION_RGB = function(this1) { return this1.BLEND_EQUATION_RGB; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_EQUATION_ALPHA = function(this1) { return this1.BLEND_EQUATION_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FUNC_SUBTRACT = function(this1) { return this1.FUNC_SUBTRACT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FUNC_REVERSE_SUBTRACT = function(this1) { return this1.FUNC_REVERSE_SUBTRACT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_DST_RGB = function(this1) { return this1.BLEND_DST_RGB; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_SRC_RGB = function(this1) { return this1.BLEND_SRC_RGB; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_DST_ALPHA = function(this1) { return this1.BLEND_DST_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_SRC_ALPHA = function(this1) { return this1.BLEND_SRC_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CONSTANT_COLOR = function(this1) { return this1.CONSTANT_COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ONE_MINUS_CONSTANT_COLOR = function(this1) { return this1.ONE_MINUS_CONSTANT_COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CONSTANT_ALPHA = function(this1) { return this1.CONSTANT_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ONE_MINUS_CONSTANT_ALPHA = function(this1) { return this1.ONE_MINUS_CONSTANT_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND_COLOR = function(this1) { return this1.BLEND_COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ARRAY_BUFFER = function(this1) { return this1.ARRAY_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ELEMENT_ARRAY_BUFFER = function(this1) { return this1.ELEMENT_ARRAY_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ARRAY_BUFFER_BINDING = function(this1) { return this1.ARRAY_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ELEMENT_ARRAY_BUFFER_BINDING = function(this1) { return this1.ELEMENT_ARRAY_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STREAM_DRAW = function(this1) { return this1.STREAM_DRAW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STATIC_DRAW = function(this1) { return this1.STATIC_DRAW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DYNAMIC_DRAW = function(this1) { return this1.DYNAMIC_DRAW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BUFFER_SIZE = function(this1) { return this1.BUFFER_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BUFFER_USAGE = function(this1) { return this1.BUFFER_USAGE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CURRENT_VERTEX_ATTRIB = function(this1) { return this1.CURRENT_VERTEX_ATTRIB; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRONT = function(this1) { return this1.FRONT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BACK = function(this1) { return this1.BACK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRONT_AND_BACK = function(this1) { return this1.FRONT_AND_BACK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CULL_FACE = function(this1) { return this1.CULL_FACE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLEND = function(this1) { return this1.BLEND; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DITHER = function(this1) { return this1.DITHER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_TEST = function(this1) { return this1.STENCIL_TEST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_TEST = function(this1) { return this1.DEPTH_TEST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SCISSOR_TEST = function(this1) { return this1.SCISSOR_TEST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_POLYGON_OFFSET_FILL = function(this1) { return this1.POLYGON_OFFSET_FILL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLE_ALPHA_TO_COVERAGE = function(this1) { return this1.SAMPLE_ALPHA_TO_COVERAGE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLE_COVERAGE = function(this1) { return this1.SAMPLE_COVERAGE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NO_ERROR = function(this1) { return this1.NO_ERROR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INVALID_ENUM = function(this1) { return this1.INVALID_ENUM; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INVALID_VALUE = function(this1) { return this1.INVALID_VALUE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INVALID_OPERATION = function(this1) { return this1.INVALID_OPERATION; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_OUT_OF_MEMORY = function(this1) { return this1.OUT_OF_MEMORY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CW = function(this1) { return this1.CW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CCW = function(this1) { return this1.CCW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINE_WIDTH = function(this1) { return this1.LINE_WIDTH; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ALIASED_POINT_SIZE_RANGE = function(this1) { return this1.ALIASED_POINT_SIZE_RANGE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ALIASED_LINE_WIDTH_RANGE = function(this1) { return this1.ALIASED_LINE_WIDTH_RANGE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CULL_FACE_MODE = function(this1) { return this1.CULL_FACE_MODE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRONT_FACE = function(this1) { return this1.FRONT_FACE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_RANGE = function(this1) { return this1.DEPTH_RANGE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_WRITEMASK = function(this1) { return this1.DEPTH_WRITEMASK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_CLEAR_VALUE = function(this1) { return this1.DEPTH_CLEAR_VALUE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_FUNC = function(this1) { return this1.DEPTH_FUNC; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_CLEAR_VALUE = function(this1) { return this1.STENCIL_CLEAR_VALUE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_FUNC = function(this1) { return this1.STENCIL_FUNC; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_FAIL = function(this1) { return this1.STENCIL_FAIL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_PASS_DEPTH_FAIL = function(this1) { return this1.STENCIL_PASS_DEPTH_FAIL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_PASS_DEPTH_PASS = function(this1) { return this1.STENCIL_PASS_DEPTH_PASS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_REF = function(this1) { return this1.STENCIL_REF; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_VALUE_MASK = function(this1) { return this1.STENCIL_VALUE_MASK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_WRITEMASK = function(this1) { return this1.STENCIL_WRITEMASK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BACK_FUNC = function(this1) { return this1.STENCIL_BACK_FUNC; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BACK_FAIL = function(this1) { return this1.STENCIL_BACK_FAIL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BACK_PASS_DEPTH_FAIL = function(this1) { return this1.STENCIL_BACK_PASS_DEPTH_FAIL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BACK_PASS_DEPTH_PASS = function(this1) { return this1.STENCIL_BACK_PASS_DEPTH_PASS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BACK_REF = function(this1) { return this1.STENCIL_BACK_REF; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BACK_VALUE_MASK = function(this1) { return this1.STENCIL_BACK_VALUE_MASK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BACK_WRITEMASK = function(this1) { return this1.STENCIL_BACK_WRITEMASK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VIEWPORT = function(this1) { return this1.VIEWPORT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SCISSOR_BOX = function(this1) { return this1.SCISSOR_BOX; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_CLEAR_VALUE = function(this1) { return this1.COLOR_CLEAR_VALUE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_WRITEMASK = function(this1) { return this1.COLOR_WRITEMASK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_ALIGNMENT = function(this1) { return this1.UNPACK_ALIGNMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PACK_ALIGNMENT = function(this1) { return this1.PACK_ALIGNMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_TEXTURE_SIZE = function(this1) { return this1.MAX_TEXTURE_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VIEWPORT_DIMS = function(this1) { return this1.MAX_VIEWPORT_DIMS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SUBPIXEL_BITS = function(this1) { return this1.SUBPIXEL_BITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RED_BITS = function(this1) { return this1.RED_BITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_GREEN_BITS = function(this1) { return this1.GREEN_BITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BLUE_BITS = function(this1) { return this1.BLUE_BITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ALPHA_BITS = function(this1) { return this1.ALPHA_BITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_BITS = function(this1) { return this1.DEPTH_BITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_BITS = function(this1) { return this1.STENCIL_BITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_POLYGON_OFFSET_UNITS = function(this1) { return this1.POLYGON_OFFSET_UNITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_POLYGON_OFFSET_FACTOR = function(this1) { return this1.POLYGON_OFFSET_FACTOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_BINDING_2D = function(this1) { return this1.TEXTURE_BINDING_2D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLE_BUFFERS = function(this1) { return this1.SAMPLE_BUFFERS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLES = function(this1) { return this1.SAMPLES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLE_COVERAGE_VALUE = function(this1) { return this1.SAMPLE_COVERAGE_VALUE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLE_COVERAGE_INVERT = function(this1) { return this1.SAMPLE_COVERAGE_INVERT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COMPRESSED_TEXTURE_FORMATS = function(this1) { return this1.COMPRESSED_TEXTURE_FORMATS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DONT_CARE = function(this1) { return this1.DONT_CARE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FASTEST = function(this1) { return this1.FASTEST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NICEST = function(this1) { return this1.NICEST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_GENERATE_MIPMAP_HINT = function(this1) { return this1.GENERATE_MIPMAP_HINT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BYTE = function(this1) { return this1.BYTE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_BYTE = function(this1) { return this1.UNSIGNED_BYTE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SHORT = function(this1) { return this1.SHORT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_SHORT = function(this1) { return this1.UNSIGNED_SHORT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT = function(this1) { return this1.INT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT = function(this1) { return this1.UNSIGNED_INT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT = function(this1) { return this1.FLOAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_COMPONENT = function(this1) { return this1.DEPTH_COMPONENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ALPHA = function(this1) { return this1.ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB = function(this1) { return this1.RGB; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA = function(this1) { return this1.RGBA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LUMINANCE = function(this1) { return this1.LUMINANCE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LUMINANCE_ALPHA = function(this1) { return this1.LUMINANCE_ALPHA; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_SHORT_4_4_4_4 = function(this1) { return this1.UNSIGNED_SHORT_4_4_4_4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_SHORT_5_5_5_1 = function(this1) { return this1.UNSIGNED_SHORT_5_5_5_1; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_SHORT_5_6_5 = function(this1) { return this1.UNSIGNED_SHORT_5_6_5; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAGMENT_SHADER = function(this1) { return this1.FRAGMENT_SHADER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_SHADER = function(this1) { return this1.VERTEX_SHADER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VERTEX_ATTRIBS = function(this1) { return this1.MAX_VERTEX_ATTRIBS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VERTEX_UNIFORM_VECTORS = function(this1) { return this1.MAX_VERTEX_UNIFORM_VECTORS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VARYING_VECTORS = function(this1) { return this1.MAX_VARYING_VECTORS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_COMBINED_TEXTURE_IMAGE_UNITS = function(this1) { return this1.MAX_COMBINED_TEXTURE_IMAGE_UNITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VERTEX_TEXTURE_IMAGE_UNITS = function(this1) { return this1.MAX_VERTEX_TEXTURE_IMAGE_UNITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_TEXTURE_IMAGE_UNITS = function(this1) { return this1.MAX_TEXTURE_IMAGE_UNITS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_FRAGMENT_UNIFORM_VECTORS = function(this1) { return this1.MAX_FRAGMENT_UNIFORM_VECTORS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SHADER_TYPE = function(this1) { return this1.SHADER_TYPE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DELETE_STATUS = function(this1) { return this1.DELETE_STATUS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINK_STATUS = function(this1) { return this1.LINK_STATUS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VALIDATE_STATUS = function(this1) { return this1.VALIDATE_STATUS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ATTACHED_SHADERS = function(this1) { return this1.ATTACHED_SHADERS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ACTIVE_UNIFORMS = function(this1) { return this1.ACTIVE_UNIFORMS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ACTIVE_ATTRIBUTES = function(this1) { return this1.ACTIVE_ATTRIBUTES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SHADING_LANGUAGE_VERSION = function(this1) { return this1.SHADING_LANGUAGE_VERSION; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CURRENT_PROGRAM = function(this1) { return this1.CURRENT_PROGRAM; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NEVER = function(this1) { return this1.NEVER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LESS = function(this1) { return this1.LESS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_EQUAL = function(this1) { return this1.EQUAL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LEQUAL = function(this1) { return this1.LEQUAL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_GREATER = function(this1) { return this1.GREATER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NOTEQUAL = function(this1) { return this1.NOTEQUAL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_GEQUAL = function(this1) { return this1.GEQUAL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ALWAYS = function(this1) { return this1.ALWAYS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_KEEP = function(this1) { return this1.KEEP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_REPLACE = function(this1) { return this1.REPLACE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INCR = function(this1) { return this1.INCR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DECR = function(this1) { return this1.DECR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INVERT = function(this1) { return this1.INVERT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INCR_WRAP = function(this1) { return this1.INCR_WRAP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DECR_WRAP = function(this1) { return this1.DECR_WRAP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VENDOR = function(this1) { return this1.VENDOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERER = function(this1) { return this1.RENDERER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERSION = function(this1) { return this1.VERSION; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NEAREST = function(this1) { return this1.NEAREST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINEAR = function(this1) { return this1.LINEAR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NEAREST_MIPMAP_NEAREST = function(this1) { return this1.NEAREST_MIPMAP_NEAREST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINEAR_MIPMAP_NEAREST = function(this1) { return this1.LINEAR_MIPMAP_NEAREST; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NEAREST_MIPMAP_LINEAR = function(this1) { return this1.NEAREST_MIPMAP_LINEAR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LINEAR_MIPMAP_LINEAR = function(this1) { return this1.LINEAR_MIPMAP_LINEAR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_MAG_FILTER = function(this1) { return this1.TEXTURE_MAG_FILTER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_MIN_FILTER = function(this1) { return this1.TEXTURE_MIN_FILTER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_WRAP_S = function(this1) { return this1.TEXTURE_WRAP_S; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_WRAP_T = function(this1) { return this1.TEXTURE_WRAP_T; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_2D = function(this1) { return this1.TEXTURE_2D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE = function(this1) { return this1.TEXTURE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_CUBE_MAP = function(this1) { return this1.TEXTURE_CUBE_MAP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_BINDING_CUBE_MAP = function(this1) { return this1.TEXTURE_BINDING_CUBE_MAP; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_CUBE_MAP_POSITIVE_X = function(this1) { return this1.TEXTURE_CUBE_MAP_POSITIVE_X; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_CUBE_MAP_NEGATIVE_X = function(this1) { return this1.TEXTURE_CUBE_MAP_NEGATIVE_X; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_CUBE_MAP_POSITIVE_Y = function(this1) { return this1.TEXTURE_CUBE_MAP_POSITIVE_Y; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_CUBE_MAP_NEGATIVE_Y = function(this1) { return this1.TEXTURE_CUBE_MAP_NEGATIVE_Y; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_CUBE_MAP_POSITIVE_Z = function(this1) { return this1.TEXTURE_CUBE_MAP_POSITIVE_Z; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_CUBE_MAP_NEGATIVE_Z = function(this1) { return this1.TEXTURE_CUBE_MAP_NEGATIVE_Z; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_CUBE_MAP_TEXTURE_SIZE = function(this1) { return this1.MAX_CUBE_MAP_TEXTURE_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE0 = function(this1) { return this1.TEXTURE0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE1 = function(this1) { return this1.TEXTURE1; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE2 = function(this1) { return this1.TEXTURE2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE3 = function(this1) { return this1.TEXTURE3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE4 = function(this1) { return this1.TEXTURE4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE5 = function(this1) { return this1.TEXTURE5; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE6 = function(this1) { return this1.TEXTURE6; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE7 = function(this1) { return this1.TEXTURE7; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE8 = function(this1) { return this1.TEXTURE8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE9 = function(this1) { return this1.TEXTURE9; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE10 = function(this1) { return this1.TEXTURE10; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE11 = function(this1) { return this1.TEXTURE11; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE12 = function(this1) { return this1.TEXTURE12; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE13 = function(this1) { return this1.TEXTURE13; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE14 = function(this1) { return this1.TEXTURE14; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE15 = function(this1) { return this1.TEXTURE15; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE16 = function(this1) { return this1.TEXTURE16; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE17 = function(this1) { return this1.TEXTURE17; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE18 = function(this1) { return this1.TEXTURE18; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE19 = function(this1) { return this1.TEXTURE19; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE20 = function(this1) { return this1.TEXTURE20; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE21 = function(this1) { return this1.TEXTURE21; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE22 = function(this1) { return this1.TEXTURE22; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE23 = function(this1) { return this1.TEXTURE23; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE24 = function(this1) { return this1.TEXTURE24; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE25 = function(this1) { return this1.TEXTURE25; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE26 = function(this1) { return this1.TEXTURE26; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE27 = function(this1) { return this1.TEXTURE27; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE28 = function(this1) { return this1.TEXTURE28; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE29 = function(this1) { return this1.TEXTURE29; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE30 = function(this1) { return this1.TEXTURE30; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE31 = function(this1) { return this1.TEXTURE31; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ACTIVE_TEXTURE = function(this1) { return this1.ACTIVE_TEXTURE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_REPEAT = function(this1) { return this1.REPEAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CLAMP_TO_EDGE = function(this1) { return this1.CLAMP_TO_EDGE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MIRRORED_REPEAT = function(this1) { return this1.MIRRORED_REPEAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_VEC2 = function(this1) { return this1.FLOAT_VEC2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_VEC3 = function(this1) { return this1.FLOAT_VEC3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_VEC4 = function(this1) { return this1.FLOAT_VEC4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_VEC2 = function(this1) { return this1.INT_VEC2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_VEC3 = function(this1) { return this1.INT_VEC3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_VEC4 = function(this1) { return this1.INT_VEC4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BOOL = function(this1) { return this1.BOOL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BOOL_VEC2 = function(this1) { return this1.BOOL_VEC2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BOOL_VEC3 = function(this1) { return this1.BOOL_VEC3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BOOL_VEC4 = function(this1) { return this1.BOOL_VEC4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT2 = function(this1) { return this1.FLOAT_MAT2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT3 = function(this1) { return this1.FLOAT_MAT3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT4 = function(this1) { return this1.FLOAT_MAT4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_2D = function(this1) { return this1.SAMPLER_2D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_CUBE = function(this1) { return this1.SAMPLER_CUBE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_ENABLED = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_ENABLED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_SIZE = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_STRIDE = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_STRIDE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_TYPE = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_TYPE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_NORMALIZED = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_NORMALIZED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_POINTER = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_POINTER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_PROGRAM_POINT_SIZE = function(this1) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_POINT_SPRITE = function(this1) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COMPILE_STATUS = function(this1) { return this1.COMPILE_STATUS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LOW_FLOAT = function(this1) { return this1.LOW_FLOAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MEDIUM_FLOAT = function(this1) { return this1.MEDIUM_FLOAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_HIGH_FLOAT = function(this1) { return this1.HIGH_FLOAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_LOW_INT = function(this1) { return this1.LOW_INT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MEDIUM_INT = function(this1) { return this1.MEDIUM_INT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_HIGH_INT = function(this1) { return this1.HIGH_INT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER = function(this1) { return this1.FRAMEBUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER = function(this1) { return this1.RENDERBUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA4 = function(this1) { return this1.RGBA4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB5_A1 = function(this1) { return this1.RGB5_A1; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB565 = function(this1) { return this1.RGB565; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_COMPONENT16 = function(this1) { return this1.DEPTH_COMPONENT16; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_INDEX = function(this1) { return this1.STENCIL_INDEX; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_INDEX8 = function(this1) { return this1.STENCIL_INDEX8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_STENCIL = function(this1) { return this1.DEPTH_STENCIL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_WIDTH = function(this1) { return this1.RENDERBUFFER_WIDTH; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_HEIGHT = function(this1) { return this1.RENDERBUFFER_HEIGHT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_INTERNAL_FORMAT = function(this1) { return this1.RENDERBUFFER_INTERNAL_FORMAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_RED_SIZE = function(this1) { return this1.RENDERBUFFER_RED_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_GREEN_SIZE = function(this1) { return this1.RENDERBUFFER_GREEN_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_BLUE_SIZE = function(this1) { return this1.RENDERBUFFER_BLUE_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_ALPHA_SIZE = function(this1) { return this1.RENDERBUFFER_ALPHA_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_DEPTH_SIZE = function(this1) { return this1.RENDERBUFFER_DEPTH_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_STENCIL_SIZE = function(this1) { return this1.RENDERBUFFER_STENCIL_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT0 = function(this1) { return this1.COLOR_ATTACHMENT0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_ATTACHMENT = function(this1) { return this1.DEPTH_ATTACHMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL_ATTACHMENT = function(this1) { return this1.STENCIL_ATTACHMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_STENCIL_ATTACHMENT = function(this1) { return this1.DEPTH_STENCIL_ATTACHMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_NONE = function(this1) { return this1.NONE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_COMPLETE = function(this1) { return this1.FRAMEBUFFER_COMPLETE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_ATTACHMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_DIMENSIONS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_UNSUPPORTED = function(this1) { return this1.FRAMEBUFFER_UNSUPPORTED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_BINDING = function(this1) { return this1.FRAMEBUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_BINDING = function(this1) { return this1.RENDERBUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_RENDERBUFFER_SIZE = function(this1) { return this1.MAX_RENDERBUFFER_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INVALID_FRAMEBUFFER_OPERATION = function(this1) { return this1.INVALID_FRAMEBUFFER_OPERATION; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_FLIP_Y_WEBGL = function(this1) { return this1.UNPACK_FLIP_Y_WEBGL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_PREMULTIPLY_ALPHA_WEBGL = function(this1) { return this1.UNPACK_PREMULTIPLY_ALPHA_WEBGL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CONTEXT_LOST_WEBGL = function(this1) { return this1.CONTEXT_LOST_WEBGL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_COLORSPACE_CONVERSION_WEBGL = function(this1) { return this1.UNPACK_COLORSPACE_CONVERSION_WEBGL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_BROWSER_DEFAULT_WEBGL = function(this1) { return this1.BROWSER_DEFAULT_WEBGL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_type = function(this1) { return this1.type; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_version = function(this1) { return this1.version; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_READ_BUFFER = function(this1) { return this1.READ_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_ROW_LENGTH = function(this1) { return this1.UNPACK_ROW_LENGTH; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_SKIP_ROWS = function(this1) { return this1.UNPACK_SKIP_ROWS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_SKIP_PIXELS = function(this1) { return this1.UNPACK_SKIP_PIXELS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PACK_ROW_LENGTH = function(this1) { return this1.PACK_ROW_LENGTH; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PACK_SKIP_ROWS = function(this1) { return this1.PACK_SKIP_ROWS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PACK_SKIP_PIXELS = function(this1) { return this1.PACK_SKIP_PIXELS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_BINDING_3D = function(this1) { return this1.TEXTURE_BINDING_3D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_SKIP_IMAGES = function(this1) { return this1.UNPACK_SKIP_IMAGES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNPACK_IMAGE_HEIGHT = function(this1) { return this1.UNPACK_IMAGE_HEIGHT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_3D_TEXTURE_SIZE = function(this1) { return this1.MAX_3D_TEXTURE_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_ELEMENTS_VERTICES = function(this1) { return this1.MAX_ELEMENTS_VERTICES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_ELEMENTS_INDICES = function(this1) { return this1.MAX_ELEMENTS_INDICES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_TEXTURE_LOD_BIAS = function(this1) { return this1.MAX_TEXTURE_LOD_BIAS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_FRAGMENT_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_FRAGMENT_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VERTEX_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_VERTEX_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_ARRAY_TEXTURE_LAYERS = function(this1) { return this1.MAX_ARRAY_TEXTURE_LAYERS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MIN_PROGRAM_TEXEL_OFFSET = function(this1) { return this1.MIN_PROGRAM_TEXEL_OFFSET; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_PROGRAM_TEXEL_OFFSET = function(this1) { return this1.MAX_PROGRAM_TEXEL_OFFSET; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VARYING_COMPONENTS = function(this1) { return this1.MAX_VARYING_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAGMENT_SHADER_DERIVATIVE_HINT = function(this1) { return this1.FRAGMENT_SHADER_DERIVATIVE_HINT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RASTERIZER_DISCARD = function(this1) { return this1.RASTERIZER_DISCARD; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ARRAY_BINDING = function(this1) { return this1.VERTEX_ARRAY_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VERTEX_OUTPUT_COMPONENTS = function(this1) { return this1.MAX_VERTEX_OUTPUT_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_FRAGMENT_INPUT_COMPONENTS = function(this1) { return this1.MAX_FRAGMENT_INPUT_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_SERVER_WAIT_TIMEOUT = function(this1) { return this1.MAX_SERVER_WAIT_TIMEOUT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_ELEMENT_INDEX = function(this1) { return this1.MAX_ELEMENT_INDEX; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RED = function(this1) { return this1.RED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB8 = function(this1) { return this1.RGB8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA8 = function(this1) { return this1.RGBA8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB10_A2 = function(this1) { return this1.RGB10_A2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_3D = function(this1) { return this1.TEXTURE_3D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_WRAP_R = function(this1) { return this1.TEXTURE_WRAP_R; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_MIN_LOD = function(this1) { return this1.TEXTURE_MIN_LOD; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_MAX_LOD = function(this1) { return this1.TEXTURE_MAX_LOD; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_BASE_LEVEL = function(this1) { return this1.TEXTURE_BASE_LEVEL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_MAX_LEVEL = function(this1) { return this1.TEXTURE_MAX_LEVEL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_COMPARE_MODE = function(this1) { return this1.TEXTURE_COMPARE_MODE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_COMPARE_FUNC = function(this1) { return this1.TEXTURE_COMPARE_FUNC; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SRGB = function(this1) { return this1.SRGB; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SRGB8 = function(this1) { return this1.SRGB8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SRGB8_ALPHA8 = function(this1) { return this1.SRGB8_ALPHA8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COMPARE_REF_TO_TEXTURE = function(this1) { return this1.COMPARE_REF_TO_TEXTURE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA32F = function(this1) { return this1.RGBA32F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB32F = function(this1) { return this1.RGB32F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA16F = function(this1) { return this1.RGBA16F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB16F = function(this1) { return this1.RGB16F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_2D_ARRAY = function(this1) { return this1.TEXTURE_2D_ARRAY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_BINDING_2D_ARRAY = function(this1) { return this1.TEXTURE_BINDING_2D_ARRAY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R11F_G11F_B10F = function(this1) { return this1.R11F_G11F_B10F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB9_E5 = function(this1) { return this1.RGB9_E5; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA32UI = function(this1) { return this1.RGBA32UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB32UI = function(this1) { return this1.RGB32UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA16UI = function(this1) { return this1.RGBA16UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB16UI = function(this1) { return this1.RGB16UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA8UI = function(this1) { return this1.RGBA8UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB8UI = function(this1) { return this1.RGB8UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA32I = function(this1) { return this1.RGBA32I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB32I = function(this1) { return this1.RGB32I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA16I = function(this1) { return this1.RGBA16I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB16I = function(this1) { return this1.RGB16I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA8I = function(this1) { return this1.RGBA8I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB8I = function(this1) { return this1.RGB8I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RED_INTEGER = function(this1) { return this1.RED_INTEGER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB_INTEGER = function(this1) { return this1.RGB_INTEGER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA_INTEGER = function(this1) { return this1.RGBA_INTEGER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R8 = function(this1) { return this1.R8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG8 = function(this1) { return this1.RG8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R16F = function(this1) { return this1.R16F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R32F = function(this1) { return this1.R32F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG16F = function(this1) { return this1.RG16F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG32F = function(this1) { return this1.RG32F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R8I = function(this1) { return this1.R8I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R8UI = function(this1) { return this1.R8UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R16I = function(this1) { return this1.R16I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R16UI = function(this1) { return this1.R16UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R32I = function(this1) { return this1.R32I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R32UI = function(this1) { return this1.R32UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG8I = function(this1) { return this1.RG8I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG8UI = function(this1) { return this1.RG8UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG16I = function(this1) { return this1.RG16I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG16UI = function(this1) { return this1.RG16UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG32I = function(this1) { return this1.RG32I; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG32UI = function(this1) { return this1.RG32UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_R8_SNORM = function(this1) { return this1.R8_SNORM; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG8_SNORM = function(this1) { return this1.RG8_SNORM; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB8_SNORM = function(this1) { return this1.RGB8_SNORM; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGBA8_SNORM = function(this1) { return this1.RGBA8_SNORM; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RGB10_A2UI = function(this1) { return this1.RGB10_A2UI; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_IMMUTABLE_FORMAT = function(this1) { return this1.TEXTURE_IMMUTABLE_FORMAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TEXTURE_IMMUTABLE_LEVELS = function(this1) { return this1.TEXTURE_IMMUTABLE_LEVELS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_2_10_10_10_REV = function(this1) { return this1.UNSIGNED_INT_2_10_10_10_REV; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_10F_11F_11F_REV = function(this1) { return this1.UNSIGNED_INT_10F_11F_11F_REV; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_5_9_9_9_REV = function(this1) { return this1.UNSIGNED_INT_5_9_9_9_REV; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_32_UNSIGNED_INT_24_8_REV = function(this1) { return this1.FLOAT_32_UNSIGNED_INT_24_8_REV; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_24_8 = function(this1) { return this1.UNSIGNED_INT_24_8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_HALF_FLOAT = function(this1) { return this1.HALF_FLOAT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG = function(this1) { return this1.RG; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RG_INTEGER = function(this1) { return this1.RG_INTEGER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_2_10_10_10_REV = function(this1) { return this1.INT_2_10_10_10_REV; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CURRENT_QUERY = function(this1) { return this1.CURRENT_QUERY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_QUERY_RESULT = function(this1) { return this1.QUERY_RESULT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_QUERY_RESULT_AVAILABLE = function(this1) { return this1.QUERY_RESULT_AVAILABLE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ANY_SAMPLES_PASSED = function(this1) { return this1.ANY_SAMPLES_PASSED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ANY_SAMPLES_PASSED_CONSERVATIVE = function(this1) { return this1.ANY_SAMPLES_PASSED_CONSERVATIVE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_DRAW_BUFFERS = function(this1) { return this1.MAX_DRAW_BUFFERS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER0 = function(this1) { return this1.DRAW_BUFFER0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER1 = function(this1) { return this1.DRAW_BUFFER1; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER2 = function(this1) { return this1.DRAW_BUFFER2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER3 = function(this1) { return this1.DRAW_BUFFER3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER4 = function(this1) { return this1.DRAW_BUFFER4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER5 = function(this1) { return this1.DRAW_BUFFER5; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER6 = function(this1) { return this1.DRAW_BUFFER6; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER7 = function(this1) { return this1.DRAW_BUFFER7; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER8 = function(this1) { return this1.DRAW_BUFFER8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER9 = function(this1) { return this1.DRAW_BUFFER9; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER10 = function(this1) { return this1.DRAW_BUFFER10; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER11 = function(this1) { return this1.DRAW_BUFFER11; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER12 = function(this1) { return this1.DRAW_BUFFER12; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER13 = function(this1) { return this1.DRAW_BUFFER13; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER14 = function(this1) { return this1.DRAW_BUFFER14; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_BUFFER15 = function(this1) { return this1.DRAW_BUFFER15; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_COLOR_ATTACHMENTS = function(this1) { return this1.MAX_COLOR_ATTACHMENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT1 = function(this1) { return this1.COLOR_ATTACHMENT1; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT2 = function(this1) { return this1.COLOR_ATTACHMENT2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT3 = function(this1) { return this1.COLOR_ATTACHMENT3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT4 = function(this1) { return this1.COLOR_ATTACHMENT4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT5 = function(this1) { return this1.COLOR_ATTACHMENT5; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT6 = function(this1) { return this1.COLOR_ATTACHMENT6; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT7 = function(this1) { return this1.COLOR_ATTACHMENT7; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT8 = function(this1) { return this1.COLOR_ATTACHMENT8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT9 = function(this1) { return this1.COLOR_ATTACHMENT9; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT10 = function(this1) { return this1.COLOR_ATTACHMENT10; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT11 = function(this1) { return this1.COLOR_ATTACHMENT11; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT12 = function(this1) { return this1.COLOR_ATTACHMENT12; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT13 = function(this1) { return this1.COLOR_ATTACHMENT13; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT14 = function(this1) { return this1.COLOR_ATTACHMENT14; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR_ATTACHMENT15 = function(this1) { return this1.COLOR_ATTACHMENT15; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_3D = function(this1) { return this1.SAMPLER_3D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_2D_SHADOW = function(this1) { return this1.SAMPLER_2D_SHADOW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_2D_ARRAY = function(this1) { return this1.SAMPLER_2D_ARRAY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_2D_ARRAY_SHADOW = function(this1) { return this1.SAMPLER_2D_ARRAY_SHADOW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_CUBE_SHADOW = function(this1) { return this1.SAMPLER_CUBE_SHADOW; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_SAMPLER_2D = function(this1) { return this1.INT_SAMPLER_2D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_SAMPLER_3D = function(this1) { return this1.INT_SAMPLER_3D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_SAMPLER_CUBE = function(this1) { return this1.INT_SAMPLER_CUBE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INT_SAMPLER_2D_ARRAY = function(this1) { return this1.INT_SAMPLER_2D_ARRAY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_2D = function(this1) { return this1.UNSIGNED_INT_SAMPLER_2D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_3D = function(this1) { return this1.UNSIGNED_INT_SAMPLER_3D; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_CUBE = function(this1) { return this1.UNSIGNED_INT_SAMPLER_CUBE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_2D_ARRAY = function(this1) { return this1.UNSIGNED_INT_SAMPLER_2D_ARRAY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_SAMPLES = function(this1) { return this1.MAX_SAMPLES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SAMPLER_BINDING = function(this1) { return this1.SAMPLER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PIXEL_PACK_BUFFER = function(this1) { return this1.PIXEL_PACK_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PIXEL_UNPACK_BUFFER = function(this1) { return this1.PIXEL_UNPACK_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PIXEL_PACK_BUFFER_BINDING = function(this1) { return this1.PIXEL_PACK_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_PIXEL_UNPACK_BUFFER_BINDING = function(this1) { return this1.PIXEL_UNPACK_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COPY_READ_BUFFER = function(this1) { return this1.COPY_READ_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COPY_WRITE_BUFFER = function(this1) { return this1.COPY_WRITE_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COPY_READ_BUFFER_BINDING = function(this1) { return this1.COPY_READ_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COPY_WRITE_BUFFER_BINDING = function(this1) { return this1.COPY_WRITE_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT2x3 = function(this1) { return this1.FLOAT_MAT2x3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT2x4 = function(this1) { return this1.FLOAT_MAT2x4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT3x2 = function(this1) { return this1.FLOAT_MAT3x2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT3x4 = function(this1) { return this1.FLOAT_MAT3x4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT4x2 = function(this1) { return this1.FLOAT_MAT4x2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FLOAT_MAT4x3 = function(this1) { return this1.FLOAT_MAT4x3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_VEC2 = function(this1) { return this1.UNSIGNED_INT_VEC2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_VEC3 = function(this1) { return this1.UNSIGNED_INT_VEC3; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_INT_VEC4 = function(this1) { return this1.UNSIGNED_INT_VEC4; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNED_NORMALIZED = function(this1) { return this1.UNSIGNED_NORMALIZED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SIGNED_NORMALIZED = function(this1) { return this1.SIGNED_NORMALIZED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_INTEGER = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_INTEGER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_DIVISOR = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_DIVISOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_MODE = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_MODE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = function(this1) { return this1.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_VARYINGS = function(this1) { return this1.TRANSFORM_FEEDBACK_VARYINGS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_START = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_START; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_SIZE = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = function(this1) { return this1.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = function(this1) { return this1.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = function(this1) { return this1.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INTERLEAVED_ATTRIBS = function(this1) { return this1.INTERLEAVED_ATTRIBS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SEPARATE_ATTRIBS = function(this1) { return this1.SEPARATE_ATTRIBS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_BINDING = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK = function(this1) { return this1.TRANSFORM_FEEDBACK; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_PAUSED = function(this1) { return this1.TRANSFORM_FEEDBACK_PAUSED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_ACTIVE = function(this1) { return this1.TRANSFORM_FEEDBACK_ACTIVE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TRANSFORM_FEEDBACK_BINDING = function(this1) { return this1.TRANSFORM_FEEDBACK_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_RED_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_RED_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_DEFAULT = function(this1) { return this1.FRAMEBUFFER_DEFAULT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH24_STENCIL8 = function(this1) { return this1.DEPTH24_STENCIL8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_FRAMEBUFFER_BINDING = function(this1) { return this1.DRAW_FRAMEBUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_READ_FRAMEBUFFER = function(this1) { return this1.READ_FRAMEBUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DRAW_FRAMEBUFFER = function(this1) { return this1.DRAW_FRAMEBUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_READ_FRAMEBUFFER_BINDING = function(this1) { return this1.READ_FRAMEBUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_RENDERBUFFER_SAMPLES = function(this1) { return this1.RENDERBUFFER_SAMPLES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BUFFER = function(this1) { return this1.UNIFORM_BUFFER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BUFFER_BINDING = function(this1) { return this1.UNIFORM_BUFFER_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BUFFER_START = function(this1) { return this1.UNIFORM_BUFFER_START; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BUFFER_SIZE = function(this1) { return this1.UNIFORM_BUFFER_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_VERTEX_UNIFORM_BLOCKS = function(this1) { return this1.MAX_VERTEX_UNIFORM_BLOCKS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_FRAGMENT_UNIFORM_BLOCKS = function(this1) { return this1.MAX_FRAGMENT_UNIFORM_BLOCKS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_COMBINED_UNIFORM_BLOCKS = function(this1) { return this1.MAX_COMBINED_UNIFORM_BLOCKS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_UNIFORM_BUFFER_BINDINGS = function(this1) { return this1.MAX_UNIFORM_BUFFER_BINDINGS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_UNIFORM_BLOCK_SIZE = function(this1) { return this1.MAX_UNIFORM_BLOCK_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BUFFER_OFFSET_ALIGNMENT = function(this1) { return this1.UNIFORM_BUFFER_OFFSET_ALIGNMENT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ACTIVE_UNIFORM_BLOCKS = function(this1) { return this1.ACTIVE_UNIFORM_BLOCKS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_TYPE = function(this1) { return this1.UNIFORM_TYPE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_SIZE = function(this1) { return this1.UNIFORM_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BLOCK_INDEX = function(this1) { return this1.UNIFORM_BLOCK_INDEX; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_OFFSET = function(this1) { return this1.UNIFORM_OFFSET; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_ARRAY_STRIDE = function(this1) { return this1.UNIFORM_ARRAY_STRIDE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_MATRIX_STRIDE = function(this1) { return this1.UNIFORM_MATRIX_STRIDE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_IS_ROW_MAJOR = function(this1) { return this1.UNIFORM_IS_ROW_MAJOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BLOCK_BINDING = function(this1) { return this1.UNIFORM_BLOCK_BINDING; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BLOCK_DATA_SIZE = function(this1) { return this1.UNIFORM_BLOCK_DATA_SIZE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BLOCK_ACTIVE_UNIFORMS = function(this1) { return this1.UNIFORM_BLOCK_ACTIVE_UNIFORMS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = function(this1) { return this1.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = function(this1) { return this1.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = function(this1) { return this1.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_OBJECT_TYPE = function(this1) { return this1.OBJECT_TYPE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SYNC_CONDITION = function(this1) { return this1.SYNC_CONDITION; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SYNC_STATUS = function(this1) { return this1.SYNC_STATUS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SYNC_FLAGS = function(this1) { return this1.SYNC_FLAGS; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SYNC_FENCE = function(this1) { return this1.SYNC_FENCE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SYNC_GPU_COMMANDS_COMPLETE = function(this1) { return this1.SYNC_GPU_COMMANDS_COMPLETE; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_UNSIGNALED = function(this1) { return this1.UNSIGNALED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SIGNALED = function(this1) { return this1.SIGNALED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_ALREADY_SIGNALED = function(this1) { return this1.ALREADY_SIGNALED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TIMEOUT_EXPIRED = function(this1) { return this1.TIMEOUT_EXPIRED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_CONDITION_SATISFIED = function(this1) { return this1.CONDITION_SATISFIED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_WAIT_FAILED = function(this1) { return this1.WAIT_FAILED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_SYNC_FLUSH_COMMANDS_BIT = function(this1) { return this1.SYNC_FLUSH_COMMANDS_BIT; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_COLOR = function(this1) { return this1.COLOR; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH = function(this1) { return this1.DEPTH; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STENCIL = function(this1) { return this1.STENCIL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MIN = function(this1) { return this1.MIN; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX = function(this1) { return this1.MAX; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_COMPONENT24 = function(this1) { return this1.DEPTH_COMPONENT24; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STREAM_READ = function(this1) { return this1.STREAM_READ; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STREAM_COPY = function(this1) { return this1.STREAM_COPY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STATIC_READ = function(this1) { return this1.STATIC_READ; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_STATIC_COPY = function(this1) { return this1.STATIC_COPY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DYNAMIC_READ = function(this1) { return this1.DYNAMIC_READ; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DYNAMIC_COPY = function(this1) { return this1.DYNAMIC_COPY; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH_COMPONENT32F = function(this1) { return this1.DEPTH_COMPONENT32F; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_DEPTH32F_STENCIL8 = function(this1) { return this1.DEPTH32F_STENCIL8; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_INVALID_INDEX = function(this1) { return this1.INVALID_INDEX; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_TIMEOUT_IGNORED = function(this1) { return this1.TIMEOUT_IGNORED; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.get_MAX_CLIENT_WAIT_TIMEOUT_WEBGL = function(this1) { return this1.MAX_CLIENT_WAIT_TIMEOUT_WEBGL; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.activeTexture = function(this1,texture) { this1.__context.activeTexture(texture); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.attachShader = function(this1,program,shader) { this1.__context.attachShader(program,shader); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.beginQuery = function(this1,target,query) { this1.__context.beginQuery(target,query); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.beginTransformFeedback = function(this1,primitiveNode) { this1.__context.beginTransformFeedback(primitiveNode); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindAttribLocation = function(this1,program,index,name) { this1.__context.bindAttribLocation(program,index,name); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindBuffer = function(this1,target,buffer) { this1.__context.bindBuffer(target,buffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindBufferBase = function(this1,target,index,buffer) { this1.__context.bindBufferBase(target,index,buffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindBufferRange = function(this1,target,index,buffer,offset,size) { this1.__context.bindBufferRange(target,index,buffer,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(size)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindFramebuffer = function(this1,target,framebuffer) { this1.__context.bindFramebuffer(target,framebuffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindRenderbuffer = function(this1,target,renderbuffer) { this1.__context.bindRenderbuffer(target,renderbuffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindSampler = function(this1,unit,sampler) { this1.__context.bindSampler(unit,sampler); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindTexture = function(this1,target,texture) { this1.__context.bindTexture(target,texture); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindTransformFeedback = function(this1,target,transformFeedback) { this1.__context.bindTransformFeedback(target,transformFeedback); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bindVertexArray = function(this1,vertexArray) { this1.__context.bindVertexArray(vertexArray); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.blendColor = function(this1,red,green,blue,alpha) { this1.__context.blendColor(red,green,blue,alpha); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.blendEquation = function(this1,mode) { this1.__context.blendEquation(mode); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.blendEquationSeparate = function(this1,modeRGB,modeAlpha) { this1.__context.blendEquationSeparate(modeRGB,modeAlpha); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.blendFunc = function(this1,sfactor,dfactor) { this1.__context.blendFunc(sfactor,dfactor); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.blendFuncSeparate = function(this1,srcRGB,dstRGB,srcAlpha,dstAlpha) { this1.__context.blendFuncSeparate(srcRGB,dstRGB,srcAlpha,dstAlpha); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.blitFramebuffer = function(this1,srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter) { this1.__context.blitFramebuffer(srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bufferData = function(this1,target,size,data,usage) { this1.__context.bufferData(target,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,size),usage); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.bufferSubData = function(this1,target,offset,size,data) { this1.__context.bufferSubData(target,offset,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,size)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.checkFramebufferStatus = function(this1,target) { return this1.__context.checkFramebufferStatus(target); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clear = function(this1,mask) { this1.__context.clear(mask); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clearBufferfi = function(this1,buffer,drawbuffer,depth,stencil) { this1.__context.clearBufferfi(buffer,drawbuffer,depth,stencil); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clearBufferfv = function(this1,buffer,drawbuffer,value) { this1.__context.clearBufferfv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(value)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clearBufferiv = function(this1,buffer,drawbuffer,value) { this1.__context.clearBufferiv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(value)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clearBufferuiv = function(this1,buffer,drawbuffer,value) { this1.__context.clearBufferuiv(buffer,drawbuffer,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(value)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clearColor = function(this1,red,green,blue,alpha) { this1.__context.clearColor(red,green,blue,alpha); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clearDepthf = function(this1,depth) { this1.__context.clearDepth(depth); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clearStencil = function(this1,s) { this1.__context.clearStencil(s); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.clientWaitSync = function(this1,sync,flags,timeout) { return this1.__context.clientWaitSync(sync,flags,timeout); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.colorMask = function(this1,red,green,blue,alpha) { this1.__context.colorMask(red,green,blue,alpha); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.compileShader = function(this1,shader) { this1.__context.compileShader(shader); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.compressedTexImage2D = function(this1,target,level,internalformat,width,height,border,imageSize,data) { this1.__context.compressedTexImage2D(target,level,internalformat,width,height,border,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.compressedTexImage3D = function(this1,target,level,internalformat,width,height,depth,border,imageSize,data) { this1.__context.compressedTexImage3D(target,level,internalformat,width,height,depth,border,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.compressedTexSubImage2D = function(this1,target,level,xoffset,yoffset,width,height,format,imageSize,data) { this1.__context.compressedTexSubImage2D(target,level,xoffset,yoffset,width,height,format,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.compressedTexSubImage3D = function(this1,target,level,xoffset,yoffset,zoffset,width,height,depth,format,imageSize,data) { this1.__context.compressedTexSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data,imageSize)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.copyBufferSubData = function(this1,readTarget,writeTarget,readOffset,writeOffset,size) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.copyTexImage2D = function(this1,target,level,internalformat,x,y,width,height,border) { this1.__context.copyTexImage2D(target,level,internalformat,x,y,width,height,border); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.copyTexSubImage2D = function(this1,target,level,xoffset,yoffset,x,y,width,height) { this1.__context.copyTexSubImage2D(target,level,xoffset,yoffset,x,y,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.copyTexSubImage3D = function(this1,target,level,xoffset,yoffset,zoffset,x,y,width,height) { this1.__context.copyTexSubImage3D(target,level,xoffset,yoffset,zoffset,x,y,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createBuffer = function(this1) { return this1.__context.createBuffer(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createFramebuffer = function(this1) { return this1.__context.createFramebuffer(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createProgram = function(this1) { return this1.__context.createProgram(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createQuery = function(this1) { return this1.__context.createQuery(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createRenderbuffer = function(this1) { return this1.__context.createRenderbuffer(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createSampler = function(this1) { return this1.__context.createSampler(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createShader = function(this1,type) { return this1.__context.createShader(type); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createTexture = function(this1) { return this1.__context.createTexture(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createTransformFeedback = function(this1) { return this1.__context.createTransformFeedback(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.createVertexArray = function(this1) { return this1.__context.createVertexArray(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.cullFace = function(this1,mode) { this1.__context.cullFace(mode); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteBuffer = function(this1,buffer) { this1.__context.deleteBuffer(buffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteFramebuffer = function(this1,framebuffer) { this1.__context.deleteFramebuffer(framebuffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteProgram = function(this1,program) { this1.__context.deleteProgram(program); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteQuery = function(this1,query) { this1.__context.deleteQuery(query); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteRenderbuffer = function(this1,renderbuffer) { this1.__context.deleteRenderbuffer(renderbuffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteSampler = function(this1,sampler) { this1.__context.deleteSampler(sampler); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteShader = function(this1,shader) { this1.__context.deleteShader(shader); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteSync = function(this1,sync) { this1.__context.deleteSync(sync); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteTexture = function(this1,texture) { this1.__context.deleteTexture(texture); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteTransformFeedback = function(this1,transformFeedback) { this1.__context.deleteTransformFeedback(transformFeedback); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.deleteVertexArray = function(this1,vertexArray) { this1.__context.deleteVertexArray(vertexArray); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.depthFunc = function(this1,func) { this1.__context.depthFunc(func); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.depthMask = function(this1,flag) { this1.__context.depthMask(flag); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.depthRangef = function(this1,zNear,zFar) { this1.__context.depthRange(zNear,zFar); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.detachShader = function(this1,program,shader) { this1.__context.detachShader(program,shader); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.disable = function(this1,cap) { this1.__context.disable(cap); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.disableVertexAttribArray = function(this1,index) { this1.__context.disableVertexAttribArray(index); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.drawArrays = function(this1,mode,first,count) { this1.__context.drawArrays(mode,first,count); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.drawArraysInstanced = function(this1,mode,first,count,instanceCount) { this1.__context.drawArraysInstanced(mode,first,count,instanceCount); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.drawBuffers = function(this1,buffers) { this1.__context.drawBuffers(buffers); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.drawElements = function(this1,mode,count,type,offset) { this1.__context.drawElements(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.drawElementsInstanced = function(this1,mode,count,type,offset,instanceCount) { this1.__context.drawElementsInstanced(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),instanceCount); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.drawRangeElements = function(this1,mode,start,end,count,type,offset) { this1.__context.drawRangeElements(mode,start,end,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset))); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.enable = function(this1,cap) { this1.__context.enable(cap); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.enableVertexAttribArray = function(this1,index) { this1.__context.enableVertexAttribArray(index); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.endQuery = function(this1,target) { this1.__context.endQuery(target); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.endTransformFeedback = function(this1) { this1.__context.endTransformFeedback(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.fenceSync = function(this1,condition,flags) { return this1.__context.fenceSync(condition,flags); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.finish = function(this1) { this1.__context.finish(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.flush = function(this1) { this1.__context.flush(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.framebufferRenderbuffer = function(this1,target,attachment,renderbuffertarget,renderbuffer) { this1.__context.framebufferRenderbuffer(target,attachment,renderbuffertarget,renderbuffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.framebufferTexture2D = function(this1,target,attachment,textarget,texture,level) { this1.__context.framebufferTexture2D(target,attachment,textarget,texture,level); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.framebufferTextureLayer = function(this1,target,attachment,texture,level,layer) { this1.__context.framebufferTextureLayer(target,attachment,texture,level,layer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.frontFace = function(this1,mode) { this1.__context.frontFace(mode); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.genBuffers = function(this1,n,buffers) { if(buffers == null) { buffers = []; } var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; buffers[i] = this1.__context.createBuffer(); } return buffers; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.generateMipmap = function(this1,target) { this1.__context.generateMipmap(target); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.genFramebuffers = function(this1,n,framebuffers) { if(framebuffers == null) { framebuffers = []; } var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; framebuffers[i] = this1.__context.createFramebuffer(); } return framebuffers; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.genQueries = function(this1,n,queries) { if(queries == null) { queries = []; } var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; queries[i] = this1.__context.createQuery(); } return queries; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.genRenderbuffers = function(this1,n,renderbuffers) { if(renderbuffers == null) { renderbuffers = []; } var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; renderbuffers[i] = this1.__context.createRenderbuffer(); } return renderbuffers; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.genSamplers = function(this1,n,samplers) { if(samplers == null) { samplers = []; } var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; samplers[i] = this1.__context.createSampler(); } return samplers; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.genTextures = function(this1,n,textures) { if(textures == null) { textures = []; } var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; textures[i] = this1.__context.createTexture(); } return textures; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.genTransformFeedbacks = function(this1,n,transformFeedbacks) { if(transformFeedbacks == null) { transformFeedbacks = []; } var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; transformFeedbacks[i] = this1.__context.createTransformFeedback(); } return transformFeedbacks; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getActiveAttrib = function(this1,program,index) { return this1.__context.getActiveAttrib(program,index); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getActiveUniform = function(this1,program,index) { return this1.__context.getActiveUniform(program,index); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getActiveUniformBlocki = function(this1,program,uniformBlockIndex,pname) { return this1.__context.getActiveUniformBlockParameter(program,uniformBlockIndex,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getActiveUniformBlockiv = function(this1,program,uniformBlockIndex,pname,params) { this1.getActiveUniformBlockiv(program,uniformBlockIndex,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getActiveUniformBlockName = function(this1,program,uniformBlockIndex) { return this1.__context.getActiveUniformBlockName(program,uniformBlockIndex); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getActiveUniformsiv = function(this1,program,uniformIndices,pname,params) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getAttachedShaders = function(this1,program) { return this1.__context.getAttachedShaders(program); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getAttribLocation = function(this1,program,name) { return this1.__context.getAttribLocation(program,name); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getBoolean = function(this1,pname) { return this1.__context.getParameter(pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getBooleanv = function(this1,pname,params) { this1.getBooleanv(pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getBufferParameteri = function(this1,target,pname) { return this1.__context.getBufferParameter(target,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getBufferParameteri64v = function(this1,target,pname,params) { this1.getBufferParameteri64v(target,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getBufferParameteriv = function(this1,target,pname,params) { this1.getBufferParameteriv(target,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getBufferPointerv = function(this1,target,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getError = function(this1) { return this1.__context.getError(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getFloat = function(this1,pname) { return this1.__context.getParameter(pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getFloatv = function(this1,pname,params) { this1.getFloatv(pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getExtension = function(this1,name) { return this1.__context.getExtension(name); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getFragDataLocation = function(this1,program,name) { return this1.__context.getFragDataLocation(program,name); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getFramebufferAttachmentParameteri = function(this1,target,attachment,pname) { return this1.__context.getFramebufferAttachmentParameter(target,attachment,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getFramebufferAttachmentParameteriv = function(this1,target,attachment,pname,params) { this1.getFramebufferAttachmentParameteriv(target,attachment,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getInteger = function(this1,pname) { return this1.__context.getParameter(pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getInteger64 = function(this1,pname) { var this2 = new haxe__$Int64__$_$_$Int64(0,0); return this2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getInteger64i = function(this1,pname) { var this2 = new haxe__$Int64__$_$_$Int64(0,0); return this2; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getInteger64i_v = function(this1,pname,index,params) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getInteger64v = function(this1,pname,params) { this1.getInteger64v(pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getIntegeri_v = function(this1,pname,index,params) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getIntegerv = function(this1,pname,params) { this1.getIntegerv(pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getInternalformati = function(this1,target,internalformat,pname) { return this1.__context.getInternalformatParameter(target,internalformat,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getInternalformativ = function(this1,target,internalformat,pname,bufSize,params) { this1.getInternalformativ(target,internalformat,pname,bufSize,params); return; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getProgramBinary = function(this1,program,binaryFormat) { return null; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getProgrami = function(this1,program,pname) { return this1.__context.getProgramParameter(program,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getProgramInfoLog = function(this1,program) { return this1.__context.getProgramInfoLog(program); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getProgramiv = function(this1,program,pname,params) { this1.getProgramiv(program,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getQueryi = function(this1,target,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getQueryiv = function(this1,target,pname,params) { this1.getQueryiv(target,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getQueryObjectui = function(this1,query,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getQueryObjectuiv = function(this1,query,pname,params) { this1.getQueryObjectuiv(query,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getRenderbufferParameteri = function(this1,target,pname) { return this1.__context.getRenderbufferParameter(target,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getRenderbufferParameteriv = function(this1,target,pname,params) { this1.getRenderbufferParameteriv(target,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getSamplerParameteri = function(this1,sampler,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getSamplerParameteriv = function(this1,sampler,pname,params) { this1.getSamplerParameteriv(sampler,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getSamplerParameterf = function(this1,sampler,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getSamplerParameterfv = function(this1,sampler,pname,params) { this1.getSamplerParameterfv(sampler,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getShaderInfoLog = function(this1,shader) { return this1.__context.getShaderInfoLog(shader); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getShaderi = function(this1,shader,pname) { return this1.__context.getShaderParameter(shader,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getShaderiv = function(this1,shader,pname,params) { this1.getShaderiv(shader,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getShaderPrecisionFormat = function(this1,shadertype,precisiontype) { return this1.__context.getShaderPrecisionFormat(shadertype,precisiontype); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getShaderSource = function(this1,shader) { return this1.__context.getShaderSource(shader); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getString = function(this1,name) { return this1.getString(name); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getStringi = function(this1,name,index) { return null; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getSyncParameteri = function(this1,sync,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getSyncParameteriv = function(this1,sync,pname,params) { this1.getSyncParameteriv(sync,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getTexParameterf = function(this1,target,pname) { return this1.__context.getTexParameter(target,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getTexParameterfv = function(this1,target,pname,params) { this1.getTexParameterfv(target,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getTexParameteri = function(this1,target,pname) { return this1.__context.getTexParameter(target,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getTexParameteriv = function(this1,target,pname,params) { this1.getTexParameteriv(target,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getTransformFeedbackVarying = function(this1,program,index) { return this1.__context.getTransformFeedbackVarying(program,index); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformf = function(this1,program,location) { return this1.__context.getUniform(program,location); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformfv = function(this1,program,location,params) { this1.getUniformfv(program,location,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformi = function(this1,program,location) { return this1.__context.getUniform(program,location); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformiv = function(this1,program,location,params) { this1.getUniformiv(program,location,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformui = function(this1,program,location) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformuiv = function(this1,program,location,params) { this1.getUniformuiv(program,location,params); return; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformBlockIndex = function(this1,program,uniformBlockName) { return this1.__context.getUniformBlockIndex(program,uniformBlockName); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformIndices = function(this1,program,uniformNames) { return this1.__context.getUniformIndices(program,uniformNames); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getUniformLocation = function(this1,program,name) { return this1.__context.getUniformLocation(program,name); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribf = function(this1,index,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribfv = function(this1,index,pname,params) { this1.getVertexAttribfv(index,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribi = function(this1,index,pname) { return this1.__context.getVertexAttrib(index,pname); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribIi = function(this1,index,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribIiv = function(this1,index,pname,params) { return; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribIui = function(this1,index,pname) { return 0; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribIuiv = function(this1,index,pname,params) { return; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribiv = function(this1,index,pname,params) { this1.getVertexAttribiv(index,pname,params); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.getVertexAttribPointerv = function(this1,index,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(this1.__context.getVertexAttribOffset(index,pname)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.hint = function(this1,target,mode) { this1.__context.hint(target,mode); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.invalidateFramebuffer = function(this1,target,attachments) { this1.__context.invalidateFramebuffer(target,attachments); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.invalidateSubFramebuffer = function(this1,target,attachments,x,y,width,height) { this1.__context.invalidateSubFramebuffer(target,attachments,x,y,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isBuffer = function(this1,buffer) { return this1.__context.isBuffer(buffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isEnabled = function(this1,cap) { return this1.__context.isEnabled(cap); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isFramebuffer = function(this1,framebuffer) { return this1.__context.isFramebuffer(framebuffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isProgram = function(this1,program) { return this1.__context.isProgram(program); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isQuery = function(this1,query) { return this1.__context.isQuery(query); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isRenderbuffer = function(this1,renderbuffer) { return this1.__context.isRenderbuffer(renderbuffer); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isSampler = function(this1,sampler) { return this1.__context.isSampler(sampler); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isShader = function(this1,shader) { return this1.__context.isShader(shader); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isTexture = function(this1,texture) { return this1.__context.isTexture(texture); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isTransformFeedback = function(this1,transformFeedback) { return this1.__context.isTransformFeedback(transformFeedback); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.isVertexArray = function(this1,vertexArray) { return this1.__context.isVertexArray(vertexArray); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.lineWidth = function(this1,width) { this1.__context.lineWidth(width); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.linkProgram = function(this1,program) { this1.__context.linkProgram(program); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.mapBufferRange = function(this1,target,offset,length,access) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.pauseTransformFeedback = function(this1) { this1.__context.pauseTransformFeedback(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.pixelStorei = function(this1,pname,param) { this1.__context.pixelStorei(pname,param); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.polygonOffset = function(this1,factor,units) { this1.__context.polygonOffset(factor,units); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.programBinary = function(this1,program,binaryFormat,binary,length) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.programParameteri = function(this1,program,pname,value) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.readBuffer = function(this1,src) { this1.__context.readBuffer(src); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.readPixels = function(this1,x,y,width,height,format,type,data) { this1.__context.readPixels(x,y,width,height,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.releaseShaderCompiler = function(this1) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.renderbufferStorage = function(this1,target,internalformat,width,height) { this1.__context.renderbufferStorage(target,internalformat,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.renderbufferStorageMultisample = function(this1,target,samples,internalformat,width,height) { this1.__context.renderbufferStorageMultisample(target,samples,internalformat,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.resumeTransformFeedback = function(this1) { this1.__context.resumeTransformFeedback(); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.sampleCoverage = function(this1,value,invert) { this1.__context.sampleCoverage(value,invert); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.samplerParameterf = function(this1,sampler,pname,param) { this1.__context.samplerParameterf(sampler,pname,param); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.samplerParameteri = function(this1,sampler,pname,param) { this1.__context.samplerParameteri(sampler,pname,param); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.scissor = function(this1,x,y,width,height) { this1.__context.scissor(x,y,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.shaderBinary = function(this1,shaders,binaryformat,binary,length) { }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.shaderSource = function(this1,shader,source) { this1.__context.shaderSource(shader,source); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.stencilFunc = function(this1,func,ref,mask) { this1.__context.stencilFunc(func,ref,mask); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.stencilFuncSeparate = function(this1,face,func,ref,mask) { this1.__context.stencilFuncSeparate(face,func,ref,mask); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.stencilMask = function(this1,mask) { this1.__context.stencilMask(mask); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.stencilMaskSeparate = function(this1,face,mask) { this1.__context.stencilMaskSeparate(face,mask); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.stencilOp = function(this1,fail,zfail,zpass) { this1.__context.stencilOp(fail,zfail,zpass); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.stencilOpSeparate = function(this1,face,fail,zfail,zpass) { this1.__context.stencilOpSeparate(face,fail,zfail,zpass); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texImage2D = function(this1,target,level,internalformat,width,height,border,format,type,data) { this1.__context.texImage2D(target,level,internalformat,width,height,border,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texImage3D = function(this1,target,level,internalformat,width,height,depth,border,format,type,data) { this1.__context.texImage3D(target,level,internalformat,width,height,depth,border,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texStorage2D = function(this1,target,level,internalformat,width,height) { this1.__context.texStorage2D(target,level,internalformat,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texStorage3D = function(this1,target,level,internalformat,width,height,depth) { this1.__context.texStorage3D(target,level,internalformat,width,height,depth); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texParameterf = function(this1,target,pname,param) { this1.__context.texParameterf(target,pname,param); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texParameteri = function(this1,target,pname,param) { this1.__context.texParameteri(target,pname,param); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texSubImage2D = function(this1,target,level,xoffset,yoffset,width,height,format,type,data) { this1.__context.texSubImage2D(target,level,xoffset,yoffset,width,height,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.texSubImage3D = function(this1,target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,data) { this1.__context.texSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.transformFeedbackVaryings = function(this1,program,varyings,bufferMode) { this1.__context.transformFeedbackVaryings(program,varyings,bufferMode); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform1f = function(this1,location,v0) { this1.__context.uniform1f(location,v0); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform1fv = function(this1,location,count,v) { this1.__context.uniform1fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform1i = function(this1,location,v0) { this1.__context.uniform1i(location,v0); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform1iv = function(this1,location,count,v) { this1.__context.uniform1iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform1ui = function(this1,location,v0) { this1.__context.uniform1ui(location,v0); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform1uiv = function(this1,location,count,v) { this1.__context.uniform1uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform2f = function(this1,location,v0,v1) { this1.__context.uniform2f(location,v0,v1); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform2fv = function(this1,location,count,v) { this1.__context.uniform2fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 2)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform2i = function(this1,location,v0,v1) { this1.__context.uniform2i(location,v0,v1); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform2iv = function(this1,location,count,v) { this1.__context.uniform2iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 2)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform2ui = function(this1,location,v0,v1) { this1.__context.uniform2ui(location,v0,v1); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform2uiv = function(this1,location,count,v) { this1.__context.uniform2uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 2)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform3f = function(this1,location,v0,v1,v2) { this1.__context.uniform3f(location,v0,v1,v2); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform3fv = function(this1,location,count,v) { this1.__context.uniform3fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 3)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform3i = function(this1,location,v0,v1,v2) { this1.__context.uniform3i(location,v0,v1,v2); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform3iv = function(this1,location,count,v) { this1.__context.uniform3iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 3)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform3ui = function(this1,location,v0,v1,v2) { this1.__context.uniform3ui(location,v0,v1,v2); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform3uiv = function(this1,location,count,v) { this1.__context.uniform3uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 3)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform4f = function(this1,location,v0,v1,v2,v3) { this1.__context.uniform4f(location,v0,v1,v2,v3); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform4fv = function(this1,location,count,v) { this1.__context.uniform4fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 4)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform4i = function(this1,location,v0,v1,v2,v3) { this1.__context.uniform4i(location,v0,v1,v2,v3); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform4iv = function(this1,location,count,v) { this1.__context.uniform4iv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v,count * 4 * 4)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform4ui = function(this1,location,v0,v1,v2,v3) { this1.__context.uniform4ui(location,v0,v1,v2,v3); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniform4uiv = function(this1,location,count,v) { this1.__context.uniform4uiv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v,count * 4 * 4)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformBlockBinding = function(this1,program,uniformBlockIndex,uniformBlockBinding) { this1.__context.uniformBlockBinding(program,uniformBlockIndex,uniformBlockBinding); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix2fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 4)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix2x3fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix2x3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 6)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix2x4fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix2x4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 8)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix3fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 9)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix3x2fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix3x2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 6)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix3x4fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix3x4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 12)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix4fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix4fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 16)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix4x2fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix4x2fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 8)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.uniformMatrix4x3fv = function(this1,location,count,transpose,v) { this1.__context.uniformMatrix4x3fv(location,transpose,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 12)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.unmapBuffer = function(this1,target) { return false; }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.useProgram = function(this1,program) { this1.__context.useProgram(program); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.validateProgram = function(this1,program) { this1.__context.validateProgram(program); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib1f = function(this1,indx,x) { this1.__context.vertexAttrib1f(indx,x); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib1fv = function(this1,indx,values) { this1.__context.vertexAttrib1fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(values)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib2f = function(this1,indx,x,y) { this1.__context.vertexAttrib2f(indx,x,y); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib2fv = function(this1,indx,values) { this1.__context.vertexAttrib2fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(values)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib3f = function(this1,indx,x,y,z) { this1.__context.vertexAttrib3f(indx,x,y,z); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib3fv = function(this1,indx,values) { this1.__context.vertexAttrib3fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(values)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib4f = function(this1,indx,x,y,z,w) { this1.__context.vertexAttrib4f(indx,x,y,z,w); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttrib4fv = function(this1,indx,values) { this1.__context.vertexAttrib4fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(values)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttribDivisor = function(this1,index,divisor) { this1.__context.vertexAttribDivisor(index,divisor); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttribI4i = function(this1,indx,x,y,z,w) { this1.__context.vertexAttribI4i(indx,x,y,z,w); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttribI4iv = function(this1,indx,values) { this1.__context.vertexAttribI4iv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(values)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttribI4ui = function(this1,indx,x,y,z,w) { this1.__context.vertexAttribI4ui(indx,x,y,z,w); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttribI4uiv = function(this1,indx,values) { this1.__context.vertexAttribI4uiv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(values)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttribIPointer = function(this1,indx,size,type,stride,pointer) { this1.__context.vertexAttribIPointer(indx,size,type,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(pointer))); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.vertexAttribPointer = function(this1,indx,size,type,normalized,stride,pointer) { this1.__context.vertexAttribPointer(indx,size,type,normalized,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(pointer)); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.viewport = function(this1,x,y,width,height) { this1.__context.viewport(x,y,width,height); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.waitSync = function(this1,sync,flags,timeout) { this1.__context.waitSync(sync,flags,timeout); }; lime_graphics_opengl__$GLES3Context_GLES3Context_$Impl_$.fromGL = function(gl) { return lime_graphics_opengl_GL.context; }; var lime_utils_BytePointerData = function(bytes,offset) { this.bytes = bytes; this.offset = offset; }; $hxClasses["lime.utils.BytePointerData"] = lime_utils_BytePointerData; lime_utils_BytePointerData.__name__ = ["lime","utils","BytePointerData"]; lime_utils_BytePointerData.prototype = { bytes: null ,offset: null ,__class__: lime_utils_BytePointerData }; var lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$ = {}; $hxClasses["lime.graphics.opengl._WebGL2Context.WebGL2Context_Impl_"] = lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.__name__ = ["lime","graphics","opengl","_WebGL2Context","WebGL2Context_Impl_"]; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.__properties__ = {get_version:"get_version",get_type:"get_type",get_MAX_CLIENT_WAIT_TIMEOUT_WEBGL:"get_MAX_CLIENT_WAIT_TIMEOUT_WEBGL",get_TIMEOUT_IGNORED:"get_TIMEOUT_IGNORED",get_INVALID_INDEX:"get_INVALID_INDEX",get_DEPTH32F_STENCIL8:"get_DEPTH32F_STENCIL8",get_DEPTH_COMPONENT32F:"get_DEPTH_COMPONENT32F",get_DYNAMIC_COPY:"get_DYNAMIC_COPY",get_DYNAMIC_READ:"get_DYNAMIC_READ",get_STATIC_COPY:"get_STATIC_COPY",get_STATIC_READ:"get_STATIC_READ",get_STREAM_COPY:"get_STREAM_COPY",get_STREAM_READ:"get_STREAM_READ",get_DEPTH_COMPONENT24:"get_DEPTH_COMPONENT24",get_MAX:"get_MAX",get_MIN:"get_MIN",get_STENCIL:"get_STENCIL",get_DEPTH:"get_DEPTH",get_COLOR:"get_COLOR",get_SYNC_FLUSH_COMMANDS_BIT:"get_SYNC_FLUSH_COMMANDS_BIT",get_WAIT_FAILED:"get_WAIT_FAILED",get_CONDITION_SATISFIED:"get_CONDITION_SATISFIED",get_TIMEOUT_EXPIRED:"get_TIMEOUT_EXPIRED",get_ALREADY_SIGNALED:"get_ALREADY_SIGNALED",get_SIGNALED:"get_SIGNALED",get_UNSIGNALED:"get_UNSIGNALED",get_SYNC_GPU_COMMANDS_COMPLETE:"get_SYNC_GPU_COMMANDS_COMPLETE",get_SYNC_FENCE:"get_SYNC_FENCE",get_SYNC_FLAGS:"get_SYNC_FLAGS",get_SYNC_STATUS:"get_SYNC_STATUS",get_SYNC_CONDITION:"get_SYNC_CONDITION",get_OBJECT_TYPE:"get_OBJECT_TYPE",get_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:"get_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",get_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:"get_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",get_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:"get_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",get_UNIFORM_BLOCK_ACTIVE_UNIFORMS:"get_UNIFORM_BLOCK_ACTIVE_UNIFORMS",get_UNIFORM_BLOCK_DATA_SIZE:"get_UNIFORM_BLOCK_DATA_SIZE",get_UNIFORM_BLOCK_BINDING:"get_UNIFORM_BLOCK_BINDING",get_UNIFORM_IS_ROW_MAJOR:"get_UNIFORM_IS_ROW_MAJOR",get_UNIFORM_MATRIX_STRIDE:"get_UNIFORM_MATRIX_STRIDE",get_UNIFORM_ARRAY_STRIDE:"get_UNIFORM_ARRAY_STRIDE",get_UNIFORM_OFFSET:"get_UNIFORM_OFFSET",get_UNIFORM_BLOCK_INDEX:"get_UNIFORM_BLOCK_INDEX",get_UNIFORM_SIZE:"get_UNIFORM_SIZE",get_UNIFORM_TYPE:"get_UNIFORM_TYPE",get_ACTIVE_UNIFORM_BLOCKS:"get_ACTIVE_UNIFORM_BLOCKS",get_UNIFORM_BUFFER_OFFSET_ALIGNMENT:"get_UNIFORM_BUFFER_OFFSET_ALIGNMENT",get_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:"get_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",get_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:"get_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",get_MAX_UNIFORM_BLOCK_SIZE:"get_MAX_UNIFORM_BLOCK_SIZE",get_MAX_UNIFORM_BUFFER_BINDINGS:"get_MAX_UNIFORM_BUFFER_BINDINGS",get_MAX_COMBINED_UNIFORM_BLOCKS:"get_MAX_COMBINED_UNIFORM_BLOCKS",get_MAX_FRAGMENT_UNIFORM_BLOCKS:"get_MAX_FRAGMENT_UNIFORM_BLOCKS",get_MAX_VERTEX_UNIFORM_BLOCKS:"get_MAX_VERTEX_UNIFORM_BLOCKS",get_UNIFORM_BUFFER_SIZE:"get_UNIFORM_BUFFER_SIZE",get_UNIFORM_BUFFER_START:"get_UNIFORM_BUFFER_START",get_UNIFORM_BUFFER_BINDING:"get_UNIFORM_BUFFER_BINDING",get_UNIFORM_BUFFER:"get_UNIFORM_BUFFER",get_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:"get_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:"get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",get_RENDERBUFFER_SAMPLES:"get_RENDERBUFFER_SAMPLES",get_READ_FRAMEBUFFER_BINDING:"get_READ_FRAMEBUFFER_BINDING",get_DRAW_FRAMEBUFFER:"get_DRAW_FRAMEBUFFER",get_READ_FRAMEBUFFER:"get_READ_FRAMEBUFFER",get_DRAW_FRAMEBUFFER_BINDING:"get_DRAW_FRAMEBUFFER_BINDING",get_DEPTH24_STENCIL8:"get_DEPTH24_STENCIL8",get_FRAMEBUFFER_DEFAULT:"get_FRAMEBUFFER_DEFAULT",get_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:"get_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",get_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:"get_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",get_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:"get_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",get_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:"get_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",get_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:"get_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",get_FRAMEBUFFER_ATTACHMENT_RED_SIZE:"get_FRAMEBUFFER_ATTACHMENT_RED_SIZE",get_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:"get_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",get_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:"get_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",get_TRANSFORM_FEEDBACK_BINDING:"get_TRANSFORM_FEEDBACK_BINDING",get_TRANSFORM_FEEDBACK_ACTIVE:"get_TRANSFORM_FEEDBACK_ACTIVE",get_TRANSFORM_FEEDBACK_PAUSED:"get_TRANSFORM_FEEDBACK_PAUSED",get_TRANSFORM_FEEDBACK:"get_TRANSFORM_FEEDBACK",get_TRANSFORM_FEEDBACK_BUFFER_BINDING:"get_TRANSFORM_FEEDBACK_BUFFER_BINDING",get_TRANSFORM_FEEDBACK_BUFFER:"get_TRANSFORM_FEEDBACK_BUFFER",get_SEPARATE_ATTRIBS:"get_SEPARATE_ATTRIBS",get_INTERLEAVED_ATTRIBS:"get_INTERLEAVED_ATTRIBS",get_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:"get_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",get_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:"get_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",get_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:"get_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",get_TRANSFORM_FEEDBACK_BUFFER_SIZE:"get_TRANSFORM_FEEDBACK_BUFFER_SIZE",get_TRANSFORM_FEEDBACK_BUFFER_START:"get_TRANSFORM_FEEDBACK_BUFFER_START",get_TRANSFORM_FEEDBACK_VARYINGS:"get_TRANSFORM_FEEDBACK_VARYINGS",get_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:"get_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",get_TRANSFORM_FEEDBACK_BUFFER_MODE:"get_TRANSFORM_FEEDBACK_BUFFER_MODE",get_VERTEX_ATTRIB_ARRAY_DIVISOR:"get_VERTEX_ATTRIB_ARRAY_DIVISOR",get_VERTEX_ATTRIB_ARRAY_INTEGER:"get_VERTEX_ATTRIB_ARRAY_INTEGER",get_SIGNED_NORMALIZED:"get_SIGNED_NORMALIZED",get_UNSIGNED_NORMALIZED:"get_UNSIGNED_NORMALIZED",get_UNSIGNED_INT_VEC4:"get_UNSIGNED_INT_VEC4",get_UNSIGNED_INT_VEC3:"get_UNSIGNED_INT_VEC3",get_UNSIGNED_INT_VEC2:"get_UNSIGNED_INT_VEC2",get_FLOAT_MAT4x3:"get_FLOAT_MAT4x3",get_FLOAT_MAT4x2:"get_FLOAT_MAT4x2",get_FLOAT_MAT3x4:"get_FLOAT_MAT3x4",get_FLOAT_MAT3x2:"get_FLOAT_MAT3x2",get_FLOAT_MAT2x4:"get_FLOAT_MAT2x4",get_FLOAT_MAT2x3:"get_FLOAT_MAT2x3",get_COPY_WRITE_BUFFER_BINDING:"get_COPY_WRITE_BUFFER_BINDING",get_COPY_READ_BUFFER_BINDING:"get_COPY_READ_BUFFER_BINDING",get_COPY_WRITE_BUFFER:"get_COPY_WRITE_BUFFER",get_COPY_READ_BUFFER:"get_COPY_READ_BUFFER",get_PIXEL_UNPACK_BUFFER_BINDING:"get_PIXEL_UNPACK_BUFFER_BINDING",get_PIXEL_PACK_BUFFER_BINDING:"get_PIXEL_PACK_BUFFER_BINDING",get_PIXEL_UNPACK_BUFFER:"get_PIXEL_UNPACK_BUFFER",get_PIXEL_PACK_BUFFER:"get_PIXEL_PACK_BUFFER",get_SAMPLER_BINDING:"get_SAMPLER_BINDING",get_MAX_SAMPLES:"get_MAX_SAMPLES",get_UNSIGNED_INT_SAMPLER_2D_ARRAY:"get_UNSIGNED_INT_SAMPLER_2D_ARRAY",get_UNSIGNED_INT_SAMPLER_CUBE:"get_UNSIGNED_INT_SAMPLER_CUBE",get_UNSIGNED_INT_SAMPLER_3D:"get_UNSIGNED_INT_SAMPLER_3D",get_UNSIGNED_INT_SAMPLER_2D:"get_UNSIGNED_INT_SAMPLER_2D",get_INT_SAMPLER_2D_ARRAY:"get_INT_SAMPLER_2D_ARRAY",get_INT_SAMPLER_CUBE:"get_INT_SAMPLER_CUBE",get_INT_SAMPLER_3D:"get_INT_SAMPLER_3D",get_INT_SAMPLER_2D:"get_INT_SAMPLER_2D",get_SAMPLER_CUBE_SHADOW:"get_SAMPLER_CUBE_SHADOW",get_SAMPLER_2D_ARRAY_SHADOW:"get_SAMPLER_2D_ARRAY_SHADOW",get_SAMPLER_2D_ARRAY:"get_SAMPLER_2D_ARRAY",get_SAMPLER_2D_SHADOW:"get_SAMPLER_2D_SHADOW",get_SAMPLER_3D:"get_SAMPLER_3D",get_COLOR_ATTACHMENT15:"get_COLOR_ATTACHMENT15",get_COLOR_ATTACHMENT14:"get_COLOR_ATTACHMENT14",get_COLOR_ATTACHMENT13:"get_COLOR_ATTACHMENT13",get_COLOR_ATTACHMENT12:"get_COLOR_ATTACHMENT12",get_COLOR_ATTACHMENT11:"get_COLOR_ATTACHMENT11",get_COLOR_ATTACHMENT10:"get_COLOR_ATTACHMENT10",get_COLOR_ATTACHMENT9:"get_COLOR_ATTACHMENT9",get_COLOR_ATTACHMENT8:"get_COLOR_ATTACHMENT8",get_COLOR_ATTACHMENT7:"get_COLOR_ATTACHMENT7",get_COLOR_ATTACHMENT6:"get_COLOR_ATTACHMENT6",get_COLOR_ATTACHMENT5:"get_COLOR_ATTACHMENT5",get_COLOR_ATTACHMENT4:"get_COLOR_ATTACHMENT4",get_COLOR_ATTACHMENT3:"get_COLOR_ATTACHMENT3",get_COLOR_ATTACHMENT2:"get_COLOR_ATTACHMENT2",get_COLOR_ATTACHMENT1:"get_COLOR_ATTACHMENT1",get_MAX_COLOR_ATTACHMENTS:"get_MAX_COLOR_ATTACHMENTS",get_DRAW_BUFFER15:"get_DRAW_BUFFER15",get_DRAW_BUFFER14:"get_DRAW_BUFFER14",get_DRAW_BUFFER13:"get_DRAW_BUFFER13",get_DRAW_BUFFER12:"get_DRAW_BUFFER12",get_DRAW_BUFFER11:"get_DRAW_BUFFER11",get_DRAW_BUFFER10:"get_DRAW_BUFFER10",get_DRAW_BUFFER9:"get_DRAW_BUFFER9",get_DRAW_BUFFER8:"get_DRAW_BUFFER8",get_DRAW_BUFFER7:"get_DRAW_BUFFER7",get_DRAW_BUFFER6:"get_DRAW_BUFFER6",get_DRAW_BUFFER5:"get_DRAW_BUFFER5",get_DRAW_BUFFER4:"get_DRAW_BUFFER4",get_DRAW_BUFFER3:"get_DRAW_BUFFER3",get_DRAW_BUFFER2:"get_DRAW_BUFFER2",get_DRAW_BUFFER1:"get_DRAW_BUFFER1",get_DRAW_BUFFER0:"get_DRAW_BUFFER0",get_MAX_DRAW_BUFFERS:"get_MAX_DRAW_BUFFERS",get_ANY_SAMPLES_PASSED_CONSERVATIVE:"get_ANY_SAMPLES_PASSED_CONSERVATIVE",get_ANY_SAMPLES_PASSED:"get_ANY_SAMPLES_PASSED",get_QUERY_RESULT_AVAILABLE:"get_QUERY_RESULT_AVAILABLE",get_QUERY_RESULT:"get_QUERY_RESULT",get_CURRENT_QUERY:"get_CURRENT_QUERY",get_INT_2_10_10_10_REV:"get_INT_2_10_10_10_REV",get_RG_INTEGER:"get_RG_INTEGER",get_RG:"get_RG",get_HALF_FLOAT:"get_HALF_FLOAT",get_UNSIGNED_INT_24_8:"get_UNSIGNED_INT_24_8",get_FLOAT_32_UNSIGNED_INT_24_8_REV:"get_FLOAT_32_UNSIGNED_INT_24_8_REV",get_UNSIGNED_INT_5_9_9_9_REV:"get_UNSIGNED_INT_5_9_9_9_REV",get_UNSIGNED_INT_10F_11F_11F_REV:"get_UNSIGNED_INT_10F_11F_11F_REV",get_UNSIGNED_INT_2_10_10_10_REV:"get_UNSIGNED_INT_2_10_10_10_REV",get_TEXTURE_IMMUTABLE_LEVELS:"get_TEXTURE_IMMUTABLE_LEVELS",get_TEXTURE_IMMUTABLE_FORMAT:"get_TEXTURE_IMMUTABLE_FORMAT",get_RGB10_A2UI:"get_RGB10_A2UI",get_RGBA8_SNORM:"get_RGBA8_SNORM",get_RGB8_SNORM:"get_RGB8_SNORM",get_RG8_SNORM:"get_RG8_SNORM",get_R8_SNORM:"get_R8_SNORM",get_RG32UI:"get_RG32UI",get_RG32I:"get_RG32I",get_RG16UI:"get_RG16UI",get_RG16I:"get_RG16I",get_RG8UI:"get_RG8UI",get_RG8I:"get_RG8I",get_R32UI:"get_R32UI",get_R32I:"get_R32I",get_R16UI:"get_R16UI",get_R16I:"get_R16I",get_R8UI:"get_R8UI",get_R8I:"get_R8I",get_RG32F:"get_RG32F",get_RG16F:"get_RG16F",get_R32F:"get_R32F",get_R16F:"get_R16F",get_RG8:"get_RG8",get_R8:"get_R8",get_RGBA_INTEGER:"get_RGBA_INTEGER",get_RGB_INTEGER:"get_RGB_INTEGER",get_RED_INTEGER:"get_RED_INTEGER",get_RGB8I:"get_RGB8I",get_RGBA8I:"get_RGBA8I",get_RGB16I:"get_RGB16I",get_RGBA16I:"get_RGBA16I",get_RGB32I:"get_RGB32I",get_RGBA32I:"get_RGBA32I",get_RGB8UI:"get_RGB8UI",get_RGBA8UI:"get_RGBA8UI",get_RGB16UI:"get_RGB16UI",get_RGBA16UI:"get_RGBA16UI",get_RGB32UI:"get_RGB32UI",get_RGBA32UI:"get_RGBA32UI",get_RGB9_E5:"get_RGB9_E5",get_R11F_G11F_B10F:"get_R11F_G11F_B10F",get_TEXTURE_BINDING_2D_ARRAY:"get_TEXTURE_BINDING_2D_ARRAY",get_TEXTURE_2D_ARRAY:"get_TEXTURE_2D_ARRAY",get_RGB16F:"get_RGB16F",get_RGBA16F:"get_RGBA16F",get_RGB32F:"get_RGB32F",get_RGBA32F:"get_RGBA32F",get_COMPARE_REF_TO_TEXTURE:"get_COMPARE_REF_TO_TEXTURE",get_SRGB8_ALPHA8:"get_SRGB8_ALPHA8",get_SRGB8:"get_SRGB8",get_SRGB:"get_SRGB",get_TEXTURE_COMPARE_FUNC:"get_TEXTURE_COMPARE_FUNC",get_TEXTURE_COMPARE_MODE:"get_TEXTURE_COMPARE_MODE",get_TEXTURE_MAX_LEVEL:"get_TEXTURE_MAX_LEVEL",get_TEXTURE_BASE_LEVEL:"get_TEXTURE_BASE_LEVEL",get_TEXTURE_MAX_LOD:"get_TEXTURE_MAX_LOD",get_TEXTURE_MIN_LOD:"get_TEXTURE_MIN_LOD",get_TEXTURE_WRAP_R:"get_TEXTURE_WRAP_R",get_TEXTURE_3D:"get_TEXTURE_3D",get_RGB10_A2:"get_RGB10_A2",get_RGBA8:"get_RGBA8",get_RGB8:"get_RGB8",get_RED:"get_RED",get_MAX_ELEMENT_INDEX:"get_MAX_ELEMENT_INDEX",get_MAX_SERVER_WAIT_TIMEOUT:"get_MAX_SERVER_WAIT_TIMEOUT",get_MAX_FRAGMENT_INPUT_COMPONENTS:"get_MAX_FRAGMENT_INPUT_COMPONENTS",get_MAX_VERTEX_OUTPUT_COMPONENTS:"get_MAX_VERTEX_OUTPUT_COMPONENTS",get_VERTEX_ARRAY_BINDING:"get_VERTEX_ARRAY_BINDING",get_RASTERIZER_DISCARD:"get_RASTERIZER_DISCARD",get_FRAGMENT_SHADER_DERIVATIVE_HINT:"get_FRAGMENT_SHADER_DERIVATIVE_HINT",get_MAX_VARYING_COMPONENTS:"get_MAX_VARYING_COMPONENTS",get_MAX_PROGRAM_TEXEL_OFFSET:"get_MAX_PROGRAM_TEXEL_OFFSET",get_MIN_PROGRAM_TEXEL_OFFSET:"get_MIN_PROGRAM_TEXEL_OFFSET",get_MAX_ARRAY_TEXTURE_LAYERS:"get_MAX_ARRAY_TEXTURE_LAYERS",get_MAX_VERTEX_UNIFORM_COMPONENTS:"get_MAX_VERTEX_UNIFORM_COMPONENTS",get_MAX_FRAGMENT_UNIFORM_COMPONENTS:"get_MAX_FRAGMENT_UNIFORM_COMPONENTS",get_MAX_TEXTURE_LOD_BIAS:"get_MAX_TEXTURE_LOD_BIAS",get_MAX_ELEMENTS_INDICES:"get_MAX_ELEMENTS_INDICES",get_MAX_ELEMENTS_VERTICES:"get_MAX_ELEMENTS_VERTICES",get_MAX_3D_TEXTURE_SIZE:"get_MAX_3D_TEXTURE_SIZE",get_UNPACK_IMAGE_HEIGHT:"get_UNPACK_IMAGE_HEIGHT",get_UNPACK_SKIP_IMAGES:"get_UNPACK_SKIP_IMAGES",get_TEXTURE_BINDING_3D:"get_TEXTURE_BINDING_3D",get_PACK_SKIP_PIXELS:"get_PACK_SKIP_PIXELS",get_PACK_SKIP_ROWS:"get_PACK_SKIP_ROWS",get_PACK_ROW_LENGTH:"get_PACK_ROW_LENGTH",get_UNPACK_SKIP_PIXELS:"get_UNPACK_SKIP_PIXELS",get_UNPACK_SKIP_ROWS:"get_UNPACK_SKIP_ROWS",get_UNPACK_ROW_LENGTH:"get_UNPACK_ROW_LENGTH",get_READ_BUFFER:"get_READ_BUFFER",get_BROWSER_DEFAULT_WEBGL:"get_BROWSER_DEFAULT_WEBGL",get_UNPACK_COLORSPACE_CONVERSION_WEBGL:"get_UNPACK_COLORSPACE_CONVERSION_WEBGL",get_CONTEXT_LOST_WEBGL:"get_CONTEXT_LOST_WEBGL",get_UNPACK_PREMULTIPLY_ALPHA_WEBGL:"get_UNPACK_PREMULTIPLY_ALPHA_WEBGL",get_UNPACK_FLIP_Y_WEBGL:"get_UNPACK_FLIP_Y_WEBGL",get_INVALID_FRAMEBUFFER_OPERATION:"get_INVALID_FRAMEBUFFER_OPERATION",get_MAX_RENDERBUFFER_SIZE:"get_MAX_RENDERBUFFER_SIZE",get_RENDERBUFFER_BINDING:"get_RENDERBUFFER_BINDING",get_FRAMEBUFFER_BINDING:"get_FRAMEBUFFER_BINDING",get_FRAMEBUFFER_UNSUPPORTED:"get_FRAMEBUFFER_UNSUPPORTED",get_FRAMEBUFFER_INCOMPLETE_DIMENSIONS:"get_FRAMEBUFFER_INCOMPLETE_DIMENSIONS",get_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:"get_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",get_FRAMEBUFFER_INCOMPLETE_ATTACHMENT:"get_FRAMEBUFFER_INCOMPLETE_ATTACHMENT",get_FRAMEBUFFER_COMPLETE:"get_FRAMEBUFFER_COMPLETE",get_NONE:"get_NONE",get_DEPTH_STENCIL_ATTACHMENT:"get_DEPTH_STENCIL_ATTACHMENT",get_STENCIL_ATTACHMENT:"get_STENCIL_ATTACHMENT",get_DEPTH_ATTACHMENT:"get_DEPTH_ATTACHMENT",get_COLOR_ATTACHMENT0:"get_COLOR_ATTACHMENT0",get_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:"get_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:"get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",get_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:"get_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",get_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:"get_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",get_RENDERBUFFER_STENCIL_SIZE:"get_RENDERBUFFER_STENCIL_SIZE",get_RENDERBUFFER_DEPTH_SIZE:"get_RENDERBUFFER_DEPTH_SIZE",get_RENDERBUFFER_ALPHA_SIZE:"get_RENDERBUFFER_ALPHA_SIZE",get_RENDERBUFFER_BLUE_SIZE:"get_RENDERBUFFER_BLUE_SIZE",get_RENDERBUFFER_GREEN_SIZE:"get_RENDERBUFFER_GREEN_SIZE",get_RENDERBUFFER_RED_SIZE:"get_RENDERBUFFER_RED_SIZE",get_RENDERBUFFER_INTERNAL_FORMAT:"get_RENDERBUFFER_INTERNAL_FORMAT",get_RENDERBUFFER_HEIGHT:"get_RENDERBUFFER_HEIGHT",get_RENDERBUFFER_WIDTH:"get_RENDERBUFFER_WIDTH",get_DEPTH_STENCIL:"get_DEPTH_STENCIL",get_STENCIL_INDEX8:"get_STENCIL_INDEX8",get_STENCIL_INDEX:"get_STENCIL_INDEX",get_DEPTH_COMPONENT16:"get_DEPTH_COMPONENT16",get_RGB565:"get_RGB565",get_RGB5_A1:"get_RGB5_A1",get_RGBA4:"get_RGBA4",get_RENDERBUFFER:"get_RENDERBUFFER",get_FRAMEBUFFER:"get_FRAMEBUFFER",get_HIGH_INT:"get_HIGH_INT",get_MEDIUM_INT:"get_MEDIUM_INT",get_LOW_INT:"get_LOW_INT",get_HIGH_FLOAT:"get_HIGH_FLOAT",get_MEDIUM_FLOAT:"get_MEDIUM_FLOAT",get_LOW_FLOAT:"get_LOW_FLOAT",get_COMPILE_STATUS:"get_COMPILE_STATUS",get_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:"get_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",get_VERTEX_ATTRIB_ARRAY_POINTER:"get_VERTEX_ATTRIB_ARRAY_POINTER",get_VERTEX_ATTRIB_ARRAY_NORMALIZED:"get_VERTEX_ATTRIB_ARRAY_NORMALIZED",get_VERTEX_ATTRIB_ARRAY_TYPE:"get_VERTEX_ATTRIB_ARRAY_TYPE",get_VERTEX_ATTRIB_ARRAY_STRIDE:"get_VERTEX_ATTRIB_ARRAY_STRIDE",get_VERTEX_ATTRIB_ARRAY_SIZE:"get_VERTEX_ATTRIB_ARRAY_SIZE",get_VERTEX_ATTRIB_ARRAY_ENABLED:"get_VERTEX_ATTRIB_ARRAY_ENABLED",get_SAMPLER_CUBE:"get_SAMPLER_CUBE",get_SAMPLER_2D:"get_SAMPLER_2D",get_FLOAT_MAT4:"get_FLOAT_MAT4",get_FLOAT_MAT3:"get_FLOAT_MAT3",get_FLOAT_MAT2:"get_FLOAT_MAT2",get_BOOL_VEC4:"get_BOOL_VEC4",get_BOOL_VEC3:"get_BOOL_VEC3",get_BOOL_VEC2:"get_BOOL_VEC2",get_BOOL:"get_BOOL",get_INT_VEC4:"get_INT_VEC4",get_INT_VEC3:"get_INT_VEC3",get_INT_VEC2:"get_INT_VEC2",get_FLOAT_VEC4:"get_FLOAT_VEC4",get_FLOAT_VEC3:"get_FLOAT_VEC3",get_FLOAT_VEC2:"get_FLOAT_VEC2",get_MIRRORED_REPEAT:"get_MIRRORED_REPEAT",get_CLAMP_TO_EDGE:"get_CLAMP_TO_EDGE",get_REPEAT:"get_REPEAT",get_ACTIVE_TEXTURE:"get_ACTIVE_TEXTURE",get_TEXTURE31:"get_TEXTURE31",get_TEXTURE30:"get_TEXTURE30",get_TEXTURE29:"get_TEXTURE29",get_TEXTURE28:"get_TEXTURE28",get_TEXTURE27:"get_TEXTURE27",get_TEXTURE26:"get_TEXTURE26",get_TEXTURE25:"get_TEXTURE25",get_TEXTURE24:"get_TEXTURE24",get_TEXTURE23:"get_TEXTURE23",get_TEXTURE22:"get_TEXTURE22",get_TEXTURE21:"get_TEXTURE21",get_TEXTURE20:"get_TEXTURE20",get_TEXTURE19:"get_TEXTURE19",get_TEXTURE18:"get_TEXTURE18",get_TEXTURE17:"get_TEXTURE17",get_TEXTURE16:"get_TEXTURE16",get_TEXTURE15:"get_TEXTURE15",get_TEXTURE14:"get_TEXTURE14",get_TEXTURE13:"get_TEXTURE13",get_TEXTURE12:"get_TEXTURE12",get_TEXTURE11:"get_TEXTURE11",get_TEXTURE10:"get_TEXTURE10",get_TEXTURE9:"get_TEXTURE9",get_TEXTURE8:"get_TEXTURE8",get_TEXTURE7:"get_TEXTURE7",get_TEXTURE6:"get_TEXTURE6",get_TEXTURE5:"get_TEXTURE5",get_TEXTURE4:"get_TEXTURE4",get_TEXTURE3:"get_TEXTURE3",get_TEXTURE2:"get_TEXTURE2",get_TEXTURE1:"get_TEXTURE1",get_TEXTURE0:"get_TEXTURE0",get_MAX_CUBE_MAP_TEXTURE_SIZE:"get_MAX_CUBE_MAP_TEXTURE_SIZE",get_TEXTURE_CUBE_MAP_NEGATIVE_Z:"get_TEXTURE_CUBE_MAP_NEGATIVE_Z",get_TEXTURE_CUBE_MAP_POSITIVE_Z:"get_TEXTURE_CUBE_MAP_POSITIVE_Z",get_TEXTURE_CUBE_MAP_NEGATIVE_Y:"get_TEXTURE_CUBE_MAP_NEGATIVE_Y",get_TEXTURE_CUBE_MAP_POSITIVE_Y:"get_TEXTURE_CUBE_MAP_POSITIVE_Y",get_TEXTURE_CUBE_MAP_NEGATIVE_X:"get_TEXTURE_CUBE_MAP_NEGATIVE_X",get_TEXTURE_CUBE_MAP_POSITIVE_X:"get_TEXTURE_CUBE_MAP_POSITIVE_X",get_TEXTURE_BINDING_CUBE_MAP:"get_TEXTURE_BINDING_CUBE_MAP",get_TEXTURE_CUBE_MAP:"get_TEXTURE_CUBE_MAP",get_TEXTURE:"get_TEXTURE",get_TEXTURE_2D:"get_TEXTURE_2D",get_TEXTURE_WRAP_T:"get_TEXTURE_WRAP_T",get_TEXTURE_WRAP_S:"get_TEXTURE_WRAP_S",get_TEXTURE_MIN_FILTER:"get_TEXTURE_MIN_FILTER",get_TEXTURE_MAG_FILTER:"get_TEXTURE_MAG_FILTER",get_LINEAR_MIPMAP_LINEAR:"get_LINEAR_MIPMAP_LINEAR",get_NEAREST_MIPMAP_LINEAR:"get_NEAREST_MIPMAP_LINEAR",get_LINEAR_MIPMAP_NEAREST:"get_LINEAR_MIPMAP_NEAREST",get_NEAREST_MIPMAP_NEAREST:"get_NEAREST_MIPMAP_NEAREST",get_LINEAR:"get_LINEAR",get_NEAREST:"get_NEAREST",get_VERSION:"get_VERSION",get_RENDERER:"get_RENDERER",get_VENDOR:"get_VENDOR",get_DECR_WRAP:"get_DECR_WRAP",get_INCR_WRAP:"get_INCR_WRAP",get_INVERT:"get_INVERT",get_DECR:"get_DECR",get_INCR:"get_INCR",get_REPLACE:"get_REPLACE",get_KEEP:"get_KEEP",get_ALWAYS:"get_ALWAYS",get_GEQUAL:"get_GEQUAL",get_NOTEQUAL:"get_NOTEQUAL",get_GREATER:"get_GREATER",get_LEQUAL:"get_LEQUAL",get_EQUAL:"get_EQUAL",get_LESS:"get_LESS",get_NEVER:"get_NEVER",get_CURRENT_PROGRAM:"get_CURRENT_PROGRAM",get_SHADING_LANGUAGE_VERSION:"get_SHADING_LANGUAGE_VERSION",get_ACTIVE_ATTRIBUTES:"get_ACTIVE_ATTRIBUTES",get_ACTIVE_UNIFORMS:"get_ACTIVE_UNIFORMS",get_ATTACHED_SHADERS:"get_ATTACHED_SHADERS",get_VALIDATE_STATUS:"get_VALIDATE_STATUS",get_LINK_STATUS:"get_LINK_STATUS",get_DELETE_STATUS:"get_DELETE_STATUS",get_SHADER_TYPE:"get_SHADER_TYPE",get_MAX_FRAGMENT_UNIFORM_VECTORS:"get_MAX_FRAGMENT_UNIFORM_VECTORS",get_MAX_TEXTURE_IMAGE_UNITS:"get_MAX_TEXTURE_IMAGE_UNITS",get_MAX_VERTEX_TEXTURE_IMAGE_UNITS:"get_MAX_VERTEX_TEXTURE_IMAGE_UNITS",get_MAX_COMBINED_TEXTURE_IMAGE_UNITS:"get_MAX_COMBINED_TEXTURE_IMAGE_UNITS",get_MAX_VARYING_VECTORS:"get_MAX_VARYING_VECTORS",get_MAX_VERTEX_UNIFORM_VECTORS:"get_MAX_VERTEX_UNIFORM_VECTORS",get_MAX_VERTEX_ATTRIBS:"get_MAX_VERTEX_ATTRIBS",get_VERTEX_SHADER:"get_VERTEX_SHADER",get_FRAGMENT_SHADER:"get_FRAGMENT_SHADER",get_UNSIGNED_SHORT_5_6_5:"get_UNSIGNED_SHORT_5_6_5",get_UNSIGNED_SHORT_5_5_5_1:"get_UNSIGNED_SHORT_5_5_5_1",get_UNSIGNED_SHORT_4_4_4_4:"get_UNSIGNED_SHORT_4_4_4_4",get_LUMINANCE_ALPHA:"get_LUMINANCE_ALPHA",get_LUMINANCE:"get_LUMINANCE",get_RGBA:"get_RGBA",get_RGB:"get_RGB",get_ALPHA:"get_ALPHA",get_DEPTH_COMPONENT:"get_DEPTH_COMPONENT",get_FLOAT:"get_FLOAT",get_UNSIGNED_INT:"get_UNSIGNED_INT",get_INT:"get_INT",get_UNSIGNED_SHORT:"get_UNSIGNED_SHORT",get_SHORT:"get_SHORT",get_UNSIGNED_BYTE:"get_UNSIGNED_BYTE",get_BYTE:"get_BYTE",get_GENERATE_MIPMAP_HINT:"get_GENERATE_MIPMAP_HINT",get_NICEST:"get_NICEST",get_FASTEST:"get_FASTEST",get_DONT_CARE:"get_DONT_CARE",get_COMPRESSED_TEXTURE_FORMATS:"get_COMPRESSED_TEXTURE_FORMATS",get_SAMPLE_COVERAGE_INVERT:"get_SAMPLE_COVERAGE_INVERT",get_SAMPLE_COVERAGE_VALUE:"get_SAMPLE_COVERAGE_VALUE",get_SAMPLES:"get_SAMPLES",get_SAMPLE_BUFFERS:"get_SAMPLE_BUFFERS",get_TEXTURE_BINDING_2D:"get_TEXTURE_BINDING_2D",get_POLYGON_OFFSET_FACTOR:"get_POLYGON_OFFSET_FACTOR",get_POLYGON_OFFSET_UNITS:"get_POLYGON_OFFSET_UNITS",get_STENCIL_BITS:"get_STENCIL_BITS",get_DEPTH_BITS:"get_DEPTH_BITS",get_ALPHA_BITS:"get_ALPHA_BITS",get_BLUE_BITS:"get_BLUE_BITS",get_GREEN_BITS:"get_GREEN_BITS",get_RED_BITS:"get_RED_BITS",get_SUBPIXEL_BITS:"get_SUBPIXEL_BITS",get_MAX_VIEWPORT_DIMS:"get_MAX_VIEWPORT_DIMS",get_MAX_TEXTURE_SIZE:"get_MAX_TEXTURE_SIZE",get_PACK_ALIGNMENT:"get_PACK_ALIGNMENT",get_UNPACK_ALIGNMENT:"get_UNPACK_ALIGNMENT",get_COLOR_WRITEMASK:"get_COLOR_WRITEMASK",get_COLOR_CLEAR_VALUE:"get_COLOR_CLEAR_VALUE",get_SCISSOR_BOX:"get_SCISSOR_BOX",get_VIEWPORT:"get_VIEWPORT",get_STENCIL_BACK_WRITEMASK:"get_STENCIL_BACK_WRITEMASK",get_STENCIL_BACK_VALUE_MASK:"get_STENCIL_BACK_VALUE_MASK",get_STENCIL_BACK_REF:"get_STENCIL_BACK_REF",get_STENCIL_BACK_PASS_DEPTH_PASS:"get_STENCIL_BACK_PASS_DEPTH_PASS",get_STENCIL_BACK_PASS_DEPTH_FAIL:"get_STENCIL_BACK_PASS_DEPTH_FAIL",get_STENCIL_BACK_FAIL:"get_STENCIL_BACK_FAIL",get_STENCIL_BACK_FUNC:"get_STENCIL_BACK_FUNC",get_STENCIL_WRITEMASK:"get_STENCIL_WRITEMASK",get_STENCIL_VALUE_MASK:"get_STENCIL_VALUE_MASK",get_STENCIL_REF:"get_STENCIL_REF",get_STENCIL_PASS_DEPTH_PASS:"get_STENCIL_PASS_DEPTH_PASS",get_STENCIL_PASS_DEPTH_FAIL:"get_STENCIL_PASS_DEPTH_FAIL",get_STENCIL_FAIL:"get_STENCIL_FAIL",get_STENCIL_FUNC:"get_STENCIL_FUNC",get_STENCIL_CLEAR_VALUE:"get_STENCIL_CLEAR_VALUE",get_DEPTH_FUNC:"get_DEPTH_FUNC",get_DEPTH_CLEAR_VALUE:"get_DEPTH_CLEAR_VALUE",get_DEPTH_WRITEMASK:"get_DEPTH_WRITEMASK",get_DEPTH_RANGE:"get_DEPTH_RANGE",get_FRONT_FACE:"get_FRONT_FACE",get_CULL_FACE_MODE:"get_CULL_FACE_MODE",get_ALIASED_LINE_WIDTH_RANGE:"get_ALIASED_LINE_WIDTH_RANGE",get_ALIASED_POINT_SIZE_RANGE:"get_ALIASED_POINT_SIZE_RANGE",get_LINE_WIDTH:"get_LINE_WIDTH",get_CCW:"get_CCW",get_CW:"get_CW",get_OUT_OF_MEMORY:"get_OUT_OF_MEMORY",get_INVALID_OPERATION:"get_INVALID_OPERATION",get_INVALID_VALUE:"get_INVALID_VALUE",get_INVALID_ENUM:"get_INVALID_ENUM",get_NO_ERROR:"get_NO_ERROR",get_SAMPLE_COVERAGE:"get_SAMPLE_COVERAGE",get_SAMPLE_ALPHA_TO_COVERAGE:"get_SAMPLE_ALPHA_TO_COVERAGE",get_POLYGON_OFFSET_FILL:"get_POLYGON_OFFSET_FILL",get_SCISSOR_TEST:"get_SCISSOR_TEST",get_DEPTH_TEST:"get_DEPTH_TEST",get_STENCIL_TEST:"get_STENCIL_TEST",get_DITHER:"get_DITHER",get_BLEND:"get_BLEND",get_CULL_FACE:"get_CULL_FACE",get_FRONT_AND_BACK:"get_FRONT_AND_BACK",get_BACK:"get_BACK",get_FRONT:"get_FRONT",get_CURRENT_VERTEX_ATTRIB:"get_CURRENT_VERTEX_ATTRIB",get_BUFFER_USAGE:"get_BUFFER_USAGE",get_BUFFER_SIZE:"get_BUFFER_SIZE",get_DYNAMIC_DRAW:"get_DYNAMIC_DRAW",get_STATIC_DRAW:"get_STATIC_DRAW",get_STREAM_DRAW:"get_STREAM_DRAW",get_ELEMENT_ARRAY_BUFFER_BINDING:"get_ELEMENT_ARRAY_BUFFER_BINDING",get_ARRAY_BUFFER_BINDING:"get_ARRAY_BUFFER_BINDING",get_ELEMENT_ARRAY_BUFFER:"get_ELEMENT_ARRAY_BUFFER",get_ARRAY_BUFFER:"get_ARRAY_BUFFER",get_BLEND_COLOR:"get_BLEND_COLOR",get_ONE_MINUS_CONSTANT_ALPHA:"get_ONE_MINUS_CONSTANT_ALPHA",get_CONSTANT_ALPHA:"get_CONSTANT_ALPHA",get_ONE_MINUS_CONSTANT_COLOR:"get_ONE_MINUS_CONSTANT_COLOR",get_CONSTANT_COLOR:"get_CONSTANT_COLOR",get_BLEND_SRC_ALPHA:"get_BLEND_SRC_ALPHA",get_BLEND_DST_ALPHA:"get_BLEND_DST_ALPHA",get_BLEND_SRC_RGB:"get_BLEND_SRC_RGB",get_BLEND_DST_RGB:"get_BLEND_DST_RGB",get_FUNC_REVERSE_SUBTRACT:"get_FUNC_REVERSE_SUBTRACT",get_FUNC_SUBTRACT:"get_FUNC_SUBTRACT",get_BLEND_EQUATION_ALPHA:"get_BLEND_EQUATION_ALPHA",get_BLEND_EQUATION_RGB:"get_BLEND_EQUATION_RGB",get_BLEND_EQUATION:"get_BLEND_EQUATION",get_FUNC_ADD:"get_FUNC_ADD",get_SRC_ALPHA_SATURATE:"get_SRC_ALPHA_SATURATE",get_ONE_MINUS_DST_COLOR:"get_ONE_MINUS_DST_COLOR",get_DST_COLOR:"get_DST_COLOR",get_ONE_MINUS_DST_ALPHA:"get_ONE_MINUS_DST_ALPHA",get_DST_ALPHA:"get_DST_ALPHA",get_ONE_MINUS_SRC_ALPHA:"get_ONE_MINUS_SRC_ALPHA",get_SRC_ALPHA:"get_SRC_ALPHA",get_ONE_MINUS_SRC_COLOR:"get_ONE_MINUS_SRC_COLOR",get_SRC_COLOR:"get_SRC_COLOR",get_ONE:"get_ONE",get_ZERO:"get_ZERO",get_TRIANGLE_FAN:"get_TRIANGLE_FAN",get_TRIANGLE_STRIP:"get_TRIANGLE_STRIP",get_TRIANGLES:"get_TRIANGLES",get_LINE_STRIP:"get_LINE_STRIP",get_LINE_LOOP:"get_LINE_LOOP",get_LINES:"get_LINES",get_POINTS:"get_POINTS",get_COLOR_BUFFER_BIT:"get_COLOR_BUFFER_BIT",get_STENCIL_BUFFER_BIT:"get_STENCIL_BUFFER_BIT",get_DEPTH_BUFFER_BIT:"get_DEPTH_BUFFER_BIT"}; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_BUFFER_BIT = function(this1) { return this1.DEPTH_BUFFER_BIT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BUFFER_BIT = function(this1) { return this1.STENCIL_BUFFER_BIT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_BUFFER_BIT = function(this1) { return this1.COLOR_BUFFER_BIT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_POINTS = function(this1) { return this1.POINTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINES = function(this1) { return this1.LINES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINE_LOOP = function(this1) { return this1.LINE_LOOP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINE_STRIP = function(this1) { return this1.LINE_STRIP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRIANGLES = function(this1) { return this1.TRIANGLES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRIANGLE_STRIP = function(this1) { return this1.TRIANGLE_STRIP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRIANGLE_FAN = function(this1) { return this1.TRIANGLE_FAN; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ZERO = function(this1) { return this1.ZERO; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ONE = function(this1) { return this1.ONE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SRC_COLOR = function(this1) { return this1.SRC_COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ONE_MINUS_SRC_COLOR = function(this1) { return this1.ONE_MINUS_SRC_COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SRC_ALPHA = function(this1) { return this1.SRC_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ONE_MINUS_SRC_ALPHA = function(this1) { return this1.ONE_MINUS_SRC_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DST_ALPHA = function(this1) { return this1.DST_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ONE_MINUS_DST_ALPHA = function(this1) { return this1.ONE_MINUS_DST_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DST_COLOR = function(this1) { return this1.DST_COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ONE_MINUS_DST_COLOR = function(this1) { return this1.ONE_MINUS_DST_COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SRC_ALPHA_SATURATE = function(this1) { return this1.SRC_ALPHA_SATURATE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FUNC_ADD = function(this1) { return this1.FUNC_ADD; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_EQUATION = function(this1) { return this1.BLEND_EQUATION; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_EQUATION_RGB = function(this1) { return this1.BLEND_EQUATION_RGB; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_EQUATION_ALPHA = function(this1) { return this1.BLEND_EQUATION_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FUNC_SUBTRACT = function(this1) { return this1.FUNC_SUBTRACT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FUNC_REVERSE_SUBTRACT = function(this1) { return this1.FUNC_REVERSE_SUBTRACT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_DST_RGB = function(this1) { return this1.BLEND_DST_RGB; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_SRC_RGB = function(this1) { return this1.BLEND_SRC_RGB; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_DST_ALPHA = function(this1) { return this1.BLEND_DST_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_SRC_ALPHA = function(this1) { return this1.BLEND_SRC_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CONSTANT_COLOR = function(this1) { return this1.CONSTANT_COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ONE_MINUS_CONSTANT_COLOR = function(this1) { return this1.ONE_MINUS_CONSTANT_COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CONSTANT_ALPHA = function(this1) { return this1.CONSTANT_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ONE_MINUS_CONSTANT_ALPHA = function(this1) { return this1.ONE_MINUS_CONSTANT_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND_COLOR = function(this1) { return this1.BLEND_COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ARRAY_BUFFER = function(this1) { return this1.ARRAY_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ELEMENT_ARRAY_BUFFER = function(this1) { return this1.ELEMENT_ARRAY_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ARRAY_BUFFER_BINDING = function(this1) { return this1.ARRAY_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ELEMENT_ARRAY_BUFFER_BINDING = function(this1) { return this1.ELEMENT_ARRAY_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STREAM_DRAW = function(this1) { return this1.STREAM_DRAW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STATIC_DRAW = function(this1) { return this1.STATIC_DRAW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DYNAMIC_DRAW = function(this1) { return this1.DYNAMIC_DRAW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BUFFER_SIZE = function(this1) { return this1.BUFFER_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BUFFER_USAGE = function(this1) { return this1.BUFFER_USAGE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CURRENT_VERTEX_ATTRIB = function(this1) { return this1.CURRENT_VERTEX_ATTRIB; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRONT = function(this1) { return this1.FRONT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BACK = function(this1) { return this1.BACK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRONT_AND_BACK = function(this1) { return this1.FRONT_AND_BACK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CULL_FACE = function(this1) { return this1.CULL_FACE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLEND = function(this1) { return this1.BLEND; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DITHER = function(this1) { return this1.DITHER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_TEST = function(this1) { return this1.STENCIL_TEST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_TEST = function(this1) { return this1.DEPTH_TEST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SCISSOR_TEST = function(this1) { return this1.SCISSOR_TEST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_POLYGON_OFFSET_FILL = function(this1) { return this1.POLYGON_OFFSET_FILL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLE_ALPHA_TO_COVERAGE = function(this1) { return this1.SAMPLE_ALPHA_TO_COVERAGE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLE_COVERAGE = function(this1) { return this1.SAMPLE_COVERAGE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NO_ERROR = function(this1) { return this1.NO_ERROR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INVALID_ENUM = function(this1) { return this1.INVALID_ENUM; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INVALID_VALUE = function(this1) { return this1.INVALID_VALUE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INVALID_OPERATION = function(this1) { return this1.INVALID_OPERATION; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_OUT_OF_MEMORY = function(this1) { return this1.OUT_OF_MEMORY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CW = function(this1) { return this1.CW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CCW = function(this1) { return this1.CCW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINE_WIDTH = function(this1) { return this1.LINE_WIDTH; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ALIASED_POINT_SIZE_RANGE = function(this1) { return this1.ALIASED_POINT_SIZE_RANGE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ALIASED_LINE_WIDTH_RANGE = function(this1) { return this1.ALIASED_LINE_WIDTH_RANGE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CULL_FACE_MODE = function(this1) { return this1.CULL_FACE_MODE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRONT_FACE = function(this1) { return this1.FRONT_FACE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_RANGE = function(this1) { return this1.DEPTH_RANGE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_WRITEMASK = function(this1) { return this1.DEPTH_WRITEMASK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_CLEAR_VALUE = function(this1) { return this1.DEPTH_CLEAR_VALUE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_FUNC = function(this1) { return this1.DEPTH_FUNC; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_CLEAR_VALUE = function(this1) { return this1.STENCIL_CLEAR_VALUE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_FUNC = function(this1) { return this1.STENCIL_FUNC; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_FAIL = function(this1) { return this1.STENCIL_FAIL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_PASS_DEPTH_FAIL = function(this1) { return this1.STENCIL_PASS_DEPTH_FAIL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_PASS_DEPTH_PASS = function(this1) { return this1.STENCIL_PASS_DEPTH_PASS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_REF = function(this1) { return this1.STENCIL_REF; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_VALUE_MASK = function(this1) { return this1.STENCIL_VALUE_MASK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_WRITEMASK = function(this1) { return this1.STENCIL_WRITEMASK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BACK_FUNC = function(this1) { return this1.STENCIL_BACK_FUNC; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BACK_FAIL = function(this1) { return this1.STENCIL_BACK_FAIL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BACK_PASS_DEPTH_FAIL = function(this1) { return this1.STENCIL_BACK_PASS_DEPTH_FAIL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BACK_PASS_DEPTH_PASS = function(this1) { return this1.STENCIL_BACK_PASS_DEPTH_PASS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BACK_REF = function(this1) { return this1.STENCIL_BACK_REF; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BACK_VALUE_MASK = function(this1) { return this1.STENCIL_BACK_VALUE_MASK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BACK_WRITEMASK = function(this1) { return this1.STENCIL_BACK_WRITEMASK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VIEWPORT = function(this1) { return this1.VIEWPORT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SCISSOR_BOX = function(this1) { return this1.SCISSOR_BOX; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_CLEAR_VALUE = function(this1) { return this1.COLOR_CLEAR_VALUE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_WRITEMASK = function(this1) { return this1.COLOR_WRITEMASK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_ALIGNMENT = function(this1) { return this1.UNPACK_ALIGNMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PACK_ALIGNMENT = function(this1) { return this1.PACK_ALIGNMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_TEXTURE_SIZE = function(this1) { return this1.MAX_TEXTURE_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VIEWPORT_DIMS = function(this1) { return this1.MAX_VIEWPORT_DIMS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SUBPIXEL_BITS = function(this1) { return this1.SUBPIXEL_BITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RED_BITS = function(this1) { return this1.RED_BITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_GREEN_BITS = function(this1) { return this1.GREEN_BITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BLUE_BITS = function(this1) { return this1.BLUE_BITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ALPHA_BITS = function(this1) { return this1.ALPHA_BITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_BITS = function(this1) { return this1.DEPTH_BITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_BITS = function(this1) { return this1.STENCIL_BITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_POLYGON_OFFSET_UNITS = function(this1) { return this1.POLYGON_OFFSET_UNITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_POLYGON_OFFSET_FACTOR = function(this1) { return this1.POLYGON_OFFSET_FACTOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_BINDING_2D = function(this1) { return this1.TEXTURE_BINDING_2D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLE_BUFFERS = function(this1) { return this1.SAMPLE_BUFFERS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLES = function(this1) { return this1.SAMPLES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLE_COVERAGE_VALUE = function(this1) { return this1.SAMPLE_COVERAGE_VALUE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLE_COVERAGE_INVERT = function(this1) { return this1.SAMPLE_COVERAGE_INVERT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COMPRESSED_TEXTURE_FORMATS = function(this1) { return this1.COMPRESSED_TEXTURE_FORMATS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DONT_CARE = function(this1) { return this1.DONT_CARE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FASTEST = function(this1) { return this1.FASTEST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NICEST = function(this1) { return this1.NICEST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_GENERATE_MIPMAP_HINT = function(this1) { return this1.GENERATE_MIPMAP_HINT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BYTE = function(this1) { return this1.BYTE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_BYTE = function(this1) { return this1.UNSIGNED_BYTE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SHORT = function(this1) { return this1.SHORT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_SHORT = function(this1) { return this1.UNSIGNED_SHORT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT = function(this1) { return this1.INT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT = function(this1) { return this1.UNSIGNED_INT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT = function(this1) { return this1.FLOAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_COMPONENT = function(this1) { return this1.DEPTH_COMPONENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ALPHA = function(this1) { return this1.ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB = function(this1) { return this1.RGB; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA = function(this1) { return this1.RGBA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LUMINANCE = function(this1) { return this1.LUMINANCE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LUMINANCE_ALPHA = function(this1) { return this1.LUMINANCE_ALPHA; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_SHORT_4_4_4_4 = function(this1) { return this1.UNSIGNED_SHORT_4_4_4_4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_SHORT_5_5_5_1 = function(this1) { return this1.UNSIGNED_SHORT_5_5_5_1; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_SHORT_5_6_5 = function(this1) { return this1.UNSIGNED_SHORT_5_6_5; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAGMENT_SHADER = function(this1) { return this1.FRAGMENT_SHADER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_SHADER = function(this1) { return this1.VERTEX_SHADER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VERTEX_ATTRIBS = function(this1) { return this1.MAX_VERTEX_ATTRIBS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VERTEX_UNIFORM_VECTORS = function(this1) { return this1.MAX_VERTEX_UNIFORM_VECTORS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VARYING_VECTORS = function(this1) { return this1.MAX_VARYING_VECTORS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_COMBINED_TEXTURE_IMAGE_UNITS = function(this1) { return this1.MAX_COMBINED_TEXTURE_IMAGE_UNITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VERTEX_TEXTURE_IMAGE_UNITS = function(this1) { return this1.MAX_VERTEX_TEXTURE_IMAGE_UNITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_TEXTURE_IMAGE_UNITS = function(this1) { return this1.MAX_TEXTURE_IMAGE_UNITS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_FRAGMENT_UNIFORM_VECTORS = function(this1) { return this1.MAX_FRAGMENT_UNIFORM_VECTORS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SHADER_TYPE = function(this1) { return this1.SHADER_TYPE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DELETE_STATUS = function(this1) { return this1.DELETE_STATUS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINK_STATUS = function(this1) { return this1.LINK_STATUS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VALIDATE_STATUS = function(this1) { return this1.VALIDATE_STATUS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ATTACHED_SHADERS = function(this1) { return this1.ATTACHED_SHADERS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ACTIVE_UNIFORMS = function(this1) { return this1.ACTIVE_UNIFORMS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ACTIVE_ATTRIBUTES = function(this1) { return this1.ACTIVE_ATTRIBUTES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SHADING_LANGUAGE_VERSION = function(this1) { return this1.SHADING_LANGUAGE_VERSION; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CURRENT_PROGRAM = function(this1) { return this1.CURRENT_PROGRAM; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NEVER = function(this1) { return this1.NEVER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LESS = function(this1) { return this1.LESS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_EQUAL = function(this1) { return this1.EQUAL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LEQUAL = function(this1) { return this1.LEQUAL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_GREATER = function(this1) { return this1.GREATER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NOTEQUAL = function(this1) { return this1.NOTEQUAL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_GEQUAL = function(this1) { return this1.GEQUAL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ALWAYS = function(this1) { return this1.ALWAYS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_KEEP = function(this1) { return this1.KEEP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_REPLACE = function(this1) { return this1.REPLACE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INCR = function(this1) { return this1.INCR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DECR = function(this1) { return this1.DECR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INVERT = function(this1) { return this1.INVERT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INCR_WRAP = function(this1) { return this1.INCR_WRAP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DECR_WRAP = function(this1) { return this1.DECR_WRAP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VENDOR = function(this1) { return this1.VENDOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERER = function(this1) { return this1.RENDERER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERSION = function(this1) { return this1.VERSION; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NEAREST = function(this1) { return this1.NEAREST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINEAR = function(this1) { return this1.LINEAR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NEAREST_MIPMAP_NEAREST = function(this1) { return this1.NEAREST_MIPMAP_NEAREST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINEAR_MIPMAP_NEAREST = function(this1) { return this1.LINEAR_MIPMAP_NEAREST; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NEAREST_MIPMAP_LINEAR = function(this1) { return this1.NEAREST_MIPMAP_LINEAR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LINEAR_MIPMAP_LINEAR = function(this1) { return this1.LINEAR_MIPMAP_LINEAR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_MAG_FILTER = function(this1) { return this1.TEXTURE_MAG_FILTER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_MIN_FILTER = function(this1) { return this1.TEXTURE_MIN_FILTER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_WRAP_S = function(this1) { return this1.TEXTURE_WRAP_S; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_WRAP_T = function(this1) { return this1.TEXTURE_WRAP_T; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_2D = function(this1) { return this1.TEXTURE_2D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE = function(this1) { return this1.TEXTURE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_CUBE_MAP = function(this1) { return this1.TEXTURE_CUBE_MAP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_BINDING_CUBE_MAP = function(this1) { return this1.TEXTURE_BINDING_CUBE_MAP; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_CUBE_MAP_POSITIVE_X = function(this1) { return this1.TEXTURE_CUBE_MAP_POSITIVE_X; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_CUBE_MAP_NEGATIVE_X = function(this1) { return this1.TEXTURE_CUBE_MAP_NEGATIVE_X; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_CUBE_MAP_POSITIVE_Y = function(this1) { return this1.TEXTURE_CUBE_MAP_POSITIVE_Y; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_CUBE_MAP_NEGATIVE_Y = function(this1) { return this1.TEXTURE_CUBE_MAP_NEGATIVE_Y; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_CUBE_MAP_POSITIVE_Z = function(this1) { return this1.TEXTURE_CUBE_MAP_POSITIVE_Z; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_CUBE_MAP_NEGATIVE_Z = function(this1) { return this1.TEXTURE_CUBE_MAP_NEGATIVE_Z; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_CUBE_MAP_TEXTURE_SIZE = function(this1) { return this1.MAX_CUBE_MAP_TEXTURE_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE0 = function(this1) { return this1.TEXTURE0; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE1 = function(this1) { return this1.TEXTURE1; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE2 = function(this1) { return this1.TEXTURE2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE3 = function(this1) { return this1.TEXTURE3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE4 = function(this1) { return this1.TEXTURE4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE5 = function(this1) { return this1.TEXTURE5; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE6 = function(this1) { return this1.TEXTURE6; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE7 = function(this1) { return this1.TEXTURE7; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE8 = function(this1) { return this1.TEXTURE8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE9 = function(this1) { return this1.TEXTURE9; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE10 = function(this1) { return this1.TEXTURE10; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE11 = function(this1) { return this1.TEXTURE11; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE12 = function(this1) { return this1.TEXTURE12; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE13 = function(this1) { return this1.TEXTURE13; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE14 = function(this1) { return this1.TEXTURE14; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE15 = function(this1) { return this1.TEXTURE15; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE16 = function(this1) { return this1.TEXTURE16; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE17 = function(this1) { return this1.TEXTURE17; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE18 = function(this1) { return this1.TEXTURE18; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE19 = function(this1) { return this1.TEXTURE19; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE20 = function(this1) { return this1.TEXTURE20; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE21 = function(this1) { return this1.TEXTURE21; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE22 = function(this1) { return this1.TEXTURE22; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE23 = function(this1) { return this1.TEXTURE23; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE24 = function(this1) { return this1.TEXTURE24; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE25 = function(this1) { return this1.TEXTURE25; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE26 = function(this1) { return this1.TEXTURE26; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE27 = function(this1) { return this1.TEXTURE27; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE28 = function(this1) { return this1.TEXTURE28; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE29 = function(this1) { return this1.TEXTURE29; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE30 = function(this1) { return this1.TEXTURE30; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE31 = function(this1) { return this1.TEXTURE31; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ACTIVE_TEXTURE = function(this1) { return this1.ACTIVE_TEXTURE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_REPEAT = function(this1) { return this1.REPEAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CLAMP_TO_EDGE = function(this1) { return this1.CLAMP_TO_EDGE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MIRRORED_REPEAT = function(this1) { return this1.MIRRORED_REPEAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_VEC2 = function(this1) { return this1.FLOAT_VEC2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_VEC3 = function(this1) { return this1.FLOAT_VEC3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_VEC4 = function(this1) { return this1.FLOAT_VEC4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_VEC2 = function(this1) { return this1.INT_VEC2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_VEC3 = function(this1) { return this1.INT_VEC3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_VEC4 = function(this1) { return this1.INT_VEC4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BOOL = function(this1) { return this1.BOOL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BOOL_VEC2 = function(this1) { return this1.BOOL_VEC2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BOOL_VEC3 = function(this1) { return this1.BOOL_VEC3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BOOL_VEC4 = function(this1) { return this1.BOOL_VEC4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT2 = function(this1) { return this1.FLOAT_MAT2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT3 = function(this1) { return this1.FLOAT_MAT3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT4 = function(this1) { return this1.FLOAT_MAT4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_2D = function(this1) { return this1.SAMPLER_2D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_CUBE = function(this1) { return this1.SAMPLER_CUBE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_ENABLED = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_ENABLED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_SIZE = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_STRIDE = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_STRIDE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_TYPE = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_TYPE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_NORMALIZED = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_NORMALIZED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_POINTER = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_POINTER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COMPILE_STATUS = function(this1) { return this1.COMPILE_STATUS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LOW_FLOAT = function(this1) { return this1.LOW_FLOAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MEDIUM_FLOAT = function(this1) { return this1.MEDIUM_FLOAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_HIGH_FLOAT = function(this1) { return this1.HIGH_FLOAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_LOW_INT = function(this1) { return this1.LOW_INT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MEDIUM_INT = function(this1) { return this1.MEDIUM_INT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_HIGH_INT = function(this1) { return this1.HIGH_INT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER = function(this1) { return this1.FRAMEBUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER = function(this1) { return this1.RENDERBUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA4 = function(this1) { return this1.RGBA4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB5_A1 = function(this1) { return this1.RGB5_A1; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB565 = function(this1) { return this1.RGB565; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_COMPONENT16 = function(this1) { return this1.DEPTH_COMPONENT16; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_INDEX = function(this1) { return this1.STENCIL_INDEX; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_INDEX8 = function(this1) { return this1.STENCIL_INDEX8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_STENCIL = function(this1) { return this1.DEPTH_STENCIL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_WIDTH = function(this1) { return this1.RENDERBUFFER_WIDTH; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_HEIGHT = function(this1) { return this1.RENDERBUFFER_HEIGHT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_INTERNAL_FORMAT = function(this1) { return this1.RENDERBUFFER_INTERNAL_FORMAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_RED_SIZE = function(this1) { return this1.RENDERBUFFER_RED_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_GREEN_SIZE = function(this1) { return this1.RENDERBUFFER_GREEN_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_BLUE_SIZE = function(this1) { return this1.RENDERBUFFER_BLUE_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_ALPHA_SIZE = function(this1) { return this1.RENDERBUFFER_ALPHA_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_DEPTH_SIZE = function(this1) { return this1.RENDERBUFFER_DEPTH_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_STENCIL_SIZE = function(this1) { return this1.RENDERBUFFER_STENCIL_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT0 = function(this1) { return this1.COLOR_ATTACHMENT0; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_ATTACHMENT = function(this1) { return this1.DEPTH_ATTACHMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL_ATTACHMENT = function(this1) { return this1.STENCIL_ATTACHMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_STENCIL_ATTACHMENT = function(this1) { return this1.DEPTH_STENCIL_ATTACHMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_NONE = function(this1) { return this1.NONE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_COMPLETE = function(this1) { return this1.FRAMEBUFFER_COMPLETE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_ATTACHMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_DIMENSIONS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_UNSUPPORTED = function(this1) { return this1.FRAMEBUFFER_UNSUPPORTED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_BINDING = function(this1) { return this1.FRAMEBUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_BINDING = function(this1) { return this1.RENDERBUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_RENDERBUFFER_SIZE = function(this1) { return this1.MAX_RENDERBUFFER_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INVALID_FRAMEBUFFER_OPERATION = function(this1) { return this1.INVALID_FRAMEBUFFER_OPERATION; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_FLIP_Y_WEBGL = function(this1) { return this1.UNPACK_FLIP_Y_WEBGL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_PREMULTIPLY_ALPHA_WEBGL = function(this1) { return this1.UNPACK_PREMULTIPLY_ALPHA_WEBGL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CONTEXT_LOST_WEBGL = function(this1) { return this1.CONTEXT_LOST_WEBGL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_COLORSPACE_CONVERSION_WEBGL = function(this1) { return this1.UNPACK_COLORSPACE_CONVERSION_WEBGL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_BROWSER_DEFAULT_WEBGL = function(this1) { return this1.BROWSER_DEFAULT_WEBGL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_type = function(this1) { return this1.type; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_version = function(this1) { return this1.version; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_READ_BUFFER = function(this1) { return this1.READ_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_ROW_LENGTH = function(this1) { return this1.UNPACK_ROW_LENGTH; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_SKIP_ROWS = function(this1) { return this1.UNPACK_SKIP_ROWS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_SKIP_PIXELS = function(this1) { return this1.UNPACK_SKIP_PIXELS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PACK_ROW_LENGTH = function(this1) { return this1.PACK_ROW_LENGTH; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PACK_SKIP_ROWS = function(this1) { return this1.PACK_SKIP_ROWS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PACK_SKIP_PIXELS = function(this1) { return this1.PACK_SKIP_PIXELS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_BINDING_3D = function(this1) { return this1.TEXTURE_BINDING_3D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_SKIP_IMAGES = function(this1) { return this1.UNPACK_SKIP_IMAGES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNPACK_IMAGE_HEIGHT = function(this1) { return this1.UNPACK_IMAGE_HEIGHT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_3D_TEXTURE_SIZE = function(this1) { return this1.MAX_3D_TEXTURE_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_ELEMENTS_VERTICES = function(this1) { return this1.MAX_ELEMENTS_VERTICES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_ELEMENTS_INDICES = function(this1) { return this1.MAX_ELEMENTS_INDICES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_TEXTURE_LOD_BIAS = function(this1) { return this1.MAX_TEXTURE_LOD_BIAS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_FRAGMENT_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_FRAGMENT_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VERTEX_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_VERTEX_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_ARRAY_TEXTURE_LAYERS = function(this1) { return this1.MAX_ARRAY_TEXTURE_LAYERS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MIN_PROGRAM_TEXEL_OFFSET = function(this1) { return this1.MIN_PROGRAM_TEXEL_OFFSET; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_PROGRAM_TEXEL_OFFSET = function(this1) { return this1.MAX_PROGRAM_TEXEL_OFFSET; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VARYING_COMPONENTS = function(this1) { return this1.MAX_VARYING_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAGMENT_SHADER_DERIVATIVE_HINT = function(this1) { return this1.FRAGMENT_SHADER_DERIVATIVE_HINT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RASTERIZER_DISCARD = function(this1) { return this1.RASTERIZER_DISCARD; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ARRAY_BINDING = function(this1) { return this1.VERTEX_ARRAY_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VERTEX_OUTPUT_COMPONENTS = function(this1) { return this1.MAX_VERTEX_OUTPUT_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_FRAGMENT_INPUT_COMPONENTS = function(this1) { return this1.MAX_FRAGMENT_INPUT_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_SERVER_WAIT_TIMEOUT = function(this1) { return this1.MAX_SERVER_WAIT_TIMEOUT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_ELEMENT_INDEX = function(this1) { return this1.MAX_ELEMENT_INDEX; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RED = function(this1) { return this1.RED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB8 = function(this1) { return this1.RGB8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA8 = function(this1) { return this1.RGBA8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB10_A2 = function(this1) { return this1.RGB10_A2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_3D = function(this1) { return this1.TEXTURE_3D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_WRAP_R = function(this1) { return this1.TEXTURE_WRAP_R; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_MIN_LOD = function(this1) { return this1.TEXTURE_MIN_LOD; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_MAX_LOD = function(this1) { return this1.TEXTURE_MAX_LOD; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_BASE_LEVEL = function(this1) { return this1.TEXTURE_BASE_LEVEL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_MAX_LEVEL = function(this1) { return this1.TEXTURE_MAX_LEVEL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_COMPARE_MODE = function(this1) { return this1.TEXTURE_COMPARE_MODE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_COMPARE_FUNC = function(this1) { return this1.TEXTURE_COMPARE_FUNC; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SRGB = function(this1) { return this1.SRGB; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SRGB8 = function(this1) { return this1.SRGB8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SRGB8_ALPHA8 = function(this1) { return this1.SRGB8_ALPHA8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COMPARE_REF_TO_TEXTURE = function(this1) { return this1.COMPARE_REF_TO_TEXTURE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA32F = function(this1) { return this1.RGBA32F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB32F = function(this1) { return this1.RGB32F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA16F = function(this1) { return this1.RGBA16F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB16F = function(this1) { return this1.RGB16F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_2D_ARRAY = function(this1) { return this1.TEXTURE_2D_ARRAY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_BINDING_2D_ARRAY = function(this1) { return this1.TEXTURE_BINDING_2D_ARRAY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R11F_G11F_B10F = function(this1) { return this1.R11F_G11F_B10F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB9_E5 = function(this1) { return this1.RGB9_E5; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA32UI = function(this1) { return this1.RGBA32UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB32UI = function(this1) { return this1.RGB32UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA16UI = function(this1) { return this1.RGBA16UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB16UI = function(this1) { return this1.RGB16UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA8UI = function(this1) { return this1.RGBA8UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB8UI = function(this1) { return this1.RGB8UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA32I = function(this1) { return this1.RGBA32I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB32I = function(this1) { return this1.RGB32I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA16I = function(this1) { return this1.RGBA16I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB16I = function(this1) { return this1.RGB16I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA8I = function(this1) { return this1.RGBA8I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB8I = function(this1) { return this1.RGB8I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RED_INTEGER = function(this1) { return this1.RED_INTEGER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB_INTEGER = function(this1) { return this1.RGB_INTEGER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA_INTEGER = function(this1) { return this1.RGBA_INTEGER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R8 = function(this1) { return this1.R8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG8 = function(this1) { return this1.RG8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R16F = function(this1) { return this1.R16F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R32F = function(this1) { return this1.R32F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG16F = function(this1) { return this1.RG16F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG32F = function(this1) { return this1.RG32F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R8I = function(this1) { return this1.R8I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R8UI = function(this1) { return this1.R8UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R16I = function(this1) { return this1.R16I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R16UI = function(this1) { return this1.R16UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R32I = function(this1) { return this1.R32I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R32UI = function(this1) { return this1.R32UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG8I = function(this1) { return this1.RG8I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG8UI = function(this1) { return this1.RG8UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG16I = function(this1) { return this1.RG16I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG16UI = function(this1) { return this1.RG16UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG32I = function(this1) { return this1.RG32I; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG32UI = function(this1) { return this1.RG32UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_R8_SNORM = function(this1) { return this1.R8_SNORM; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG8_SNORM = function(this1) { return this1.RG8_SNORM; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB8_SNORM = function(this1) { return this1.RGB8_SNORM; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGBA8_SNORM = function(this1) { return this1.RGBA8_SNORM; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RGB10_A2UI = function(this1) { return this1.RGB10_A2UI; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_IMMUTABLE_FORMAT = function(this1) { return this1.TEXTURE_IMMUTABLE_FORMAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TEXTURE_IMMUTABLE_LEVELS = function(this1) { return this1.TEXTURE_IMMUTABLE_LEVELS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_2_10_10_10_REV = function(this1) { return this1.UNSIGNED_INT_2_10_10_10_REV; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_10F_11F_11F_REV = function(this1) { return this1.UNSIGNED_INT_10F_11F_11F_REV; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_5_9_9_9_REV = function(this1) { return this1.UNSIGNED_INT_5_9_9_9_REV; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_32_UNSIGNED_INT_24_8_REV = function(this1) { return this1.FLOAT_32_UNSIGNED_INT_24_8_REV; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_24_8 = function(this1) { return this1.UNSIGNED_INT_24_8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_HALF_FLOAT = function(this1) { return this1.HALF_FLOAT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG = function(this1) { return this1.RG; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RG_INTEGER = function(this1) { return this1.RG_INTEGER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_2_10_10_10_REV = function(this1) { return this1.INT_2_10_10_10_REV; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CURRENT_QUERY = function(this1) { return this1.CURRENT_QUERY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_QUERY_RESULT = function(this1) { return this1.QUERY_RESULT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_QUERY_RESULT_AVAILABLE = function(this1) { return this1.QUERY_RESULT_AVAILABLE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ANY_SAMPLES_PASSED = function(this1) { return this1.ANY_SAMPLES_PASSED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ANY_SAMPLES_PASSED_CONSERVATIVE = function(this1) { return this1.ANY_SAMPLES_PASSED_CONSERVATIVE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_DRAW_BUFFERS = function(this1) { return this1.MAX_DRAW_BUFFERS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER0 = function(this1) { return this1.DRAW_BUFFER0; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER1 = function(this1) { return this1.DRAW_BUFFER1; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER2 = function(this1) { return this1.DRAW_BUFFER2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER3 = function(this1) { return this1.DRAW_BUFFER3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER4 = function(this1) { return this1.DRAW_BUFFER4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER5 = function(this1) { return this1.DRAW_BUFFER5; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER6 = function(this1) { return this1.DRAW_BUFFER6; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER7 = function(this1) { return this1.DRAW_BUFFER7; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER8 = function(this1) { return this1.DRAW_BUFFER8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER9 = function(this1) { return this1.DRAW_BUFFER9; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER10 = function(this1) { return this1.DRAW_BUFFER10; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER11 = function(this1) { return this1.DRAW_BUFFER11; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER12 = function(this1) { return this1.DRAW_BUFFER12; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER13 = function(this1) { return this1.DRAW_BUFFER13; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER14 = function(this1) { return this1.DRAW_BUFFER14; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_BUFFER15 = function(this1) { return this1.DRAW_BUFFER15; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_COLOR_ATTACHMENTS = function(this1) { return this1.MAX_COLOR_ATTACHMENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT1 = function(this1) { return this1.COLOR_ATTACHMENT1; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT2 = function(this1) { return this1.COLOR_ATTACHMENT2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT3 = function(this1) { return this1.COLOR_ATTACHMENT3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT4 = function(this1) { return this1.COLOR_ATTACHMENT4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT5 = function(this1) { return this1.COLOR_ATTACHMENT5; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT6 = function(this1) { return this1.COLOR_ATTACHMENT6; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT7 = function(this1) { return this1.COLOR_ATTACHMENT7; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT8 = function(this1) { return this1.COLOR_ATTACHMENT8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT9 = function(this1) { return this1.COLOR_ATTACHMENT9; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT10 = function(this1) { return this1.COLOR_ATTACHMENT10; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT11 = function(this1) { return this1.COLOR_ATTACHMENT11; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT12 = function(this1) { return this1.COLOR_ATTACHMENT12; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT13 = function(this1) { return this1.COLOR_ATTACHMENT13; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT14 = function(this1) { return this1.COLOR_ATTACHMENT14; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR_ATTACHMENT15 = function(this1) { return this1.COLOR_ATTACHMENT15; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_3D = function(this1) { return this1.SAMPLER_3D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_2D_SHADOW = function(this1) { return this1.SAMPLER_2D_SHADOW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_2D_ARRAY = function(this1) { return this1.SAMPLER_2D_ARRAY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_2D_ARRAY_SHADOW = function(this1) { return this1.SAMPLER_2D_ARRAY_SHADOW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_CUBE_SHADOW = function(this1) { return this1.SAMPLER_CUBE_SHADOW; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_SAMPLER_2D = function(this1) { return this1.INT_SAMPLER_2D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_SAMPLER_3D = function(this1) { return this1.INT_SAMPLER_3D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_SAMPLER_CUBE = function(this1) { return this1.INT_SAMPLER_CUBE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INT_SAMPLER_2D_ARRAY = function(this1) { return this1.INT_SAMPLER_2D_ARRAY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_2D = function(this1) { return this1.UNSIGNED_INT_SAMPLER_2D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_3D = function(this1) { return this1.UNSIGNED_INT_SAMPLER_3D; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_CUBE = function(this1) { return this1.UNSIGNED_INT_SAMPLER_CUBE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_SAMPLER_2D_ARRAY = function(this1) { return this1.UNSIGNED_INT_SAMPLER_2D_ARRAY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_SAMPLES = function(this1) { return this1.MAX_SAMPLES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SAMPLER_BINDING = function(this1) { return this1.SAMPLER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PIXEL_PACK_BUFFER = function(this1) { return this1.PIXEL_PACK_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PIXEL_UNPACK_BUFFER = function(this1) { return this1.PIXEL_UNPACK_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PIXEL_PACK_BUFFER_BINDING = function(this1) { return this1.PIXEL_PACK_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_PIXEL_UNPACK_BUFFER_BINDING = function(this1) { return this1.PIXEL_UNPACK_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COPY_READ_BUFFER = function(this1) { return this1.COPY_READ_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COPY_WRITE_BUFFER = function(this1) { return this1.COPY_WRITE_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COPY_READ_BUFFER_BINDING = function(this1) { return this1.COPY_READ_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COPY_WRITE_BUFFER_BINDING = function(this1) { return this1.COPY_WRITE_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT2x3 = function(this1) { return this1.FLOAT_MAT2x3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT2x4 = function(this1) { return this1.FLOAT_MAT2x4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT3x2 = function(this1) { return this1.FLOAT_MAT3x2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT3x4 = function(this1) { return this1.FLOAT_MAT3x4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT4x2 = function(this1) { return this1.FLOAT_MAT4x2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FLOAT_MAT4x3 = function(this1) { return this1.FLOAT_MAT4x3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_VEC2 = function(this1) { return this1.UNSIGNED_INT_VEC2; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_VEC3 = function(this1) { return this1.UNSIGNED_INT_VEC3; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_INT_VEC4 = function(this1) { return this1.UNSIGNED_INT_VEC4; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNED_NORMALIZED = function(this1) { return this1.UNSIGNED_NORMALIZED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SIGNED_NORMALIZED = function(this1) { return this1.SIGNED_NORMALIZED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_INTEGER = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_INTEGER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_VERTEX_ATTRIB_ARRAY_DIVISOR = function(this1) { return this1.VERTEX_ATTRIB_ARRAY_DIVISOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_MODE = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_MODE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = function(this1) { return this1.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_VARYINGS = function(this1) { return this1.TRANSFORM_FEEDBACK_VARYINGS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_START = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_START; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_SIZE = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = function(this1) { return this1.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = function(this1) { return this1.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = function(this1) { return this1.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INTERLEAVED_ATTRIBS = function(this1) { return this1.INTERLEAVED_ATTRIBS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SEPARATE_ATTRIBS = function(this1) { return this1.SEPARATE_ATTRIBS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_BUFFER_BINDING = function(this1) { return this1.TRANSFORM_FEEDBACK_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK = function(this1) { return this1.TRANSFORM_FEEDBACK; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_PAUSED = function(this1) { return this1.TRANSFORM_FEEDBACK_PAUSED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_ACTIVE = function(this1) { return this1.TRANSFORM_FEEDBACK_ACTIVE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TRANSFORM_FEEDBACK_BINDING = function(this1) { return this1.TRANSFORM_FEEDBACK_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_RED_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_RED_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_DEFAULT = function(this1) { return this1.FRAMEBUFFER_DEFAULT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH24_STENCIL8 = function(this1) { return this1.DEPTH24_STENCIL8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_FRAMEBUFFER_BINDING = function(this1) { return this1.DRAW_FRAMEBUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_READ_FRAMEBUFFER = function(this1) { return this1.READ_FRAMEBUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DRAW_FRAMEBUFFER = function(this1) { return this1.DRAW_FRAMEBUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_READ_FRAMEBUFFER_BINDING = function(this1) { return this1.READ_FRAMEBUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_RENDERBUFFER_SAMPLES = function(this1) { return this1.RENDERBUFFER_SAMPLES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = function(this1) { return this1.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = function(this1) { return this1.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BUFFER = function(this1) { return this1.UNIFORM_BUFFER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BUFFER_BINDING = function(this1) { return this1.UNIFORM_BUFFER_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BUFFER_START = function(this1) { return this1.UNIFORM_BUFFER_START; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BUFFER_SIZE = function(this1) { return this1.UNIFORM_BUFFER_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_VERTEX_UNIFORM_BLOCKS = function(this1) { return this1.MAX_VERTEX_UNIFORM_BLOCKS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_FRAGMENT_UNIFORM_BLOCKS = function(this1) { return this1.MAX_FRAGMENT_UNIFORM_BLOCKS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_COMBINED_UNIFORM_BLOCKS = function(this1) { return this1.MAX_COMBINED_UNIFORM_BLOCKS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_UNIFORM_BUFFER_BINDINGS = function(this1) { return this1.MAX_UNIFORM_BUFFER_BINDINGS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_UNIFORM_BLOCK_SIZE = function(this1) { return this1.MAX_UNIFORM_BLOCK_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = function(this1) { return this1.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BUFFER_OFFSET_ALIGNMENT = function(this1) { return this1.UNIFORM_BUFFER_OFFSET_ALIGNMENT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ACTIVE_UNIFORM_BLOCKS = function(this1) { return this1.ACTIVE_UNIFORM_BLOCKS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_TYPE = function(this1) { return this1.UNIFORM_TYPE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_SIZE = function(this1) { return this1.UNIFORM_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BLOCK_INDEX = function(this1) { return this1.UNIFORM_BLOCK_INDEX; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_OFFSET = function(this1) { return this1.UNIFORM_OFFSET; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_ARRAY_STRIDE = function(this1) { return this1.UNIFORM_ARRAY_STRIDE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_MATRIX_STRIDE = function(this1) { return this1.UNIFORM_MATRIX_STRIDE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_IS_ROW_MAJOR = function(this1) { return this1.UNIFORM_IS_ROW_MAJOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BLOCK_BINDING = function(this1) { return this1.UNIFORM_BLOCK_BINDING; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BLOCK_DATA_SIZE = function(this1) { return this1.UNIFORM_BLOCK_DATA_SIZE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BLOCK_ACTIVE_UNIFORMS = function(this1) { return this1.UNIFORM_BLOCK_ACTIVE_UNIFORMS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = function(this1) { return this1.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = function(this1) { return this1.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = function(this1) { return this1.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_OBJECT_TYPE = function(this1) { return this1.OBJECT_TYPE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SYNC_CONDITION = function(this1) { return this1.SYNC_CONDITION; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SYNC_STATUS = function(this1) { return this1.SYNC_STATUS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SYNC_FLAGS = function(this1) { return this1.SYNC_FLAGS; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SYNC_FENCE = function(this1) { return this1.SYNC_FENCE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SYNC_GPU_COMMANDS_COMPLETE = function(this1) { return this1.SYNC_GPU_COMMANDS_COMPLETE; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_UNSIGNALED = function(this1) { return this1.UNSIGNALED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SIGNALED = function(this1) { return this1.SIGNALED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_ALREADY_SIGNALED = function(this1) { return this1.ALREADY_SIGNALED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TIMEOUT_EXPIRED = function(this1) { return this1.TIMEOUT_EXPIRED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_CONDITION_SATISFIED = function(this1) { return this1.CONDITION_SATISFIED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_WAIT_FAILED = function(this1) { return this1.WAIT_FAILED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_SYNC_FLUSH_COMMANDS_BIT = function(this1) { return this1.SYNC_FLUSH_COMMANDS_BIT; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_COLOR = function(this1) { return this1.COLOR; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH = function(this1) { return this1.DEPTH; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STENCIL = function(this1) { return this1.STENCIL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MIN = function(this1) { return this1.MIN; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX = function(this1) { return this1.MAX; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_COMPONENT24 = function(this1) { return this1.DEPTH_COMPONENT24; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STREAM_READ = function(this1) { return this1.STREAM_READ; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STREAM_COPY = function(this1) { return this1.STREAM_COPY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STATIC_READ = function(this1) { return this1.STATIC_READ; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_STATIC_COPY = function(this1) { return this1.STATIC_COPY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DYNAMIC_READ = function(this1) { return this1.DYNAMIC_READ; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DYNAMIC_COPY = function(this1) { return this1.DYNAMIC_COPY; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH_COMPONENT32F = function(this1) { return this1.DEPTH_COMPONENT32F; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_DEPTH32F_STENCIL8 = function(this1) { return this1.DEPTH32F_STENCIL8; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_INVALID_INDEX = function(this1) { return this1.INVALID_INDEX; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_TIMEOUT_IGNORED = function(this1) { return this1.TIMEOUT_IGNORED; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.get_MAX_CLIENT_WAIT_TIMEOUT_WEBGL = function(this1) { return this1.MAX_CLIENT_WAIT_TIMEOUT_WEBGL; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.activeTexture = function(this1,texture) { this1.__context.activeTexture(texture); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.attachShader = function(this1,program,shader) { this1.__context.attachShader(program,shader); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.beginQuery = function(this1,target,query) { this1.__context.beginQuery(target,query); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.beginTransformFeedback = function(this1,primitiveNode) { this1.__context.beginTransformFeedback(primitiveNode); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindAttribLocation = function(this1,program,index,name) { this1.__context.bindAttribLocation(program,index,name); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindBuffer = function(this1,target,buffer) { this1.__context.bindBuffer(target,buffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindBufferBase = function(this1,target,index,buffer) { this1.__context.bindBufferBase(target,index,buffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindBufferRange = function(this1,target,index,buffer,offset,size) { this1.__context.bindBufferRange(target,index,buffer,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(size)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindFramebuffer = function(this1,target,framebuffer) { this1.__context.bindFramebuffer(target,framebuffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindRenderbuffer = function(this1,target,renderbuffer) { this1.__context.bindRenderbuffer(target,renderbuffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindSampler = function(this1,unit,sampler) { this1.__context.bindSampler(unit,sampler); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindTexture = function(this1,target,texture) { this1.__context.bindTexture(target,texture); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindTransformFeedback = function(this1,target,transformFeedback) { this1.__context.bindTransformFeedback(target,transformFeedback); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bindVertexArray = function(this1,vertexArray) { this1.__context.bindVertexArray(vertexArray); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.blendColor = function(this1,red,green,blue,alpha) { this1.__context.blendColor(red,green,blue,alpha); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.blendEquation = function(this1,mode) { this1.__context.blendEquation(mode); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.blendEquationSeparate = function(this1,modeRGB,modeAlpha) { this1.__context.blendEquationSeparate(modeRGB,modeAlpha); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.blendFunc = function(this1,sfactor,dfactor) { this1.__context.blendFunc(sfactor,dfactor); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.blendFuncSeparate = function(this1,srcRGB,dstRGB,srcAlpha,dstAlpha) { this1.__context.blendFuncSeparate(srcRGB,dstRGB,srcAlpha,dstAlpha); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.blitFramebuffer = function(this1,srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter) { this1.__context.blitFramebuffer(srcX0,srcY0,srcX1,srcY1,dstX0,dstY0,dstX1,dstY1,mask,filter); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bufferData = function(this1,target,srcData,usage,srcOffset,length) { this1.bufferDataWEBGL(target,srcData,usage,srcOffset,length); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.bufferSubData = function(this1,target,offset,srcData,srcOffset,length) { this1.bufferSubDataWEBGL(target,offset,srcData,srcOffset,length); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.checkFramebufferStatus = function(this1,target) { return this1.__context.checkFramebufferStatus(target); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clear = function(this1,mask) { this1.__context.clear(mask); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clearBufferfi = function(this1,buffer,drawbuffer,depth,stencil) { this1.__context.clearBufferfi(buffer,drawbuffer,depth,stencil); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clearBufferfv = function(this1,buffer,drawbuffer,values,srcOffset) { this1.__context.clearBufferfv(buffer,drawbuffer,values,srcOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clearBufferiv = function(this1,buffer,drawbuffer,values,srcOffset) { this1.__context.clearBufferiv(buffer,drawbuffer,values,srcOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clearBufferuiv = function(this1,buffer,drawbuffer,values,srcOffset) { this1.__context.clearBufferuiv(buffer,drawbuffer,values,srcOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clearColor = function(this1,red,green,blue,alpha) { this1.__context.clearColor(red,green,blue,alpha); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clearDepth = function(this1,depth) { this1.__context.clearDepth(depth); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clearStencil = function(this1,s) { this1.__context.clearStencil(s); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.clientWaitSync = function(this1,sync,flags,timeout) { return this1.__context.clientWaitSync(sync,flags,timeout); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.colorMask = function(this1,red,green,blue,alpha) { this1.__context.colorMask(red,green,blue,alpha); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.compileShader = function(this1,shader) { this1.__context.compileShader(shader); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.compressedTexImage2D = function(this1,target,level,internalformat,width,height,border,srcData,srcOffset,srcLengthOverride) { this1.compressedTexImage2DWEBGL(target,level,internalformat,width,height,border,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.compressedTexImage3D = function(this1,target,level,internalformat,width,height,depth,border,srcData,srcOffset,srcLengthOverride) { this1.__context.compressedTexImage3D(target,level,internalformat,width,height,depth,border,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.compressedTexSubImage2D = function(this1,target,level,xoffset,yoffset,width,height,format,srcData,srcOffset,srcLengthOverride) { this1.compressedTexSubImage2DWEBGL(target,level,xoffset,yoffset,width,height,format,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.compressedTexSubImage3D = function(this1,target,level,xoffset,yoffset,zoffset,width,height,depth,format,srcData,srcOffset,srcLengthOverride) { this1.__context.compressedTexSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,srcData,srcOffset,srcLengthOverride); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.copyBufferSubData = function(this1,readTarget,writeTarget,readOffset,writeOffset,size) { }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.copyTexImage2D = function(this1,target,level,internalformat,x,y,width,height,border) { this1.__context.copyTexImage2D(target,level,internalformat,x,y,width,height,border); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.copyTexSubImage2D = function(this1,target,level,xoffset,yoffset,x,y,width,height) { this1.__context.copyTexSubImage2D(target,level,xoffset,yoffset,x,y,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.copyTexSubImage3D = function(this1,target,level,xoffset,yoffset,zoffset,x,y,width,height) { this1.__context.copyTexSubImage3D(target,level,xoffset,yoffset,zoffset,x,y,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createBuffer = function(this1) { return this1.__context.createBuffer(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createFramebuffer = function(this1) { return this1.__context.createFramebuffer(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createProgram = function(this1) { return this1.__context.createProgram(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createQuery = function(this1) { return this1.__context.createQuery(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createRenderbuffer = function(this1) { return this1.__context.createRenderbuffer(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createSampler = function(this1) { return this1.__context.createSampler(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createShader = function(this1,type) { return this1.__context.createShader(type); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createTexture = function(this1) { return this1.__context.createTexture(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createTransformFeedback = function(this1) { return this1.__context.createTransformFeedback(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.createVertexArray = function(this1) { return this1.__context.createVertexArray(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.cullFace = function(this1,mode) { this1.__context.cullFace(mode); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteBuffer = function(this1,buffer) { this1.__context.deleteBuffer(buffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteFramebuffer = function(this1,framebuffer) { this1.__context.deleteFramebuffer(framebuffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteProgram = function(this1,program) { this1.__context.deleteProgram(program); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteQuery = function(this1,query) { this1.__context.deleteQuery(query); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteRenderbuffer = function(this1,renderbuffer) { this1.__context.deleteRenderbuffer(renderbuffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteSampler = function(this1,sampler) { this1.__context.deleteSampler(sampler); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteShader = function(this1,shader) { this1.__context.deleteShader(shader); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteSync = function(this1,sync) { this1.__context.deleteSync(sync); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteTexture = function(this1,texture) { this1.__context.deleteTexture(texture); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteTransformFeedback = function(this1,transformFeedback) { this1.__context.deleteTransformFeedback(transformFeedback); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.deleteVertexArray = function(this1,vertexArray) { this1.__context.deleteVertexArray(vertexArray); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.depthFunc = function(this1,func) { this1.__context.depthFunc(func); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.depthMask = function(this1,flag) { this1.__context.depthMask(flag); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.depthRange = function(this1,zNear,zFar) { this1.__context.depthRange(zNear,zFar); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.detachShader = function(this1,program,shader) { this1.__context.detachShader(program,shader); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.disable = function(this1,cap) { this1.__context.disable(cap); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.disableVertexAttribArray = function(this1,index) { this1.__context.disableVertexAttribArray(index); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.drawArrays = function(this1,mode,first,count) { this1.__context.drawArrays(mode,first,count); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.drawArraysInstanced = function(this1,mode,first,count,instanceCount) { this1.__context.drawArraysInstanced(mode,first,count,instanceCount); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.drawBuffers = function(this1,buffers) { this1.__context.drawBuffers(buffers); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.drawElements = function(this1,mode,count,type,offset) { this1.__context.drawElements(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.drawElementsInstanced = function(this1,mode,count,type,offset,instanceCount) { this1.__context.drawElementsInstanced(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)),instanceCount); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.drawRangeElements = function(this1,mode,start,end,count,type,offset) { this1.__context.drawRangeElements(mode,start,end,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset))); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.enable = function(this1,cap) { this1.__context.enable(cap); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.enableVertexAttribArray = function(this1,index) { this1.__context.enableVertexAttribArray(index); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.endQuery = function(this1,target) { this1.__context.endQuery(target); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.endTransformFeedback = function(this1) { this1.__context.endTransformFeedback(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.fenceSync = function(this1,condition,flags) { return this1.__context.fenceSync(condition,flags); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.finish = function(this1) { this1.__context.finish(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.flush = function(this1) { this1.__context.flush(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.framebufferRenderbuffer = function(this1,target,attachment,renderbuffertarget,renderbuffer) { this1.__context.framebufferRenderbuffer(target,attachment,renderbuffertarget,renderbuffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.framebufferTexture2D = function(this1,target,attachment,textarget,texture,level) { this1.__context.framebufferTexture2D(target,attachment,textarget,texture,level); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.framebufferTextureLayer = function(this1,target,attachment,texture,level,layer) { this1.__context.framebufferTextureLayer(target,attachment,texture,level,layer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.frontFace = function(this1,mode) { this1.__context.frontFace(mode); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.generateMipmap = function(this1,target) { this1.__context.generateMipmap(target); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getActiveAttrib = function(this1,program,index) { return this1.__context.getActiveAttrib(program,index); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getActiveUniform = function(this1,program,index) { return this1.__context.getActiveUniform(program,index); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getActiveUniformBlockName = function(this1,program,uniformBlockIndex) { return this1.__context.getActiveUniformBlockName(program,uniformBlockIndex); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getActiveUniformBlockParameter = function(this1,program,uniformBlockIndex,pname) { return this1.__context.getActiveUniformBlockParameter(program,uniformBlockIndex,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getActiveUniforms = function(this1,program,uniformIndices,pname) { return this1.__context.getActiveUniforms(program,uniformIndices,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getAttachedShaders = function(this1,program) { return this1.__context.getAttachedShaders(program); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getAttribLocation = function(this1,program,name) { return this1.__context.getAttribLocation(program,name); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getBufferParameter = function(this1,target,pname) { return this1.__context.getBufferParameter(target,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getBufferSubData = function(this1,target,srcByteOffset,dstData,srcOffset,length) { this1.getBufferSubDataWEBGL(target,srcByteOffset,dstData,srcOffset,length); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getContextAttributes = function(this1) { return this1.__context.getContextAttributes(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getError = function(this1) { return this1.__context.getError(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getExtension = function(this1,name) { return this1.__context.getExtension(name); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getFragDataLocation = function(this1,program,name) { return this1.__context.getFragDataLocation(program,name); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getFramebufferAttachmentParameter = function(this1,target,attachment,pname) { return this1.__context.getFramebufferAttachmentParameter(target,attachment,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getIndexedParameter = function(this1,target,index) { return this1.__context.getIndexedParameter(target,index); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getInternalformatParameter = function(this1,target,internalformat,pname) { return this1.__context.getInternalformatParameter(target,internalformat,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getParameter = function(this1,pname) { return this1.__context.getParameter(pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getProgramInfoLog = function(this1,program) { return this1.__context.getProgramInfoLog(program); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getProgramParameter = function(this1,program,pname) { return this1.__context.getProgramParameter(program,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getQuery = function(this1,target,pname) { return this1.__context.getQuery(target,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getQueryParameter = function(this1,query,pname) { return this1.__context.getQueryParameter(query,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getRenderbufferParameter = function(this1,target,pname) { return this1.__context.getRenderbufferParameter(target,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getSamplerParameter = function(this1,sampler,pname) { return this1.__context.getSamplerParameter(sampler,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getShaderInfoLog = function(this1,shader) { return this1.__context.getShaderInfoLog(shader); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getShaderParameter = function(this1,shader,pname) { return this1.__context.getShaderParameter(shader,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getShaderPrecisionFormat = function(this1,shadertype,precisiontype) { return this1.__context.getShaderPrecisionFormat(shadertype,precisiontype); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getShaderSource = function(this1,shader) { return this1.__context.getShaderSource(shader); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getSupportedExtensions = function(this1) { return this1.__context.getSupportedExtensions(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getSyncParameter = function(this1,sync,pname) { return this1.__context.getSyncParameter(sync,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getTexParameter = function(this1,target,pname) { return this1.__context.getTexParameter(target,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getTransformFeedbackVarying = function(this1,program,index) { return this1.__context.getTransformFeedbackVarying(program,index); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getUniform = function(this1,program,location) { return this1.__context.getUniform(program,location); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getUniformBlockIndex = function(this1,program,uniformBlockName) { return this1.__context.getUniformBlockIndex(program,uniformBlockName); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getUniformIndices = function(this1,program,uniformNames) { return this1.__context.getUniformIndices(program,uniformNames); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getUniformLocation = function(this1,program,name) { return this1.__context.getUniformLocation(program,name); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getVertexAttrib = function(this1,index,pname) { return this1.__context.getVertexAttrib(index,pname); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.getVertexAttribOffset = function(this1,index,pname) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(this1.__context.getVertexAttribOffset(index,pname)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.hint = function(this1,target,mode) { this1.__context.hint(target,mode); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.invalidateFramebuffer = function(this1,target,attachments) { this1.__context.invalidateFramebuffer(target,attachments); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.invalidateSubFramebuffer = function(this1,target,attachments,x,y,width,height) { this1.__context.invalidateSubFramebuffer(target,attachments,x,y,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isBuffer = function(this1,buffer) { return this1.__context.isBuffer(buffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isContextLost = function(this1) { if(!this1.__contextLost) { return this1.__context.isContextLost(); } else { return true; } }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isEnabled = function(this1,cap) { return this1.__context.isEnabled(cap); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isFramebuffer = function(this1,framebuffer) { return this1.__context.isFramebuffer(framebuffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isProgram = function(this1,program) { return this1.__context.isProgram(program); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isQuery = function(this1,query) { return this1.__context.isQuery(query); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isRenderbuffer = function(this1,renderbuffer) { return this1.__context.isRenderbuffer(renderbuffer); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isSampler = function(this1,sampler) { return this1.__context.isSampler(sampler); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isShader = function(this1,shader) { return this1.__context.isShader(shader); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isTexture = function(this1,texture) { return this1.__context.isTexture(texture); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isTransformFeedback = function(this1,transformFeedback) { return this1.__context.isTransformFeedback(transformFeedback); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.isVertexArray = function(this1,vertexArray) { return this1.__context.isVertexArray(vertexArray); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.lineWidth = function(this1,width) { this1.__context.lineWidth(width); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.linkProgram = function(this1,program) { this1.__context.linkProgram(program); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.pauseTransformFeedback = function(this1) { this1.__context.pauseTransformFeedback(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.pixelStorei = function(this1,pname,param) { this1.__context.pixelStorei(pname,param); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.polygonOffset = function(this1,factor,units) { this1.__context.polygonOffset(factor,units); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.readBuffer = function(this1,src) { this1.__context.readBuffer(src); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.readPixels = function(this1,x,y,width,height,format,type,pixels,dstOffset) { this1.readPixelsWEBGL(x,y,width,height,format,type,pixels,dstOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.renderbufferStorage = function(this1,target,internalformat,width,height) { this1.__context.renderbufferStorage(target,internalformat,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.renderbufferStorageMultisample = function(this1,target,samples,internalformat,width,height) { this1.__context.renderbufferStorageMultisample(target,samples,internalformat,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.resumeTransformFeedback = function(this1) { this1.__context.resumeTransformFeedback(); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.sampleCoverage = function(this1,value,invert) { this1.__context.sampleCoverage(value,invert); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.samplerParameterf = function(this1,sampler,pname,param) { this1.__context.samplerParameterf(sampler,pname,param); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.samplerParameteri = function(this1,sampler,pname,param) { this1.__context.samplerParameteri(sampler,pname,param); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.scissor = function(this1,x,y,width,height) { this1.__context.scissor(x,y,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.shaderSource = function(this1,shader,source) { this1.__context.shaderSource(shader,source); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.stencilFunc = function(this1,func,ref,mask) { this1.__context.stencilFunc(func,ref,mask); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.stencilFuncSeparate = function(this1,face,func,ref,mask) { this1.__context.stencilFuncSeparate(face,func,ref,mask); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.stencilMask = function(this1,mask) { this1.__context.stencilMask(mask); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.stencilMaskSeparate = function(this1,face,mask) { this1.__context.stencilMaskSeparate(face,mask); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.stencilOp = function(this1,fail,zfail,zpass) { this1.__context.stencilOp(fail,zfail,zpass); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.stencilOpSeparate = function(this1,face,fail,zfail,zpass) { this1.__context.stencilOpSeparate(face,fail,zfail,zpass); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texImage2D = function(this1,target,level,internalformat,width,height,border,format,type,srcData,srcOffset) { this1.texImage2DWEBGL(target,level,internalformat,width,height,border,format,type,srcData,srcOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texImage3D = function(this1,target,level,internalformat,width,height,depth,border,format,type,srcData,srcOffset) { this1.__context.texImage3D(target,level,internalformat,width,height,depth,border,format,type,srcData,srcOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texStorage2D = function(this1,target,level,internalformat,width,height) { this1.__context.texStorage2D(target,level,internalformat,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texStorage3D = function(this1,target,level,internalformat,width,height,depth) { this1.__context.texStorage3D(target,level,internalformat,width,height,depth); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texParameterf = function(this1,target,pname,param) { this1.__context.texParameterf(target,pname,param); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texParameteri = function(this1,target,pname,param) { this1.__context.texParameteri(target,pname,param); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texSubImage2D = function(this1,target,level,xoffset,yoffset,width,height,format,type,srcData,srcOffset) { this1.texSubImage2DWEBGL(target,level,xoffset,yoffset,width,height,format,type,srcData,srcOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.texSubImage3D = function(this1,target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,srcData,srcOffset) { this1.__context.texSubImage3D(target,level,xoffset,yoffset,zoffset,width,height,depth,format,type,srcData,srcOffset); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.transformFeedbackVaryings = function(this1,program,varyings,bufferMode) { this1.__context.transformFeedbackVaryings(program,varyings,bufferMode); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform1f = function(this1,location,v0) { this1.__context.uniform1f(location,v0); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform1fv = function(this1,location,v) { this1.uniform1fvWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform1i = function(this1,location,v0) { this1.__context.uniform1i(location,v0); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform1iv = function(this1,location,v) { this1.uniform1ivWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform1ui = function(this1,location,v0) { this1.__context.uniform1ui(location,v0); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform1uiv = function(this1,location,v) { this1.__context.uniform1uiv(location,v,null,null); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform2f = function(this1,location,v0,v1) { this1.__context.uniform2f(location,v0,v1); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform2fv = function(this1,location,v) { this1.uniform2fvWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform2i = function(this1,location,v0,v1) { this1.__context.uniform2i(location,v0,v1); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform2iv = function(this1,location,v) { this1.uniform2fvWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform2ui = function(this1,location,v0,v1) { this1.__context.uniform2ui(location,v0,v1); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform2uiv = function(this1,location,v) { this1.__context.uniform2uiv(location,v,null,null); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform3f = function(this1,location,v0,v1,v2) { this1.__context.uniform3f(location,v0,v1,v2); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform3fv = function(this1,location,v) { this1.uniform3fvWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform3i = function(this1,location,v0,v1,v2) { this1.__context.uniform3i(location,v0,v1,v2); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform3iv = function(this1,location,v) { this1.uniform3ivWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform3ui = function(this1,location,v0,v1,v2) { this1.__context.uniform3ui(location,v0,v1,v2); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform3uiv = function(this1,location,v) { this1.__context.uniform3uiv(location,v,null,null); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform4f = function(this1,location,v0,v1,v2,v3) { this1.__context.uniform4f(location,v0,v1,v2,v3); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform4fv = function(this1,location,v) { this1.uniform4fvWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform4i = function(this1,location,v0,v1,v2,v3) { this1.__context.uniform4i(location,v0,v1,v2,v3); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform4iv = function(this1,location,v) { this1.uniform4ivWEBGL(location,v); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform4ui = function(this1,location,v0,v1,v2,v3) { this1.__context.uniform4ui(location,v0,v1,v2,v3); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniform4uiv = function(this1,location,v) { this1.__context.uniform4uiv(location,v,null,null); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformBlockBinding = function(this1,program,uniformBlockIndex,uniformBlockBinding) { this1.__context.uniformBlockBinding(program,uniformBlockIndex,uniformBlockBinding); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix2fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.uniformMatrix2fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix2x3fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.__context.uniformMatrix2x3fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix2x4fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.__context.uniformMatrix2x4fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix3fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.uniformMatrix3fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix3x2fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.__context.uniformMatrix3x2fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix3x4fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.__context.uniformMatrix3x4fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix4fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.uniformMatrix4fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix4x2fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.uniformMatrix4x2fvWEBGL(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.uniformMatrix4x3fv = function(this1,location,transpose,v,srcOffset,srcLength) { this1.__context.uniformMatrix4x3fv(location,transpose,v,srcOffset,srcLength); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.useProgram = function(this1,program) { this1.__context.useProgram(program); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.validateProgram = function(this1,program) { this1.__context.validateProgram(program); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib1f = function(this1,indx,x) { this1.__context.vertexAttrib1f(indx,x); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib1fv = function(this1,indx,values) { var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(values); this1.__context.vertexAttrib1fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib2f = function(this1,indx,x,y) { this1.__context.vertexAttrib2f(indx,x,y); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib2fv = function(this1,indx,values) { var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(values); this1.__context.vertexAttrib2fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib3f = function(this1,indx,x,y,z) { this1.__context.vertexAttrib3f(indx,x,y,z); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib3fv = function(this1,indx,values) { var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(values); this1.__context.vertexAttrib3fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib4f = function(this1,indx,x,y,z,w) { this1.__context.vertexAttrib4f(indx,x,y,z,w); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttrib4fv = function(this1,indx,values) { var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(values); this1.__context.vertexAttrib4fv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttribDivisor = function(this1,index,divisor) { this1.__context.vertexAttribDivisor(index,divisor); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttribI4i = function(this1,indx,x,y,z,w) { this1.__context.vertexAttribI4i(indx,x,y,z,w); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttribI4iv = function(this1,indx,values) { var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(values); this1.__context.vertexAttribI4iv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array(v)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttribI4ui = function(this1,indx,x,y,z,w) { this1.__context.vertexAttribI4ui(indx,x,y,z,w); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttribI4uiv = function(this1,indx,values) { var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(values); this1.__context.vertexAttribI4uiv(indx,lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array(v)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.vertexAttribPointer = function(this1,indx,size,type,normalized,stride,offset) { this1.__context.vertexAttribPointer(indx,size,type,normalized,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.viewport = function(this1,x,y,width,height) { this1.__context.viewport(x,y,width,height); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.waitSync = function(this1,sync,flags,timeout) { this1.__context.waitSync(sync,flags,timeout); }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.fromGL = function(gl) { return lime_graphics_opengl_GL.context; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.fromGLES3Context = function(gl) { return gl; }; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.toWebGLContext = function(gl) { return gl; }; var lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$ = {}; $hxClasses["lime.graphics.opengl._WebGLContext.WebGLContext_Impl_"] = lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.__name__ = ["lime","graphics","opengl","_WebGLContext","WebGLContext_Impl_"]; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.bufferData = function(this1,target,srcData,usage) { this1.bufferDataWEBGL(target,srcData,usage,null,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.bufferSubData = function(this1,target,offset,srcData) { this1.bufferSubDataWEBGL(target,offset,srcData,null,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.compressedTexImage2D = function(this1,target,level,internalformat,width,height,border,srcData) { this1.compressedTexImage2DWEBGL(target,level,internalformat,width,height,border,srcData,null,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.compressedTexSubImage2D = function(this1,target,level,xoffset,yoffset,width,height,format,srcData) { this1.compressedTexSubImage2DWEBGL(target,level,xoffset,yoffset,width,height,format,srcData,null,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.readPixels = function(this1,x,y,width,height,format,type,pixels) { this1.readPixelsWEBGL(x,y,width,height,format,type,pixels,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.texImage2D = function(this1,target,level,internalformat,width,height,border,format,type,srcData) { this1.texImage2DWEBGL(target,level,internalformat,width,height,border,format,type,srcData,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.texSubImage2D = function(this1,target,level,xoffset,yoffset,width,height,format,type,srcData) { this1.texSubImage2DWEBGL(target,level,xoffset,yoffset,width,height,format,type,srcData,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.uniformMatrix2fv = function(this1,location,transpose,v) { this1.uniformMatrix2fvWEBGL(location,transpose,v,null,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.uniformMatrix3fv = function(this1,location,transpose,v) { this1.uniformMatrix3fvWEBGL(location,transpose,v,null,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.uniformMatrix4fv = function(this1,location,transpose,v) { this1.uniformMatrix4fvWEBGL(location,transpose,v,null,null); }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.fromGL = function(gl) { return lime_graphics_opengl_GL.context; }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.fromGLES2Context = function(gl) { return gl; }; lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.fromGLES3Context = function(gl) { return gl; }; var lime_graphics_utils_ImageCanvasUtil = function() { }; $hxClasses["lime.graphics.utils.ImageCanvasUtil"] = lime_graphics_utils_ImageCanvasUtil; lime_graphics_utils_ImageCanvasUtil.__name__ = ["lime","graphics","utils","ImageCanvasUtil"]; lime_graphics_utils_ImageCanvasUtil.colorTransform = function(image,rect,colorMatrix) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); lime_graphics_utils_ImageDataUtil.colorTransform(image,rect,colorMatrix); }; lime_graphics_utils_ImageCanvasUtil.convertToCanvas = function(image,clear) { if(clear == null) { clear = false; } var buffer = image.buffer; if(buffer.__srcImage != null) { if(buffer.__srcCanvas == null) { lime_graphics_utils_ImageCanvasUtil.createCanvas(image,buffer.__srcImage.width,buffer.__srcImage.height); buffer.__srcContext.drawImage(buffer.__srcImage,0,0); } buffer.__srcImage = null; } else if(buffer.__srcCanvas == null && buffer.data != null) { image.set_transparent(true); lime_graphics_utils_ImageCanvasUtil.createCanvas(image,buffer.width,buffer.height); lime_graphics_utils_ImageCanvasUtil.createImageData(image); buffer.__srcContext.putImageData(buffer.__srcImageData,0,0); } else if(image.type == lime_graphics_ImageType.DATA && buffer.__srcImageData != null && image.dirty) { buffer.__srcContext.putImageData(buffer.__srcImageData,0,0); image.dirty = false; } if(clear) { buffer.data = null; buffer.__srcImageData = null; } else if(buffer.data == null && buffer.__srcImageData != null) { buffer.data = buffer.__srcImageData.data; } image.type = lime_graphics_ImageType.CANVAS; }; lime_graphics_utils_ImageCanvasUtil.convertToData = function(image,clear) { if(clear == null) { clear = false; } var buffer = image.buffer; if(buffer.__srcImage != null) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(image); } if(buffer.__srcCanvas != null && buffer.data == null) { lime_graphics_utils_ImageCanvasUtil.createImageData(image); if(image.type == lime_graphics_ImageType.CANVAS) { image.dirty = false; } } else if(image.type == lime_graphics_ImageType.CANVAS && buffer.__srcCanvas != null && image.dirty) { if(buffer.__srcImageData == null) { lime_graphics_utils_ImageCanvasUtil.createImageData(image); } else { buffer.__srcImageData = buffer.__srcContext.getImageData(0,0,buffer.width,buffer.height); var elements = buffer.__srcImageData.data.buffer; var this1; if(elements != null) { this1 = new Uint8Array(elements); } else { this1 = null; } buffer.data = this1; } image.dirty = false; } if(clear) { image.buffer.__srcCanvas = null; image.buffer.__srcContext = null; } image.type = lime_graphics_ImageType.DATA; }; lime_graphics_utils_ImageCanvasUtil.copyChannel = function(image,sourceImage,sourceRect,destPoint,sourceChannel,destChannel) { lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); lime_graphics_utils_ImageCanvasUtil.convertToData(image); lime_graphics_utils_ImageDataUtil.copyChannel(image,sourceImage,sourceRect,destPoint,sourceChannel,destChannel); }; lime_graphics_utils_ImageCanvasUtil.copyPixels = function(image,sourceImage,sourceRect,destPoint,alphaImage,alphaPoint,mergeAlpha) { if(mergeAlpha == null) { mergeAlpha = false; } if(destPoint == null || destPoint.x >= image.width || destPoint.y >= image.height || sourceRect == null || sourceRect.width < 1 || sourceRect.height < 1) { return; } if(alphaImage != null && alphaImage.get_transparent()) { if(alphaPoint == null) { alphaPoint = new lime_math_Vector2(); } var tempData = image.clone(); tempData.copyChannel(alphaImage,new lime_math_Rectangle(alphaPoint.x,alphaPoint.y,sourceRect.width,sourceRect.height),new lime_math_Vector2(sourceRect.x,sourceRect.y),lime_graphics_ImageChannel.ALPHA,lime_graphics_ImageChannel.ALPHA); sourceImage = tempData; } lime_graphics_utils_ImageCanvasUtil.convertToCanvas(image,true); if(!mergeAlpha) { if(image.get_transparent() && sourceImage.get_transparent()) { image.buffer.__srcContext.clearRect(destPoint.x + image.offsetX,destPoint.y + image.offsetY,sourceRect.width + image.offsetX,sourceRect.height + image.offsetY); } } lime_graphics_utils_ImageCanvasUtil.convertToCanvas(sourceImage); if(sourceImage.buffer.get_src() != null) { image.buffer.__srcContext.drawImage(sourceImage.buffer.get_src(),sourceRect.x + sourceImage.offsetX | 0,sourceRect.y + sourceImage.offsetY | 0,sourceRect.width | 0,sourceRect.height | 0,destPoint.x + image.offsetX | 0,destPoint.y + image.offsetY | 0,sourceRect.width | 0,sourceRect.height | 0); } image.dirty = true; image.version++; }; lime_graphics_utils_ImageCanvasUtil.createCanvas = function(image,width,height) { var buffer = image.buffer; if(buffer.__srcCanvas == null) { buffer.__srcCanvas = window.document.createElement("canvas"); buffer.__srcCanvas.width = width; buffer.__srcCanvas.height = height; if(!image.get_transparent()) { if(!image.get_transparent()) { buffer.__srcCanvas.setAttribute("moz-opaque","true"); } buffer.__srcContext = buffer.__srcCanvas.getContext ("2d", { alpha: false }); } else { buffer.__srcContext = buffer.__srcCanvas.getContext("2d"); } buffer.__srcContext.mozImageSmoothingEnabled = false; buffer.__srcContext.msImageSmoothingEnabled = false; buffer.__srcContext.imageSmoothingEnabled = false; } }; lime_graphics_utils_ImageCanvasUtil.createImageData = function(image) { var buffer = image.buffer; if(buffer.__srcImageData == null) { if(buffer.data == null) { buffer.__srcImageData = buffer.__srcContext.getImageData(0,0,buffer.width,buffer.height); } else { buffer.__srcImageData = buffer.__srcContext.createImageData(buffer.width,buffer.height); buffer.__srcImageData.data.set(buffer.data); } var elements = buffer.__srcImageData.data.buffer; var this1; if(elements != null) { this1 = new Uint8Array(elements); } else { this1 = null; } buffer.data = this1; } }; lime_graphics_utils_ImageCanvasUtil.fillRect = function(image,rect,color,format) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(image); var r; var g; var b; var a; if(format == 1) { r = color >> 16 & 255; g = color >> 8 & 255; b = color & 255; if(image.get_transparent()) { a = color >> 24 & 255; } else { a = 255; } } else { r = color >> 24 & 255; g = color >> 16 & 255; b = color >> 8 & 255; if(image.get_transparent()) { a = color & 255; } else { a = 255; } } if(rect.x == 0 && rect.y == 0 && rect.width == image.width && rect.height == image.height) { if(image.get_transparent() && a == 0) { image.buffer.__srcCanvas.width = image.buffer.width; return; } } if(a < 255) { image.buffer.__srcContext.clearRect(rect.x + image.offsetX,rect.y + image.offsetY,rect.width + image.offsetX,rect.height + image.offsetY); } if(a > 0) { image.buffer.__srcContext.fillStyle = "rgba(" + r + ", " + g + ", " + b + ", " + a / 255 + ")"; image.buffer.__srcContext.fillRect(rect.x + image.offsetX,rect.y + image.offsetY,rect.width + image.offsetX,rect.height + image.offsetY); } image.dirty = true; image.version++; }; lime_graphics_utils_ImageCanvasUtil.floodFill = function(image,x,y,color,format) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); lime_graphics_utils_ImageDataUtil.floodFill(image,x,y,color,format); }; lime_graphics_utils_ImageCanvasUtil.getPixel = function(image,x,y,format) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); return lime_graphics_utils_ImageDataUtil.getPixel(image,x,y,format); }; lime_graphics_utils_ImageCanvasUtil.getPixel32 = function(image,x,y,format) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); return lime_graphics_utils_ImageDataUtil.getPixel32(image,x,y,format); }; lime_graphics_utils_ImageCanvasUtil.getPixels = function(image,rect,format) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); return lime_graphics_utils_ImageDataUtil.getPixels(image,rect,format); }; lime_graphics_utils_ImageCanvasUtil.merge = function(image,sourceImage,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) { lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); lime_graphics_utils_ImageCanvasUtil.convertToData(image); lime_graphics_utils_ImageDataUtil.merge(image,sourceImage,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier); }; lime_graphics_utils_ImageCanvasUtil.resize = function(image,newWidth,newHeight) { var buffer = image.buffer; if(buffer.__srcCanvas == null) { lime_graphics_utils_ImageCanvasUtil.createCanvas(image,newWidth,newHeight); buffer.__srcContext.drawImage(buffer.get_src(),0,0,newWidth,newHeight); } else { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(image,true); var sourceCanvas = buffer.__srcCanvas; buffer.__srcCanvas = null; lime_graphics_utils_ImageCanvasUtil.createCanvas(image,newWidth,newHeight); buffer.__srcContext.drawImage(sourceCanvas,0,0,newWidth,newHeight); } buffer.__srcImageData = null; buffer.data = null; image.dirty = true; image.version++; }; lime_graphics_utils_ImageCanvasUtil.scroll = function(image,x,y) { if(x % image.width == 0 && y % image.height == 0) { return; } var copy = image.clone(); lime_graphics_utils_ImageCanvasUtil.convertToCanvas(image,true); image.buffer.__srcContext.clearRect(x,y,image.width,image.height); image.buffer.__srcContext.drawImage(copy.get_src(),x,y); image.dirty = true; image.version++; }; lime_graphics_utils_ImageCanvasUtil.setPixel = function(image,x,y,color,format) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); lime_graphics_utils_ImageDataUtil.setPixel(image,x,y,color,format); }; lime_graphics_utils_ImageCanvasUtil.setPixel32 = function(image,x,y,color,format) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); lime_graphics_utils_ImageDataUtil.setPixel32(image,x,y,color,format); }; lime_graphics_utils_ImageCanvasUtil.setPixels = function(image,rect,bytePointer,format,endian) { lime_graphics_utils_ImageCanvasUtil.convertToData(image); lime_graphics_utils_ImageDataUtil.setPixels(image,rect,bytePointer,format,endian); }; lime_graphics_utils_ImageCanvasUtil.sync = function(image,clear) { if(image == null) { return; } if(image.type == lime_graphics_ImageType.CANVAS) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(image,clear); } else { lime_graphics_utils_ImageCanvasUtil.convertToData(image,clear); } }; var lime_graphics_utils_ImageDataUtil = function() { }; $hxClasses["lime.graphics.utils.ImageDataUtil"] = lime_graphics_utils_ImageDataUtil; lime_graphics_utils_ImageDataUtil.__name__ = ["lime","graphics","utils","ImageDataUtil"]; lime_graphics_utils_ImageDataUtil.colorTransform = function(image,rect,colorMatrix) { var data = image.buffer.data; if(data == null) { return; } var format = image.buffer.format; var premultiplied = image.buffer.premultiplied; var dataView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,rect); var alphaTable = lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getAlphaTable(colorMatrix); var redTable = lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getRedTable(colorMatrix); var greenTable = lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getGreenTable(colorMatrix); var blueTable = lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getBlueTable(colorMatrix); var row; var offset; var pixel; var _g1 = 0; var _g = dataView.height; while(_g1 < _g) { var y = _g1++; row = dataView.byteOffset + dataView.stride * y; var _g3 = 0; var _g2 = dataView.width; while(_g3 < _g2) { var x = _g3++; offset = row + x * 4; switch(format) { case 0: pixel = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: pixel = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: pixel = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } if(premultiplied) { if((pixel & 255) != 0 && (pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (pixel & 255); pixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | pixel & 255 & 255; } } pixel = (redTable[pixel >>> 24 & 255] & 255) << 24 | (greenTable[pixel >>> 16 & 255] & 255) << 16 | (blueTable[pixel >>> 8 & 255] & 255) << 8 | alphaTable[pixel & 255] & 255; if(premultiplied) { if((pixel & 255) == 0) { if(pixel != 0) { pixel = 0; } } else if((pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[pixel & 255]; pixel = ((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | pixel & 255 & 255; } } switch(format) { case 0: data[offset] = pixel >>> 24 & 255; data[offset + 1] = pixel >>> 16 & 255; data[offset + 2] = pixel >>> 8 & 255; data[offset + 3] = pixel & 255; break; case 1: data[offset] = pixel & 255; data[offset + 1] = pixel >>> 24 & 255; data[offset + 2] = pixel >>> 16 & 255; data[offset + 3] = pixel >>> 8 & 255; break; case 2: data[offset] = pixel >>> 8 & 255; data[offset + 1] = pixel >>> 16 & 255; data[offset + 2] = pixel >>> 24 & 255; data[offset + 3] = pixel & 255; break; } } } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.copyChannel = function(image,sourceImage,sourceRect,destPoint,sourceChannel,destChannel) { var destIdx; switch(destChannel[1]) { case 0: destIdx = 0; break; case 1: destIdx = 1; break; case 2: destIdx = 2; break; case 3: destIdx = 3; break; } var srcIdx; switch(sourceChannel[1]) { case 0: srcIdx = 0; break; case 1: srcIdx = 1; break; case 2: srcIdx = 2; break; case 3: srcIdx = 3; break; } var srcData = sourceImage.buffer.data; var destData = image.buffer.data; if(srcData == null || destData == null) { return; } var srcView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(sourceImage,sourceRect); var destView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,new lime_math_Rectangle(destPoint.x,destPoint.y,srcView.width,srcView.height)); var srcFormat = sourceImage.buffer.format; var destFormat = image.buffer.format; var srcPremultiplied = sourceImage.buffer.premultiplied; var destPremultiplied = image.buffer.premultiplied; var srcPosition; var destPosition; var srcPixel; var destPixel; var value = 0; var _g1 = 0; var _g = destView.height; while(_g1 < _g) { var y = _g1++; srcPosition = srcView.byteOffset + srcView.stride * y; destPosition = destView.byteOffset + destView.stride * y; var _g3 = 0; var _g2 = destView.width; while(_g3 < _g2) { var x = _g3++; switch(srcFormat) { case 0: srcPixel = (srcData[srcPosition] & 255) << 24 | (srcData[srcPosition + 1] & 255) << 16 | (srcData[srcPosition + 2] & 255) << 8 | srcData[srcPosition + 3] & 255; break; case 1: srcPixel = (srcData[srcPosition + 1] & 255) << 24 | (srcData[srcPosition + 2] & 255) << 16 | (srcData[srcPosition + 3] & 255) << 8 | srcData[srcPosition] & 255; break; case 2: srcPixel = (srcData[srcPosition + 2] & 255) << 24 | (srcData[srcPosition + 1] & 255) << 16 | (srcData[srcPosition] & 255) << 8 | srcData[srcPosition + 3] & 255; break; } if(srcPremultiplied) { if((srcPixel & 255) != 0 && (srcPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (srcPixel & 255); srcPixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((srcPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((srcPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((srcPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | srcPixel & 255 & 255; } } switch(destFormat) { case 0: destPixel = (destData[destPosition] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition + 2] & 255) << 8 | destData[destPosition + 3] & 255; break; case 1: destPixel = (destData[destPosition + 1] & 255) << 24 | (destData[destPosition + 2] & 255) << 16 | (destData[destPosition + 3] & 255) << 8 | destData[destPosition] & 255; break; case 2: destPixel = (destData[destPosition + 2] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition] & 255) << 8 | destData[destPosition + 3] & 255; break; } if(destPremultiplied) { if((destPixel & 255) != 0 && (destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (destPixel & 255); destPixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | destPixel & 255 & 255; } } switch(srcIdx) { case 0: value = srcPixel >>> 24 & 255; break; case 1: value = srcPixel >>> 16 & 255; break; case 2: value = srcPixel >>> 8 & 255; break; case 3: value = srcPixel & 255; break; } switch(destIdx) { case 0: destPixel = (value & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; break; case 1: destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (value & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; break; case 2: destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (value & 255) << 8 | destPixel & 255 & 255; break; case 3: destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | value & 255; break; } if(destPremultiplied) { if((destPixel & 255) == 0) { if(destPixel != 0) { destPixel = 0; } } else if((destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[destPixel & 255]; destPixel = ((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | destPixel & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = destPixel >>> 24 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 8 & 255; destData[destPosition + 3] = destPixel & 255; break; case 1: destData[destPosition] = destPixel & 255; destData[destPosition + 1] = destPixel >>> 24 & 255; destData[destPosition + 2] = destPixel >>> 16 & 255; destData[destPosition + 3] = destPixel >>> 8 & 255; break; case 2: destData[destPosition] = destPixel >>> 8 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 24 & 255; destData[destPosition + 3] = destPixel & 255; break; } srcPosition += 4; destPosition += 4; } } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.copyPixels = function(image,sourceImage,sourceRect,destPoint,alphaImage,alphaPoint,mergeAlpha) { if(mergeAlpha == null) { mergeAlpha = false; } if(image.width == sourceImage.width && image.height == sourceImage.height && sourceRect.width == sourceImage.width && sourceRect.height == sourceImage.height && sourceRect.x == 0 && sourceRect.y == 0 && destPoint.x == 0 && destPoint.y == 0 && alphaImage == null && alphaPoint == null && mergeAlpha == false && image.get_format() == sourceImage.get_format()) { image.buffer.data.set(sourceImage.buffer.data); } else { var sourceData = sourceImage.buffer.data; var destData = image.buffer.data; if(sourceData == null || destData == null) { return; } var sourceView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(sourceImage,sourceRect); var destRect = new lime_math_Rectangle(destPoint.x,destPoint.y,sourceView.width,sourceView.height); var destView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,destRect); var sourceFormat = sourceImage.buffer.format; var destFormat = image.buffer.format; var sourcePosition; var destPosition; var sourceAlpha; var destAlpha; var oneMinusSourceAlpha; var blendAlpha; var sourcePixel; var destPixel; var sourcePremultiplied = sourceImage.buffer.premultiplied; var destPremultiplied = image.buffer.premultiplied; var sourceBytesPerPixel = sourceImage.buffer.bitsPerPixel / 8 | 0; var destBytesPerPixel = image.buffer.bitsPerPixel / 8 | 0; var useAlphaImage = alphaImage != null && alphaImage.get_transparent(); var blend = mergeAlpha || useAlphaImage && !image.get_transparent(); if(!useAlphaImage) { if(blend) { var _g1 = 0; var _g = destView.height; while(_g1 < _g) { var y = _g1++; sourcePosition = sourceView.byteOffset + sourceView.stride * y; destPosition = destView.byteOffset + destView.stride * y; var _g3 = 0; var _g2 = destView.width; while(_g3 < _g2) { var x = _g3++; switch(sourceFormat) { case 0: sourcePixel = (sourceData[sourcePosition] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition + 2] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; case 1: sourcePixel = (sourceData[sourcePosition + 1] & 255) << 24 | (sourceData[sourcePosition + 2] & 255) << 16 | (sourceData[sourcePosition + 3] & 255) << 8 | sourceData[sourcePosition] & 255; break; case 2: sourcePixel = (sourceData[sourcePosition + 2] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; } if(sourcePremultiplied) { if((sourcePixel & 255) != 0 && (sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (sourcePixel & 255); sourcePixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | sourcePixel & 255 & 255; } } switch(destFormat) { case 0: destPixel = (destData[destPosition] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition + 2] & 255) << 8 | destData[destPosition + 3] & 255; break; case 1: destPixel = (destData[destPosition + 1] & 255) << 24 | (destData[destPosition + 2] & 255) << 16 | (destData[destPosition + 3] & 255) << 8 | destData[destPosition] & 255; break; case 2: destPixel = (destData[destPosition + 2] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition] & 255) << 8 | destData[destPosition + 3] & 255; break; } if(destPremultiplied) { if((destPixel & 255) != 0 && (destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (destPixel & 255); destPixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | destPixel & 255 & 255; } } sourceAlpha = (sourcePixel & 255) / 255.0; destAlpha = (destPixel & 255) / 255.0; oneMinusSourceAlpha = 1 - sourceAlpha; blendAlpha = sourceAlpha + destAlpha * oneMinusSourceAlpha; if(blendAlpha == 0) { destPixel = 0; } else { var value = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(((sourcePixel >>> 24 & 255) * sourceAlpha + (destPixel >>> 24 & 255) * destAlpha * oneMinusSourceAlpha) / blendAlpha)]; destPixel = (value & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value1 = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(((sourcePixel >>> 16 & 255) * sourceAlpha + (destPixel >>> 16 & 255) * destAlpha * oneMinusSourceAlpha) / blendAlpha)]; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (value1 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value2 = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(((sourcePixel >>> 8 & 255) * sourceAlpha + (destPixel >>> 8 & 255) * destAlpha * oneMinusSourceAlpha) / blendAlpha)]; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (value2 & 255) << 8 | destPixel & 255 & 255; var value3 = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(blendAlpha * 255.0)]; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | value3 & 255; } if(destPremultiplied) { if((destPixel & 255) == 0) { if(destPixel != 0) { destPixel = 0; } } else if((destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[destPixel & 255]; destPixel = ((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | destPixel & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = destPixel >>> 24 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 8 & 255; destData[destPosition + 3] = destPixel & 255; break; case 1: destData[destPosition] = destPixel & 255; destData[destPosition + 1] = destPixel >>> 24 & 255; destData[destPosition + 2] = destPixel >>> 16 & 255; destData[destPosition + 3] = destPixel >>> 8 & 255; break; case 2: destData[destPosition] = destPixel >>> 8 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 24 & 255; destData[destPosition + 3] = destPixel & 255; break; } sourcePosition += 4; destPosition += 4; } } } else if(sourceFormat == destFormat && sourcePremultiplied == destPremultiplied && sourceBytesPerPixel == destBytesPerPixel) { var _g11 = 0; var _g4 = destView.height; while(_g11 < _g4) { var y1 = _g11++; sourcePosition = sourceView.byteOffset + sourceView.stride * y1; destPosition = destView.byteOffset + destView.stride * y1; destData.set(sourceData.subarray(sourcePosition,sourcePosition + destView.width * destBytesPerPixel),destPosition); } } else { var _g12 = 0; var _g5 = destView.height; while(_g12 < _g5) { var y2 = _g12++; sourcePosition = sourceView.byteOffset + sourceView.stride * y2; destPosition = destView.byteOffset + destView.stride * y2; var _g31 = 0; var _g21 = destView.width; while(_g31 < _g21) { var x1 = _g31++; switch(sourceFormat) { case 0: sourcePixel = (sourceData[sourcePosition] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition + 2] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; case 1: sourcePixel = (sourceData[sourcePosition + 1] & 255) << 24 | (sourceData[sourcePosition + 2] & 255) << 16 | (sourceData[sourcePosition + 3] & 255) << 8 | sourceData[sourcePosition] & 255; break; case 2: sourcePixel = (sourceData[sourcePosition + 2] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; } if(sourcePremultiplied) { if((sourcePixel & 255) != 0 && (sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (sourcePixel & 255); sourcePixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | sourcePixel & 255 & 255; } } if(destPremultiplied) { if((sourcePixel & 255) == 0) { if(sourcePixel != 0) { sourcePixel = 0; } } else if((sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[sourcePixel & 255]; sourcePixel = ((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | sourcePixel & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = sourcePixel >>> 24 & 255; destData[destPosition + 1] = sourcePixel >>> 16 & 255; destData[destPosition + 2] = sourcePixel >>> 8 & 255; destData[destPosition + 3] = sourcePixel & 255; break; case 1: destData[destPosition] = sourcePixel & 255; destData[destPosition + 1] = sourcePixel >>> 24 & 255; destData[destPosition + 2] = sourcePixel >>> 16 & 255; destData[destPosition + 3] = sourcePixel >>> 8 & 255; break; case 2: destData[destPosition] = sourcePixel >>> 8 & 255; destData[destPosition + 1] = sourcePixel >>> 16 & 255; destData[destPosition + 2] = sourcePixel >>> 24 & 255; destData[destPosition + 3] = sourcePixel & 255; break; } sourcePosition += 4; destPosition += 4; } } } } else { if(alphaPoint == null) { alphaPoint = new lime_math_Vector2(); } var alphaData = alphaImage.buffer.data; var alphaFormat = alphaImage.buffer.format; var alphaPosition; var alphaPixel; var alphaView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(alphaImage,new lime_math_Rectangle(alphaPoint.x,alphaPoint.y,alphaImage.width,alphaImage.height)); alphaView.offset(sourceView.x,sourceView.y); destView.clip(destPoint.x | 0,destPoint.y | 0,alphaView.width,alphaView.height); if(blend) { var _g13 = 0; var _g6 = destView.height; while(_g13 < _g6) { var y3 = _g13++; sourcePosition = sourceView.byteOffset + sourceView.stride * y3; destPosition = destView.byteOffset + destView.stride * y3; alphaPosition = alphaView.byteOffset + alphaView.stride * y3; var _g32 = 0; var _g22 = destView.width; while(_g32 < _g22) { var x2 = _g32++; switch(sourceFormat) { case 0: sourcePixel = (sourceData[sourcePosition] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition + 2] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; case 1: sourcePixel = (sourceData[sourcePosition + 1] & 255) << 24 | (sourceData[sourcePosition + 2] & 255) << 16 | (sourceData[sourcePosition + 3] & 255) << 8 | sourceData[sourcePosition] & 255; break; case 2: sourcePixel = (sourceData[sourcePosition + 2] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; } if(sourcePremultiplied) { if((sourcePixel & 255) != 0 && (sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (sourcePixel & 255); sourcePixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | sourcePixel & 255 & 255; } } switch(destFormat) { case 0: destPixel = (destData[destPosition] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition + 2] & 255) << 8 | destData[destPosition + 3] & 255; break; case 1: destPixel = (destData[destPosition + 1] & 255) << 24 | (destData[destPosition + 2] & 255) << 16 | (destData[destPosition + 3] & 255) << 8 | destData[destPosition] & 255; break; case 2: destPixel = (destData[destPosition + 2] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition] & 255) << 8 | destData[destPosition + 3] & 255; break; } if(destPremultiplied) { if((destPixel & 255) != 0 && (destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (destPixel & 255); destPixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | destPixel & 255 & 255; } } switch(alphaFormat) { case 0: alphaPixel = (alphaData[alphaPosition] & 255) << 24 | (alphaData[alphaPosition + 1] & 255) << 16 | (alphaData[alphaPosition + 2] & 255) << 8 | alphaData[alphaPosition + 3] & 255; break; case 1: alphaPixel = (alphaData[alphaPosition + 1] & 255) << 24 | (alphaData[alphaPosition + 2] & 255) << 16 | (alphaData[alphaPosition + 3] & 255) << 8 | alphaData[alphaPosition] & 255; break; case 2: alphaPixel = (alphaData[alphaPosition + 2] & 255) << 24 | (alphaData[alphaPosition + 1] & 255) << 16 | (alphaData[alphaPosition] & 255) << 8 | alphaData[alphaPosition + 3] & 255; break; } sourceAlpha = (alphaPixel & 255) / 255.0 * ((sourcePixel & 255) / 255.0); if(sourceAlpha > 0) { destAlpha = (destPixel & 255) / 255.0; oneMinusSourceAlpha = 1 - sourceAlpha; blendAlpha = sourceAlpha + destAlpha * oneMinusSourceAlpha; var value4 = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(((sourcePixel >>> 24 & 255) * sourceAlpha + (destPixel >>> 24 & 255) * destAlpha * oneMinusSourceAlpha) / blendAlpha)]; destPixel = (value4 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value5 = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(((sourcePixel >>> 16 & 255) * sourceAlpha + (destPixel >>> 16 & 255) * destAlpha * oneMinusSourceAlpha) / blendAlpha)]; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (value5 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value6 = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(((sourcePixel >>> 8 & 255) * sourceAlpha + (destPixel >>> 8 & 255) * destAlpha * oneMinusSourceAlpha) / blendAlpha)]; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (value6 & 255) << 8 | destPixel & 255 & 255; var value7 = lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round(blendAlpha * 255.0)]; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | value7 & 255; if(destPremultiplied) { if((destPixel & 255) == 0) { if(destPixel != 0) { destPixel = 0; } } else if((destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[destPixel & 255]; destPixel = ((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | destPixel & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = destPixel >>> 24 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 8 & 255; destData[destPosition + 3] = destPixel & 255; break; case 1: destData[destPosition] = destPixel & 255; destData[destPosition + 1] = destPixel >>> 24 & 255; destData[destPosition + 2] = destPixel >>> 16 & 255; destData[destPosition + 3] = destPixel >>> 8 & 255; break; case 2: destData[destPosition] = destPixel >>> 8 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 24 & 255; destData[destPosition + 3] = destPixel & 255; break; } } sourcePosition += 4; destPosition += 4; alphaPosition += 4; } } } else { var _g14 = 0; var _g7 = destView.height; while(_g14 < _g7) { var y4 = _g14++; sourcePosition = sourceView.byteOffset + sourceView.stride * y4; destPosition = destView.byteOffset + destView.stride * y4; alphaPosition = alphaView.byteOffset + alphaView.stride * y4; var _g33 = 0; var _g23 = destView.width; while(_g33 < _g23) { var x3 = _g33++; switch(sourceFormat) { case 0: sourcePixel = (sourceData[sourcePosition] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition + 2] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; case 1: sourcePixel = (sourceData[sourcePosition + 1] & 255) << 24 | (sourceData[sourcePosition + 2] & 255) << 16 | (sourceData[sourcePosition + 3] & 255) << 8 | sourceData[sourcePosition] & 255; break; case 2: sourcePixel = (sourceData[sourcePosition + 2] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; } if(sourcePremultiplied) { if((sourcePixel & 255) != 0 && (sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (sourcePixel & 255); sourcePixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | sourcePixel & 255 & 255; } } switch(alphaFormat) { case 0: alphaPixel = (alphaData[alphaPosition] & 255) << 24 | (alphaData[alphaPosition + 1] & 255) << 16 | (alphaData[alphaPosition + 2] & 255) << 8 | alphaData[alphaPosition + 3] & 255; break; case 1: alphaPixel = (alphaData[alphaPosition + 1] & 255) << 24 | (alphaData[alphaPosition + 2] & 255) << 16 | (alphaData[alphaPosition + 3] & 255) << 8 | alphaData[alphaPosition] & 255; break; case 2: alphaPixel = (alphaData[alphaPosition + 2] & 255) << 24 | (alphaData[alphaPosition + 1] & 255) << 16 | (alphaData[alphaPosition] & 255) << 8 | alphaData[alphaPosition + 3] & 255; break; } var value8 = Math.round((sourcePixel & 255) * ((alphaPixel & 255) / 255)); sourcePixel = (sourcePixel >>> 24 & 255 & 255) << 24 | (sourcePixel >>> 16 & 255 & 255) << 16 | (sourcePixel >>> 8 & 255 & 255) << 8 | value8 & 255; if(destPremultiplied) { if((sourcePixel & 255) == 0) { if(sourcePixel != 0) { sourcePixel = 0; } } else if((sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[sourcePixel & 255]; sourcePixel = ((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | sourcePixel & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = sourcePixel >>> 24 & 255; destData[destPosition + 1] = sourcePixel >>> 16 & 255; destData[destPosition + 2] = sourcePixel >>> 8 & 255; destData[destPosition + 3] = sourcePixel & 255; break; case 1: destData[destPosition] = sourcePixel & 255; destData[destPosition + 1] = sourcePixel >>> 24 & 255; destData[destPosition + 2] = sourcePixel >>> 16 & 255; destData[destPosition + 3] = sourcePixel >>> 8 & 255; break; case 2: destData[destPosition] = sourcePixel >>> 8 & 255; destData[destPosition + 1] = sourcePixel >>> 16 & 255; destData[destPosition + 2] = sourcePixel >>> 24 & 255; destData[destPosition + 3] = sourcePixel & 255; break; } sourcePosition += 4; destPosition += 4; alphaPosition += 4; } } } } } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.fillRect = function(image,rect,color,format) { var fillColor; switch(format) { case 1: var argb = color; var this1 = 0; var rgba = this1; rgba = (argb >>> 16 & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb & 255 & 255) << 8 | argb >>> 24 & 255 & 255; fillColor = rgba; break; case 2: var bgra = color; var this2 = 0; var rgba1 = this2; rgba1 = (bgra >>> 8 & 255 & 255) << 24 | (bgra >>> 16 & 255 & 255) << 16 | (bgra >>> 24 & 255 & 255) << 8 | bgra & 255 & 255; fillColor = rgba1; break; default: fillColor = color; } if(!image.get_transparent()) { fillColor = (fillColor >>> 24 & 255 & 255) << 24 | (fillColor >>> 16 & 255 & 255) << 16 | (fillColor >>> 8 & 255 & 255) << 8 | 255; } var data = image.buffer.data; if(data == null) { return; } var format1 = image.buffer.format; var premultiplied = image.buffer.premultiplied; if(premultiplied) { if((fillColor & 255) == 0) { if(fillColor != 0) { fillColor = 0; } } else if((fillColor & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[fillColor & 255]; fillColor = ((fillColor >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((fillColor >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((fillColor >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | fillColor & 255 & 255; } } var dataView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,rect); var row; var _g1 = 0; var _g = dataView.height; while(_g1 < _g) { var y = _g1++; row = dataView.byteOffset + dataView.stride * y; var _g3 = 0; var _g2 = dataView.width; while(_g3 < _g2) { var x = _g3++; var offset = row + x * 4; switch(format1) { case 0: data[offset] = fillColor >>> 24 & 255; data[offset + 1] = fillColor >>> 16 & 255; data[offset + 2] = fillColor >>> 8 & 255; data[offset + 3] = fillColor & 255; break; case 1: data[offset] = fillColor & 255; data[offset + 1] = fillColor >>> 24 & 255; data[offset + 2] = fillColor >>> 16 & 255; data[offset + 3] = fillColor >>> 8 & 255; break; case 2: data[offset] = fillColor >>> 8 & 255; data[offset + 1] = fillColor >>> 16 & 255; data[offset + 2] = fillColor >>> 24 & 255; data[offset + 3] = fillColor & 255; break; } } } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.floodFill = function(image,x,y,color,format) { var data = image.buffer.data; if(data == null) { return; } if(format == 1) { color = (color & 16777215) << 8 | color >> 24 & 255; } var format1 = image.buffer.format; var premultiplied = image.buffer.premultiplied; var fillColor = color; var hitColor; var offset = (y + image.offsetY) * (image.buffer.width * 4) + (x + image.offsetX) * 4; switch(format1) { case 0: hitColor = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: hitColor = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: hitColor = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } if(premultiplied) { if((hitColor & 255) != 0 && (hitColor & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (hitColor & 255); hitColor = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((hitColor >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((hitColor >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((hitColor >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | hitColor & 255 & 255; } } if(!image.get_transparent()) { fillColor = (fillColor >>> 24 & 255 & 255) << 24 | (fillColor >>> 16 & 255 & 255) << 16 | (fillColor >>> 8 & 255 & 255) << 8 | 255; hitColor = (hitColor >>> 24 & 255 & 255) << 24 | (hitColor >>> 16 & 255 & 255) << 16 | (hitColor >>> 8 & 255 & 255) << 8 | 255; } if(fillColor == hitColor) { return; } if(premultiplied) { if((fillColor & 255) == 0) { if(fillColor != 0) { fillColor = 0; } } else if((fillColor & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[fillColor & 255]; fillColor = ((fillColor >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((fillColor >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((fillColor >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | fillColor & 255 & 255; } } var dx = [0,-1,1,0]; var dy = [-1,0,0,1]; var minX = -image.offsetX; var minY = -image.offsetY; var maxX = minX + image.width; var maxY = minY + image.height; var queue = []; queue.push(x); queue.push(y); var curPointX; var curPointY; var nextPointX; var nextPointY; var nextPointOffset; var readColor; while(queue.length > 0) { curPointY = queue.pop(); curPointX = queue.pop(); var _g = 0; while(_g < 4) { var i = _g++; nextPointX = curPointX + dx[i]; nextPointY = curPointY + dy[i]; if(nextPointX < minX || nextPointY < minY || nextPointX >= maxX || nextPointY >= maxY) { continue; } nextPointOffset = (nextPointY * image.width + nextPointX) * 4; switch(format1) { case 0: readColor = (data[nextPointOffset] & 255) << 24 | (data[nextPointOffset + 1] & 255) << 16 | (data[nextPointOffset + 2] & 255) << 8 | data[nextPointOffset + 3] & 255; break; case 1: readColor = (data[nextPointOffset + 1] & 255) << 24 | (data[nextPointOffset + 2] & 255) << 16 | (data[nextPointOffset + 3] & 255) << 8 | data[nextPointOffset] & 255; break; case 2: readColor = (data[nextPointOffset + 2] & 255) << 24 | (data[nextPointOffset + 1] & 255) << 16 | (data[nextPointOffset] & 255) << 8 | data[nextPointOffset + 3] & 255; break; } if(premultiplied) { if((readColor & 255) != 0 && (readColor & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (readColor & 255); readColor = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((readColor >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((readColor >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((readColor >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | readColor & 255 & 255; } } if(readColor == hitColor) { switch(format1) { case 0: data[nextPointOffset] = fillColor >>> 24 & 255; data[nextPointOffset + 1] = fillColor >>> 16 & 255; data[nextPointOffset + 2] = fillColor >>> 8 & 255; data[nextPointOffset + 3] = fillColor & 255; break; case 1: data[nextPointOffset] = fillColor & 255; data[nextPointOffset + 1] = fillColor >>> 24 & 255; data[nextPointOffset + 2] = fillColor >>> 16 & 255; data[nextPointOffset + 3] = fillColor >>> 8 & 255; break; case 2: data[nextPointOffset] = fillColor >>> 8 & 255; data[nextPointOffset + 1] = fillColor >>> 16 & 255; data[nextPointOffset + 2] = fillColor >>> 24 & 255; data[nextPointOffset + 3] = fillColor & 255; break; } queue.push(nextPointX); queue.push(nextPointY); } } } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.gaussianBlur = function(image,sourceImage,sourceRect,destPoint,blurX,blurY,quality,strength) { if(strength == null) { strength = 1; } if(quality == null) { quality = 1; } if(blurY == null) { blurY = 4; } if(blurX == null) { blurX = 4; } var fromPreMult; if(image.buffer.premultiplied || sourceImage.buffer.premultiplied) { fromPreMult = function(col,alpha) { var col1 = col | 0; if(col1 < 0) { return 0; } else if(col1 > 255) { return 255; } else { return col1; } }; } else { fromPreMult = function(col2,alpha1) { var col3 = col2 / alpha1 * 255 | 0; if(col3 < 0) { return 0; } else if(col3 > 255) { return 255; } else { return col3; } }; } var boxesForGauss = function(sigma,n) { var wIdeal = Math.sqrt(12 * sigma * sigma / n + 1); var wl = Math.floor(wIdeal); if(wl % 2 == 0) { --wl; } var wu = wl + 2; var mIdeal = (12 * sigma * sigma - n * wl * wl - 4 * n * wl - 3 * n) / (-4 * wl - 4); var m = Math.round(mIdeal); var sizes = []; var _g1 = 0; var _g = n; while(_g1 < _g) { var i = _g1++; sizes.push(i < m ? wl : wu); } return sizes; }; var boxBlurH = function(imgA,imgB,w,h,r,off) { var iarr = 1 / (r + r + 1); var _g11 = 0; var _g2 = h; while(_g11 < _g2) { var i1 = _g11++; var ti = i1 * w; var li = ti; var ri = ti + r; var fv = imgA[ti * 4 + off]; var lv = imgA[(ti + w - 1) * 4 + off]; var val = (r + 1) * fv; var _g3 = 0; var _g21 = r; while(_g3 < _g21) { var j = _g3++; val = val + imgA[(ti + j) * 4 + off]; } var _g31 = 0; var _g22 = r + 1; while(_g31 < _g22) { var j1 = _g31++; val = val + (imgA[ri * 4 + off] - fv); imgB[ti * 4 + off] = Math.round(_$UInt_UInt_$Impl_$.toFloat(val) * iarr); ++ri; ++ti; } var _g32 = r + 1; var _g23 = w - r; while(_g32 < _g23) { var j2 = _g32++; val = val + (imgA[ri * 4 + off] - imgA[li * 4 + off]); imgB[ti * 4 + off] = Math.round(_$UInt_UInt_$Impl_$.toFloat(val) * iarr); ++ri; ++li; ++ti; } var _g33 = w - r; var _g24 = w; while(_g33 < _g24) { var j3 = _g33++; val = val + (lv - imgA[li * 4 + off]); imgB[ti * 4 + off] = Math.round(_$UInt_UInt_$Impl_$.toFloat(val) * iarr); ++li; ++ti; } } }; var boxBlurT = function(imgA1,imgB1,w1,h1,r1,off1) { var iarr1 = 1 / (r1 + r1 + 1); var ws = w1 * 4; var _g12 = 0; var _g4 = w1; while(_g12 < _g4) { var i2 = _g12++; var ti1 = i2 * 4 + off1; var li1 = ti1; var ri1 = ti1 + r1 * ws; var fv1 = imgA1[ti1]; var lv1 = imgA1[ti1 + ws * (h1 - 1)]; var val1 = (r1 + 1) * fv1; var _g34 = 0; var _g25 = r1; while(_g34 < _g25) { var j4 = _g34++; val1 = val1 + imgA1[ti1 + j4 * ws]; } var _g35 = 0; var _g26 = r1 + 1; while(_g35 < _g26) { var j5 = _g35++; val1 = val1 + (imgA1[ri1] - fv1); imgB1[ti1] = Math.round(_$UInt_UInt_$Impl_$.toFloat(val1) * iarr1); ri1 += ws; ti1 += ws; } var _g36 = r1 + 1; var _g27 = h1 - r1; while(_g36 < _g27) { var j6 = _g36++; val1 = val1 + (imgA1[ri1] - imgA1[li1]); imgB1[ti1] = Math.round(_$UInt_UInt_$Impl_$.toFloat(val1) * iarr1); li1 += ws; ri1 += ws; ti1 += ws; } var _g37 = h1 - r1; var _g28 = h1; while(_g37 < _g28) { var j7 = _g37++; val1 = val1 + (lv1 - imgA1[li1]); imgB1[ti1] = Math.round(_$UInt_UInt_$Impl_$.toFloat(val1) * iarr1); li1 += ws; ti1 += ws; } } }; var boxBlur = function(imgA2,imgB2,w2,h2,bx,by) { var _g13 = 0; var _g5 = imgA2.length; while(_g13 < _g5) { var i3 = _g13++; imgB2[i3] = imgA2[i3]; } boxBlurH(imgB2,imgA2,w2,h2,bx | 0,0); boxBlurH(imgB2,imgA2,w2,h2,bx | 0,1); boxBlurH(imgB2,imgA2,w2,h2,bx | 0,2); boxBlurH(imgB2,imgA2,w2,h2,bx | 0,3); boxBlurT(imgA2,imgB2,w2,h2,by | 0,0); boxBlurT(imgA2,imgB2,w2,h2,by | 0,1); boxBlurT(imgA2,imgB2,w2,h2,by | 0,2); boxBlurT(imgA2,imgB2,w2,h2,by | 0,3); }; var imgB3 = image.get_data(); var imgA3 = sourceImage.get_data(); var w3 = sourceRect.width | 0; var h3 = sourceRect.height | 0; var bx1 = blurX | 0; var by1 = blurY | 0; var oX = destPoint.x | 0; var oY = destPoint.y | 0; var n1 = quality * 2 - 1; var rng = Math.pow(2,quality) * 0.125; var bxs = boxesForGauss(bx1 * rng,n1); var bys = boxesForGauss(by1 * rng,n1); var offset = (w3 * oY + oX) * 4 | 0; boxBlur(imgA3,imgB3,w3,h3,(bxs[0] - 1) / 2,(bys[0] - 1) / 2); var bIndex = 1; var _g14 = 0; var _g6 = n1 / 2 | 0; while(_g14 < _g6) { var i4 = _g14++; boxBlur(imgB3,imgA3,w3,h3,(bxs[bIndex] - 1) / 2,(bys[bIndex] - 1) / 2); boxBlur(imgA3,imgB3,w3,h3,(bxs[bIndex + 1] - 1) / 2,(bys[bIndex + 1] - 1) / 2); bIndex += 2; } var i5 = 0; var a; if(offset < 0) { while(i5 < imgA3.length) { a = _$UInt_UInt_$Impl_$.toFloat(imgB3[i5 + 3]) * strength | 0; if(a < 0) { a = 0; } else if(a > 255) { a = 255; } else { a = a; } imgB3[i5] = fromPreMult(_$UInt_UInt_$Impl_$.toFloat(imgB3[i5]),a); imgB3[i5 + 1] = fromPreMult(_$UInt_UInt_$Impl_$.toFloat(imgB3[i5 + 1]),a); imgB3[i5 + 2] = fromPreMult(_$UInt_UInt_$Impl_$.toFloat(imgB3[i5 + 2]),a); imgB3[i5 + 3] = a; i5 += 4; } var _g15 = imgA3.length - offset; var _g7 = imgA3.length; while(_g15 < _g7) { var i6 = _g15++; imgB3[i6] = 0; } } else { i5 = imgA3.length - 4; while(i5 >= 0) { a = _$UInt_UInt_$Impl_$.toFloat(imgB3[i5 + 3]) * strength | 0; if(a < 0) { a = 0; } else if(a > 255) { a = 255; } else { a = a; } imgB3[i5 + offset] = fromPreMult(_$UInt_UInt_$Impl_$.toFloat(imgB3[i5]),a); imgB3[i5 + 1 + offset] = fromPreMult(_$UInt_UInt_$Impl_$.toFloat(imgB3[i5 + 1]),a); imgB3[i5 + 2 + offset] = fromPreMult(_$UInt_UInt_$Impl_$.toFloat(imgB3[i5 + 2]),a); imgB3[i5 + 3 + offset] = a; i5 -= 4; } var _g16 = 0; var _g8 = offset; while(_g16 < _g8) { var i7 = _g16++; imgB3[i7] = 0; } } image.dirty = true; image.version++; sourceImage.dirty = true; sourceImage.version++; if(imgB3 == image.get_data()) { return image; } return sourceImage; }; lime_graphics_utils_ImageDataUtil.getColorBoundsRect = function(image,mask,color,findColor,format) { if(findColor == null) { findColor = true; } var left = image.width + 1; var right = 0; var top = image.height + 1; var bottom = 0; var _color; var _mask; switch(format) { case 1: var argb = color; var this1 = 0; var rgba = this1; rgba = (argb >>> 16 & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb & 255 & 255) << 8 | argb >>> 24 & 255 & 255; _color = rgba; var argb1 = mask; var this2 = 0; var rgba1 = this2; rgba1 = (argb1 >>> 16 & 255 & 255) << 24 | (argb1 >>> 8 & 255 & 255) << 16 | (argb1 & 255 & 255) << 8 | argb1 >>> 24 & 255 & 255; _mask = rgba1; break; case 2: var bgra = color; var this3 = 0; var rgba2 = this3; rgba2 = (bgra >>> 8 & 255 & 255) << 24 | (bgra >>> 16 & 255 & 255) << 16 | (bgra >>> 24 & 255 & 255) << 8 | bgra & 255 & 255; _color = rgba2; var bgra1 = mask; var this4 = 0; var rgba3 = this4; rgba3 = (bgra1 >>> 8 & 255 & 255) << 24 | (bgra1 >>> 16 & 255 & 255) << 16 | (bgra1 >>> 24 & 255 & 255) << 8 | bgra1 & 255 & 255; _mask = rgba3; break; default: _color = color; _mask = mask; } if(!image.get_transparent()) { _color = (_color >>> 24 & 255 & 255) << 24 | (_color >>> 16 & 255 & 255) << 16 | (_color >>> 8 & 255 & 255) << 8 | 255; _mask = (_mask >>> 24 & 255 & 255) << 24 | (_mask >>> 16 & 255 & 255) << 16 | (_mask >>> 8 & 255 & 255) << 8 | 255; } var pixel; var hit; var _g1 = 0; var _g = image.width; while(_g1 < _g) { var x = _g1++; hit = false; var _g3 = 0; var _g2 = image.height; while(_g3 < _g2) { var y = _g3++; pixel = image.getPixel32(x,y,0); if(findColor) { hit = (pixel & _mask) == _color; } else { hit = (pixel & _mask) != _color; } if(hit) { if(x < left) { left = x; } break; } } if(hit) { break; } } var ix; var _g11 = 0; var _g4 = image.width; while(_g11 < _g4) { var x1 = _g11++; ix = image.width - 1 - x1; hit = false; var _g31 = 0; var _g21 = image.height; while(_g31 < _g21) { var y1 = _g31++; pixel = image.getPixel32(ix,y1,0); if(findColor) { hit = (pixel & _mask) == _color; } else { hit = (pixel & _mask) != _color; } if(hit) { if(ix > right) { right = ix; } break; } } if(hit) { break; } } var _g12 = 0; var _g5 = image.height; while(_g12 < _g5) { var y2 = _g12++; hit = false; var _g32 = 0; var _g22 = image.width; while(_g32 < _g22) { var x2 = _g32++; pixel = image.getPixel32(x2,y2,0); if(findColor) { hit = (pixel & _mask) == _color; } else { hit = (pixel & _mask) != _color; } if(hit) { if(y2 < top) { top = y2; } break; } } if(hit) { break; } } var iy; var _g13 = 0; var _g6 = image.height; while(_g13 < _g6) { var y3 = _g13++; iy = image.height - 1 - y3; hit = false; var _g33 = 0; var _g23 = image.width; while(_g33 < _g23) { var x3 = _g33++; pixel = image.getPixel32(x3,iy,0); if(findColor) { hit = (pixel & _mask) == _color; } else { hit = (pixel & _mask) != _color; } if(hit) { if(iy > bottom) { bottom = iy; } break; } } if(hit) { break; } } var w = right - left; var h = bottom - top; if(w > 0) { ++w; } if(h > 0) { ++h; } if(w < 0) { w = 0; } if(h < 0) { h = 0; } if(left == right) { w = 1; } if(top == bottom) { h = 1; } if(left > image.width) { left = 0; } if(top > image.height) { top = 0; } return new lime_math_Rectangle(left,top,w,h); }; lime_graphics_utils_ImageDataUtil.getPixel = function(image,x,y,format) { var pixel; var data = image.buffer.data; var offset = 4 * (y + image.offsetY) * image.buffer.width + (x + image.offsetX) * 4; var premultiplied = image.buffer.premultiplied; switch(image.buffer.format) { case 0: pixel = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: pixel = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: pixel = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } if(premultiplied) { if((pixel & 255) != 0 && (pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (pixel & 255); pixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | pixel & 255 & 255; } } pixel = (pixel >>> 24 & 255 & 255) << 24 | (pixel >>> 16 & 255 & 255) << 16 | (pixel >>> 8 & 255 & 255) << 8 | 0; switch(format) { case 1: var this1 = 0; var argb = this1; argb = (pixel & 255 & 255) << 24 | (pixel >>> 24 & 255 & 255) << 16 | (pixel >>> 16 & 255 & 255) << 8 | pixel >>> 8 & 255 & 255; return argb; case 2: var this2 = 0; var bgra = this2; bgra = (pixel >>> 8 & 255 & 255) << 24 | (pixel >>> 16 & 255 & 255) << 16 | (pixel >>> 24 & 255 & 255) << 8 | pixel & 255 & 255; return bgra; default: return pixel; } }; lime_graphics_utils_ImageDataUtil.getPixel32 = function(image,x,y,format) { var pixel; var data = image.buffer.data; var offset = 4 * (y + image.offsetY) * image.buffer.width + (x + image.offsetX) * 4; var premultiplied = image.buffer.premultiplied; switch(image.buffer.format) { case 0: pixel = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: pixel = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: pixel = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } if(premultiplied) { if((pixel & 255) != 0 && (pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (pixel & 255); pixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | pixel & 255 & 255; } } switch(format) { case 1: var this1 = 0; var argb = this1; argb = (pixel & 255 & 255) << 24 | (pixel >>> 24 & 255 & 255) << 16 | (pixel >>> 16 & 255 & 255) << 8 | pixel >>> 8 & 255 & 255; return argb; case 2: var this2 = 0; var bgra = this2; bgra = (pixel >>> 8 & 255 & 255) << 24 | (pixel >>> 16 & 255 & 255) << 16 | (pixel >>> 24 & 255 & 255) << 8 | pixel & 255 & 255; return bgra; default: return pixel; } }; lime_graphics_utils_ImageDataUtil.getPixels = function(image,rect,format) { if(image.buffer.data == null) { return null; } var length = rect.width * rect.height | 0; var bytes = new haxe_io_Bytes(new ArrayBuffer(length * 4)); var data = image.buffer.data; var sourceFormat = image.buffer.format; var premultiplied = image.buffer.premultiplied; var dataView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,rect); var position; var argb; var bgra; var pixel; var destPosition = 0; var _g1 = 0; var _g = dataView.height; while(_g1 < _g) { var y = _g1++; position = dataView.byteOffset + dataView.stride * y; var _g3 = 0; var _g2 = dataView.width; while(_g3 < _g2) { var x = _g3++; switch(sourceFormat) { case 0: pixel = (data[position] & 255) << 24 | (data[position + 1] & 255) << 16 | (data[position + 2] & 255) << 8 | data[position + 3] & 255; break; case 1: pixel = (data[position + 1] & 255) << 24 | (data[position + 2] & 255) << 16 | (data[position + 3] & 255) << 8 | data[position] & 255; break; case 2: pixel = (data[position + 2] & 255) << 24 | (data[position + 1] & 255) << 16 | (data[position] & 255) << 8 | data[position + 3] & 255; break; } if(premultiplied) { if((pixel & 255) != 0 && (pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (pixel & 255); pixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | pixel & 255 & 255; } } switch(format) { case 1: var this1 = 0; var argb1 = this1; argb1 = (pixel & 255 & 255) << 24 | (pixel >>> 24 & 255 & 255) << 16 | (pixel >>> 16 & 255 & 255) << 8 | pixel >>> 8 & 255 & 255; argb = argb1; pixel = argb; break; case 2: var this2 = 0; var bgra1 = this2; bgra1 = (pixel >>> 8 & 255 & 255) << 24 | (pixel >>> 16 & 255 & 255) << 16 | (pixel >>> 24 & 255 & 255) << 8 | pixel & 255 & 255; bgra = bgra1; pixel = bgra; break; default: } bytes.b[destPosition++] = pixel >>> 24 & 255 & 255; bytes.b[destPosition++] = pixel >>> 16 & 255 & 255; bytes.b[destPosition++] = pixel >>> 8 & 255 & 255; bytes.b[destPosition++] = pixel & 255 & 255; position += 4; } } return bytes; }; lime_graphics_utils_ImageDataUtil.merge = function(image,sourceImage,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier) { if(image.buffer.data == null || sourceImage.buffer.data == null) { return; } var sourceView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(sourceImage,sourceRect); var destView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,new lime_math_Rectangle(destPoint.x,destPoint.y,sourceView.width,sourceView.height)); var sourceData = sourceImage.buffer.data; var destData = image.buffer.data; var sourceFormat = sourceImage.buffer.format; var destFormat = image.buffer.format; var sourcePremultiplied = sourceImage.buffer.premultiplied; var destPremultiplied = image.buffer.premultiplied; var sourcePosition; var destPosition; var sourcePixel; var destPixel; var _g1 = 0; var _g = destView.height; while(_g1 < _g) { var y = _g1++; sourcePosition = sourceView.byteOffset + sourceView.stride * y; destPosition = destView.byteOffset + destView.stride * y; var _g3 = 0; var _g2 = destView.width; while(_g3 < _g2) { var x = _g3++; switch(sourceFormat) { case 0: sourcePixel = (sourceData[sourcePosition] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition + 2] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; case 1: sourcePixel = (sourceData[sourcePosition + 1] & 255) << 24 | (sourceData[sourcePosition + 2] & 255) << 16 | (sourceData[sourcePosition + 3] & 255) << 8 | sourceData[sourcePosition] & 255; break; case 2: sourcePixel = (sourceData[sourcePosition + 2] & 255) << 24 | (sourceData[sourcePosition + 1] & 255) << 16 | (sourceData[sourcePosition] & 255) << 8 | sourceData[sourcePosition + 3] & 255; break; } if(sourcePremultiplied) { if((sourcePixel & 255) != 0 && (sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (sourcePixel & 255); sourcePixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | sourcePixel & 255 & 255; } } switch(destFormat) { case 0: destPixel = (destData[destPosition] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition + 2] & 255) << 8 | destData[destPosition + 3] & 255; break; case 1: destPixel = (destData[destPosition + 1] & 255) << 24 | (destData[destPosition + 2] & 255) << 16 | (destData[destPosition + 3] & 255) << 8 | destData[destPosition] & 255; break; case 2: destPixel = (destData[destPosition + 2] & 255) << 24 | (destData[destPosition + 1] & 255) << 16 | (destData[destPosition] & 255) << 8 | destData[destPosition + 3] & 255; break; } if(destPremultiplied) { if((destPixel & 255) != 0 && (destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (destPixel & 255); destPixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | destPixel & 255 & 255; } } var value = ((sourcePixel >>> 24 & 255) * redMultiplier + (destPixel >>> 24 & 255) * (256 - redMultiplier)) / 256 | 0; destPixel = (value & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value1 = ((sourcePixel >>> 16 & 255) * greenMultiplier + (destPixel >>> 16 & 255) * (256 - greenMultiplier)) / 256 | 0; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (value1 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value2 = ((sourcePixel >>> 8 & 255) * blueMultiplier + (destPixel >>> 8 & 255) * (256 - blueMultiplier)) / 256 | 0; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (value2 & 255) << 8 | destPixel & 255 & 255; var value3 = ((sourcePixel & 255) * alphaMultiplier + (destPixel & 255) * (256 - alphaMultiplier)) / 256 | 0; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | value3 & 255; if(destPremultiplied) { if((destPixel & 255) == 0) { if(destPixel != 0) { destPixel = 0; } } else if((destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[destPixel & 255]; destPixel = ((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | destPixel & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = destPixel >>> 24 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 8 & 255; destData[destPosition + 3] = destPixel & 255; break; case 1: destData[destPosition] = destPixel & 255; destData[destPosition + 1] = destPixel >>> 24 & 255; destData[destPosition + 2] = destPixel >>> 16 & 255; destData[destPosition + 3] = destPixel >>> 8 & 255; break; case 2: destData[destPosition] = destPixel >>> 8 & 255; destData[destPosition + 1] = destPixel >>> 16 & 255; destData[destPosition + 2] = destPixel >>> 24 & 255; destData[destPosition + 3] = destPixel & 255; break; } sourcePosition += 4; destPosition += 4; } } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.multiplyAlpha = function(image) { var data = image.buffer.data; if(data == null || !image.buffer.transparent) { return; } var format = image.buffer.format; var length = data.length / 4 | 0; var pixel; var _g1 = 0; var _g = length; while(_g1 < _g) { var i = _g1++; var offset = i * 4; switch(format) { case 0: pixel = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: pixel = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: pixel = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } var offset1 = i * 4; if((pixel & 255) == 0) { if(pixel != 0) { pixel = 0; } } else if((pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[pixel & 255]; pixel = ((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | pixel & 255 & 255; } switch(format) { case 0: data[offset1] = pixel >>> 24 & 255; data[offset1 + 1] = pixel >>> 16 & 255; data[offset1 + 2] = pixel >>> 8 & 255; data[offset1 + 3] = pixel & 255; break; case 1: data[offset1] = pixel & 255; data[offset1 + 1] = pixel >>> 24 & 255; data[offset1 + 2] = pixel >>> 16 & 255; data[offset1 + 3] = pixel >>> 8 & 255; break; case 2: data[offset1] = pixel >>> 8 & 255; data[offset1 + 1] = pixel >>> 16 & 255; data[offset1 + 2] = pixel >>> 24 & 255; data[offset1 + 3] = pixel & 255; break; } } image.buffer.premultiplied = true; image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.resize = function(image,newWidth,newHeight) { var buffer = image.buffer; if(buffer.width == newWidth && buffer.height == newHeight) { return; } var elements = newWidth * newHeight * 4; var this1; if(elements != null) { this1 = new Uint8Array(elements); } else { this1 = null; } var newBuffer = new lime_graphics_ImageBuffer(this1,newWidth,newHeight); var imageWidth = image.width; var imageHeight = image.height; var data = image.get_data(); var newData = newBuffer.data; var sourceIndex; var sourceIndexX; var sourceIndexY; var sourceIndexXY; var index; var sourceX; var sourceY; var u; var v; var uRatio; var vRatio; var uOpposite; var vOpposite; var _g1 = 0; var _g = newHeight; while(_g1 < _g) { var y = _g1++; var _g3 = 0; var _g2 = newWidth; while(_g3 < _g2) { var x = _g3++; u = (x + 0.5) / newWidth * imageWidth - 0.5; v = (y + 0.5) / newHeight * imageHeight - 0.5; sourceX = u | 0; sourceY = v | 0; sourceIndex = (sourceY * imageWidth + sourceX) * 4; if(sourceX < imageWidth - 1) { sourceIndexX = sourceIndex + 4; } else { sourceIndexX = sourceIndex; } if(sourceY < imageHeight - 1) { sourceIndexY = sourceIndex + imageWidth * 4; } else { sourceIndexY = sourceIndex; } if(sourceIndexX != sourceIndex) { sourceIndexXY = sourceIndexY + 4; } else { sourceIndexXY = sourceIndexY; } index = (y * newWidth + x) * 4; uRatio = u - sourceX; vRatio = v - sourceY; uOpposite = 1 - uRatio; vOpposite = 1 - vRatio; newData[index] = (_$UInt_UInt_$Impl_$.toFloat(data[sourceIndex]) * uOpposite + _$UInt_UInt_$Impl_$.toFloat(data[sourceIndexX]) * uRatio) * vOpposite + (_$UInt_UInt_$Impl_$.toFloat(data[sourceIndexY]) * uOpposite + _$UInt_UInt_$Impl_$.toFloat(data[sourceIndexXY]) * uRatio) * vRatio | 0; newData[index + 1] = (_$UInt_UInt_$Impl_$.toFloat(data[sourceIndex + 1]) * uOpposite + _$UInt_UInt_$Impl_$.toFloat(data[sourceIndexX + 1]) * uRatio) * vOpposite + (_$UInt_UInt_$Impl_$.toFloat(data[sourceIndexY + 1]) * uOpposite + _$UInt_UInt_$Impl_$.toFloat(data[sourceIndexXY + 1]) * uRatio) * vRatio | 0; newData[index + 2] = (_$UInt_UInt_$Impl_$.toFloat(data[sourceIndex + 2]) * uOpposite + _$UInt_UInt_$Impl_$.toFloat(data[sourceIndexX + 2]) * uRatio) * vOpposite + (_$UInt_UInt_$Impl_$.toFloat(data[sourceIndexY + 2]) * uOpposite + _$UInt_UInt_$Impl_$.toFloat(data[sourceIndexXY + 2]) * uRatio) * vRatio | 0; if(data[sourceIndexX + 3] == 0 || data[sourceIndexY + 3] == 0 || data[sourceIndexXY + 3] == 0) { newData[index + 3] = 0; } else { newData[index + 3] = data[sourceIndex + 3]; } } } buffer.data = newBuffer.data; buffer.width = newWidth; buffer.height = newHeight; buffer.__srcImage = null; buffer.__srcImageData = null; buffer.__srcCanvas = null; buffer.__srcContext = null; image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.resizeBuffer = function(image,newWidth,newHeight) { var buffer = image.buffer; var data = image.get_data(); var elements = newWidth * newHeight * 4; var this1; if(elements != null) { this1 = new Uint8Array(elements); } else { this1 = null; } var newData = this1; var sourceIndex; var index; var _g1 = 0; var _g = buffer.height; while(_g1 < _g) { var y = _g1++; var _g3 = 0; var _g2 = buffer.width; while(_g3 < _g2) { var x = _g3++; sourceIndex = (y * buffer.width + x) * 4; index = (y * newWidth + x) * 4; newData[index] = data[sourceIndex]; newData[index + 1] = data[sourceIndex + 1]; newData[index + 2] = data[sourceIndex + 2]; newData[index + 3] = data[sourceIndex + 3]; } } buffer.data = newData; buffer.width = newWidth; buffer.height = newHeight; }; lime_graphics_utils_ImageDataUtil.setFormat = function(image,format) { var data = image.buffer.data; if(data == null) { return; } var index; var a16; var length = data.length / 4 | 0; var r1; var g1; var b1; var a1; var r2; var g2; var b2; var a2; var r; var g; var b; var a; var _g = image.get_format(); switch(_g) { case 0: r1 = 0; g1 = 1; b1 = 2; a1 = 3; break; case 1: r1 = 1; g1 = 2; b1 = 3; a1 = 0; break; case 2: r1 = 2; g1 = 1; b1 = 0; a1 = 3; break; } switch(format) { case 0: r2 = 0; g2 = 1; b2 = 2; a2 = 3; break; case 1: r2 = 1; g2 = 2; b2 = 3; a2 = 0; break; case 2: r2 = 2; g2 = 1; b2 = 0; a2 = 3; break; } var _g2 = 0; var _g1 = length; while(_g2 < _g1) { var i = _g2++; index = i * 4; r = data[index + r1]; g = data[index + g1]; b = data[index + b1]; a = data[index + a1]; data[index + r2] = r; data[index + g2] = g; data[index + b2] = b; data[index + a2] = a; } image.buffer.format = format; image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.setPixel = function(image,x,y,color,format) { var pixel; switch(format) { case 1: var argb = color; var this1 = 0; var rgba = this1; rgba = (argb >>> 16 & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb & 255 & 255) << 8 | argb >>> 24 & 255 & 255; pixel = rgba; break; case 2: var bgra = color; var this2 = 0; var rgba1 = this2; rgba1 = (bgra >>> 8 & 255 & 255) << 24 | (bgra >>> 16 & 255 & 255) << 16 | (bgra >>> 24 & 255 & 255) << 8 | bgra & 255 & 255; pixel = rgba1; break; default: pixel = color; } var this3 = 0; var source = this3; var data = image.buffer.data; var offset = 4 * (y + image.offsetY) * image.buffer.width + (x + image.offsetX) * 4; var premultiplied = image.buffer.premultiplied; switch(image.buffer.format) { case 0: source = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: source = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: source = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } if(premultiplied) { if((source & 255) != 0 && (source & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (source & 255); source = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((source >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((source >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((source >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | source & 255 & 255; } } var value = source & 255; pixel = (pixel >>> 24 & 255 & 255) << 24 | (pixel >>> 16 & 255 & 255) << 16 | (pixel >>> 8 & 255 & 255) << 8 | value & 255; var data1 = image.buffer.data; var offset1 = 4 * (y + image.offsetY) * image.buffer.width + (x + image.offsetX) * 4; if(image.buffer.premultiplied) { if((pixel & 255) == 0) { if(pixel != 0) { pixel = 0; } } else if((pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[pixel & 255]; pixel = ((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | pixel & 255 & 255; } } switch(image.buffer.format) { case 0: data1[offset1] = pixel >>> 24 & 255; data1[offset1 + 1] = pixel >>> 16 & 255; data1[offset1 + 2] = pixel >>> 8 & 255; data1[offset1 + 3] = pixel & 255; break; case 1: data1[offset1] = pixel & 255; data1[offset1 + 1] = pixel >>> 24 & 255; data1[offset1 + 2] = pixel >>> 16 & 255; data1[offset1 + 3] = pixel >>> 8 & 255; break; case 2: data1[offset1] = pixel >>> 8 & 255; data1[offset1 + 1] = pixel >>> 16 & 255; data1[offset1 + 2] = pixel >>> 24 & 255; data1[offset1 + 3] = pixel & 255; break; } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.setPixel32 = function(image,x,y,color,format) { var pixel; switch(format) { case 1: var argb = color; var this1 = 0; var rgba = this1; rgba = (argb >>> 16 & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb & 255 & 255) << 8 | argb >>> 24 & 255 & 255; pixel = rgba; break; case 2: var bgra = color; var this2 = 0; var rgba1 = this2; rgba1 = (bgra >>> 8 & 255 & 255) << 24 | (bgra >>> 16 & 255 & 255) << 16 | (bgra >>> 24 & 255 & 255) << 8 | bgra & 255 & 255; pixel = rgba1; break; default: pixel = color; } if(!image.get_transparent()) { pixel = (pixel >>> 24 & 255 & 255) << 24 | (pixel >>> 16 & 255 & 255) << 16 | (pixel >>> 8 & 255 & 255) << 8 | 255; } var data = image.buffer.data; var offset = 4 * (y + image.offsetY) * image.buffer.width + (x + image.offsetX) * 4; if(image.buffer.premultiplied) { if((pixel & 255) == 0) { if(pixel != 0) { pixel = 0; } } else if((pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[pixel & 255]; pixel = ((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | pixel & 255 & 255; } } switch(image.buffer.format) { case 0: data[offset] = pixel >>> 24 & 255; data[offset + 1] = pixel >>> 16 & 255; data[offset + 2] = pixel >>> 8 & 255; data[offset + 3] = pixel & 255; break; case 1: data[offset] = pixel & 255; data[offset + 1] = pixel >>> 24 & 255; data[offset + 2] = pixel >>> 16 & 255; data[offset + 3] = pixel >>> 8 & 255; break; case 2: data[offset] = pixel >>> 8 & 255; data[offset + 1] = pixel >>> 16 & 255; data[offset + 2] = pixel >>> 24 & 255; data[offset + 3] = pixel & 255; break; } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.setPixels = function(image,rect,bytePointer,format,endian) { if(image.buffer.data == null) { return; } var data = image.buffer.data; var sourceFormat = image.buffer.format; var premultiplied = image.buffer.premultiplied; var dataView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,rect); var row; var color; var pixel; var transparent = image.get_transparent(); var bytes = bytePointer.bytes; var dataPosition = bytePointer.offset; var littleEndian = endian != lime_system_Endian.BIG_ENDIAN; var _g1 = 0; var _g = dataView.height; while(_g1 < _g) { var y = _g1++; row = dataView.byteOffset + dataView.stride * y; var _g3 = 0; var _g2 = dataView.width; while(_g3 < _g2) { var x = _g3++; if(littleEndian) { color = bytes.getInt32(dataPosition); } else { color = bytes.b[dataPosition + 3] | bytes.b[dataPosition + 2] << 8 | bytes.b[dataPosition + 1] << 16 | bytes.b[dataPosition] << 24; } dataPosition += 4; switch(format) { case 1: var argb = color; var this1 = 0; var rgba = this1; rgba = (argb >>> 16 & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb & 255 & 255) << 8 | argb >>> 24 & 255 & 255; pixel = rgba; break; case 2: var bgra = color; var this2 = 0; var rgba1 = this2; rgba1 = (bgra >>> 8 & 255 & 255) << 24 | (bgra >>> 16 & 255 & 255) << 16 | (bgra >>> 24 & 255 & 255) << 8 | bgra & 255 & 255; pixel = rgba1; break; default: pixel = color; } if(!transparent) { pixel = (pixel >>> 24 & 255 & 255) << 24 | (pixel >>> 16 & 255 & 255) << 16 | (pixel >>> 8 & 255 & 255) << 8 | 255; } var offset = row + x * 4; if(premultiplied) { if((pixel & 255) == 0) { if(pixel != 0) { pixel = 0; } } else if((pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[pixel & 255]; pixel = ((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | pixel & 255 & 255; } } switch(sourceFormat) { case 0: data[offset] = pixel >>> 24 & 255; data[offset + 1] = pixel >>> 16 & 255; data[offset + 2] = pixel >>> 8 & 255; data[offset + 3] = pixel & 255; break; case 1: data[offset] = pixel & 255; data[offset + 1] = pixel >>> 24 & 255; data[offset + 2] = pixel >>> 16 & 255; data[offset + 3] = pixel >>> 8 & 255; break; case 2: data[offset] = pixel >>> 8 & 255; data[offset + 1] = pixel >>> 16 & 255; data[offset + 2] = pixel >>> 24 & 255; data[offset + 3] = pixel & 255; break; } } } image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.threshold = function(image,sourceImage,sourceRect,destPoint,operation,threshold,color,mask,copySource,format) { var _color; var _mask; var _threshold; switch(format) { case 1: var argb = color; var this1 = 0; var rgba = this1; rgba = (argb >>> 16 & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb & 255 & 255) << 8 | argb >>> 24 & 255 & 255; _color = rgba; var argb1 = mask; var this2 = 0; var rgba1 = this2; rgba1 = (argb1 >>> 16 & 255 & 255) << 24 | (argb1 >>> 8 & 255 & 255) << 16 | (argb1 & 255 & 255) << 8 | argb1 >>> 24 & 255 & 255; _mask = rgba1; var argb2 = threshold; var this3 = 0; var rgba2 = this3; rgba2 = (argb2 >>> 16 & 255 & 255) << 24 | (argb2 >>> 8 & 255 & 255) << 16 | (argb2 & 255 & 255) << 8 | argb2 >>> 24 & 255 & 255; _threshold = rgba2; break; case 2: var bgra = color; var this4 = 0; var rgba3 = this4; rgba3 = (bgra >>> 8 & 255 & 255) << 24 | (bgra >>> 16 & 255 & 255) << 16 | (bgra >>> 24 & 255 & 255) << 8 | bgra & 255 & 255; _color = rgba3; var bgra1 = mask; var this5 = 0; var rgba4 = this5; rgba4 = (bgra1 >>> 8 & 255 & 255) << 24 | (bgra1 >>> 16 & 255 & 255) << 16 | (bgra1 >>> 24 & 255 & 255) << 8 | bgra1 & 255 & 255; _mask = rgba4; var bgra2 = threshold; var this6 = 0; var rgba5 = this6; rgba5 = (bgra2 >>> 8 & 255 & 255) << 24 | (bgra2 >>> 16 & 255 & 255) << 16 | (bgra2 >>> 24 & 255 & 255) << 8 | bgra2 & 255 & 255; _threshold = rgba5; break; default: _color = color; _mask = mask; _threshold = threshold; } var _operation; switch(operation) { case "!=": _operation = 0; break; case "<": _operation = 2; break; case "<=": _operation = 3; break; case "==": _operation = 1; break; case ">": _operation = 4; break; case ">=": _operation = 5; break; default: _operation = -1; } if(_operation == -1) { return 0; } var srcData = sourceImage.buffer.data; var destData = image.buffer.data; if(srcData == null || destData == null) { return 0; } var hits = 0; var srcView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(sourceImage,sourceRect); var destView = new lime_graphics_utils__$ImageDataUtil_ImageDataView(image,new lime_math_Rectangle(destPoint.x,destPoint.y,srcView.width,srcView.height)); var srcFormat = sourceImage.buffer.format; var destFormat = image.buffer.format; var srcPremultiplied = sourceImage.buffer.premultiplied; var destPremultiplied = image.buffer.premultiplied; var srcPosition; var destPosition; var srcPixel; var destPixel; var pixelMask; var test; var value; var _g1 = 0; var _g = destView.height; while(_g1 < _g) { var y = _g1++; srcPosition = srcView.byteOffset + srcView.stride * y; destPosition = destView.byteOffset + destView.stride * y; var _g3 = 0; var _g2 = destView.width; while(_g3 < _g2) { var x = _g3++; switch(srcFormat) { case 0: srcPixel = (srcData[srcPosition] & 255) << 24 | (srcData[srcPosition + 1] & 255) << 16 | (srcData[srcPosition + 2] & 255) << 8 | srcData[srcPosition + 3] & 255; break; case 1: srcPixel = (srcData[srcPosition + 1] & 255) << 24 | (srcData[srcPosition + 2] & 255) << 16 | (srcData[srcPosition + 3] & 255) << 8 | srcData[srcPosition] & 255; break; case 2: srcPixel = (srcData[srcPosition + 2] & 255) << 24 | (srcData[srcPosition + 1] & 255) << 16 | (srcData[srcPosition] & 255) << 8 | srcData[srcPosition + 3] & 255; break; } if(srcPremultiplied) { if((srcPixel & 255) != 0 && (srcPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (srcPixel & 255); srcPixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((srcPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((srcPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((srcPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | srcPixel & 255 & 255; } } pixelMask = srcPixel & _mask; var tmp1; var tmp2; tmp1 = pixelMask >>> 24 & 255; tmp2 = _threshold >>> 24 & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { value = 1; } else { value = -1; } } else { tmp1 = pixelMask >>> 16 & 255; tmp2 = _threshold >>> 16 & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { value = 1; } else { value = -1; } } else { tmp1 = pixelMask >>> 8 & 255; tmp2 = _threshold >>> 8 & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { value = 1; } else { value = -1; } } else { tmp1 = pixelMask & 255; tmp2 = _threshold & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { value = 1; } else { value = -1; } } else { value = 0; } } } } switch(_operation) { case 0: test = value != 0; break; case 1: test = value == 0; break; case 2: test = value == -1; break; case 3: if(value != 0) { test = value == -1; } else { test = true; } break; case 4: test = value == 1; break; case 5: if(value != 0) { test = value == 1; } else { test = true; } break; default: test = false; } if(test) { if(destPremultiplied) { if((_color & 255) == 0) { if(_color != 0) { _color = 0; } } else if((_color & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[_color & 255]; _color = ((_color >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((_color >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((_color >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | _color & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = _color >>> 24 & 255; destData[destPosition + 1] = _color >>> 16 & 255; destData[destPosition + 2] = _color >>> 8 & 255; destData[destPosition + 3] = _color & 255; break; case 1: destData[destPosition] = _color & 255; destData[destPosition + 1] = _color >>> 24 & 255; destData[destPosition + 2] = _color >>> 16 & 255; destData[destPosition + 3] = _color >>> 8 & 255; break; case 2: destData[destPosition] = _color >>> 8 & 255; destData[destPosition + 1] = _color >>> 16 & 255; destData[destPosition + 2] = _color >>> 24 & 255; destData[destPosition + 3] = _color & 255; break; } ++hits; } else if(copySource) { if(destPremultiplied) { if((srcPixel & 255) == 0) { if(srcPixel != 0) { srcPixel = 0; } } else if((srcPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[srcPixel & 255]; srcPixel = ((srcPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((srcPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((srcPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | srcPixel & 255 & 255; } } switch(destFormat) { case 0: destData[destPosition] = srcPixel >>> 24 & 255; destData[destPosition + 1] = srcPixel >>> 16 & 255; destData[destPosition + 2] = srcPixel >>> 8 & 255; destData[destPosition + 3] = srcPixel & 255; break; case 1: destData[destPosition] = srcPixel & 255; destData[destPosition + 1] = srcPixel >>> 24 & 255; destData[destPosition + 2] = srcPixel >>> 16 & 255; destData[destPosition + 3] = srcPixel >>> 8 & 255; break; case 2: destData[destPosition] = srcPixel >>> 8 & 255; destData[destPosition + 1] = srcPixel >>> 16 & 255; destData[destPosition + 2] = srcPixel >>> 24 & 255; destData[destPosition + 3] = srcPixel & 255; break; } } srcPosition += 4; destPosition += 4; } } if(hits > 0) { image.dirty = true; image.version++; } return hits; }; lime_graphics_utils_ImageDataUtil.unmultiplyAlpha = function(image) { var data = image.buffer.data; if(data == null) { return; } var format = image.buffer.format; var length = data.length / 4 | 0; var pixel; var _g1 = 0; var _g = length; while(_g1 < _g) { var i = _g1++; var offset = i * 4; switch(format) { case 0: pixel = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: pixel = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: pixel = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } if((pixel & 255) != 0 && (pixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (pixel & 255); pixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((pixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | pixel & 255 & 255; } var offset1 = i * 4; switch(format) { case 0: data[offset1] = pixel >>> 24 & 255; data[offset1 + 1] = pixel >>> 16 & 255; data[offset1 + 2] = pixel >>> 8 & 255; data[offset1 + 3] = pixel & 255; break; case 1: data[offset1] = pixel & 255; data[offset1 + 1] = pixel >>> 24 & 255; data[offset1 + 2] = pixel >>> 16 & 255; data[offset1 + 3] = pixel >>> 8 & 255; break; case 2: data[offset1] = pixel >>> 8 & 255; data[offset1 + 1] = pixel >>> 16 & 255; data[offset1 + 2] = pixel >>> 24 & 255; data[offset1 + 3] = pixel & 255; break; } } image.buffer.premultiplied = false; image.dirty = true; image.version++; }; lime_graphics_utils_ImageDataUtil.__pixelCompare = function(n1,n2) { var tmp1; var tmp2; tmp1 = n1 >>> 24 & 255; tmp2 = n2 >>> 24 & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { return 1; } else { return -1; } } else { tmp1 = n1 >>> 16 & 255; tmp2 = n2 >>> 16 & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { return 1; } else { return -1; } } else { tmp1 = n1 >>> 8 & 255; tmp2 = n2 >>> 8 & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { return 1; } else { return -1; } } else { tmp1 = n1 & 255; tmp2 = n2 & 255; if(tmp1 != tmp2) { if(_$UInt_UInt_$Impl_$.gt(tmp1,tmp2)) { return 1; } else { return -1; } } else { return 0; } } } } }; var lime_graphics_utils__$ImageDataUtil_ImageDataView = function(image,rect) { this.image = image; if(rect == null) { this.rect = image.get_rect(); } else { if(rect.x < 0) { rect.x = 0; } if(rect.y < 0) { rect.y = 0; } if(rect.x + rect.width > image.width) { rect.width = image.width - rect.x; } if(rect.y + rect.height > image.height) { rect.height = image.height - rect.y; } if(rect.width < 0) { rect.width = 0; } if(rect.height < 0) { rect.height = 0; } this.rect = rect; } this.stride = image.buffer.get_stride(); this.__update(); }; $hxClasses["lime.graphics.utils._ImageDataUtil.ImageDataView"] = lime_graphics_utils__$ImageDataUtil_ImageDataView; lime_graphics_utils__$ImageDataUtil_ImageDataView.__name__ = ["lime","graphics","utils","_ImageDataUtil","ImageDataView"]; lime_graphics_utils__$ImageDataUtil_ImageDataView.prototype = { x: null ,y: null ,height: null ,width: null ,byteOffset: null ,image: null ,rect: null ,stride: null ,clip: function(x,y,width,height) { this.rect.__contract(x,y,width,height); this.__update(); } ,hasRow: function(y) { if(y >= 0) { return y < this.height; } else { return false; } } ,offset: function(x,y) { if(x < 0) { this.rect.x += x; if(this.rect.x < 0) { this.rect.x = 0; } } else { this.rect.x += x; this.rect.width -= x; } if(y < 0) { this.rect.y += y; if(this.rect.y < 0) { this.rect.y = 0; } } else { this.rect.y += y; this.rect.height -= y; } this.__update(); } ,row: function(y) { return this.byteOffset + this.stride * y; } ,__update: function() { this.x = Math.ceil(this.rect.x); this.y = Math.ceil(this.rect.y); this.width = Math.floor(this.rect.width); this.height = Math.floor(this.rect.height); this.byteOffset = this.stride * (this.y + this.image.offsetY) + (this.x + this.image.offsetX) * 4; } ,__class__: lime_graphics_utils__$ImageDataUtil_ImageDataView }; var lime_math__$ColorMatrix_ColorMatrix_$Impl_$ = {}; $hxClasses["lime.math._ColorMatrix.ColorMatrix_Impl_"] = lime_math__$ColorMatrix_ColorMatrix_$Impl_$; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__name__ = ["lime","math","_ColorMatrix","ColorMatrix_Impl_"]; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__properties__ = {set_redOffset:"set_redOffset",get_redOffset:"get_redOffset",set_redMultiplier:"set_redMultiplier",get_redMultiplier:"get_redMultiplier",set_greenOffset:"set_greenOffset",get_greenOffset:"get_greenOffset",set_greenMultiplier:"set_greenMultiplier",get_greenMultiplier:"get_greenMultiplier",set_color:"set_color",get_color:"get_color",set_blueOffset:"set_blueOffset",get_blueOffset:"get_blueOffset",set_blueMultiplier:"set_blueMultiplier",get_blueMultiplier:"get_blueMultiplier",set_alphaOffset:"set_alphaOffset",get_alphaOffset:"get_alphaOffset",set_alphaMultiplier:"set_alphaMultiplier",get_alphaMultiplier:"get_alphaMultiplier"}; lime_math__$ColorMatrix_ColorMatrix_$Impl_$._new = function(data) { var this1; if(data != null && data.length == 20) { this1 = data; } else { var array = lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__identity; var this2; if(array != null) { this2 = new Float32Array(array); } else { this2 = null; } this1 = this2; } return this1; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.clone = function(this1) { var this2; if(this1 != null) { this2 = new Float32Array(this1); } else { this2 = null; } return lime_math__$ColorMatrix_ColorMatrix_$Impl_$._new(this2); }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.concat = function(this1,second) { var _g = this1; _g[0] += second[0]; var _g1 = this1; _g1[6] += second[6]; var _g2 = this1; _g2[12] += second[12]; var _g3 = this1; _g3[18] += second[18]; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.copyFrom = function(this1,other) { this1.set(other); }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.identity = function(this1) { this1[0] = 1; this1[1] = 0; this1[2] = 0; this1[3] = 0; this1[4] = 0; this1[5] = 0; this1[6] = 1; this1[7] = 0; this1[8] = 0; this1[9] = 0; this1[10] = 0; this1[11] = 0; this1[12] = 1; this1[13] = 0; this1[14] = 0; this1[15] = 0; this1[16] = 0; this1[17] = 0; this1[18] = 1; this1[19] = 0; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getAlphaTable = function(this1) { if(lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__alphaTable == null) { var this2 = new Uint8Array(256); lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__alphaTable = this2; } var value; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__alphaTable[0] = 0; var _g = 1; while(_g < 256) { var i = _g++; value = Math.floor(i * this1[18] + this1[19] * 255); if(value > 255) { value = 255; } if(value < 0) { value = 0; } lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__alphaTable[i] = value; } return lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__alphaTable; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getBlueTable = function(this1) { if(lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__blueTable == null) { var this2 = new Uint8Array(256); lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__blueTable = this2; } var value; var _g = 0; while(_g < 256) { var i = _g++; value = Math.floor(i * this1[12] + this1[14] * 255); if(value > 255) { value = 255; } if(value < 0) { value = 0; } lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__blueTable[i] = value; } return lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__blueTable; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getGreenTable = function(this1) { if(lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__greenTable == null) { var this2 = new Uint8Array(256); lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__greenTable = this2; } var value; var _g = 0; while(_g < 256) { var i = _g++; value = Math.floor(i * this1[6] + this1[9] * 255); if(value > 255) { value = 255; } if(value < 0) { value = 0; } lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__greenTable[i] = value; } return lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__greenTable; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.getRedTable = function(this1) { if(lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__redTable == null) { var this2 = new Uint8Array(256); lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__redTable = this2; } var value; var _g = 0; while(_g < 256) { var i = _g++; value = Math.floor(i * this1[0] + this1[4] * 255); if(value > 255) { value = 255; } if(value < 0) { value = 0; } lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__redTable[i] = value; } return lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__redTable; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__toFlashColorTransform = function(this1) { return null; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_alphaMultiplier = function(this1) { return this1[18]; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_alphaMultiplier = function(this1,value) { return this1[18] = value; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_alphaOffset = function(this1) { return this1[19] * 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_alphaOffset = function(this1,value) { return this1[19] = value / 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_blueMultiplier = function(this1) { return this1[12]; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_blueMultiplier = function(this1,value) { return this1[12] = value; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_blueOffset = function(this1) { return this1[14] * 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_blueOffset = function(this1,value) { return this1[14] = value / 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_color = function(this1) { return (this1[4] * 255 | 0) << 16 | (this1[9] * 255 | 0) << 8 | (this1[14] * 255 | 0); }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_color = function(this1,value) { this1[4] = (value >> 16 & 255) / 255; this1[9] = (value >> 8 & 255) / 255; this1[14] = (value & 255) / 255; this1[0] = 0; this1[6] = 0; this1[12] = 0; return lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_color(this1); }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_greenMultiplier = function(this1) { return this1[6]; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_greenMultiplier = function(this1,value) { return this1[6] = value; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_greenOffset = function(this1) { return this1[9] * 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_greenOffset = function(this1,value) { return this1[9] = value / 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_redMultiplier = function(this1) { return this1[0]; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_redMultiplier = function(this1,value) { return this1[0] = value; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get_redOffset = function(this1) { return this1[4] * 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set_redOffset = function(this1,value) { return this1[4] = value / 255; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.get = function(this1,index) { return this1[index]; }; lime_math__$ColorMatrix_ColorMatrix_$Impl_$.set = function(this1,index,value) { return this1[index] = value; }; var lime_math__$Matrix4_Matrix4_$Impl_$ = {}; $hxClasses["lime.math._Matrix4.Matrix4_Impl_"] = lime_math__$Matrix4_Matrix4_$Impl_$; lime_math__$Matrix4_Matrix4_$Impl_$.__name__ = ["lime","math","_Matrix4","Matrix4_Impl_"]; lime_math__$Matrix4_Matrix4_$Impl_$.__properties__ = {set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"}; lime_math__$Matrix4_Matrix4_$Impl_$._new = function(data) { var this1; if(data != null && data.length == 16) { this1 = data; } else { var array = lime_math__$Matrix4_Matrix4_$Impl_$.__identity; var this2; if(array != null) { this2 = new Float32Array(array); } else { this2 = null; } this1 = this2; } return this1; }; lime_math__$Matrix4_Matrix4_$Impl_$.append = function(this1,lhs) { var m111 = this1[0]; var m121 = this1[4]; var m131 = this1[8]; var m141 = this1[12]; var m112 = this1[1]; var m122 = this1[5]; var m132 = this1[9]; var m142 = this1[13]; var m113 = this1[2]; var m123 = this1[6]; var m133 = this1[10]; var m143 = this1[14]; var m114 = this1[3]; var m124 = this1[7]; var m134 = this1[11]; var m144 = this1[15]; var m211 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,0); var m221 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,4); var m231 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,8); var m241 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,12); var m212 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,1); var m222 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,5); var m232 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,9); var m242 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,13); var m213 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,2); var m223 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,6); var m233 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,10); var m243 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,14); var m214 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,3); var m224 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,7); var m234 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,11); var m244 = lime_math__$Matrix4_Matrix4_$Impl_$.get(lhs,15); this1[0] = m111 * m211 + m112 * m221 + m113 * m231 + m114 * m241; this1[1] = m111 * m212 + m112 * m222 + m113 * m232 + m114 * m242; this1[2] = m111 * m213 + m112 * m223 + m113 * m233 + m114 * m243; this1[3] = m111 * m214 + m112 * m224 + m113 * m234 + m114 * m244; this1[4] = m121 * m211 + m122 * m221 + m123 * m231 + m124 * m241; this1[5] = m121 * m212 + m122 * m222 + m123 * m232 + m124 * m242; this1[6] = m121 * m213 + m122 * m223 + m123 * m233 + m124 * m243; this1[7] = m121 * m214 + m122 * m224 + m123 * m234 + m124 * m244; this1[8] = m131 * m211 + m132 * m221 + m133 * m231 + m134 * m241; this1[9] = m131 * m212 + m132 * m222 + m133 * m232 + m134 * m242; this1[10] = m131 * m213 + m132 * m223 + m133 * m233 + m134 * m243; this1[11] = m131 * m214 + m132 * m224 + m133 * m234 + m134 * m244; this1[12] = m141 * m211 + m142 * m221 + m143 * m231 + m144 * m241; this1[13] = m141 * m212 + m142 * m222 + m143 * m232 + m144 * m242; this1[14] = m141 * m213 + m142 * m223 + m143 * m233 + m144 * m243; this1[15] = m141 * m214 + m142 * m224 + m143 * m234 + m144 * m244; }; lime_math__$Matrix4_Matrix4_$Impl_$.appendRotation = function(this1,degrees,axis,pivotPoint) { var m = lime_math__$Matrix4_Matrix4_$Impl_$.__getAxisRotation(this1,axis.x,axis.y,axis.z,degrees); if(pivotPoint != null) { var p = pivotPoint; lime_math__$Matrix4_Matrix4_$Impl_$.appendTranslation(m,p.x,p.y,p.z); } lime_math__$Matrix4_Matrix4_$Impl_$.append(this1,m); }; lime_math__$Matrix4_Matrix4_$Impl_$.appendScale = function(this1,xScale,yScale,zScale) { var array = [xScale,0.0,0.0,0.0,0.0,yScale,0.0,0.0,0.0,0.0,zScale,0.0,0.0,0.0,0.0,1.0]; var this2; if(array != null) { this2 = new Float32Array(array); } else { this2 = null; } lime_math__$Matrix4_Matrix4_$Impl_$.append(this1,lime_math__$Matrix4_Matrix4_$Impl_$._new(this2)); }; lime_math__$Matrix4_Matrix4_$Impl_$.appendTranslation = function(this1,x,y,z) { this1[12] += x; this1[13] += y; this1[14] += z; }; lime_math__$Matrix4_Matrix4_$Impl_$.clone = function(this1) { var this2; if(this1 != null) { this2 = new Float32Array(this1); } else { this2 = null; } return lime_math__$Matrix4_Matrix4_$Impl_$._new(this2); }; lime_math__$Matrix4_Matrix4_$Impl_$.copyColumnFrom = function(this1,column,vector) { switch(column) { case 0: this1[0] = vector.x; this1[1] = vector.y; this1[2] = vector.z; this1[3] = vector.w; break; case 1: this1[4] = vector.x; this1[5] = vector.y; this1[6] = vector.z; this1[7] = vector.w; break; case 2: this1[8] = vector.x; this1[9] = vector.y; this1[10] = vector.z; this1[11] = vector.w; break; case 3: this1[12] = vector.x; this1[13] = vector.y; this1[14] = vector.z; this1[15] = vector.w; break; default: lime_utils_Log.error("Column " + column + " out of bounds [0, ..., 3]",{ fileName : "Matrix4.hx", lineNumber : 139, className : "lime.math._Matrix4.Matrix4_Impl_", methodName : "copyColumnFrom"}); } }; lime_math__$Matrix4_Matrix4_$Impl_$.copyColumnTo = function(this1,column,vector) { switch(column) { case 0: vector.x = this1[0]; vector.y = this1[1]; vector.z = this1[2]; vector.w = this1[3]; break; case 1: vector.x = this1[4]; vector.y = this1[5]; vector.z = this1[6]; vector.w = this1[7]; break; case 2: vector.x = this1[8]; vector.y = this1[9]; vector.z = this1[10]; vector.w = this1[11]; break; case 3: vector.x = this1[12]; vector.y = this1[13]; vector.z = this1[14]; vector.w = this1[15]; break; default: lime_utils_Log.error("Column " + column + " out of bounds [0, ..., 3]",{ fileName : "Matrix4.hx", lineNumber : 180, className : "lime.math._Matrix4.Matrix4_Impl_", methodName : "copyColumnTo"}); } }; lime_math__$Matrix4_Matrix4_$Impl_$.copyFrom = function(this1,other) { this1.set(other); }; lime_math__$Matrix4_Matrix4_$Impl_$.copythisFrom = function(this1,array,index,transposeValues) { if(transposeValues == null) { transposeValues = false; } if(index == null) { index = 0; } if(transposeValues) { lime_math__$Matrix4_Matrix4_$Impl_$.transpose(this1); } var l = array.length - index; var _g1 = 0; var _g = l; while(_g1 < _g) { var c = _g1++; this1[c] = array[c + index]; } if(transposeValues) { lime_math__$Matrix4_Matrix4_$Impl_$.transpose(this1); } }; lime_math__$Matrix4_Matrix4_$Impl_$.copythisTo = function(this1,array,index,transposeValues) { if(transposeValues == null) { transposeValues = false; } if(index == null) { index = 0; } if(transposeValues) { lime_math__$Matrix4_Matrix4_$Impl_$.transpose(this1); } var l = this1.length; var _g1 = 0; var _g = l; while(_g1 < _g) { var c = _g1++; array[c + index] = this1[c]; } if(transposeValues) { lime_math__$Matrix4_Matrix4_$Impl_$.transpose(this1); } }; lime_math__$Matrix4_Matrix4_$Impl_$.copyRowFrom = function(this1,row,vector) { switch(row) { case 0: this1[0] = vector.x; this1[4] = vector.y; this1[8] = vector.z; this1[12] = vector.w; break; case 1: this1[1] = vector.x; this1[5] = vector.y; this1[9] = vector.z; this1[13] = vector.w; break; case 2: this1[2] = vector.x; this1[6] = vector.y; this1[10] = vector.z; this1[14] = vector.w; break; case 3: this1[3] = vector.x; this1[7] = vector.y; this1[11] = vector.z; this1[15] = vector.w; break; default: lime_utils_Log.error("Row " + row + " out of bounds [0, ..., 3]",{ fileName : "Matrix4.hx", lineNumber : 258, className : "lime.math._Matrix4.Matrix4_Impl_", methodName : "copyRowFrom"}); } }; lime_math__$Matrix4_Matrix4_$Impl_$.create2D = function(x,y,scale,rotation) { if(rotation == null) { rotation = 0; } if(scale == null) { scale = 1; } var theta = rotation * Math.PI / 180.0; var c = Math.cos(theta); var s = Math.sin(theta); var array = [c * scale,-s * scale,0,0,s * scale,c * scale,0,0,0,0,1,0,x,y,0,1]; var this1; if(array != null) { this1 = new Float32Array(array); } else { this1 = null; } return lime_math__$Matrix4_Matrix4_$Impl_$._new(this1); }; lime_math__$Matrix4_Matrix4_$Impl_$.createABCD = function(a,b,c,d,tx,ty,matrix) { if(matrix == null) { matrix = lime_math__$Matrix4_Matrix4_$Impl_$._new(); } lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,0,a); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,1,b); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,2,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,3,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,4,c); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,5,d); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,6,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,7,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,8,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,9,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,10,1); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,11,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,12,tx); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,13,ty); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,14,0); lime_math__$Matrix4_Matrix4_$Impl_$.set(matrix,15,1); return matrix; }; lime_math__$Matrix4_Matrix4_$Impl_$.createOrtho = function(x0,x1,y0,y1,zNear,zFar) { var sx = 1.0 / (x1 - x0); var sy = 1.0 / (y1 - y0); var sz = 1.0 / (zFar - zNear); var array = [2.0 * sx,0,0,0,0,2.0 * sy,0,0,0,0,-2.0 * sz,0,-(x0 + x1) * sx,-(y0 + y1) * sy,-(zNear + zFar) * sz,1]; var this1; if(array != null) { this1 = new Float32Array(array); } else { this1 = null; } return lime_math__$Matrix4_Matrix4_$Impl_$._new(this1); }; lime_math__$Matrix4_Matrix4_$Impl_$.copyRowTo = function(this1,row,vector) { switch(row) { case 0: vector.x = this1[0]; vector.y = this1[4]; vector.z = this1[8]; vector.w = this1[12]; break; case 1: vector.x = this1[1]; vector.y = this1[5]; vector.z = this1[9]; vector.w = this1[13]; break; case 2: vector.x = this1[2]; vector.y = this1[6]; vector.z = this1[10]; vector.w = this1[14]; break; case 3: vector.x = this1[3]; vector.y = this1[7]; vector.z = this1[11]; vector.w = this1[15]; break; default: lime_utils_Log.error("Row " + row + " out of bounds [0, ..., 3]",{ fileName : "Matrix4.hx", lineNumber : 360, className : "lime.math._Matrix4.Matrix4_Impl_", methodName : "copyRowTo"}); } }; lime_math__$Matrix4_Matrix4_$Impl_$.copyToMatrix4 = function(this1,other) { (js_Boot.__cast(other , Float32Array)).set(this1); }; lime_math__$Matrix4_Matrix4_$Impl_$.deltaTransformVector = function(this1,v) { var x = v.x; var y = v.y; var z = v.z; return new lime_math_Vector4(x * this1[0] + y * this1[4] + z * this1[8] + this1[3],x * this1[1] + y * this1[5] + z * this1[9] + this1[7],x * this1[2] + y * this1[6] + z * this1[10] + this1[11],0); }; lime_math__$Matrix4_Matrix4_$Impl_$.identity = function(this1) { this1[0] = 1; this1[1] = 0; this1[2] = 0; this1[3] = 0; this1[4] = 0; this1[5] = 1; this1[6] = 0; this1[7] = 0; this1[8] = 0; this1[9] = 0; this1[10] = 1; this1[11] = 0; this1[12] = 0; this1[13] = 0; this1[14] = 0; this1[15] = 1; }; lime_math__$Matrix4_Matrix4_$Impl_$.interpolate = function(thisMat,toMat,percent) { var m = lime_math__$Matrix4_Matrix4_$Impl_$._new(); var _g = 0; while(_g < 16) { var i = _g++; lime_math__$Matrix4_Matrix4_$Impl_$.set(m,i,lime_math__$Matrix4_Matrix4_$Impl_$.get(thisMat,i) + (lime_math__$Matrix4_Matrix4_$Impl_$.get(toMat,i) - lime_math__$Matrix4_Matrix4_$Impl_$.get(thisMat,i)) * percent); } return m; }; lime_math__$Matrix4_Matrix4_$Impl_$.interpolateTo = function(this1,toMat,percent) { var _g = 0; while(_g < 16) { var i = _g++; this1[i] += (lime_math__$Matrix4_Matrix4_$Impl_$.get(toMat,i) - this1[i]) * percent; } }; lime_math__$Matrix4_Matrix4_$Impl_$.invert = function(this1) { var d = lime_math__$Matrix4_Matrix4_$Impl_$.get_determinant(this1); var invertable = Math.abs(d) > 0.00000000001; if(invertable) { d = 1 / d; var m11 = this1[0]; var m21 = this1[4]; var m31 = this1[8]; var m41 = this1[12]; var m12 = this1[1]; var m22 = this1[5]; var m32 = this1[9]; var m42 = this1[13]; var m13 = this1[2]; var m23 = this1[6]; var m33 = this1[10]; var m43 = this1[14]; var m14 = this1[3]; var m24 = this1[7]; var m34 = this1[11]; var m44 = this1[15]; this1[0] = d * (m22 * (m33 * m44 - m43 * m34) - m32 * (m23 * m44 - m43 * m24) + m42 * (m23 * m34 - m33 * m24)); this1[1] = -d * (m12 * (m33 * m44 - m43 * m34) - m32 * (m13 * m44 - m43 * m14) + m42 * (m13 * m34 - m33 * m14)); this1[2] = d * (m12 * (m23 * m44 - m43 * m24) - m22 * (m13 * m44 - m43 * m14) + m42 * (m13 * m24 - m23 * m14)); this1[3] = -d * (m12 * (m23 * m34 - m33 * m24) - m22 * (m13 * m34 - m33 * m14) + m32 * (m13 * m24 - m23 * m14)); this1[4] = -d * (m21 * (m33 * m44 - m43 * m34) - m31 * (m23 * m44 - m43 * m24) + m41 * (m23 * m34 - m33 * m24)); this1[5] = d * (m11 * (m33 * m44 - m43 * m34) - m31 * (m13 * m44 - m43 * m14) + m41 * (m13 * m34 - m33 * m14)); this1[6] = -d * (m11 * (m23 * m44 - m43 * m24) - m21 * (m13 * m44 - m43 * m14) + m41 * (m13 * m24 - m23 * m14)); this1[7] = d * (m11 * (m23 * m34 - m33 * m24) - m21 * (m13 * m34 - m33 * m14) + m31 * (m13 * m24 - m23 * m14)); this1[8] = d * (m21 * (m32 * m44 - m42 * m34) - m31 * (m22 * m44 - m42 * m24) + m41 * (m22 * m34 - m32 * m24)); this1[9] = -d * (m11 * (m32 * m44 - m42 * m34) - m31 * (m12 * m44 - m42 * m14) + m41 * (m12 * m34 - m32 * m14)); this1[10] = d * (m11 * (m22 * m44 - m42 * m24) - m21 * (m12 * m44 - m42 * m14) + m41 * (m12 * m24 - m22 * m14)); this1[11] = -d * (m11 * (m22 * m34 - m32 * m24) - m21 * (m12 * m34 - m32 * m14) + m31 * (m12 * m24 - m22 * m14)); this1[12] = -d * (m21 * (m32 * m43 - m42 * m33) - m31 * (m22 * m43 - m42 * m23) + m41 * (m22 * m33 - m32 * m23)); this1[13] = d * (m11 * (m32 * m43 - m42 * m33) - m31 * (m12 * m43 - m42 * m13) + m41 * (m12 * m33 - m32 * m13)); this1[14] = -d * (m11 * (m22 * m43 - m42 * m23) - m21 * (m12 * m43 - m42 * m13) + m41 * (m12 * m23 - m22 * m13)); this1[15] = d * (m11 * (m22 * m33 - m32 * m23) - m21 * (m12 * m33 - m32 * m13) + m31 * (m12 * m23 - m22 * m13)); } return invertable; }; lime_math__$Matrix4_Matrix4_$Impl_$.pointAt = function(this1,pos,at,up) { if(at == null) { at = new lime_math_Vector4(0,0,-1); } if(up == null) { up = new lime_math_Vector4(0,-1,0); } var dir = new lime_math_Vector4(at.x - pos.x,at.y - pos.y,at.z - pos.z); var vup = new lime_math_Vector4(up.x,up.y,up.z,up.w); var right; var l = Math.sqrt(dir.x * dir.x + dir.y * dir.y + dir.z * dir.z); if(l != 0) { dir.x /= l; dir.y /= l; dir.z /= l; } var l1 = Math.sqrt(vup.x * vup.x + vup.y * vup.y + vup.z * vup.z); if(l1 != 0) { vup.x /= l1; vup.y /= l1; vup.z /= l1; } var dir2 = new lime_math_Vector4(dir.x,dir.y,dir.z,dir.w); var s = vup.x * dir.x + vup.y * dir.y + vup.z * dir.z; dir2.x *= s; dir2.y *= s; dir2.z *= s; vup = new lime_math_Vector4(vup.x - dir2.x,vup.y - dir2.y,vup.z - dir2.z); if(Math.sqrt(vup.x * vup.x + vup.y * vup.y + vup.z * vup.z) > 0) { var l2 = Math.sqrt(vup.x * vup.x + vup.y * vup.y + vup.z * vup.z); if(l2 != 0) { vup.x /= l2; vup.y /= l2; vup.z /= l2; } } else if(dir.x != 0) { vup = new lime_math_Vector4(-dir.y,dir.x,0); } else { vup = new lime_math_Vector4(1,0,0); } right = new lime_math_Vector4(vup.y * dir.z - vup.z * dir.y,vup.z * dir.x - vup.x * dir.z,vup.x * dir.y - vup.y * dir.x,1); var l3 = Math.sqrt(right.x * right.x + right.y * right.y + right.z * right.z); if(l3 != 0) { right.x /= l3; right.y /= l3; right.z /= l3; } this1[0] = right.x; this1[4] = right.y; this1[8] = right.z; this1[12] = 0.0; this1[1] = vup.x; this1[5] = vup.y; this1[9] = vup.z; this1[13] = 0.0; this1[2] = dir.x; this1[6] = dir.y; this1[10] = dir.z; this1[14] = 0.0; this1[3] = pos.x; this1[7] = pos.y; this1[11] = pos.z; this1[15] = 1.0; }; lime_math__$Matrix4_Matrix4_$Impl_$.prepend = function(this1,rhs) { var m111 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,0); var m121 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,4); var m131 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,8); var m141 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,12); var m112 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,1); var m122 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,5); var m132 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,9); var m142 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,13); var m113 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,2); var m123 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,6); var m133 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,10); var m143 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,14); var m114 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,3); var m124 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,7); var m134 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,11); var m144 = lime_math__$Matrix4_Matrix4_$Impl_$.get(rhs,15); var m211 = this1[0]; var m221 = this1[4]; var m231 = this1[8]; var m241 = this1[12]; var m212 = this1[1]; var m222 = this1[5]; var m232 = this1[9]; var m242 = this1[13]; var m213 = this1[2]; var m223 = this1[6]; var m233 = this1[10]; var m243 = this1[14]; var m214 = this1[3]; var m224 = this1[7]; var m234 = this1[11]; var m244 = this1[15]; this1[0] = m111 * m211 + m112 * m221 + m113 * m231 + m114 * m241; this1[1] = m111 * m212 + m112 * m222 + m113 * m232 + m114 * m242; this1[2] = m111 * m213 + m112 * m223 + m113 * m233 + m114 * m243; this1[3] = m111 * m214 + m112 * m224 + m113 * m234 + m114 * m244; this1[4] = m121 * m211 + m122 * m221 + m123 * m231 + m124 * m241; this1[5] = m121 * m212 + m122 * m222 + m123 * m232 + m124 * m242; this1[6] = m121 * m213 + m122 * m223 + m123 * m233 + m124 * m243; this1[7] = m121 * m214 + m122 * m224 + m123 * m234 + m124 * m244; this1[8] = m131 * m211 + m132 * m221 + m133 * m231 + m134 * m241; this1[9] = m131 * m212 + m132 * m222 + m133 * m232 + m134 * m242; this1[10] = m131 * m213 + m132 * m223 + m133 * m233 + m134 * m243; this1[11] = m131 * m214 + m132 * m224 + m133 * m234 + m134 * m244; this1[12] = m141 * m211 + m142 * m221 + m143 * m231 + m144 * m241; this1[13] = m141 * m212 + m142 * m222 + m143 * m232 + m144 * m242; this1[14] = m141 * m213 + m142 * m223 + m143 * m233 + m144 * m243; this1[15] = m141 * m214 + m142 * m224 + m143 * m234 + m144 * m244; }; lime_math__$Matrix4_Matrix4_$Impl_$.prependRotation = function(this1,degrees,axis,pivotPoint) { var m = lime_math__$Matrix4_Matrix4_$Impl_$.__getAxisRotation(this1,axis.x,axis.y,axis.z,degrees); if(pivotPoint != null) { var p = pivotPoint; lime_math__$Matrix4_Matrix4_$Impl_$.appendTranslation(m,p.x,p.y,p.z); } lime_math__$Matrix4_Matrix4_$Impl_$.prepend(this1,m); }; lime_math__$Matrix4_Matrix4_$Impl_$.prependScale = function(this1,xScale,yScale,zScale) { var array = [xScale,0.0,0.0,0.0,0.0,yScale,0.0,0.0,0.0,0.0,zScale,0.0,0.0,0.0,0.0,1.0]; var this2; if(array != null) { this2 = new Float32Array(array); } else { this2 = null; } lime_math__$Matrix4_Matrix4_$Impl_$.prepend(this1,lime_math__$Matrix4_Matrix4_$Impl_$._new(this2)); }; lime_math__$Matrix4_Matrix4_$Impl_$.prependTranslation = function(this1,x,y,z) { var m = lime_math__$Matrix4_Matrix4_$Impl_$._new(); lime_math__$Matrix4_Matrix4_$Impl_$.set_position(m,new lime_math_Vector4(x,y,z)); lime_math__$Matrix4_Matrix4_$Impl_$.prepend(this1,m); }; lime_math__$Matrix4_Matrix4_$Impl_$.transformVector = function(this1,v) { var x = v.x; var y = v.y; var z = v.z; return new lime_math_Vector4(x * this1[0] + y * this1[4] + z * this1[8] + this1[12],x * this1[1] + y * this1[5] + z * this1[9] + this1[13],x * this1[2] + y * this1[6] + z * this1[10] + this1[14],x * this1[3] + y * this1[7] + z * this1[11] + this1[15]); }; lime_math__$Matrix4_Matrix4_$Impl_$.transformVectors = function(this1,ain,aout) { var i = 0; var x; var y; var z; while(i + 3 <= ain.length) { x = ain[i]; y = ain[i + 1]; z = ain[i + 2]; aout[i] = x * this1[0] + y * this1[4] + z * this1[8] + this1[12]; aout[i + 1] = x * this1[1] + y * this1[5] + z * this1[9] + this1[13]; aout[i + 2] = x * this1[2] + y * this1[6] + z * this1[10] + this1[14]; i += 3; } }; lime_math__$Matrix4_Matrix4_$Impl_$.transpose = function(this1) { var temp = this1[1]; this1[1] = this1[4]; this1[4] = temp; var temp1 = this1[2]; this1[2] = this1[8]; this1[8] = temp1; var temp2 = this1[3]; this1[3] = this1[12]; this1[12] = temp2; var temp3 = this1[6]; this1[6] = this1[9]; this1[9] = temp3; var temp4 = this1[7]; this1[7] = this1[13]; this1[13] = temp4; var temp5 = this1[11]; this1[11] = this1[14]; this1[14] = temp5; }; lime_math__$Matrix4_Matrix4_$Impl_$.__getAxisRotation = function(this1,x,y,z,degrees) { var m = lime_math__$Matrix4_Matrix4_$Impl_$._new(); var a1 = new lime_math_Vector4(x,y,z); var rad = -degrees * (Math.PI / 180); var c = Math.cos(rad); var s = Math.sin(rad); var t = 1.0 - c; lime_math__$Matrix4_Matrix4_$Impl_$.set(m,0,c + a1.x * a1.x * t); lime_math__$Matrix4_Matrix4_$Impl_$.set(m,5,c + a1.y * a1.y * t); lime_math__$Matrix4_Matrix4_$Impl_$.set(m,10,c + a1.z * a1.z * t); var tmp1 = a1.x * a1.y * t; var tmp2 = a1.z * s; lime_math__$Matrix4_Matrix4_$Impl_$.set(m,4,tmp1 + tmp2); lime_math__$Matrix4_Matrix4_$Impl_$.set(m,1,tmp1 - tmp2); tmp1 = a1.x * a1.z * t; tmp2 = a1.y * s; lime_math__$Matrix4_Matrix4_$Impl_$.set(m,8,tmp1 - tmp2); lime_math__$Matrix4_Matrix4_$Impl_$.set(m,2,tmp1 + tmp2); tmp1 = a1.y * a1.z * t; tmp2 = a1.x * s; lime_math__$Matrix4_Matrix4_$Impl_$.set(m,9,tmp1 + tmp2); lime_math__$Matrix4_Matrix4_$Impl_$.set(m,6,tmp1 - tmp2); return m; }; lime_math__$Matrix4_Matrix4_$Impl_$.__swap = function(this1,a,b) { var temp = this1[a]; this1[a] = this1[b]; this1[b] = temp; }; lime_math__$Matrix4_Matrix4_$Impl_$.get_determinant = function(this1) { return (this1[0] * this1[5] - this1[4] * this1[1]) * (this1[10] * this1[15] - this1[14] * this1[11]) - (this1[0] * this1[9] - this1[8] * this1[1]) * (this1[6] * this1[15] - this1[14] * this1[7]) + (this1[0] * this1[13] - this1[12] * this1[1]) * (this1[6] * this1[11] - this1[10] * this1[7]) + (this1[4] * this1[9] - this1[8] * this1[5]) * (this1[2] * this1[15] - this1[14] * this1[3]) - (this1[4] * this1[13] - this1[12] * this1[5]) * (this1[2] * this1[11] - this1[10] * this1[3]) + (this1[8] * this1[13] - this1[12] * this1[9]) * (this1[2] * this1[7] - this1[6] * this1[3]); }; lime_math__$Matrix4_Matrix4_$Impl_$.get_position = function(this1) { return new lime_math_Vector4(this1[12],this1[13],this1[14]); }; lime_math__$Matrix4_Matrix4_$Impl_$.set_position = function(this1,val) { this1[12] = val.x; this1[13] = val.y; this1[14] = val.z; return val; }; lime_math__$Matrix4_Matrix4_$Impl_$.get = function(this1,index) { return this1[index]; }; lime_math__$Matrix4_Matrix4_$Impl_$.set = function(this1,index,value) { this1[index] = value; return value; }; var lime_math_Rectangle = function(x,y,width,height) { if(height == null) { height = 0; } if(width == null) { width = 0; } if(y == null) { y = 0; } if(x == null) { x = 0; } this.x = x; this.y = y; this.width = width; this.height = height; }; $hxClasses["lime.math.Rectangle"] = lime_math_Rectangle; lime_math_Rectangle.__name__ = ["lime","math","Rectangle"]; lime_math_Rectangle.prototype = { height: null ,width: null ,x: null ,y: null ,clone: function() { return new lime_math_Rectangle(this.x,this.y,this.width,this.height); } ,contains: function(x,y) { if(x >= this.x && y >= this.y && x < this.get_right()) { return y < this.get_bottom(); } else { return false; } } ,containsPoint: function(point) { return this.contains(point.x,point.y); } ,containsRect: function(rect) { if(rect.width <= 0 || rect.height <= 0) { if(rect.x > this.x && rect.y > this.y && rect.get_right() < this.get_right()) { return rect.get_bottom() < this.get_bottom(); } else { return false; } } else if(rect.x >= this.x && rect.y >= this.y && rect.get_right() <= this.get_right()) { return rect.get_bottom() <= this.get_bottom(); } else { return false; } } ,copyFrom: function(sourceRect) { this.x = sourceRect.x; this.y = sourceRect.y; this.width = sourceRect.width; this.height = sourceRect.height; } ,equals: function(toCompare) { if(toCompare != null && this.x == toCompare.x && this.y == toCompare.y && this.width == toCompare.width) { return this.height == toCompare.height; } else { return false; } } ,inflate: function(dx,dy) { this.x -= dx; this.width += dx * 2; this.y -= dy; this.height += dy * 2; } ,inflatePoint: function(point) { this.inflate(point.x,point.y); } ,intersection: function(toIntersect) { var x0 = this.x < toIntersect.x ? toIntersect.x : this.x; var x1 = this.get_right() > toIntersect.get_right() ? toIntersect.get_right() : this.get_right(); if(x1 <= x0) { return new lime_math_Rectangle(); } var y0 = this.y < toIntersect.y ? toIntersect.y : this.y; var y1 = this.get_bottom() > toIntersect.get_bottom() ? toIntersect.get_bottom() : this.get_bottom(); if(y1 <= y0) { return new lime_math_Rectangle(); } return new lime_math_Rectangle(x0,y0,x1 - x0,y1 - y0); } ,intersects: function(toIntersect) { var x0 = this.x < toIntersect.x ? toIntersect.x : this.x; var x1 = this.get_right() > toIntersect.get_right() ? toIntersect.get_right() : this.get_right(); if(x1 <= x0) { return false; } var y0 = this.y < toIntersect.y ? toIntersect.y : this.y; var y1 = this.get_bottom() > toIntersect.get_bottom() ? toIntersect.get_bottom() : this.get_bottom(); return y1 > y0; } ,isEmpty: function() { if(!(this.width <= 0)) { return this.height <= 0; } else { return true; } } ,offset: function(dx,dy) { this.x += dx; this.y += dy; } ,offsetPoint: function(point) { this.x += point.x; this.y += point.y; } ,setEmpty: function() { this.x = this.y = this.width = this.height = 0; } ,setTo: function(xa,ya,widtha,heighta) { this.x = xa; this.y = ya; this.width = widtha; this.height = heighta; } ,transform: function(m) { var tx0 = m.a * this.x + m.c * this.y; var tx1 = tx0; var ty0 = m.b * this.x + m.d * this.y; var ty1 = ty0; var tx = m.a * (this.x + this.width) + m.c * this.y; var ty = m.b * (this.x + this.width) + m.d * this.y; if(tx < tx0) { tx0 = tx; } if(ty < ty0) { ty0 = ty; } if(tx > tx1) { tx1 = tx; } if(ty > ty1) { ty1 = ty; } tx = m.a * (this.x + this.width) + m.c * (this.y + this.height); ty = m.b * (this.x + this.width) + m.d * (this.y + this.height); if(tx < tx0) { tx0 = tx; } if(ty < ty0) { ty0 = ty; } if(tx > tx1) { tx1 = tx; } if(ty > ty1) { ty1 = ty; } tx = m.a * this.x + m.c * (this.y + this.height); ty = m.b * this.x + m.d * (this.y + this.height); if(tx < tx0) { tx0 = tx; } if(ty < ty0) { ty0 = ty; } if(tx > tx1) { tx1 = tx; } if(ty > ty1) { ty1 = ty; } return new lime_math_Rectangle(tx0 + m.tx,ty0 + m.ty,tx1 - tx0,ty1 - ty0); } ,union: function(toUnion) { if(this.width == 0 || this.height == 0) { return toUnion.clone(); } else if(toUnion.width == 0 || toUnion.height == 0) { return this.clone(); } var x0 = this.x > toUnion.x ? toUnion.x : this.x; var x1 = this.get_right() < toUnion.get_right() ? toUnion.get_right() : this.get_right(); var y0 = this.y > toUnion.y ? toUnion.y : this.y; var y1 = this.get_bottom() < toUnion.get_bottom() ? toUnion.get_bottom() : this.get_bottom(); return new lime_math_Rectangle(x0,y0,x1 - x0,y1 - y0); } ,__contract: function(x,y,width,height) { if(this.width == 0 && this.height == 0) { return; } if(this.x < x) { this.x = x; } if(this.y < y) { this.y = y; } if(this.get_right() > x + width) { this.width = x + width - this.x; } if(this.get_bottom() > y + height) { this.height = y + height - this.y; } } ,__expand: function(x,y,width,height) { if(this.width == 0 && this.height == 0) { this.x = x; this.y = y; this.width = width; this.height = height; return; } var cacheRight = this.get_right(); var cacheBottom = this.get_bottom(); if(this.x > x) { this.x = x; } if(this.y > y) { this.y = y; } if(cacheRight < x + width) { this.width = x + width - this.x; } if(cacheBottom < y + height) { this.height = y + height - this.y; } } ,__toFlashRectangle: function() { return null; } ,get_bottom: function() { return this.y + this.height; } ,set_bottom: function(b) { this.height = b - this.y; return b; } ,get_bottomRight: function() { return new lime_math_Vector2(this.x + this.width,this.y + this.height); } ,set_bottomRight: function(p) { this.width = p.x - this.x; this.height = p.y - this.y; return p.clone(); } ,get_left: function() { return this.x; } ,set_left: function(l) { this.width -= l - this.x; this.x = l; return l; } ,get_right: function() { return this.x + this.width; } ,set_right: function(r) { this.width = r - this.x; return r; } ,get_size: function() { return new lime_math_Vector2(this.width,this.height); } ,set_size: function(p) { this.width = p.x; this.height = p.y; return p.clone(); } ,get_top: function() { return this.y; } ,set_top: function(t) { this.height -= t - this.y; this.y = t; return t; } ,get_topLeft: function() { return new lime_math_Vector2(this.x,this.y); } ,set_topLeft: function(p) { this.x = p.x; this.y = p.y; return p.clone(); } ,__class__: lime_math_Rectangle ,__properties__: {set_topLeft:"set_topLeft",get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"} }; var lime_math_Vector4 = function(x,y,z,w) { if(w == null) { w = 0.; } if(z == null) { z = 0.; } if(y == null) { y = 0.; } if(x == null) { x = 0.; } this.w = w; this.x = x; this.y = y; this.z = z; }; $hxClasses["lime.math.Vector4"] = lime_math_Vector4; lime_math_Vector4.__name__ = ["lime","math","Vector4"]; lime_math_Vector4.__properties__ = {get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS",get_X_AXIS:"get_X_AXIS"}; lime_math_Vector4.angleBetween = function(a,b) { var a0 = new lime_math_Vector4(a.x,a.y,a.z,a.w); var l = Math.sqrt(a0.x * a0.x + a0.y * a0.y + a0.z * a0.z); if(l != 0) { a0.x /= l; a0.y /= l; a0.z /= l; } var b0 = new lime_math_Vector4(b.x,b.y,b.z,b.w); var l1 = Math.sqrt(b0.x * b0.x + b0.y * b0.y + b0.z * b0.z); if(l1 != 0) { b0.x /= l1; b0.y /= l1; b0.z /= l1; } return Math.acos(a0.x * b0.x + a0.y * b0.y + a0.z * b0.z); }; lime_math_Vector4.distance = function(pt1,pt2) { var x = pt2.x - pt1.x; var y = pt2.y - pt1.y; var z = pt2.z - pt1.z; return Math.sqrt(x * x + y * y + z * z); }; lime_math_Vector4.get_X_AXIS = function() { return new lime_math_Vector4(1,0,0); }; lime_math_Vector4.get_Y_AXIS = function() { return new lime_math_Vector4(0,1,0); }; lime_math_Vector4.get_Z_AXIS = function() { return new lime_math_Vector4(0,0,1); }; lime_math_Vector4.prototype = { length: null ,lengthSquared: null ,w: null ,x: null ,y: null ,z: null ,add: function(a) { return new lime_math_Vector4(this.x + a.x,this.y + a.y,this.z + a.z); } ,clone: function() { return new lime_math_Vector4(this.x,this.y,this.z,this.w); } ,copyFrom: function(sourceVector4) { this.x = sourceVector4.x; this.y = sourceVector4.y; this.z = sourceVector4.z; } ,crossProduct: function(a) { return new lime_math_Vector4(this.y * a.z - this.z * a.y,this.z * a.x - this.x * a.z,this.x * a.y - this.y * a.x,1); } ,decrementBy: function(a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; } ,dotProduct: function(a) { return this.x * a.x + this.y * a.y + this.z * a.z; } ,equals: function(toCompare,allFour) { if(allFour == null) { allFour = false; } if(this.x == toCompare.x && this.y == toCompare.y && this.z == toCompare.z) { if(!(!allFour)) { return this.w == toCompare.w; } else { return true; } } else { return false; } } ,incrementBy: function(a) { this.x += a.x; this.y += a.y; this.z += a.z; } ,nearEquals: function(toCompare,tolerance,allFour) { if(allFour == null) { allFour = false; } if(Math.abs(this.x - toCompare.x) < tolerance && Math.abs(this.y - toCompare.y) < tolerance && Math.abs(this.z - toCompare.z) < tolerance) { if(!(!allFour)) { return Math.abs(this.w - toCompare.w) < tolerance; } else { return true; } } else { return false; } } ,negate: function() { this.x *= -1; this.y *= -1; this.z *= -1; } ,normalize: function() { var l = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); if(l != 0) { this.x /= l; this.y /= l; this.z /= l; } return l; } ,project: function() { this.x /= this.w; this.y /= this.w; this.z /= this.w; } ,scaleBy: function(s) { this.x *= s; this.y *= s; this.z *= s; } ,setTo: function(xa,ya,za) { this.x = xa; this.y = ya; this.z = za; } ,subtract: function(a) { return new lime_math_Vector4(this.x - a.x,this.y - a.y,this.z - a.z); } ,toString: function() { return "Vector4(" + this.x + ", " + this.y + ", " + this.z + ")"; } ,get_length: function() { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); } ,get_lengthSquared: function() { return this.x * this.x + this.y * this.y + this.z * this.z; } ,__class__: lime_math_Vector4 ,__properties__: {get_lengthSquared:"get_lengthSquared",get_length:"get_length"} }; var lime_math_color__$ARGB_ARGB_$Impl_$ = {}; $hxClasses["lime.math.color._ARGB.ARGB_Impl_"] = lime_math_color__$ARGB_ARGB_$Impl_$; lime_math_color__$ARGB_ARGB_$Impl_$.__name__ = ["lime","math","color","_ARGB","ARGB_Impl_"]; lime_math_color__$ARGB_ARGB_$Impl_$.__properties__ = {set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"}; lime_math_color__$ARGB_ARGB_$Impl_$._new = function(argb) { if(argb == null) { argb = 0; } var this1 = argb; return this1; }; lime_math_color__$ARGB_ARGB_$Impl_$.create = function(a,r,g,b) { var this1 = 0; var argb = this1; argb = (a & 255) << 24 | (r & 255) << 16 | (g & 255) << 8 | b & 255; return argb; }; lime_math_color__$ARGB_ARGB_$Impl_$.multiplyAlpha = function(this1) { if((this1 >>> 24 & 255) == 0) { this1 = 0; } else if((this1 >>> 24 & 255) != 255) { lime_math_color__$ARGB_ARGB_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[this1 >>> 24 & 255]; this1 = (this1 >>> 24 & 255 & 255) << 24 | ((this1 >>> 16 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.a16 >> 16 & 255) << 16 | ((this1 >>> 8 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.a16 >> 16 & 255) << 8 | (this1 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.a16 >> 16 & 255; } }; lime_math_color__$ARGB_ARGB_$Impl_$.readUInt8 = function(this1,data,offset,format,premultiplied) { if(premultiplied == null) { premultiplied = false; } if(format == null) { format = 0; } switch(format) { case 0: this1 = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 1: this1 = (data[offset + 2] & 255) << 24 | (data[offset + 3] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 1] & 255; break; case 2: this1 = (data[offset + 1] & 255) << 24 | (data[offset] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset + 2] & 255; break; } if(premultiplied) { if((this1 >>> 24 & 255) != 0 && (this1 >>> 24 & 255) != 255) { lime_math_color__$ARGB_ARGB_$Impl_$.unmult = 255.0 / (this1 >>> 24 & 255); this1 = (this1 >>> 24 & 255 & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 16 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 8 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.unmult)] & 255) << 8 | lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.unmult)] & 255; } } }; lime_math_color__$ARGB_ARGB_$Impl_$.set = function(this1,a,r,g,b) { this1 = (a & 255) << 24 | (r & 255) << 16 | (g & 255) << 8 | b & 255; }; lime_math_color__$ARGB_ARGB_$Impl_$.unmultiplyAlpha = function(this1) { if((this1 >>> 24 & 255) != 0 && (this1 >>> 24 & 255) != 255) { lime_math_color__$ARGB_ARGB_$Impl_$.unmult = 255.0 / (this1 >>> 24 & 255); this1 = (this1 >>> 24 & 255 & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 16 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 8 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.unmult)] & 255) << 8 | lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.unmult)] & 255; } }; lime_math_color__$ARGB_ARGB_$Impl_$.writeUInt8 = function(this1,data,offset,format,premultiplied) { if(premultiplied == null) { premultiplied = false; } if(format == null) { format = 0; } if(premultiplied) { if((this1 >>> 24 & 255) == 0) { this1 = 0; } else if((this1 >>> 24 & 255) != 255) { lime_math_color__$ARGB_ARGB_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[this1 >>> 24 & 255]; this1 = (this1 >>> 24 & 255 & 255) << 24 | ((this1 >>> 16 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.a16 >> 16 & 255) << 16 | ((this1 >>> 8 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.a16 >> 16 & 255) << 8 | (this1 & 255) * lime_math_color__$ARGB_ARGB_$Impl_$.a16 >> 16 & 255; } } switch(format) { case 0: data[offset] = this1 >>> 16 & 255; data[offset + 1] = this1 >>> 8 & 255; data[offset + 2] = this1 & 255; data[offset + 3] = this1 >>> 24 & 255; break; case 1: data[offset] = this1 >>> 24 & 255; data[offset + 1] = this1 >>> 16 & 255; data[offset + 2] = this1 >>> 8 & 255; data[offset + 3] = this1 & 255; break; case 2: data[offset] = this1 & 255; data[offset + 1] = this1 >>> 8 & 255; data[offset + 2] = this1 >>> 16 & 255; data[offset + 3] = this1 >>> 24 & 255; break; } }; lime_math_color__$ARGB_ARGB_$Impl_$.__fromBGRA = function(bgra) { var this1 = 0; var argb = this1; argb = (bgra & 255 & 255) << 24 | (bgra >>> 8 & 255 & 255) << 16 | (bgra >>> 16 & 255 & 255) << 8 | bgra >>> 24 & 255 & 255; return argb; }; lime_math_color__$ARGB_ARGB_$Impl_$.__fromRGBA = function(rgba) { var this1 = 0; var argb = this1; argb = (rgba & 255 & 255) << 24 | (rgba >>> 24 & 255 & 255) << 16 | (rgba >>> 16 & 255 & 255) << 8 | rgba >>> 8 & 255 & 255; return argb; }; lime_math_color__$ARGB_ARGB_$Impl_$.get_a = function(this1) { return this1 >>> 24 & 255; }; lime_math_color__$ARGB_ARGB_$Impl_$.set_a = function(this1,value) { this1 = (value & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | this1 & 255 & 255; return value; }; lime_math_color__$ARGB_ARGB_$Impl_$.get_b = function(this1) { return this1 & 255; }; lime_math_color__$ARGB_ARGB_$Impl_$.set_b = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | value & 255; return value; }; lime_math_color__$ARGB_ARGB_$Impl_$.get_g = function(this1) { return this1 >>> 8 & 255; }; lime_math_color__$ARGB_ARGB_$Impl_$.set_g = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (value & 255) << 8 | this1 & 255 & 255; return value; }; lime_math_color__$ARGB_ARGB_$Impl_$.get_r = function(this1) { return this1 >>> 16 & 255; }; lime_math_color__$ARGB_ARGB_$Impl_$.set_r = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (value & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | this1 & 255 & 255; return value; }; var lime_math_color__$BGRA_BGRA_$Impl_$ = {}; $hxClasses["lime.math.color._BGRA.BGRA_Impl_"] = lime_math_color__$BGRA_BGRA_$Impl_$; lime_math_color__$BGRA_BGRA_$Impl_$.__name__ = ["lime","math","color","_BGRA","BGRA_Impl_"]; lime_math_color__$BGRA_BGRA_$Impl_$.__properties__ = {set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"}; lime_math_color__$BGRA_BGRA_$Impl_$._new = function(bgra) { if(bgra == null) { bgra = 0; } var this1 = bgra; return this1; }; lime_math_color__$BGRA_BGRA_$Impl_$.create = function(b,g,r,a) { var this1 = 0; var bgra = this1; bgra = (b & 255) << 24 | (g & 255) << 16 | (r & 255) << 8 | a & 255; return bgra; }; lime_math_color__$BGRA_BGRA_$Impl_$.multiplyAlpha = function(this1) { if((this1 & 255) == 0) { this1 = 0; } else if((this1 & 255) != 255) { lime_math_color__$BGRA_BGRA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[this1 & 255]; this1 = ((this1 >>> 24 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.a16 >> 16 & 255) << 24 | ((this1 >>> 16 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.a16 >> 16 & 255) << 16 | ((this1 >>> 8 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.a16 >> 16 & 255) << 8 | this1 & 255 & 255; } }; lime_math_color__$BGRA_BGRA_$Impl_$.readUInt8 = function(this1,data,offset,format,premultiplied) { if(premultiplied == null) { premultiplied = false; } if(format == null) { format = 0; } switch(format) { case 0: this1 = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; case 1: this1 = (data[offset + 3] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 1] & 255) << 8 | data[offset] & 255; break; case 2: this1 = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; } if(premultiplied) { if((this1 & 255) != 0 && (this1 & 255) != 255) { lime_math_color__$BGRA_BGRA_$Impl_$.unmult = 255.0 / (this1 & 255); this1 = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 24 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 16 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 8 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.unmult)] & 255) << 8 | this1 & 255 & 255; } } }; lime_math_color__$BGRA_BGRA_$Impl_$.set = function(this1,b,g,r,a) { this1 = (b & 255) << 24 | (g & 255) << 16 | (r & 255) << 8 | a & 255; }; lime_math_color__$BGRA_BGRA_$Impl_$.unmultiplyAlpha = function(this1) { if((this1 & 255) != 0 && (this1 & 255) != 255) { lime_math_color__$BGRA_BGRA_$Impl_$.unmult = 255.0 / (this1 & 255); this1 = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 24 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 16 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.floor((this1 >>> 8 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.unmult)] & 255) << 8 | this1 & 255 & 255; } }; lime_math_color__$BGRA_BGRA_$Impl_$.writeUInt8 = function(this1,data,offset,format,premultiplied) { if(premultiplied == null) { premultiplied = false; } if(format == null) { format = 0; } if(premultiplied) { if((this1 & 255) == 0) { this1 = 0; } else if((this1 & 255) != 255) { lime_math_color__$BGRA_BGRA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[this1 & 255]; this1 = ((this1 >>> 24 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.a16 >> 16 & 255) << 24 | ((this1 >>> 16 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.a16 >> 16 & 255) << 16 | ((this1 >>> 8 & 255) * lime_math_color__$BGRA_BGRA_$Impl_$.a16 >> 16 & 255) << 8 | this1 & 255 & 255; } } switch(format) { case 0: data[offset] = this1 >>> 8 & 255; data[offset + 1] = this1 >>> 16 & 255; data[offset + 2] = this1 >>> 24 & 255; data[offset + 3] = this1 & 255; break; case 1: data[offset] = this1 & 255; data[offset + 1] = this1 >>> 8 & 255; data[offset + 2] = this1 >>> 16 & 255; data[offset + 3] = this1 >>> 24 & 255; break; case 2: data[offset] = this1 >>> 24 & 255; data[offset + 1] = this1 >>> 16 & 255; data[offset + 2] = this1 >>> 8 & 255; data[offset + 3] = this1 & 255; break; } }; lime_math_color__$BGRA_BGRA_$Impl_$.__fromARGB = function(argb) { var this1 = 0; var bgra = this1; bgra = (argb & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb >>> 16 & 255 & 255) << 8 | argb >>> 24 & 255 & 255; return bgra; }; lime_math_color__$BGRA_BGRA_$Impl_$.__fromRGBA = function(rgba) { var this1 = 0; var bgra = this1; bgra = (rgba >>> 8 & 255 & 255) << 24 | (rgba >>> 16 & 255 & 255) << 16 | (rgba >>> 24 & 255 & 255) << 8 | rgba & 255 & 255; return bgra; }; lime_math_color__$BGRA_BGRA_$Impl_$.get_a = function(this1) { return this1 & 255; }; lime_math_color__$BGRA_BGRA_$Impl_$.set_a = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | value & 255; return value; }; lime_math_color__$BGRA_BGRA_$Impl_$.get_b = function(this1) { return this1 >>> 24 & 255; }; lime_math_color__$BGRA_BGRA_$Impl_$.set_b = function(this1,value) { this1 = (value & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | this1 & 255 & 255; return value; }; lime_math_color__$BGRA_BGRA_$Impl_$.get_g = function(this1) { return this1 >>> 16 & 255; }; lime_math_color__$BGRA_BGRA_$Impl_$.set_g = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (value & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | this1 & 255 & 255; return value; }; lime_math_color__$BGRA_BGRA_$Impl_$.get_r = function(this1) { return this1 >>> 8 & 255; }; lime_math_color__$BGRA_BGRA_$Impl_$.set_r = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (value & 255) << 8 | this1 & 255 & 255; return value; }; var lime_math_color__$RGBA_RGBA_$Impl_$ = {}; $hxClasses["lime.math.color._RGBA.RGBA_Impl_"] = lime_math_color__$RGBA_RGBA_$Impl_$; lime_math_color__$RGBA_RGBA_$Impl_$.__name__ = ["lime","math","color","_RGBA","RGBA_Impl_"]; lime_math_color__$RGBA_RGBA_$Impl_$.__properties__ = {set_r:"set_r",get_r:"get_r",set_g:"set_g",get_g:"get_g",set_b:"set_b",get_b:"get_b",set_a:"set_a",get_a:"get_a"}; lime_math_color__$RGBA_RGBA_$Impl_$._new = function(rgba) { if(rgba == null) { rgba = 0; } var this1 = rgba; return this1; }; lime_math_color__$RGBA_RGBA_$Impl_$.create = function(r,g,b,a) { var this1 = 0; var rgba = this1; rgba = (r & 255) << 24 | (g & 255) << 16 | (b & 255) << 8 | a & 255; return rgba; }; lime_math_color__$RGBA_RGBA_$Impl_$.multiplyAlpha = function(this1) { if((this1 & 255) == 0) { if(this1 != 0) { this1 = 0; } } else if((this1 & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[this1 & 255]; this1 = ((this1 >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((this1 >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((this1 >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | this1 & 255 & 255; } }; lime_math_color__$RGBA_RGBA_$Impl_$.readUInt8 = function(this1,data,offset,format,premultiplied) { if(premultiplied == null) { premultiplied = false; } if(format == null) { format = 0; } switch(format) { case 0: this1 = (data[offset] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset + 2] & 255) << 8 | data[offset + 3] & 255; break; case 1: this1 = (data[offset + 1] & 255) << 24 | (data[offset + 2] & 255) << 16 | (data[offset + 3] & 255) << 8 | data[offset] & 255; break; case 2: this1 = (data[offset + 2] & 255) << 24 | (data[offset + 1] & 255) << 16 | (data[offset] & 255) << 8 | data[offset + 3] & 255; break; } if(premultiplied) { if((this1 & 255) != 0 && (this1 & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (this1 & 255); this1 = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((this1 >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((this1 >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((this1 >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | this1 & 255 & 255; } } }; lime_math_color__$RGBA_RGBA_$Impl_$.set = function(this1,r,g,b,a) { this1 = (r & 255) << 24 | (g & 255) << 16 | (b & 255) << 8 | a & 255; }; lime_math_color__$RGBA_RGBA_$Impl_$.unmultiplyAlpha = function(this1) { if((this1 & 255) != 0 && (this1 & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (this1 & 255); this1 = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((this1 >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((this1 >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((this1 >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | this1 & 255 & 255; } }; lime_math_color__$RGBA_RGBA_$Impl_$.writeUInt8 = function(this1,data,offset,format,premultiplied) { if(premultiplied == null) { premultiplied = false; } if(format == null) { format = 0; } if(premultiplied) { if((this1 & 255) == 0) { if(this1 != 0) { this1 = 0; } } else if((this1 & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[this1 & 255]; this1 = ((this1 >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((this1 >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((this1 >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | this1 & 255 & 255; } } switch(format) { case 0: data[offset] = this1 >>> 24 & 255; data[offset + 1] = this1 >>> 16 & 255; data[offset + 2] = this1 >>> 8 & 255; data[offset + 3] = this1 & 255; break; case 1: data[offset] = this1 & 255; data[offset + 1] = this1 >>> 24 & 255; data[offset + 2] = this1 >>> 16 & 255; data[offset + 3] = this1 >>> 8 & 255; break; case 2: data[offset] = this1 >>> 8 & 255; data[offset + 1] = this1 >>> 16 & 255; data[offset + 2] = this1 >>> 24 & 255; data[offset + 3] = this1 & 255; break; } }; lime_math_color__$RGBA_RGBA_$Impl_$.__fromARGB = function(argb) { var this1 = 0; var rgba = this1; rgba = (argb >>> 16 & 255 & 255) << 24 | (argb >>> 8 & 255 & 255) << 16 | (argb & 255 & 255) << 8 | argb >>> 24 & 255 & 255; return rgba; }; lime_math_color__$RGBA_RGBA_$Impl_$.__fromBGRA = function(bgra) { var this1 = 0; var rgba = this1; rgba = (bgra >>> 8 & 255 & 255) << 24 | (bgra >>> 16 & 255 & 255) << 16 | (bgra >>> 24 & 255 & 255) << 8 | bgra & 255 & 255; return rgba; }; lime_math_color__$RGBA_RGBA_$Impl_$.get_a = function(this1) { return this1 & 255; }; lime_math_color__$RGBA_RGBA_$Impl_$.set_a = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | value & 255; return value; }; lime_math_color__$RGBA_RGBA_$Impl_$.get_b = function(this1) { return this1 >>> 8 & 255; }; lime_math_color__$RGBA_RGBA_$Impl_$.set_b = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (value & 255) << 8 | this1 & 255 & 255; return value; }; lime_math_color__$RGBA_RGBA_$Impl_$.get_g = function(this1) { return this1 >>> 16 & 255; }; lime_math_color__$RGBA_RGBA_$Impl_$.set_g = function(this1,value) { this1 = (this1 >>> 24 & 255 & 255) << 24 | (value & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | this1 & 255 & 255; return value; }; lime_math_color__$RGBA_RGBA_$Impl_$.get_r = function(this1) { return this1 >>> 24 & 255; }; lime_math_color__$RGBA_RGBA_$Impl_$.set_r = function(this1,value) { this1 = (value & 255) << 24 | (this1 >>> 16 & 255 & 255) << 16 | (this1 >>> 8 & 255 & 255) << 8 | this1 & 255 & 255; return value; }; var lime_media_ALAudioContext = function() { this.EXPONENT_DISTANCE_CLAMPED = 53254; this.EXPONENT_DISTANCE = 53253; this.LINEAR_DISTANCE_CLAMPED = 53252; this.LINEAR_DISTANCE = 53251; this.INVERSE_DISTANCE_CLAMPED = 53250; this.INVERSE_DISTANCE = 53249; this.DISTANCE_MODEL = 53248; this.DOPPLER_VELOCITY = 49153; this.SPEED_OF_SOUND = 49155; this.DOPPLER_FACTOR = 49152; this.EXTENSIONS = 45060; this.RENDERER = 45059; this.VERSION = 45058; this.VENDOR = 45057; this.OUT_OF_MEMORY = 40965; this.INVALID_OPERATION = 40964; this.INVALID_VALUE = 40963; this.INVALID_ENUM = 40962; this.INVALID_NAME = 40961; this.NO_ERROR = 0; this.SIZE = 8196; this.CHANNELS = 8195; this.BITS = 8194; this.FREQUENCY = 8193; this.FORMAT_STEREO16 = 4355; this.FORMAT_STEREO8 = 4354; this.FORMAT_MONO16 = 4353; this.FORMAT_MONO8 = 4352; this.UNDETERMINED = 4144; this.STREAMING = 4137; this.STATIC = 4136; this.SOURCE_TYPE = 4135; this.BYTE_OFFSET = 4134; this.SAMPLE_OFFSET = 4133; this.SEC_OFFSET = 4132; this.MAX_DISTANCE = 4131; this.CONE_OUTER_GAIN = 4130; this.ROLLOFF_FACTOR = 4129; this.REFERENCE_DISTANCE = 4128; this.BUFFERS_PROCESSED = 4118; this.BUFFERS_QUEUED = 4117; this.STOPPED = 4116; this.PAUSED = 4115; this.PLAYING = 4114; this.INITIAL = 4113; this.SOURCE_STATE = 4112; this.ORIENTATION = 4111; this.MAX_GAIN = 4110; this.MIN_GAIN = 4109; this.GAIN = 4106; this.BUFFER = 4105; this.LOOPING = 4103; this.VELOCITY = 4102; this.DIRECTION = 4101; this.POSITION = 4100; this.PITCH = 4099; this.CONE_OUTER_ANGLE = 4098; this.CONE_INNER_ANGLE = 4097; this.SOURCE_RELATIVE = 514; this.TRUE = 1; this.FALSE = 0; this.NONE = 0; }; $hxClasses["lime.media.ALAudioContext"] = lime_media_ALAudioContext; lime_media_ALAudioContext.__name__ = ["lime","media","ALAudioContext"]; lime_media_ALAudioContext.prototype = { NONE: null ,FALSE: null ,TRUE: null ,SOURCE_RELATIVE: null ,CONE_INNER_ANGLE: null ,CONE_OUTER_ANGLE: null ,PITCH: null ,POSITION: null ,DIRECTION: null ,VELOCITY: null ,LOOPING: null ,BUFFER: null ,GAIN: null ,MIN_GAIN: null ,MAX_GAIN: null ,ORIENTATION: null ,SOURCE_STATE: null ,INITIAL: null ,PLAYING: null ,PAUSED: null ,STOPPED: null ,BUFFERS_QUEUED: null ,BUFFERS_PROCESSED: null ,REFERENCE_DISTANCE: null ,ROLLOFF_FACTOR: null ,CONE_OUTER_GAIN: null ,MAX_DISTANCE: null ,SEC_OFFSET: null ,SAMPLE_OFFSET: null ,BYTE_OFFSET: null ,SOURCE_TYPE: null ,STATIC: null ,STREAMING: null ,UNDETERMINED: null ,FORMAT_MONO8: null ,FORMAT_MONO16: null ,FORMAT_STEREO8: null ,FORMAT_STEREO16: null ,FREQUENCY: null ,BITS: null ,CHANNELS: null ,SIZE: null ,NO_ERROR: null ,INVALID_NAME: null ,INVALID_ENUM: null ,INVALID_VALUE: null ,INVALID_OPERATION: null ,OUT_OF_MEMORY: null ,VENDOR: null ,VERSION: null ,RENDERER: null ,EXTENSIONS: null ,DOPPLER_FACTOR: null ,SPEED_OF_SOUND: null ,DOPPLER_VELOCITY: null ,DISTANCE_MODEL: null ,INVERSE_DISTANCE: null ,INVERSE_DISTANCE_CLAMPED: null ,LINEAR_DISTANCE: null ,LINEAR_DISTANCE_CLAMPED: null ,EXPONENT_DISTANCE: null ,EXPONENT_DISTANCE_CLAMPED: null ,bufferData: function(buffer,format,data,size,freq) { lime_media_openal_AL.bufferData(buffer,format,data,size,freq); } ,buffer3f: function(buffer,param,value1,value2,value3) { lime_media_openal_AL.buffer3f(buffer,param,value1,value2,value3); } ,buffer3i: function(buffer,param,value1,value2,value3) { lime_media_openal_AL.buffer3i(buffer,param,value1,value2,value3); } ,bufferf: function(buffer,param,value) { lime_media_openal_AL.bufferf(buffer,param,value); } ,bufferfv: function(buffer,param,values) { lime_media_openal_AL.bufferfv(buffer,param,values); } ,bufferi: function(buffer,param,value) { lime_media_openal_AL.bufferi(buffer,param,value); } ,bufferiv: function(buffer,param,values) { lime_media_openal_AL.bufferiv(buffer,param,values); } ,createSource: function() { return lime_media_openal_AL.createSource(); } ,createBuffer: function() { return lime_media_openal_AL.createBuffer(); } ,deleteBuffer: function(buffer) { lime_media_openal_AL.deleteBuffer(buffer); } ,deleteBuffers: function(buffers) { lime_media_openal_AL.deleteBuffers(buffers); } ,deleteSource: function(source) { lime_media_openal_AL.deleteSource(source); } ,deleteSources: function(sources) { lime_media_openal_AL.deleteSources(sources); } ,disable: function(capability) { lime_media_openal_AL.disable(capability); } ,distanceModel: function(distanceModel) { lime_media_openal_AL.distanceModel(distanceModel); } ,dopplerFactor: function(value) { lime_media_openal_AL.dopplerFactor(value); } ,dopplerVelocity: function(value) { lime_media_openal_AL.dopplerVelocity(value); } ,enable: function(capability) { lime_media_openal_AL.enable(capability); } ,genSource: function() { return this.createSource(); } ,genSources: function(n) { return lime_media_openal_AL.genSources(n); } ,genBuffer: function() { return this.createBuffer(); } ,genBuffers: function(n) { return lime_media_openal_AL.genBuffers(n); } ,getBoolean: function(param) { return lime_media_openal_AL.getBoolean(param); } ,getBooleanv: function(param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getBooleanv(param,count); } ,getBuffer3f: function(buffer,param) { return lime_media_openal_AL.getBuffer3f(buffer,param); } ,getBuffer3i: function(buffer,param) { return lime_media_openal_AL.getBuffer3i(buffer,param); } ,getBufferf: function(buffer,param) { return lime_media_openal_AL.getBufferf(buffer,param); } ,getBufferfv: function(buffer,param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getBufferfv(buffer,param,count); } ,getBufferi: function(buffer,param) { return lime_media_openal_AL.getBufferi(buffer,param); } ,getBufferiv: function(buffer,param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getBufferiv(buffer,param,count); } ,getDouble: function(param) { return lime_media_openal_AL.getDouble(param); } ,getDoublev: function(param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getDoublev(param,count); } ,getEnumValue: function(ename) { return lime_media_openal_AL.getEnumValue(ename); } ,getError: function() { return lime_media_openal_AL.getError(); } ,getErrorString: function() { return lime_media_openal_AL.getErrorString(); } ,getFloat: function(param) { return lime_media_openal_AL.getFloat(param); } ,getFloatv: function(param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getFloatv(param,count); } ,getInteger: function(param) { return lime_media_openal_AL.getInteger(param); } ,getIntegerv: function(param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getIntegerv(param,count); } ,getListener3f: function(param) { return lime_media_openal_AL.getListener3f(param); } ,getListener3i: function(param) { return lime_media_openal_AL.getListener3i(param); } ,getListenerf: function(param) { return lime_media_openal_AL.getListenerf(param); } ,getListenerfv: function(param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getListenerfv(param,count); } ,getListeneri: function(param) { return lime_media_openal_AL.getListeneri(param); } ,getListeneriv: function(param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getListeneriv(param,count); } ,getProcAddress: function(fname) { return lime_media_openal_AL.getProcAddress(fname); } ,getSource3f: function(source,param) { return lime_media_openal_AL.getSource3f(source,param); } ,getSourcef: function(source,param) { return lime_media_openal_AL.getSourcef(source,param); } ,getSource3i: function(source,param) { return lime_media_openal_AL.getSource3i(source,param); } ,getSourcefv: function(source,param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getSourcefv(source,param); } ,getSourcei: function(source,param) { return lime_media_openal_AL.getSourcei(source,param); } ,getSourceiv: function(source,param,count) { if(count == null) { count = 1; } return lime_media_openal_AL.getSourceiv(source,param,count); } ,getString: function(param) { return lime_media_openal_AL.getString(param); } ,isBuffer: function(buffer) { return lime_media_openal_AL.isBuffer(buffer); } ,isEnabled: function(capability) { return lime_media_openal_AL.isEnabled(capability); } ,isExtensionPresent: function(extname) { return lime_media_openal_AL.isExtensionPresent(extname); } ,isSource: function(source) { return lime_media_openal_AL.isSource(source); } ,listener3f: function(param,value1,value2,value3) { lime_media_openal_AL.listener3f(param,value1,value2,value3); } ,listener3i: function(param,value1,value2,value3) { lime_media_openal_AL.listener3i(param,value1,value2,value3); } ,listenerf: function(param,value) { lime_media_openal_AL.listenerf(param,value); } ,listenerfv: function(param,values) { lime_media_openal_AL.listenerfv(param,values); } ,listeneri: function(param,value) { lime_media_openal_AL.listeneri(param,value); } ,listeneriv: function(param,values) { lime_media_openal_AL.listeneriv(param,values); } ,source3f: function(source,param,value1,value2,value3) { lime_media_openal_AL.source3f(source,param,value1,value2,value3); } ,source3i: function(source,param,value1,value2,value3) { lime_media_openal_AL.source3i(source,param,value1,value2,value3); } ,sourcef: function(source,param,value) { lime_media_openal_AL.sourcef(source,param,value); } ,sourcefv: function(source,param,values) { lime_media_openal_AL.sourcefv(source,param,values); } ,sourcei: function(source,param,value) { lime_media_openal_AL.sourcei(source,param,value); } ,sourceiv: function(source,param,values) { lime_media_openal_AL.sourceiv(source,param,values); } ,sourcePlay: function(source) { lime_media_openal_AL.sourcePlay(source); } ,sourcePlayv: function(sources) { lime_media_openal_AL.sourcePlayv(sources); } ,sourceStop: function(source) { lime_media_openal_AL.sourceStop(source); } ,sourceStopv: function(sources) { lime_media_openal_AL.sourceStopv(sources); } ,sourceRewind: function(source) { lime_media_openal_AL.sourceRewind(source); } ,sourceRewindv: function(sources) { lime_media_openal_AL.sourceRewindv(sources); } ,sourcePause: function(source) { lime_media_openal_AL.sourcePause(source); } ,sourcePausev: function(sources) { lime_media_openal_AL.sourcePausev(sources); } ,sourceQueueBuffer: function(source,buffer) { lime_media_openal_AL.sourceQueueBuffer(source,buffer); } ,sourceQueueBuffers: function(source,nb,buffers) { lime_media_openal_AL.sourceQueueBuffers(source,nb,buffers); } ,sourceUnqueueBuffer: function(source) { return lime_media_openal_AL.sourceUnqueueBuffer(source); } ,sourceUnqueueBuffers: function(source,nb) { return lime_media_openal_AL.sourceUnqueueBuffers(source,nb); } ,speedOfSound: function(value) { lime_media_openal_AL.speedOfSound(value); } ,__class__: lime_media_ALAudioContext }; var lime_media_ALCAudioContext = function() { this.ALL_DEVICES_SPECIFIER = 4115; this.DEFAULT_ALL_DEVICES_SPECIFIER = 4114; this.ENUMERATE_ALL_EXT = 1; this.EXTENSIONS = 4102; this.DEVICE_SPECIFIER = 4101; this.DEFAULT_DEVICE_SPECIFIER = 4100; this.ALL_ATTRIBUTES = 4099; this.ATTRIBUTES_SIZE = 4098; this.OUT_OF_MEMORY = 40965; this.INVALID_VALUE = 40964; this.INVALID_ENUM = 40963; this.INVALID_CONTEXT = 40962; this.INVALID_DEVICE = 40961; this.NO_ERROR = 0; this.STEREO_SOURCES = 4113; this.MONO_SOURCES = 4112; this.SYNC = 4105; this.REFRESH = 4104; this.FREQUENCY = 4103; this.TRUE = 1; this.FALSE = 0; }; $hxClasses["lime.media.ALCAudioContext"] = lime_media_ALCAudioContext; lime_media_ALCAudioContext.__name__ = ["lime","media","ALCAudioContext"]; lime_media_ALCAudioContext.prototype = { FALSE: null ,TRUE: null ,FREQUENCY: null ,REFRESH: null ,SYNC: null ,MONO_SOURCES: null ,STEREO_SOURCES: null ,NO_ERROR: null ,INVALID_DEVICE: null ,INVALID_CONTEXT: null ,INVALID_ENUM: null ,INVALID_VALUE: null ,OUT_OF_MEMORY: null ,ATTRIBUTES_SIZE: null ,ALL_ATTRIBUTES: null ,DEFAULT_DEVICE_SPECIFIER: null ,DEVICE_SPECIFIER: null ,EXTENSIONS: null ,ENUMERATE_ALL_EXT: null ,DEFAULT_ALL_DEVICES_SPECIFIER: null ,ALL_DEVICES_SPECIFIER: null ,closeDevice: function(device) { return lime_media_openal_ALC.closeDevice(device); } ,createContext: function(device,attrlist) { return lime_media_openal_ALC.createContext(device,attrlist); } ,destroyContext: function(context) { lime_media_openal_ALC.destroyContext(context); } ,getContextsDevice: function(context) { return lime_media_openal_ALC.getContextsDevice(context); } ,getCurrentContext: function() { return lime_media_openal_ALC.getCurrentContext(); } ,getError: function(device) { return lime_media_openal_ALC.getError(device); } ,getErrorString: function(device) { return lime_media_openal_ALC.getErrorString(device); } ,getIntegerv: function(device,param,count) { if(count == null) { count = 1; } return lime_media_openal_ALC.getIntegerv(device,param,count); } ,getString: function(device,param) { return lime_media_openal_ALC.getString(device,param); } ,makeContextCurrent: function(context) { return lime_media_openal_ALC.makeContextCurrent(context); } ,openDevice: function(deviceName) { return lime_media_openal_ALC.openDevice(deviceName); } ,pauseDevice: function(device) { lime_media_openal_ALC.pauseDevice(device); } ,processContext: function(context) { lime_media_openal_ALC.processContext(context); } ,resumeDevice: function(device) { lime_media_openal_ALC.resumeDevice(device); } ,suspendContext: function(context) { lime_media_openal_ALC.suspendContext(context); } ,__class__: lime_media_ALCAudioContext }; var lime_media_AudioBuffer = function() { }; $hxClasses["lime.media.AudioBuffer"] = lime_media_AudioBuffer; lime_media_AudioBuffer.__name__ = ["lime","media","AudioBuffer"]; lime_media_AudioBuffer.fromBytes = function(bytes) { if(bytes == null) { return null; } return null; }; lime_media_AudioBuffer.fromFile = function(path) { if(path == null) { return null; } var audioBuffer = new lime_media_AudioBuffer(); audioBuffer.__srcHowl = new Howl({ src : [path], preload : false}); return audioBuffer; }; lime_media_AudioBuffer.fromFiles = function(paths) { var audioBuffer = new lime_media_AudioBuffer(); audioBuffer.__srcHowl = new Howl({ src : paths, preload : false}); return audioBuffer; }; lime_media_AudioBuffer.fromVorbisFile = function(vorbisFile) { return null; }; lime_media_AudioBuffer.loadFromFile = function(path) { var promise = new lime_app_Promise(); var audioBuffer = lime_media_AudioBuffer.fromFile(path); if(audioBuffer != null) { if(audioBuffer != null) { audioBuffer.__srcHowl.on("load",function() { promise.complete(audioBuffer); }); audioBuffer.__srcHowl.on("loaderror",function(id,msg) { promise.error(msg); }); audioBuffer.__srcHowl.load(); } } else { promise.error(null); } return promise.future; }; lime_media_AudioBuffer.loadFromFiles = function(paths) { var promise = new lime_app_Promise(); var audioBuffer = lime_media_AudioBuffer.fromFiles(paths); if(audioBuffer != null) { audioBuffer.__srcHowl.on("load",function() { promise.complete(audioBuffer); }); audioBuffer.__srcHowl.on("loaderror",function() { promise.error(null); }); audioBuffer.__srcHowl.load(); } else { promise.error(null); } return promise.future; }; lime_media_AudioBuffer.prototype = { bitsPerSample: null ,channels: null ,data: null ,sampleRate: null ,__srcAudio: null ,__srcBuffer: null ,__srcCustom: null ,__srcFMODSound: null ,__srcHowl: null ,__srcSound: null ,__srcVorbisFile: null ,dispose: function() { this.__srcHowl.unload(); } ,get_src: function() { return this.__srcHowl; } ,set_src: function(value) { return this.__srcHowl = value; } ,__class__: lime_media_AudioBuffer ,__properties__: {set_src:"set_src",get_src:"get_src"} }; var lime_media_AudioContext = $hxClasses["lime.media.AudioContext"] = { __ename__ : ["lime","media","AudioContext"], __constructs__ : ["OPENAL","HTML5","WEB","FLASH","CUSTOM"] }; lime_media_AudioContext.OPENAL = function(alc,al) { var $x = ["OPENAL",0,alc,al]; $x.__enum__ = lime_media_AudioContext; $x.toString = $estr; return $x; }; lime_media_AudioContext.HTML5 = function(context) { var $x = ["HTML5",1,context]; $x.__enum__ = lime_media_AudioContext; $x.toString = $estr; return $x; }; lime_media_AudioContext.WEB = function(context) { var $x = ["WEB",2,context]; $x.__enum__ = lime_media_AudioContext; $x.toString = $estr; return $x; }; lime_media_AudioContext.FLASH = function(context) { var $x = ["FLASH",3,context]; $x.__enum__ = lime_media_AudioContext; $x.toString = $estr; return $x; }; lime_media_AudioContext.CUSTOM = function(data) { var $x = ["CUSTOM",4,data]; $x.__enum__ = lime_media_AudioContext; $x.toString = $estr; return $x; }; lime_media_AudioContext.__empty_constructs__ = []; var lime_media_AudioManager = function() { }; $hxClasses["lime.media.AudioManager"] = lime_media_AudioManager; lime_media_AudioManager.__name__ = ["lime","media","AudioManager"]; lime_media_AudioManager.init = function(context) { if(lime_media_AudioManager.context == null) { if(context == null) { try { window.AudioContext = window.AudioContext || window.webkitAudioContext; lime_media_AudioManager.context = lime_media_AudioContext.WEB(new AudioContext ()); } catch( e ) { haxe_CallStack.lastException = e; lime_media_AudioManager.context = lime_media_AudioContext.HTML5(new lime_media_HTML5AudioContext()); } } else { lime_media_AudioManager.context = context; } } }; lime_media_AudioManager.resume = function() { if(lime_media_AudioManager.context != null) { var _g = lime_media_AudioManager.context; if(_g[1] == 0) { var al = _g[3]; var alc = _g[2]; var currentContext = alc.getCurrentContext(); if(currentContext != null) { var device = alc.getContextsDevice(currentContext); alc.resumeDevice(device); alc.processContext(currentContext); } } } }; lime_media_AudioManager.shutdown = function() { if(lime_media_AudioManager.context != null) { var _g = lime_media_AudioManager.context; if(_g[1] == 0) { var al = _g[3]; var alc = _g[2]; var currentContext = alc.getCurrentContext(); if(currentContext != null) { var device = alc.getContextsDevice(currentContext); alc.makeContextCurrent(null); alc.destroyContext(currentContext); if(device != null) { alc.closeDevice(device); } } } lime_media_AudioManager.context = null; } }; lime_media_AudioManager.suspend = function() { if(lime_media_AudioManager.context != null) { var _g = lime_media_AudioManager.context; if(_g[1] == 0) { var al = _g[3]; var alc = _g[2]; var currentContext = alc.getCurrentContext(); if(currentContext != null) { alc.suspendContext(currentContext); var device = alc.getContextsDevice(currentContext); alc.pauseDevice(device); } } } }; var lime_media_AudioSource = function(buffer,offset,length,loops) { if(loops == null) { loops = 0; } if(offset == null) { offset = 0; } this.onComplete = new lime_app__$Event_$Void_$Void(); this.buffer = buffer; this.offset = offset; this.backend = new lime__$backend_html5_HTML5AudioSource(this); if(length != null && length != 0) { this.set_length(length); } this.set_loops(loops); if(buffer != null) { this.init(); } }; $hxClasses["lime.media.AudioSource"] = lime_media_AudioSource; lime_media_AudioSource.__name__ = ["lime","media","AudioSource"]; lime_media_AudioSource.prototype = { onComplete: null ,buffer: null ,offset: null ,backend: null ,dispose: function() { this.backend.dispose(); } ,init: function() { this.backend.init(); } ,play: function() { this.backend.play(); } ,pause: function() { this.backend.pause(); } ,stop: function() { this.backend.stop(); } ,get_currentTime: function() { return this.backend.getCurrentTime(); } ,set_currentTime: function(value) { return this.backend.setCurrentTime(value); } ,get_gain: function() { return this.backend.getGain(); } ,set_gain: function(value) { return this.backend.setGain(value); } ,get_length: function() { return this.backend.getLength(); } ,set_length: function(value) { return this.backend.setLength(value); } ,get_loops: function() { return this.backend.getLoops(); } ,set_loops: function(value) { return this.backend.setLoops(value); } ,get_position: function() { return this.backend.getPosition(); } ,set_position: function(value) { return this.backend.setPosition(value); } ,__class__: lime_media_AudioSource ,__properties__: {set_position:"set_position",get_position:"get_position",set_loops:"set_loops",get_loops:"get_loops",set_length:"set_length",get_length:"get_length",set_gain:"set_gain",get_gain:"get_gain",set_currentTime:"set_currentTime",get_currentTime:"get_currentTime"} }; var lime_media_FlashAudioContext = function() { }; $hxClasses["lime.media.FlashAudioContext"] = lime_media_FlashAudioContext; lime_media_FlashAudioContext.__name__ = ["lime","media","FlashAudioContext"]; lime_media_FlashAudioContext.prototype = { createBuffer: function(stream,context) { return null; } ,getBytesLoaded: function(buffer) { return 0; } ,getBytesTotal: function(buffer) { return 0; } ,getID3: function(buffer) { return null; } ,getIsBuffering: function(buffer) { return false; } ,getIsURLInaccessible: function(buffer) { return false; } ,getLength: function(buffer) { return 0; } ,getURL: function(buffer) { return null; } ,close: function(buffer) { } ,extract: function(buffer,target,length,startPosition) { if(startPosition == null) { startPosition = -1; } return 0; } ,load: function(buffer,stream,context) { } ,loadCompressedDataFromByteArray: function(buffer,bytes,bytesLength) { } ,loadPCMFromByteArray: function(buffer,bytes,samples,format,stereo,sampleRate) { if(sampleRate == null) { sampleRate = 44100; } if(stereo == null) { stereo = true; } } ,play: function(buffer,startTime,loops,sndTransform) { if(loops == null) { loops = 0; } if(startTime == null) { startTime = 0; } return null; } ,__class__: lime_media_FlashAudioContext }; var lime_media_HTML5AudioContext = function() { this.NETWORK_NO_SOURCE = 3; this.NETWORK_LOADING = 2; this.NETWORK_IDLE = 1; this.NETWORK_EMPTY = 0; this.HAVE_NOTHING = 0; this.HAVE_METADATA = 1; this.HAVE_FUTURE_DATA = 3; this.HAVE_ENOUGH_DATA = 4; this.HAVE_CURRENT_DATA = 2; }; $hxClasses["lime.media.HTML5AudioContext"] = lime_media_HTML5AudioContext; lime_media_HTML5AudioContext.__name__ = ["lime","media","HTML5AudioContext"]; lime_media_HTML5AudioContext.prototype = { HAVE_CURRENT_DATA: null ,HAVE_ENOUGH_DATA: null ,HAVE_FUTURE_DATA: null ,HAVE_METADATA: null ,HAVE_NOTHING: null ,NETWORK_EMPTY: null ,NETWORK_IDLE: null ,NETWORK_LOADING: null ,NETWORK_NO_SOURCE: null ,canPlayType: function(buffer,type) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.canPlayType(type); } return null; } ,createBuffer: function(urlString) { var buffer = new lime_media_AudioBuffer(); buffer.__srcAudio = new Audio(); buffer.__srcAudio.src = urlString; return buffer; } ,getAutoplay: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.autoplay; } return false; } ,getBuffered: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.buffered; } return null; } ,getCurrentSrc: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.currentSrc; } return null; } ,getCurrentTime: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.currentTime; } return 0; } ,getDefaultPlaybackRate: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.defaultPlaybackRate; } return 1; } ,getDuration: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.duration; } return 0; } ,getEnded: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.ended; } return false; } ,getError: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.error; } return null; } ,getLoop: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.loop; } return false; } ,getMuted: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.muted; } return false; } ,getNetworkState: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.networkState; } return 0; } ,getPaused: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.paused; } return false; } ,getPlaybackRate: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.playbackRate; } return 1; } ,getPlayed: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.played; } return null; } ,getPreload: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.preload; } return null; } ,getReadyState: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.readyState; } return 0; } ,getSeekable: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.seekable; } return null; } ,getSeeking: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.seeking; } return false; } ,getSrc: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.src; } return null; } ,getStartTime: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.playbackRate; } return 0; } ,getVolume: function(buffer) { if(buffer.__srcAudio != null) { return buffer.__srcAudio.volume; } return 1; } ,load: function(buffer) { if(buffer.__srcAudio != null) { buffer.__srcAudio.load(); return; } } ,pause: function(buffer) { if(buffer.__srcAudio != null) { buffer.__srcAudio.pause(); return; } } ,play: function(buffer) { if(buffer.__srcAudio != null) { buffer.__srcAudio.play(); return; } } ,setAutoplay: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.autoplay = value; } } ,setCurrentTime: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.currentTime = value; } } ,setDefaultPlaybackRate: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.defaultPlaybackRate = value; } } ,setLoop: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.loop = value; } } ,setMuted: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.muted = value; } } ,setPlaybackRate: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.playbackRate = value; } } ,setPreload: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.preload = value; } } ,setSrc: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.src = value; } } ,setVolume: function(buffer,value) { if(buffer.__srcAudio != null) { buffer.__srcAudio.volume = value; } } ,__class__: lime_media_HTML5AudioContext }; var lime_media_codecs_vorbis_VorbisComment = function() { }; $hxClasses["lime.media.codecs.vorbis.VorbisComment"] = lime_media_codecs_vorbis_VorbisComment; lime_media_codecs_vorbis_VorbisComment.__name__ = ["lime","media","codecs","vorbis","VorbisComment"]; lime_media_codecs_vorbis_VorbisComment.prototype = { userComments: null ,vendor: null ,__class__: lime_media_codecs_vorbis_VorbisComment }; var lime_media_codecs_vorbis_VorbisFile = function(handle) { this.handle = handle; }; $hxClasses["lime.media.codecs.vorbis.VorbisFile"] = lime_media_codecs_vorbis_VorbisFile; lime_media_codecs_vorbis_VorbisFile.__name__ = ["lime","media","codecs","vorbis","VorbisFile"]; lime_media_codecs_vorbis_VorbisFile.fromBytes = function(bytes) { return null; }; lime_media_codecs_vorbis_VorbisFile.fromFile = function(path) { return null; }; lime_media_codecs_vorbis_VorbisFile.prototype = { bitstream: null ,handle: null ,bitrate: function(bitstream) { if(bitstream == null) { bitstream = -1; } return 0; } ,bitrateInstant: function() { return 0; } ,clear: function() { } ,comment: function(bitstream) { if(bitstream == null) { bitstream = -1; } return null; } ,crosslap: function(other) { return 0; } ,info: function(bitstream) { if(bitstream == null) { bitstream = -1; } return null; } ,pcmSeek: function(pos) { return 0; } ,pcmSeekLap: function(pos) { return 0; } ,pcmSeekPage: function(pos) { return 0; } ,pcmSeekPageLap: function(pos) { return 0; } ,pcmTell: function() { var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; } ,pcmTotal: function(bitstream) { if(bitstream == null) { bitstream = -1; } var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; } ,rawSeek: function(pos) { return 0; } ,rawSeekLap: function(pos) { return 0; } ,rawTell: function() { var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; } ,rawTotal: function(bitstream) { if(bitstream == null) { bitstream = -1; } var this1 = new haxe__$Int64__$_$_$Int64(0,0); return this1; } ,read: function(buffer,position,length,bigEndianPacking,wordSize,signed) { if(signed == null) { signed = true; } if(wordSize == null) { wordSize = 2; } if(bigEndianPacking == null) { bigEndianPacking = false; } if(length == null) { length = 4096; } return 0; } ,readFloat: function(pcmChannels,samples) { return 0; } ,seekable: function() { return false; } ,serialNumber: function(bitstream) { if(bitstream == null) { bitstream = -1; } return 0; } ,streams: function() { return 0; } ,timeSeek: function(s) { return 0; } ,timeSeekLap: function(s) { return 0; } ,timeSeekPage: function(s) { return 0; } ,timeSeekPageLap: function(s) { return 0; } ,timeTell: function() { return 0; } ,timeTotal: function(bitstream) { if(bitstream == null) { bitstream = -1; } return 0; } ,__class__: lime_media_codecs_vorbis_VorbisFile }; var lime_media_codecs_vorbis_VorbisInfo = function() { }; $hxClasses["lime.media.codecs.vorbis.VorbisInfo"] = lime_media_codecs_vorbis_VorbisInfo; lime_media_codecs_vorbis_VorbisInfo.__name__ = ["lime","media","codecs","vorbis","VorbisInfo"]; lime_media_codecs_vorbis_VorbisInfo.prototype = { bitrateLower: null ,bitrateNominal: null ,bitrateUpper: null ,channels: null ,rate: null ,version: null ,__class__: lime_media_codecs_vorbis_VorbisInfo }; var lime_media_openal_AL = function() { }; $hxClasses["lime.media.openal.AL"] = lime_media_openal_AL; lime_media_openal_AL.__name__ = ["lime","media","openal","AL"]; lime_media_openal_AL.bufferData = function(buffer,format,data,size,freq) { }; lime_media_openal_AL.buffer3f = function(buffer,param,value1,value2,value3) { }; lime_media_openal_AL.buffer3i = function(buffer,param,value1,value2,value3) { }; lime_media_openal_AL.bufferf = function(buffer,param,value) { }; lime_media_openal_AL.bufferfv = function(buffer,param,values) { }; lime_media_openal_AL.bufferi = function(buffer,param,value) { }; lime_media_openal_AL.bufferiv = function(buffer,param,values) { }; lime_media_openal_AL.createBuffer = function() { return null; }; lime_media_openal_AL.createSource = function() { return null; }; lime_media_openal_AL.deleteBuffer = function(buffer) { }; lime_media_openal_AL.deleteBuffers = function(buffers) { }; lime_media_openal_AL.deleteSource = function(source) { }; lime_media_openal_AL.deleteSources = function(sources) { }; lime_media_openal_AL.disable = function(capability) { }; lime_media_openal_AL.distanceModel = function(distanceModel) { }; lime_media_openal_AL.dopplerFactor = function(value) { }; lime_media_openal_AL.dopplerVelocity = function(value) { }; lime_media_openal_AL.enable = function(capability) { }; lime_media_openal_AL.genSource = function() { return null; }; lime_media_openal_AL.genSources = function(n) { return null; }; lime_media_openal_AL.genBuffer = function() { return null; }; lime_media_openal_AL.genBuffers = function(n) { return null; }; lime_media_openal_AL.getBoolean = function(param) { return false; }; lime_media_openal_AL.getBooleanv = function(param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getBuffer3f = function(buffer,param) { return null; }; lime_media_openal_AL.getBuffer3i = function(buffer,param) { return null; }; lime_media_openal_AL.getBufferf = function(buffer,param) { return 0; }; lime_media_openal_AL.getBufferfv = function(buffer,param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getBufferi = function(buffer,param) { return 0; }; lime_media_openal_AL.getBufferiv = function(buffer,param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getDouble = function(param) { return 0; }; lime_media_openal_AL.getDoublev = function(param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getEnumValue = function(ename) { return 0; }; lime_media_openal_AL.getError = function() { return 0; }; lime_media_openal_AL.getErrorString = function() { var _g = lime_media_openal_AL.getError(); switch(_g) { case 40961: return "INVALID_NAME: Invalid parameter name"; case 40962: return "INVALID_ENUM: Invalid enum value"; case 40963: return "INVALID_VALUE: Invalid parameter value"; case 40964: return "INVALID_OPERATION: Illegal operation or call"; case 40965: return "OUT_OF_MEMORY: OpenAL has run out of memory"; default: return ""; } }; lime_media_openal_AL.getFloat = function(param) { return 0; }; lime_media_openal_AL.getFloatv = function(param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getInteger = function(param) { return 0; }; lime_media_openal_AL.getIntegerv = function(param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getListener3f = function(param) { return null; }; lime_media_openal_AL.getListener3i = function(param) { return null; }; lime_media_openal_AL.getListenerf = function(param) { return 0; }; lime_media_openal_AL.getListenerfv = function(param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getListeneri = function(param) { return 0; }; lime_media_openal_AL.getListeneriv = function(param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getParameter = function(param) { return null; }; lime_media_openal_AL.getProcAddress = function(fname) { return null; }; lime_media_openal_AL.getSource3f = function(source,param) { return null; }; lime_media_openal_AL.getSourcef = function(source,param) { return 0; }; lime_media_openal_AL.getSource3i = function(source,param) { return null; }; lime_media_openal_AL.getSourcefv = function(source,param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getSourcei = function(source,param) { return 0; }; lime_media_openal_AL.getSourceiv = function(source,param,count) { if(count == null) { count = 1; } return null; }; lime_media_openal_AL.getString = function(param) { return null; }; lime_media_openal_AL.isBuffer = function(buffer) { return false; }; lime_media_openal_AL.isEnabled = function(capability) { return false; }; lime_media_openal_AL.isExtensionPresent = function(extname) { return false; }; lime_media_openal_AL.isSource = function(source) { return false; }; lime_media_openal_AL.listener3f = function(param,value1,value2,value3) { }; lime_media_openal_AL.listener3i = function(param,value1,value2,value3) { }; lime_media_openal_AL.listenerf = function(param,value) { }; lime_media_openal_AL.listenerfv = function(param,values) { }; lime_media_openal_AL.listeneri = function(param,value) { }; lime_media_openal_AL.listeneriv = function(param,values) { }; lime_media_openal_AL.source3f = function(source,param,value1,value2,value3) { }; lime_media_openal_AL.source3i = function(source,param,value1,value2,value3) { }; lime_media_openal_AL.sourcef = function(source,param,value) { }; lime_media_openal_AL.sourcefv = function(source,param,values) { }; lime_media_openal_AL.sourcei = function(source,param,value) { }; lime_media_openal_AL.sourceiv = function(source,param,values) { }; lime_media_openal_AL.sourcePlay = function(source) { }; lime_media_openal_AL.sourcePlayv = function(sources) { }; lime_media_openal_AL.sourceStop = function(source) { }; lime_media_openal_AL.sourceStopv = function(sources) { }; lime_media_openal_AL.sourceRewind = function(source) { }; lime_media_openal_AL.sourceRewindv = function(sources) { }; lime_media_openal_AL.sourcePause = function(source) { }; lime_media_openal_AL.sourcePausev = function(sources) { }; lime_media_openal_AL.sourceQueueBuffer = function(source,buffer) { }; lime_media_openal_AL.sourceQueueBuffers = function(source,nb,buffers) { }; lime_media_openal_AL.sourceUnqueueBuffer = function(source) { return 0; }; lime_media_openal_AL.sourceUnqueueBuffers = function(source,nb) { return null; }; lime_media_openal_AL.speedOfSound = function(value) { }; var lime_media_openal__$ALBuffer_ALBuffer_$Impl_$ = {}; $hxClasses["lime.media.openal._ALBuffer.ALBuffer_Impl_"] = lime_media_openal__$ALBuffer_ALBuffer_$Impl_$; lime_media_openal__$ALBuffer_ALBuffer_$Impl_$.__name__ = ["lime","media","openal","_ALBuffer","ALBuffer_Impl_"]; lime_media_openal__$ALBuffer_ALBuffer_$Impl_$._new = function(handle) { var this1 = handle; return this1; }; var lime_media_openal_ALC = function() { }; $hxClasses["lime.media.openal.ALC"] = lime_media_openal_ALC; lime_media_openal_ALC.__name__ = ["lime","media","openal","ALC"]; lime_media_openal_ALC.closeDevice = function(device) { return false; }; lime_media_openal_ALC.createContext = function(device,attrlist) { return null; }; lime_media_openal_ALC.destroyContext = function(context) { }; lime_media_openal_ALC.getContextsDevice = function(context) { return null; }; lime_media_openal_ALC.getCurrentContext = function() { return null; }; lime_media_openal_ALC.getError = function(device) { return 0; }; lime_media_openal_ALC.getErrorString = function(device) { var _g = lime_media_openal_ALC.getError(device); switch(_g) { case 40961: return "INVALID_DEVICE: Invalid device (or no device?)"; case 40962: return "INVALID_CONTEXT: Invalid context (or no context?)"; case 40963: return "INVALID_ENUM: Invalid enum value"; case 40964: return "INVALID_VALUE: Invalid param value"; case 40965: return "OUT_OF_MEMORY: OpenAL has run out of memory"; default: return ""; } }; lime_media_openal_ALC.getIntegerv = function(device,param,size) { return null; }; lime_media_openal_ALC.getString = function(device,param) { return null; }; lime_media_openal_ALC.makeContextCurrent = function(context) { return false; }; lime_media_openal_ALC.openDevice = function(deviceName) { return null; }; lime_media_openal_ALC.pauseDevice = function(device) { }; lime_media_openal_ALC.processContext = function(context) { }; lime_media_openal_ALC.resumeDevice = function(device) { }; lime_media_openal_ALC.suspendContext = function(context) { }; var lime_media_openal__$ALContext_ALContext_$Impl_$ = {}; $hxClasses["lime.media.openal._ALContext.ALContext_Impl_"] = lime_media_openal__$ALContext_ALContext_$Impl_$; lime_media_openal__$ALContext_ALContext_$Impl_$.__name__ = ["lime","media","openal","_ALContext","ALContext_Impl_"]; lime_media_openal__$ALContext_ALContext_$Impl_$._new = function(handle) { var this1 = handle; return this1; }; var lime_media_openal__$ALDevice_ALDevice_$Impl_$ = {}; $hxClasses["lime.media.openal._ALDevice.ALDevice_Impl_"] = lime_media_openal__$ALDevice_ALDevice_$Impl_$; lime_media_openal__$ALDevice_ALDevice_$Impl_$.__name__ = ["lime","media","openal","_ALDevice","ALDevice_Impl_"]; lime_media_openal__$ALDevice_ALDevice_$Impl_$._new = function(handle) { var this1 = handle; return this1; }; var lime_media_openal__$ALSource_ALSource_$Impl_$ = {}; $hxClasses["lime.media.openal._ALSource.ALSource_Impl_"] = lime_media_openal__$ALSource_ALSource_$Impl_$; lime_media_openal__$ALSource_ALSource_$Impl_$.__name__ = ["lime","media","openal","_ALSource","ALSource_Impl_"]; lime_media_openal__$ALSource_ALSource_$Impl_$._new = function(handle) { var this1 = handle; return this1; }; var lime_net__$IHTTPRequest = function() { }; $hxClasses["lime.net._IHTTPRequest"] = lime_net__$IHTTPRequest; lime_net__$IHTTPRequest.__name__ = ["lime","net","_IHTTPRequest"]; lime_net__$IHTTPRequest.prototype = { contentType: null ,data: null ,enableResponseHeaders: null ,followRedirects: null ,formData: null ,headers: null ,method: null ,responseHeaders: null ,responseStatus: null ,timeout: null ,uri: null ,userAgent: null ,cancel: null ,__class__: lime_net__$IHTTPRequest }; var lime_net__$HTTPRequest_AbstractHTTPRequest = function(uri) { this.uri = uri; this.contentType = "application/x-www-form-urlencoded"; this.followRedirects = true; this.enableResponseHeaders = true; this.formData = new haxe_ds_StringMap(); this.headers = []; this.method = "GET"; this.timeout = 30000; this.backend = new lime__$backend_html5_HTML5HTTPRequest(); this.backend.init(this); }; $hxClasses["lime.net._HTTPRequest.AbstractHTTPRequest"] = lime_net__$HTTPRequest_AbstractHTTPRequest; lime_net__$HTTPRequest_AbstractHTTPRequest.__name__ = ["lime","net","_HTTPRequest","AbstractHTTPRequest"]; lime_net__$HTTPRequest_AbstractHTTPRequest.__interfaces__ = [lime_net__$IHTTPRequest]; lime_net__$HTTPRequest_AbstractHTTPRequest.prototype = { contentType: null ,data: null ,enableResponseHeaders: null ,followRedirects: null ,formData: null ,headers: null ,method: null ,responseData: null ,responseHeaders: null ,responseStatus: null ,timeout: null ,uri: null ,userAgent: null ,backend: null ,cancel: function() { this.backend.cancel(); } ,load: function(uri) { return null; } ,__class__: lime_net__$HTTPRequest_AbstractHTTPRequest }; var lime_net_HTTPRequest = function(uri) { lime_net__$HTTPRequest_AbstractHTTPRequest.call(this,uri); }; $hxClasses["lime.net.HTTPRequest"] = lime_net_HTTPRequest; lime_net_HTTPRequest.__name__ = ["lime","net","HTTPRequest"]; lime_net_HTTPRequest.__super__ = lime_net__$HTTPRequest_AbstractHTTPRequest; lime_net_HTTPRequest.prototype = $extend(lime_net__$HTTPRequest_AbstractHTTPRequest.prototype,{ __class__: lime_net_HTTPRequest }); var lime_net__$HTTPRequest_$Bytes = function(uri) { lime_net__$HTTPRequest_AbstractHTTPRequest.call(this,uri); }; $hxClasses["lime.net._HTTPRequest_Bytes"] = lime_net__$HTTPRequest_$Bytes; lime_net__$HTTPRequest_$Bytes.__name__ = ["lime","net","_HTTPRequest_Bytes"]; lime_net__$HTTPRequest_$Bytes.__super__ = lime_net__$HTTPRequest_AbstractHTTPRequest; lime_net__$HTTPRequest_$Bytes.prototype = $extend(lime_net__$HTTPRequest_AbstractHTTPRequest.prototype,{ fromBytes: function(bytes) { return bytes; } ,load: function(uri) { var _gthis = this; if(uri != null) { this.uri = uri; } var promise = new lime_app_Promise(); var future = this.backend.loadData(this.uri); future.onProgress($bind(promise,promise.progress)); future.onError($bind(promise,promise.error)); future.onComplete(function(bytes) { _gthis.responseData = _gthis.fromBytes(bytes); promise.complete(_gthis.responseData); }); return promise.future; } ,__class__: lime_net__$HTTPRequest_$Bytes }); var lime_net__$HTTPRequest_$String = function(uri) { lime_net__$HTTPRequest_AbstractHTTPRequest.call(this,uri); }; $hxClasses["lime.net._HTTPRequest_String"] = lime_net__$HTTPRequest_$String; lime_net__$HTTPRequest_$String.__name__ = ["lime","net","_HTTPRequest_String"]; lime_net__$HTTPRequest_$String.__super__ = lime_net__$HTTPRequest_AbstractHTTPRequest; lime_net__$HTTPRequest_$String.prototype = $extend(lime_net__$HTTPRequest_AbstractHTTPRequest.prototype,{ load: function(uri) { var _gthis = this; if(uri != null) { this.uri = uri; } var promise = new lime_app_Promise(); var future = this.backend.loadText(this.uri); future.onProgress($bind(promise,promise.progress)); future.onError($bind(promise,promise.error)); future.onComplete(function(text) { _gthis.responseData = text; promise.complete(_gthis.responseData); }); return promise.future; } ,__class__: lime_net__$HTTPRequest_$String }); var lime_net_HTTPRequestHeader = function(name,value) { if(value == null) { value = ""; } this.name = name; this.value = value; }; $hxClasses["lime.net.HTTPRequestHeader"] = lime_net_HTTPRequestHeader; lime_net_HTTPRequestHeader.__name__ = ["lime","net","HTTPRequestHeader"]; lime_net_HTTPRequestHeader.prototype = { name: null ,value: null ,__class__: lime_net_HTTPRequestHeader }; var lime_net__$HTTPRequest_$lime_$text_$Font = function(uri) { lime_net__$HTTPRequest_$Bytes.call(this,uri); }; $hxClasses["lime.net._HTTPRequest_lime_text_Font"] = lime_net__$HTTPRequest_$lime_$text_$Font; lime_net__$HTTPRequest_$lime_$text_$Font.__name__ = ["lime","net","_HTTPRequest_lime_text_Font"]; lime_net__$HTTPRequest_$lime_$text_$Font.__super__ = lime_net__$HTTPRequest_$Bytes; lime_net__$HTTPRequest_$lime_$text_$Font.prototype = $extend(lime_net__$HTTPRequest_$Bytes.prototype,{ fromBytes: function(bytes) { return lime_text_Font.fromBytes(bytes); } ,__class__: lime_net__$HTTPRequest_$lime_$text_$Font }); var lime_net__$HTTPRequest_$lime_$utils_$Bytes = function(uri) { lime_net__$HTTPRequest_$Bytes.call(this,uri); }; $hxClasses["lime.net._HTTPRequest_lime_utils_Bytes"] = lime_net__$HTTPRequest_$lime_$utils_$Bytes; lime_net__$HTTPRequest_$lime_$utils_$Bytes.__name__ = ["lime","net","_HTTPRequest_lime_utils_Bytes"]; lime_net__$HTTPRequest_$lime_$utils_$Bytes.__super__ = lime_net__$HTTPRequest_$Bytes; lime_net__$HTTPRequest_$lime_$utils_$Bytes.prototype = $extend(lime_net__$HTTPRequest_$Bytes.prototype,{ fromBytes: function(bytes) { return lime_utils__$Bytes_Bytes_$Impl_$.fromBytes(bytes); } ,__class__: lime_net__$HTTPRequest_$lime_$utils_$Bytes }); var lime_net__$HTTPRequest_$openfl_$utils_$ByteArray = function(uri) { lime_net__$HTTPRequest_$Bytes.call(this,uri); }; $hxClasses["lime.net._HTTPRequest_openfl_utils_ByteArray"] = lime_net__$HTTPRequest_$openfl_$utils_$ByteArray; lime_net__$HTTPRequest_$openfl_$utils_$ByteArray.__name__ = ["lime","net","_HTTPRequest_openfl_utils_ByteArray"]; lime_net__$HTTPRequest_$openfl_$utils_$ByteArray.__super__ = lime_net__$HTTPRequest_$Bytes; lime_net__$HTTPRequest_$openfl_$utils_$ByteArray.prototype = $extend(lime_net__$HTTPRequest_$Bytes.prototype,{ fromBytes: function(bytes) { return openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(bytes); } ,__class__: lime_net__$HTTPRequest_$openfl_$utils_$ByteArray }); var lime_system_CFFI = function() { }; $hxClasses["lime.system.CFFI"] = lime_system_CFFI; lime_system_CFFI.__name__ = ["lime","system","CFFI"]; lime_system_CFFI.load = function(library,method,args,lazy) { if(lazy == null) { lazy = false; } if(args == null) { args = 0; } if(!lime_system_CFFI.enabled) { return Reflect.makeVarArgs(function(__) { return { }; }); } var result = null; return result; }; lime_system_CFFI.__findHaxelib = function(library) { return ""; }; lime_system_CFFI.__loaderTrace = function(message) { }; lime_system_CFFI.__sysName = function() { return null; }; lime_system_CFFI.__tryLoad = function(name,library,func,args) { return null; }; var lime_system__$CFFIPointer_CFFIPointer_$Impl_$ = {}; $hxClasses["lime.system._CFFIPointer.CFFIPointer_Impl_"] = lime_system__$CFFIPointer_CFFIPointer_$Impl_$; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.__name__ = ["lime","system","_CFFIPointer","CFFIPointer_Impl_"]; lime_system__$CFFIPointer_CFFIPointer_$Impl_$._new = function(handle) { var this1 = handle; return this1; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get = function(this1) { var tmp = this1 != null; return 0; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.equals = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) == b; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.equalsPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) == lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.greaterThan = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) > b; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.greaterThanPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) > lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.greaterThanOrEqual = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) >= b; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.greaterThanOrEqualPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) >= lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.lessThan = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) < b; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.lessThanPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) < lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.lessThanOrEqual = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) <= b; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.lessThanOrEqualPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) <= lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.notEquals = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) != b; }; lime_system__$CFFIPointer_CFFIPointer_$Impl_$.notEqualsPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) != lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; var lime_system_Clipboard = function() { }; $hxClasses["lime.system.Clipboard"] = lime_system_Clipboard; lime_system_Clipboard.__name__ = ["lime","system","Clipboard"]; lime_system_Clipboard.__properties__ = {set_text:"set_text",get_text:"get_text"}; lime_system_Clipboard.__update = function() { var cacheText = lime_system_Clipboard._text; if(lime_system_Clipboard._text != cacheText) { lime_system_Clipboard.onUpdate.dispatch(); } }; lime_system_Clipboard.get_text = function() { return lime_system_Clipboard._text; }; lime_system_Clipboard.set_text = function(value) { var cacheText = lime_system_Clipboard._text; lime_system_Clipboard._text = value; var $window = lime_app_Application.current.__windows[0]; if($window != null) { $window.backend.setClipboard(value); } if(lime_system_Clipboard._text != cacheText) { lime_system_Clipboard.onUpdate.dispatch(); } return value; }; var lime_system_Display = function() { }; $hxClasses["lime.system.Display"] = lime_system_Display; lime_system_Display.__name__ = ["lime","system","Display"]; lime_system_Display.prototype = { bounds: null ,currentMode: null ,id: null ,dpi: null ,name: null ,supportedModes: null ,__class__: lime_system_Display }; var lime_system_DisplayMode = function(width,height,refreshRate,pixelFormat) { this.width = width; this.height = height; this.refreshRate = refreshRate; this.pixelFormat = pixelFormat; }; $hxClasses["lime.system.DisplayMode"] = lime_system_DisplayMode; lime_system_DisplayMode.__name__ = ["lime","system","DisplayMode"]; lime_system_DisplayMode.prototype = { height: null ,pixelFormat: null ,refreshRate: null ,width: null ,__class__: lime_system_DisplayMode }; var lime_system_Endian = $hxClasses["lime.system.Endian"] = { __ename__ : ["lime","system","Endian"], __constructs__ : ["LITTLE_ENDIAN","BIG_ENDIAN"] }; lime_system_Endian.LITTLE_ENDIAN = ["LITTLE_ENDIAN",0]; lime_system_Endian.LITTLE_ENDIAN.toString = $estr; lime_system_Endian.LITTLE_ENDIAN.__enum__ = lime_system_Endian; lime_system_Endian.BIG_ENDIAN = ["BIG_ENDIAN",1]; lime_system_Endian.BIG_ENDIAN.toString = $estr; lime_system_Endian.BIG_ENDIAN.__enum__ = lime_system_Endian; lime_system_Endian.__empty_constructs__ = [lime_system_Endian.LITTLE_ENDIAN,lime_system_Endian.BIG_ENDIAN]; var lime_system_JNI = function() { }; $hxClasses["lime.system.JNI"] = lime_system_JNI; lime_system_JNI.__name__ = ["lime","system","JNI"]; lime_system_JNI.callMember = function(method,jobject,a) { var _g = a.length; switch(_g) { case 0: return method(jobject); case 1: return method(jobject,a[0]); case 2: return method(jobject,a[0],a[1]); case 3: return method(jobject,a[0],a[1],a[2]); case 4: return method(jobject,a[0],a[1],a[2],a[3]); case 5: return method(jobject,a[0],a[1],a[2],a[3],a[4]); case 6: return method(jobject,a[0],a[1],a[2],a[3],a[4],a[5]); case 7: return method(jobject,a[0],a[1],a[2],a[3],a[4],a[5],a[6]); default: return null; } }; lime_system_JNI.callStatic = function(method,a) { var _g = a.length; switch(_g) { case 0: return method(); case 1: return method(a[0]); case 2: return method(a[0],a[1]); case 3: return method(a[0],a[1],a[2]); case 4: return method(a[0],a[1],a[2],a[3]); case 5: return method(a[0],a[1],a[2],a[3],a[4]); case 6: return method(a[0],a[1],a[2],a[3],a[4],a[5]); case 7: return method(a[0],a[1],a[2],a[3],a[4],a[5],a[6]); default: return null; } }; lime_system_JNI.createMemberField = function(className,memberName,signature) { lime_system_JNI.init(); return null; }; lime_system_JNI.createMemberMethod = function(className,memberName,signature,useArray,quietFail) { if(quietFail == null) { quietFail = false; } if(useArray == null) { useArray = false; } lime_system_JNI.init(); return null; }; lime_system_JNI.createStaticField = function(className,memberName,signature) { lime_system_JNI.init(); return null; }; lime_system_JNI.createStaticMethod = function(className,memberName,signature,useArray,quietFail) { if(quietFail == null) { quietFail = false; } if(useArray == null) { useArray = false; } lime_system_JNI.init(); return null; }; lime_system_JNI.getEnv = function() { lime_system_JNI.init(); return null; }; lime_system_JNI.init = function() { if(!lime_system_JNI.initialized) { lime_system_JNI.initialized = true; } }; lime_system_JNI.onCallback = function(object,method,args) { var field = Reflect.field(object,method); if(field != null) { return field.apply(object,args); } haxe_Log.trace("onCallback - unknown field " + Std.string(method),{ fileName : "JNI.hx", lineNumber : 182, className : "lime.system.JNI", methodName : "onCallback"}); return null; }; lime_system_JNI.postUICallback = function(callback) { callback(); }; var lime_system_JNIMemberField = function(field) { this.field = field; }; $hxClasses["lime.system.JNIMemberField"] = lime_system_JNIMemberField; lime_system_JNIMemberField.__name__ = ["lime","system","JNIMemberField"]; lime_system_JNIMemberField.prototype = { field: null ,get: function(jobject) { return null; } ,set: function(jobject,value) { return value; } ,__class__: lime_system_JNIMemberField }; var lime_system_JNIStaticField = function(field) { this.field = field; }; $hxClasses["lime.system.JNIStaticField"] = lime_system_JNIStaticField; lime_system_JNIStaticField.__name__ = ["lime","system","JNIStaticField"]; lime_system_JNIStaticField.prototype = { field: null ,get: function() { return null; } ,set: function(value) { return value; } ,__class__: lime_system_JNIStaticField }; var lime_system_JNIMethod = function(method) { this.method = method; }; $hxClasses["lime.system.JNIMethod"] = lime_system_JNIMethod; lime_system_JNIMethod.__name__ = ["lime","system","JNIMethod"]; lime_system_JNIMethod.prototype = { method: null ,callMember: function(args) { return null; } ,callStatic: function(args) { return null; } ,getMemberMethod: function(useArray) { if(useArray) { return $bind(this,this.callMember); } else { return Reflect.makeVarArgs($bind(this,this.callMember)); } } ,getStaticMethod: function(useArray) { if(useArray) { return $bind(this,this.callStatic); } else { return Reflect.makeVarArgs($bind(this,this.callStatic)); } } ,__class__: lime_system_JNIMethod }; var lime_system__$Locale_Locale_$Impl_$ = {}; $hxClasses["lime.system._Locale.Locale_Impl_"] = lime_system__$Locale_Locale_$Impl_$; lime_system__$Locale_Locale_$Impl_$.__name__ = ["lime","system","_Locale","Locale_Impl_"]; lime_system__$Locale_Locale_$Impl_$.__properties__ = {get_region:"get_region",get_language:"get_language",get_systemLocale:"get_systemLocale",set_currentLocale:"set_currentLocale",get_currentLocale:"get_currentLocale"}; lime_system__$Locale_Locale_$Impl_$._new = function(value) { var this1 = value; return this1; }; lime_system__$Locale_Locale_$Impl_$.equals = function(a,b) { var language = lime_system__$Locale_Locale_$Impl_$.get_language(a); var region = lime_system__$Locale_Locale_$Impl_$.get_region(a); var language2 = lime_system__$Locale_Locale_$Impl_$.get_language(b); var region2 = lime_system__$Locale_Locale_$Impl_$.get_region(b); var languageMatch = language == language2; var regionMatch = region == region2; if(!languageMatch && language != null && language2 != null) { languageMatch = language.toLowerCase() == language2.toLowerCase(); } if(!regionMatch && region != null && region2 != null) { regionMatch = region.toLowerCase() == region2.toLowerCase(); } if(languageMatch) { return regionMatch; } else { return false; } }; lime_system__$Locale_Locale_$Impl_$.__init = function() { if(lime_system__$Locale_Locale_$Impl_$.__systemLocale == null) { var locale = null; locale = navigator.language; if(locale != null) { lime_system__$Locale_Locale_$Impl_$.__systemLocale = locale; } else { lime_system__$Locale_Locale_$Impl_$.__systemLocale = "en-US"; } lime_system__$Locale_Locale_$Impl_$.set_currentLocale(lime_system__$Locale_Locale_$Impl_$.__systemLocale); } }; lime_system__$Locale_Locale_$Impl_$.get_language = function(this1) { if(this1 != null) { var index = this1.indexOf("_"); if(index > -1) { return this1.substring(0,index); } index = this1.indexOf("-"); if(index > -1) { return this1.substring(0,index); } } return this1; }; lime_system__$Locale_Locale_$Impl_$.get_region = function(this1) { if(this1 != null) { var underscoreIndex = this1.indexOf("_"); var dotIndex = this1.indexOf("."); var dashIndex = this1.indexOf("-"); if(underscoreIndex > -1) { if(dotIndex > -1) { return this1.substring(underscoreIndex + 1,dotIndex); } else { return this1.substring(underscoreIndex + 1); } } else if(dashIndex > -1) { if(dotIndex > -1) { return this1.substring(dashIndex + 1,dotIndex); } else { return this1.substring(dashIndex + 1); } } } return null; }; lime_system__$Locale_Locale_$Impl_$.get_currentLocale = function() { lime_system__$Locale_Locale_$Impl_$.__init(); return lime_system__$Locale_Locale_$Impl_$.currentLocale; }; lime_system__$Locale_Locale_$Impl_$.set_currentLocale = function(value) { lime_system__$Locale_Locale_$Impl_$.__init(); return lime_system__$Locale_Locale_$Impl_$.currentLocale = value; }; lime_system__$Locale_Locale_$Impl_$.get_systemLocale = function() { lime_system__$Locale_Locale_$Impl_$.__init(); return lime_system__$Locale_Locale_$Impl_$.__systemLocale; }; var lime_system_System = function() { }; $hxClasses["lime.system.System"] = lime_system_System; lime_system_System.__name__ = ["lime","system","System"]; lime_system_System.__properties__ = {get_userDirectory:"get_userDirectory",get_numDisplays:"get_numDisplays",get_fontsDirectory:"get_fontsDirectory",get_endianness:"get_endianness",get_documentsDirectory:"get_documentsDirectory",get_desktopDirectory:"get_desktopDirectory",get_applicationStorageDirectory:"get_applicationStorageDirectory",get_applicationDirectory:"get_applicationDirectory",set_allowScreenTimeout:"set_allowScreenTimeout",get_allowScreenTimeout:"get_allowScreenTimeout"}; lime_system_System.embed = $hx_exports["lime"]["embed"] = function(projectName,element,width,height,windowConfig) { if(lime_system_System.__applicationEntryPoint == null || lime_system_System.__applicationConfig == null) { return; } var _this = lime_system_System.__applicationEntryPoint; if(__map_reserved[projectName] != null ? _this.existsReserved(projectName) : _this.h.hasOwnProperty(projectName)) { var htmlElement = null; if(typeof(element) == "string") { htmlElement = window.document.getElementById(element); } else if(element == null) { htmlElement = window.document.createElement("div"); } else { htmlElement = element; } if(htmlElement == null) { window.console.log("[lime.embed] ERROR: Cannot find target element: " + Std.string(element)); return; } if(width == null) { width = 0; } if(height == null) { height = 0; } var _this1 = lime_system_System.__applicationConfig; var defaultConfig = __map_reserved[projectName] != null ? _this1.getReserved(projectName) : _this1.h[projectName]; var config = { }; lime_system_System.__copyMissingFields(config,defaultConfig); if(windowConfig != null) { config.windows = []; if((windowConfig instanceof Array) && windowConfig.__enum__ == null) { config.windows = windowConfig; } else { config.windows[0] = windowConfig; } var _g1 = 0; var _g = config.windows.length; while(_g1 < _g) { var i = _g1++; if(i < defaultConfig.windows.length) { lime_system_System.__copyMissingFields(config.windows[i],defaultConfig.windows[i]); } lime_system_System.__copyMissingFields(config.windows[i].parameters,defaultConfig.windows[i].parameters); if(typeof(windowConfig.background) == "string") { var background = StringTools.replace(Std.string(windowConfig.background),"#",""); if(background.indexOf("0x") > -1) { windowConfig.background = Std.parseInt(background); } else { windowConfig.background = Std.parseInt("0x" + background); } } } } if(Reflect.field(config.windows[0],"rootPath")) { config.rootPath = Reflect.field(config.windows[0],"rootPath"); Reflect.deleteField(config.windows[0],"rootPath"); } config.windows[0].element = htmlElement; config.windows[0].width = width; config.windows[0].height = height; var _this2 = lime_system_System.__applicationEntryPoint; (__map_reserved[projectName] != null ? _this2.getReserved(projectName) : _this2.h[projectName])(config); } }; lime_system_System.exit = function(code) { }; lime_system_System.getDisplay = function(id) { if(id == 0) { var display = new lime_system_Display(); display.id = 0; display.name = "Generic Display"; display.dpi = 96 * window.devicePixelRatio; display.currentMode = new lime_system_DisplayMode(window.screen.width,window.screen.height,60,1); display.supportedModes = [display.currentMode]; display.bounds = new lime_math_Rectangle(0,0,display.currentMode.width,display.currentMode.height); return display; } return null; }; lime_system_System.getTimer = function() { return window.performance.now() | 0; }; lime_system_System.load = function(library,method,args,lazy) { if(lazy == null) { lazy = false; } if(args == null) { args = 0; } return lime_system_CFFI.load(library,method,args,lazy); }; lime_system_System.openFile = function(path) { if(path != null) { window.open(path,"_blank"); } }; lime_system_System.openURL = function(url,target) { if(target == null) { target = "_blank"; } if(url != null) { window.open(url,target); } }; lime_system_System.__copyMissingFields = function(target,source) { if(source == null || target == null) { return; } var _g = 0; var _g1 = Reflect.fields(source); while(_g < _g1.length) { var field = _g1[_g]; ++_g; if(!Object.prototype.hasOwnProperty.call(target,field)) { target[field] = Reflect.field(source,field); } } }; lime_system_System.__getDirectory = function(type) { return null; }; lime_system_System.__registerEntryPoint = function(projectName,entryPoint,config) { if(lime_system_System.__applicationConfig == null) { lime_system_System.__applicationConfig = new haxe_ds_StringMap(); } if(lime_system_System.__applicationEntryPoint == null) { lime_system_System.__applicationEntryPoint = new haxe_ds_StringMap(); } var _this = lime_system_System.__applicationEntryPoint; if(__map_reserved[projectName] != null) { _this.setReserved(projectName,entryPoint); } else { _this.h[projectName] = entryPoint; } var _this1 = lime_system_System.__applicationConfig; if(__map_reserved[projectName] != null) { _this1.setReserved(projectName,config); } else { _this1.h[projectName] = config; } }; lime_system_System.get_allowScreenTimeout = function() { return true; }; lime_system_System.set_allowScreenTimeout = function(value) { return true; }; lime_system_System.get_applicationDirectory = function() { return lime_system_System.__getDirectory(0); }; lime_system_System.get_applicationStorageDirectory = function() { return lime_system_System.__getDirectory(1); }; lime_system_System.get_desktopDirectory = function() { return lime_system_System.__getDirectory(2); }; lime_system_System.get_documentsDirectory = function() { return lime_system_System.__getDirectory(3); }; lime_system_System.get_fontsDirectory = function() { return lime_system_System.__getDirectory(4); }; lime_system_System.get_numDisplays = function() { return 1; }; lime_system_System.get_userDirectory = function() { return lime_system_System.__getDirectory(5); }; lime_system_System.get_endianness = function() { if(lime_system_System.endianness == null) { var arrayBuffer = new ArrayBuffer(2); var this1; if(arrayBuffer != null) { this1 = new Uint8Array(arrayBuffer,0); } else { this1 = null; } var uint8Array = this1; var this2; if(arrayBuffer != null) { this2 = new Uint16Array(arrayBuffer,0); } else { this2 = null; } var uint16array = this2; uint8Array[0] = 170; uint8Array[1] = 187; if(uint16array[0] == 43707) { lime_system_System.endianness = lime_system_Endian.BIG_ENDIAN; } else { lime_system_System.endianness = lime_system_Endian.LITTLE_ENDIAN; } } return lime_system_System.endianness; }; var lime_system_ThreadPool = function(minThreads,maxThreads) { if(maxThreads == null) { maxThreads = 1; } if(minThreads == null) { minThreads = 0; } this.onRun = new lime_app__$Event_$haxe_$Function_$Void(); this.onProgress = new lime_app__$Event_$haxe_$Function_$Void(); this.onError = new lime_app__$Event_$haxe_$Function_$Void(); this.onComplete = new lime_app__$Event_$haxe_$Function_$Void(); this.doWork = new lime_app__$Event_$haxe_$Function_$Void(); this.minThreads = minThreads; this.maxThreads = maxThreads; this.currentThreads = 0; }; $hxClasses["lime.system.ThreadPool"] = lime_system_ThreadPool; lime_system_ThreadPool.__name__ = ["lime","system","ThreadPool"]; lime_system_ThreadPool.prototype = { currentThreads: null ,doWork: null ,maxThreads: null ,minThreads: null ,onComplete: null ,onError: null ,onProgress: null ,onRun: null ,queue: function(state) { this.runWork(state); } ,sendComplete: function(state) { this.onComplete.dispatch(state); } ,sendError: function(state) { this.onError.dispatch(state); } ,sendProgress: function(state) { this.onProgress.dispatch(state); } ,runWork: function(state) { this.onRun.dispatch(state); this.doWork.dispatch(state); } ,__class__: lime_system_ThreadPool }; var lime_system__$ThreadPool_ThreadPoolMessageType = $hxClasses["lime.system._ThreadPool.ThreadPoolMessageType"] = { __ename__ : ["lime","system","_ThreadPool","ThreadPoolMessageType"], __constructs__ : ["COMPLETE","ERROR","EXIT","PROGRESS","WORK"] }; lime_system__$ThreadPool_ThreadPoolMessageType.COMPLETE = ["COMPLETE",0]; lime_system__$ThreadPool_ThreadPoolMessageType.COMPLETE.toString = $estr; lime_system__$ThreadPool_ThreadPoolMessageType.COMPLETE.__enum__ = lime_system__$ThreadPool_ThreadPoolMessageType; lime_system__$ThreadPool_ThreadPoolMessageType.ERROR = ["ERROR",1]; lime_system__$ThreadPool_ThreadPoolMessageType.ERROR.toString = $estr; lime_system__$ThreadPool_ThreadPoolMessageType.ERROR.__enum__ = lime_system__$ThreadPool_ThreadPoolMessageType; lime_system__$ThreadPool_ThreadPoolMessageType.EXIT = ["EXIT",2]; lime_system__$ThreadPool_ThreadPoolMessageType.EXIT.toString = $estr; lime_system__$ThreadPool_ThreadPoolMessageType.EXIT.__enum__ = lime_system__$ThreadPool_ThreadPoolMessageType; lime_system__$ThreadPool_ThreadPoolMessageType.PROGRESS = ["PROGRESS",3]; lime_system__$ThreadPool_ThreadPoolMessageType.PROGRESS.toString = $estr; lime_system__$ThreadPool_ThreadPoolMessageType.PROGRESS.__enum__ = lime_system__$ThreadPool_ThreadPoolMessageType; lime_system__$ThreadPool_ThreadPoolMessageType.WORK = ["WORK",4]; lime_system__$ThreadPool_ThreadPoolMessageType.WORK.toString = $estr; lime_system__$ThreadPool_ThreadPoolMessageType.WORK.__enum__ = lime_system__$ThreadPool_ThreadPoolMessageType; lime_system__$ThreadPool_ThreadPoolMessageType.__empty_constructs__ = [lime_system__$ThreadPool_ThreadPoolMessageType.COMPLETE,lime_system__$ThreadPool_ThreadPoolMessageType.ERROR,lime_system__$ThreadPool_ThreadPoolMessageType.EXIT,lime_system__$ThreadPool_ThreadPoolMessageType.PROGRESS,lime_system__$ThreadPool_ThreadPoolMessageType.WORK]; var lime_system__$ThreadPool_ThreadPoolMessage = function(type,state) { this.type = type; this.state = state; }; $hxClasses["lime.system._ThreadPool.ThreadPoolMessage"] = lime_system__$ThreadPool_ThreadPoolMessage; lime_system__$ThreadPool_ThreadPoolMessage.__name__ = ["lime","system","_ThreadPool","ThreadPoolMessage"]; lime_system__$ThreadPool_ThreadPoolMessage.prototype = { state: null ,type: null ,__class__: lime_system__$ThreadPool_ThreadPoolMessage }; var lime_text__$Glyph_Glyph_$Impl_$ = {}; $hxClasses["lime.text._Glyph.Glyph_Impl_"] = lime_text__$Glyph_Glyph_$Impl_$; lime_text__$Glyph_Glyph_$Impl_$.__name__ = ["lime","text","_Glyph","Glyph_Impl_"]; lime_text__$Glyph_Glyph_$Impl_$._new = function(i) { var this1 = i; return this1; }; var lime_text_GlyphMetrics = function() { }; $hxClasses["lime.text.GlyphMetrics"] = lime_text_GlyphMetrics; lime_text_GlyphMetrics.__name__ = ["lime","text","GlyphMetrics"]; lime_text_GlyphMetrics.prototype = { advance: null ,height: null ,horizontalBearing: null ,verticalBearing: null ,__class__: lime_text_GlyphMetrics }; var lime_text_GlyphPosition = function(glyph,advance,offset) { this.glyph = glyph; this.advance = advance; if(offset != null) { this.offset = offset; } else { this.offset = new lime_math_Vector2(); } }; $hxClasses["lime.text.GlyphPosition"] = lime_text_GlyphPosition; lime_text_GlyphPosition.__name__ = ["lime","text","GlyphPosition"]; lime_text_GlyphPosition.prototype = { advance: null ,glyph: null ,offset: null ,__class__: lime_text_GlyphPosition }; var lime_text__$TextDirection_TextDirection_$Impl_$ = {}; $hxClasses["lime.text._TextDirection.TextDirection_Impl_"] = lime_text__$TextDirection_TextDirection_$Impl_$; lime_text__$TextDirection_TextDirection_$Impl_$.__name__ = ["lime","text","_TextDirection","TextDirection_Impl_"]; lime_text__$TextDirection_TextDirection_$Impl_$.__properties__ = {get_vertical:"get_vertical",get_horizontal:"get_horizontal",get_forward:"get_forward",get_backward:"get_backward"}; lime_text__$TextDirection_TextDirection_$Impl_$.reverse = function(this1) { this1 ^= 1; }; lime_text__$TextDirection_TextDirection_$Impl_$.toString = function(this1) { switch(this1) { case 4: return "leftToRight"; case 5: return "rightToLeft"; case 6: return "topToBottom"; case 7: return "bottomToTop"; default: return ""; } }; lime_text__$TextDirection_TextDirection_$Impl_$.get_backward = function(this1) { return (this1 & -3) == 5; }; lime_text__$TextDirection_TextDirection_$Impl_$.get_forward = function(this1) { return (this1 & -3) == 4; }; lime_text__$TextDirection_TextDirection_$Impl_$.get_horizontal = function(this1) { return (this1 & -2) == 4; }; lime_text__$TextDirection_TextDirection_$Impl_$.get_vertical = function(this1) { return (this1 & -2) == 6; }; var lime_text_TextLayout = function(text,font,size,direction,script,language) { if(language == null) { language = "en"; } if(script == null) { script = "Zyyy"; } if(direction == null) { direction = 4; } if(size == null) { size = 12; } if(text == null) { text = ""; } this.set_text(text); this.set_font(font); this.set_size(size); this.__direction = direction; this.__script = script; this.__language = language; this.positions = []; this.__dirty = true; }; $hxClasses["lime.text.TextLayout"] = lime_text_TextLayout; lime_text_TextLayout.__name__ = ["lime","text","TextLayout"]; lime_text_TextLayout.prototype = { font: null ,glyphs: null ,positions: null ,size: null ,text: null ,__dirty: null ,__buffer: null ,__direction: null ,__handle: null ,__language: null ,__script: null ,__position: function() { this.positions = []; } ,get_positions: function() { if(this.__dirty) { this.__dirty = false; this.__position(); } return this.positions; } ,get_direction: function() { return this.__direction; } ,set_direction: function(value) { if(value == this.__direction) { return value; } this.__direction = value; this.__dirty = true; return value; } ,set_font: function(value) { if(value == this.font) { return value; } this.font = value; this.__dirty = true; return value; } ,get_glyphs: function() { var glyphs = []; var _g = 0; var _g1 = this.get_positions(); while(_g < _g1.length) { var position = _g1[_g]; ++_g; glyphs.push(position.glyph); } return glyphs; } ,get_language: function() { return this.__language; } ,set_language: function(value) { if(value == this.__language) { return value; } this.__language = value; this.__dirty = true; return value; } ,get_script: function() { return this.__script; } ,set_script: function(value) { if(value == this.__script) { return value; } this.__script = value; this.__dirty = true; return value; } ,set_size: function(value) { if(value == this.size) { return value; } this.size = value; this.__dirty = true; return value; } ,set_text: function(value) { if(value == this.text) { return value; } this.text = value; this.__dirty = true; return value; } ,__class__: lime_text_TextLayout ,__properties__: {set_text:"set_text",set_size:"set_size",set_script:"set_script",get_script:"get_script",get_positions:"get_positions",set_language:"set_language",get_language:"get_language",get_glyphs:"get_glyphs",set_font:"set_font",set_direction:"set_direction",get_direction:"get_direction"} }; var lime_text__$TextScript_TextScript_$Impl_$ = {}; $hxClasses["lime.text._TextScript.TextScript_Impl_"] = lime_text__$TextScript_TextScript_$Impl_$; lime_text__$TextScript_TextScript_$Impl_$.__name__ = ["lime","text","_TextScript","TextScript_Impl_"]; lime_text__$TextScript_TextScript_$Impl_$.__properties__ = {get_rightToLeft:"get_rightToLeft"}; lime_text__$TextScript_TextScript_$Impl_$.get_rightToLeft = function(this1) { switch(this1) { case "Arab":case "Armi":case "Avst":case "Cprt":case "Hebr":case "Khar":case "Lydi":case "Mand":case "Nkoo":case "Orkh":case "Phli":case "Phlp":case "Phnx":case "Samr":case "Sarb":case "Syrc":case "Thaa": return true; default: return false; } }; var lime_text__$UTF8String_UTF8String_$Impl_$ = {}; $hxClasses["lime.text._UTF8String.UTF8String_Impl_"] = lime_text__$UTF8String_UTF8String_$Impl_$; lime_text__$UTF8String_UTF8String_$Impl_$.__name__ = ["lime","text","_UTF8String","UTF8String_Impl_"]; lime_text__$UTF8String_UTF8String_$Impl_$.__properties__ = {get_length:"get_length"}; lime_text__$UTF8String_UTF8String_$Impl_$._new = function(str) { var this1 = new String(str); return this1; }; lime_text__$UTF8String_UTF8String_$Impl_$.charAt = function(this1,index) { var this2 = this1; var this3 = this2; var this4 = this3; var i; if(index >= 0) { var index1 = 0; var len = this4.length; var i1 = 0; while(i1 < index && index1 < len) { var c = this4.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i1; } i = index1; } else { var index2 = 0; var count = 0; while(count < -index && 0 < index2) { var c1 = this4.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } i = index2; } var this5 = this1; var this6 = this5; var this7 = this6; var c2 = this7.charCodeAt(i); var this8 = HxOverrides.substr(this7,i,!(55296 <= c2 && c2 <= 56319) ? 1 : 2); var this9 = this8; return this9; }; lime_text__$UTF8String_UTF8String_$Impl_$.charCodeAt = function(this1,index) { var tmp; if(index >= 0) { var this2 = this1; var this3 = this2; tmp = index >= lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount(this3,0,this1.length); } else { tmp = true; } if(tmp) { return null; } var this4 = this1; var this5 = this4; var this6 = this5; var i; if(index >= 0) { var index1 = 0; var len = this6.length; var i1 = 0; while(i1 < index && index1 < len) { var c = this6.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i1; } i = index1; } else { var index2 = 0; var count = 0; while(count < -index && 0 < index2) { var c1 = this6.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } i = index2; } var this7 = this1; var this8 = this7; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt(this8,i); }; lime_text__$UTF8String_UTF8String_$Impl_$.fromCharCode = function(code) { if(!(0 <= code && code <= 1114111 && !(55296 <= code && code <= 56319) && !(56320 <= code && code <= 57343))) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodePoint(code)); } var this1 = code; var this2 = this1; var this3; if(this2 <= 65535) { var this4 = String.fromCharCode(this2); var this5 = this4; this3 = this5; } else { var this6 = String.fromCharCode((this2 >> 10) + 55232) + String.fromCharCode(this2 & 1023 | 56320); var this7 = this6; this3 = this7; } return this3; }; lime_text__$UTF8String_UTF8String_$Impl_$.fromCharCodes = function(codes) { var s = ""; var _g = 0; while(_g < codes.length) { var code = codes[_g]; ++_g; if(!(0 <= code && code <= 1114111 && !(55296 <= code && code <= 56319) && !(56320 <= code && code <= 57343))) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodePoint(code)); } var this1 = code; var b = this1; var this2; if(b <= 65535) { var this3 = String.fromCharCode(b); var this4 = this3; this2 = this4; } else { var this5 = String.fromCharCode((b >> 10) + 55232) + String.fromCharCode(b & 1023 | 56320); var this6 = this5; this2 = this6; } s += this2; } return s; }; lime_text__$UTF8String_UTF8String_$Impl_$.indexOf = function(this1,str,startIndex) { if(startIndex == null) { startIndex = 0; } var this2 = this1; var this3 = this2; var this4 = this3; var index; if(startIndex >= 0) { var index1 = 0; var len = this4.length; var i = 0; while(i < startIndex && index1 < len) { var c = this4.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } index = index1; } else { var index2 = 0; var count = 0; while(count < -startIndex && 0 < index2) { var c1 = this4.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } index = index2; } var index3 = this1.indexOf(str,index); if(index3 >= 0) { var this5 = this1; var this6 = this5; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount(this6,0,index3); } else { return -1; } }; lime_text__$UTF8String_UTF8String_$Impl_$.lastIndexOf = function(this1,str,startIndex) { var startIndex1 = startIndex; if(startIndex1 == null) { startIndex1 = this1.length - 1; } var this2 = this1; var this3 = this2; var this4 = this3; var index; if(startIndex1 >= 0) { var index1 = 0; var len = this4.length; var i = 0; while(i < startIndex1 && index1 < len) { var c = this4.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } index = index1; } else { var index2 = 0; var count = 0; while(count < -startIndex1 && 0 < index2) { var c1 = this4.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } index = index2; } var index3 = this1.lastIndexOf(str,index); if(index3 >= 0) { var this5 = this1; var this6 = this5; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount(this6,0,index3); } else { return -1; } }; lime_text__$UTF8String_UTF8String_$Impl_$.split = function(this1,delimiter) { if(delimiter.length == 0) { var _g = []; var _g1_string; var _g1_index; var _g1_i; var _g1_endIndex; _g1_i = 0; _g1_string = this1; _g1_index = 0; _g1_endIndex = this1.length; while(_g1_index < _g1_endIndex) { _g1_i = _g1_index; var this2 = _g1_string; var this3 = this2; var c = this3.charCodeAt(_g1_index); _g1_index += !(55296 <= c && c <= 56319) ? 1 : 2; var i = _g1_i; var this4 = this1; var this5 = this4; var this6 = this5; var c1 = this6.charCodeAt(i); var this7 = HxOverrides.substr(this6,i,!(55296 <= c1 && c1 <= 56319) ? 1 : 2); var this8 = this7; _g.push(this8); } return _g; } else { return this1.split(delimiter); } }; lime_text__$UTF8String_UTF8String_$Impl_$.substr = function(this1,pos,len) { return HxOverrides.substr(this1,pos,len); }; lime_text__$UTF8String_UTF8String_$Impl_$.substring = function(this1,startIndex,endIndex) { var si; if(startIndex < 0) { si = 0; } else { var this2 = this1; var this3 = this2; var this4 = this3; if(startIndex >= 0) { var index = 0; var len = this4.length; var i = 0; while(i < startIndex && index < len) { var c = this4.charCodeAt(index); index += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } si = index; } else { var index1 = 0; var count = 0; while(count < -startIndex && 0 < index1) { var c1 = this4.charCodeAt(index1 - 1); index1 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } si = index1; } } var ei; if(endIndex == null) { ei = this1.length; } else if(endIndex < 0) { ei = 0; } else { var this5 = this1; var this6 = this5; var this7 = this6; if(endIndex >= 0) { var index2 = 0; var len1 = this7.length; var i1 = 0; while(i1 < endIndex && index2 < len1) { var c2 = this7.charCodeAt(index2); index2 += !(55296 <= c2 && c2 <= 56319) ? 1 : 2; ++i1; } ei = index2; } else { var index3 = 0; var count1 = 0; while(count1 < -endIndex && 0 < index3) { var c3 = this7.charCodeAt(index3 - 1); index3 -= !(56320 <= c3 && c3 <= 57343) ? 1 : 2; ++count1; } ei = index3; } } return this1.substring(si,ei); }; lime_text__$UTF8String_UTF8String_$Impl_$.toLowerCase = function(this1) { return this1.toLowerCase(); }; lime_text__$UTF8String_UTF8String_$Impl_$.toString = function(this1) { return this1; }; lime_text__$UTF8String_UTF8String_$Impl_$.toUpperCase = function(this1) { return this1.toUpperCase(); }; lime_text__$UTF8String_UTF8String_$Impl_$.equals = function(a,b) { if(a == null || b == null) { return a == b; } return lime_text_unifill_Unifill.uCompare(a,b) == 0; }; lime_text__$UTF8String_UTF8String_$Impl_$.lt = function(a,b) { if(b == null) { return false; } if(a == null) { return true; } return lime_text_unifill_Unifill.uCompare(a,b) == -1; }; lime_text__$UTF8String_UTF8String_$Impl_$.gt = function(a,b) { if(a == null) { return false; } if(b == null) { return true; } return lime_text_unifill_Unifill.uCompare(a,b) == 1; }; lime_text__$UTF8String_UTF8String_$Impl_$.lteq = function(a,b) { if(b == null) { return a == null; } if(a == null) { return true; } return lime_text_unifill_Unifill.uCompare(a,b) != 1; }; lime_text__$UTF8String_UTF8String_$Impl_$.gteq = function(a,b) { if(a == null) { return b == null; } if(b == null) { return true; } return lime_text_unifill_Unifill.uCompare(a,b) != -1; }; lime_text__$UTF8String_UTF8String_$Impl_$.plus = function(a,b) { if(a == null && b == null) { return null; } if(a == null) { return b; } if(b == null) { return a; } var sb_b = ""; sb_b += Std.string(lime_text__$UTF8String_UTF8String_$Impl_$.toString(a)); sb_b += Std.string(lime_text__$UTF8String_UTF8String_$Impl_$.toString(b)); return sb_b; }; lime_text__$UTF8String_UTF8String_$Impl_$.fromDynamic = function(value) { return Std.string(value); }; lime_text__$UTF8String_UTF8String_$Impl_$.get_length = function(this1) { if(this1 == null) { return 0; } else { return this1.length; } }; var lime_text__$UTF8String_Utf8Ext = function() { }; $hxClasses["lime.text._UTF8String.Utf8Ext"] = lime_text__$UTF8String_Utf8Ext; lime_text__$UTF8String_Utf8Ext.__name__ = ["lime","text","_UTF8String","Utf8Ext"]; lime_text__$UTF8String_Utf8Ext.fillUpperToLowerMap = function(map) { var i = 0; var _g = 0; while(_g < 26) { var i1 = _g++; var v = 97 + i1; map.h[65 + i1] = v; } var _g1 = 0; while(_g1 < 23) { var i2 = _g1++; var v1 = 224 + i2; map.h[192 + i2] = v1; } var _g2 = 0; while(_g2 < 7) { var i3 = _g2++; var v2 = 248 + i3; map.h[216 + i3] = v2; } while(i < 48) { var v3 = 257 + i; map.h[256 + i] = v3; i += 2; } i = 0; map.h[304] = 105; while(i < 6) { var v4 = 307 + i; map.h[306 + i] = v4; i += 2; } i = 0; while(i < 16) { var v5 = 314 + i; map.h[313 + i] = v5; i += 2; } i = 0; while(i < 46) { var v6 = 331 + i; map.h[330 + i] = v6; i += 2; } i = 0; map.h[376] = 255; while(i < 6) { var v7 = 378 + i; map.h[377 + i] = v7; i += 2; } i = 0; map.h[385] = 595; while(i < 4) { var v8 = 387 + i; map.h[386 + i] = v8; i += 2; } i = 0; map.h[390] = 596; map.h[391] = 392; var _g3 = 0; while(_g3 < 2) { var i4 = _g3++; var v9 = 598 + i4; map.h[393 + i4] = v9; } map.h[395] = 396; map.h[398] = 477; map.h[399] = 601; map.h[400] = 603; map.h[401] = 402; map.h[403] = 608; map.h[404] = 611; map.h[406] = 617; map.h[407] = 616; map.h[408] = 409; map.h[412] = 623; map.h[413] = 626; map.h[415] = 629; while(i < 6) { var v10 = 417 + i; map.h[416 + i] = v10; i += 2; } i = 0; map.h[422] = 640; map.h[423] = 424; map.h[425] = 643; map.h[428] = 429; map.h[430] = 648; map.h[431] = 432; var _g4 = 0; while(_g4 < 2) { var i5 = _g4++; var v11 = 650 + i5; map.h[433 + i5] = v11; } while(i < 4) { var v12 = 436 + i; map.h[435 + i] = v12; i += 2; } i = 0; map.h[439] = 658; map.h[440] = 441; map.h[444] = 445; map.h[452] = 454; map.h[455] = 457; map.h[458] = 460; while(i < 16) { var v13 = 462 + i; map.h[461 + i] = v13; i += 2; } i = 0; while(i < 18) { var v14 = 479 + i; map.h[478 + i] = v14; i += 2; } i = 0; map.h[497] = 499; map.h[500] = 501; map.h[502] = 405; map.h[503] = 447; while(i < 40) { var v15 = 505 + i; map.h[504 + i] = v15; i += 2; } i = 0; map.h[544] = 414; while(i < 18) { var v16 = 547 + i; map.h[546 + i] = v16; i += 2; } i = 0; map.h[570] = 11365; map.h[571] = 572; map.h[573] = 410; map.h[574] = 11366; map.h[577] = 578; map.h[579] = 384; map.h[580] = 649; map.h[581] = 652; while(i < 10) { var v17 = 583 + i; map.h[582 + i] = v17; i += 2; } i = 0; while(i < 4) { var v18 = 881 + i; map.h[880 + i] = v18; i += 2; } i = 0; map.h[886] = 887; map.h[895] = 1011; map.h[902] = 940; var _g5 = 0; while(_g5 < 3) { var i6 = _g5++; var v19 = 941 + i6; map.h[904 + i6] = v19; } map.h[908] = 972; var _g6 = 0; while(_g6 < 2) { var i7 = _g6++; var v20 = 973 + i7; map.h[910 + i7] = v20; } var _g7 = 0; while(_g7 < 17) { var i8 = _g7++; var v21 = 945 + i8; map.h[913 + i8] = v21; } var _g8 = 0; while(_g8 < 9) { var i9 = _g8++; var v22 = 963 + i9; map.h[931 + i9] = v22; } map.h[975] = 983; while(i < 24) { var v23 = 985 + i; map.h[984 + i] = v23; i += 2; } i = 0; map.h[1012] = 952; map.h[1015] = 1016; map.h[1017] = 1010; map.h[1018] = 1019; var _g9 = 0; while(_g9 < 3) { var i10 = _g9++; var v24 = 891 + i10; map.h[1021 + i10] = v24; } var _g10 = 0; while(_g10 < 16) { var i11 = _g10++; var v25 = 1104 + i11; map.h[1024 + i11] = v25; } var _g11 = 0; while(_g11 < 32) { var i12 = _g11++; var v26 = 1072 + i12; map.h[1040 + i12] = v26; } while(i < 34) { var v27 = 1121 + i; map.h[1120 + i] = v27; i += 2; } i = 0; while(i < 54) { var v28 = 1163 + i; map.h[1162 + i] = v28; i += 2; } i = 0; map.h[1216] = 1231; while(i < 14) { var v29 = 1218 + i; map.h[1217 + i] = v29; i += 2; } i = 0; while(i < 96) { var v30 = 1233 + i; map.h[1232 + i] = v30; i += 2; } i = 0; var _g12 = 0; while(_g12 < 38) { var i13 = _g12++; var v31 = 1377 + i13; map.h[1329 + i13] = v31; } var _g13 = 0; while(_g13 < 38) { var i14 = _g13++; var v32 = 11520 + i14; map.h[4256 + i14] = v32; } map.h[4295] = 11559; map.h[4301] = 11565; var _g14 = 0; while(_g14 < 80) { var i15 = _g14++; var v33 = 43888 + i15; map.h[5024 + i15] = v33; } var _g15 = 0; while(_g15 < 6) { var i16 = _g15++; var v34 = 5112 + i16; map.h[5104 + i16] = v34; } while(i < 150) { var v35 = 7681 + i; map.h[7680 + i] = v35; i += 2; } i = 0; map.h[7838] = 223; while(i < 96) { var v36 = 7841 + i; map.h[7840 + i] = v36; i += 2; } i = 0; var _g16 = 0; while(_g16 < 8) { var i17 = _g16++; var v37 = 7936 + i17; map.h[7944 + i17] = v37; } var _g17 = 0; while(_g17 < 6) { var i18 = _g17++; var v38 = 7952 + i18; map.h[7960 + i18] = v38; } var _g18 = 0; while(_g18 < 8) { var i19 = _g18++; var v39 = 7968 + i19; map.h[7976 + i19] = v39; } var _g19 = 0; while(_g19 < 8) { var i20 = _g19++; var v40 = 7984 + i20; map.h[7992 + i20] = v40; } var _g20 = 0; while(_g20 < 6) { var i21 = _g20++; var v41 = 8000 + i21; map.h[8008 + i21] = v41; } while(i < 8) { var v42 = 8017 + i; map.h[8025 + i] = v42; i += 2; } i = 0; var _g21 = 0; while(_g21 < 8) { var i22 = _g21++; var v43 = 8032 + i22; map.h[8040 + i22] = v43; } var _g22 = 0; while(_g22 < 2) { var i23 = _g22++; var v44 = 8112 + i23; map.h[8120 + i23] = v44; } var _g23 = 0; while(_g23 < 2) { var i24 = _g23++; var v45 = 8048 + i24; map.h[8122 + i24] = v45; } var _g24 = 0; while(_g24 < 4) { var i25 = _g24++; var v46 = 8050 + i25; map.h[8136 + i25] = v46; } var _g25 = 0; while(_g25 < 2) { var i26 = _g25++; var v47 = 8144 + i26; map.h[8152 + i26] = v47; } var _g26 = 0; while(_g26 < 2) { var i27 = _g26++; var v48 = 8054 + i27; map.h[8154 + i27] = v48; } var _g27 = 0; while(_g27 < 2) { var i28 = _g27++; var v49 = 8160 + i28; map.h[8168 + i28] = v49; } var _g28 = 0; while(_g28 < 2) { var i29 = _g28++; var v50 = 8058 + i29; map.h[8170 + i29] = v50; } map.h[8172] = 8165; var _g29 = 0; while(_g29 < 2) { var i30 = _g29++; var v51 = 8056 + i30; map.h[8184 + i30] = v51; } var _g30 = 0; while(_g30 < 2) { var i31 = _g30++; var v52 = 8060 + i31; map.h[8186 + i31] = v52; } map.h[8486] = 969; map.h[8490] = 107; map.h[8491] = 229; map.h[8498] = 8526; map.h[8579] = 8580; var _g31 = 0; while(_g31 < 47) { var i32 = _g31++; var v53 = 11312 + i32; map.h[11264 + i32] = v53; } map.h[11360] = 11361; map.h[11362] = 619; map.h[11363] = 7549; map.h[11364] = 637; while(i < 6) { var v54 = 11368 + i; map.h[11367 + i] = v54; i += 2; } i = 0; map.h[11373] = 593; map.h[11374] = 625; map.h[11375] = 592; map.h[11376] = 594; map.h[11378] = 11379; map.h[11381] = 11382; var _g32 = 0; while(_g32 < 2) { var i33 = _g32++; var v55 = 575 + i33; map.h[11390 + i33] = v55; } while(i < 100) { var v56 = 11393 + i; map.h[11392 + i] = v56; i += 2; } i = 0; while(i < 4) { var v57 = 11500 + i; map.h[11499 + i] = v57; i += 2; } i = 0; map.h[11506] = 11507; while(i < 46) { var v58 = 42561 + i; map.h[42560 + i] = v58; i += 2; } i = 0; while(i < 28) { var v59 = 42625 + i; map.h[42624 + i] = v59; i += 2; } i = 0; while(i < 14) { var v60 = 42787 + i; map.h[42786 + i] = v60; i += 2; } i = 0; while(i < 62) { var v61 = 42803 + i; map.h[42802 + i] = v61; i += 2; } i = 0; while(i < 4) { var v62 = 42874 + i; map.h[42873 + i] = v62; i += 2; } i = 0; map.h[42877] = 7545; while(i < 10) { var v63 = 42879 + i; map.h[42878 + i] = v63; i += 2; } i = 0; map.h[42891] = 42892; map.h[42893] = 613; while(i < 4) { var v64 = 42897 + i; map.h[42896 + i] = v64; i += 2; } i = 0; while(i < 20) { var v65 = 42903 + i; map.h[42902 + i] = v65; i += 2; } i = 0; map.h[42922] = 614; map.h[42923] = 604; map.h[42924] = 609; map.h[42925] = 620; map.h[42926] = 618; map.h[42928] = 670; map.h[42929] = 647; map.h[42930] = 669; map.h[42931] = 43859; while(i < 4) { var v66 = 42933 + i; map.h[42932 + i] = v66; i += 2; } i = 0; var _g33 = 0; while(_g33 < 26) { var i34 = _g33++; var v67 = 65345 + i34; map.h[65313 + i34] = v67; } var _g34 = 0; while(_g34 < 40) { var i35 = _g34++; var v68 = 66600 + i35; map.h[66560 + i35] = v68; } var _g35 = 0; while(_g35 < 36) { var i36 = _g35++; var v69 = 66776 + i36; map.h[66736 + i36] = v69; } var _g36 = 0; while(_g36 < 51) { var i37 = _g36++; var v70 = 68800 + i37; map.h[68736 + i37] = v70; } var _g37 = 0; while(_g37 < 32) { var i38 = _g37++; var v71 = 71872 + i38; map.h[71840 + i38] = v71; } var _g38 = 0; while(_g38 < 34) { var i39 = _g38++; var v72 = 125218 + i39; map.h[125184 + i39] = v72; } }; lime_text__$UTF8String_Utf8Ext.fillLowerToUpperMap = function(map) { var i = 0; var _g = 0; while(_g < 26) { var i1 = _g++; var v = 65 + i1; map.h[97 + i1] = v; } map.h[181] = 924; var _g1 = 0; while(_g1 < 23) { var i2 = _g1++; var v1 = 192 + i2; map.h[224 + i2] = v1; } var _g2 = 0; while(_g2 < 7) { var i3 = _g2++; var v2 = 216 + i3; map.h[248 + i3] = v2; } map.h[255] = 376; while(i < 48) { var v3 = 256 + i; map.h[257 + i] = v3; i += 2; } i = 0; map.h[305] = 73; while(i < 6) { var v4 = 306 + i; map.h[307 + i] = v4; i += 2; } i = 0; while(i < 16) { var v5 = 313 + i; map.h[314 + i] = v5; i += 2; } i = 0; while(i < 46) { var v6 = 330 + i; map.h[331 + i] = v6; i += 2; } i = 0; while(i < 6) { var v7 = 377 + i; map.h[378 + i] = v7; i += 2; } i = 0; map.h[383] = 83; map.h[384] = 579; while(i < 4) { var v8 = 386 + i; map.h[387 + i] = v8; i += 2; } i = 0; map.h[392] = 391; map.h[396] = 395; map.h[402] = 401; map.h[405] = 502; map.h[409] = 408; map.h[410] = 573; map.h[414] = 544; while(i < 6) { var v9 = 416 + i; map.h[417 + i] = v9; i += 2; } i = 0; map.h[424] = 423; map.h[429] = 428; map.h[432] = 431; while(i < 4) { var v10 = 435 + i; map.h[436 + i] = v10; i += 2; } i = 0; map.h[441] = 440; map.h[445] = 444; map.h[447] = 503; map.h[454] = 452; map.h[457] = 455; map.h[460] = 458; while(i < 16) { var v11 = 461 + i; map.h[462 + i] = v11; i += 2; } i = 0; map.h[477] = 398; while(i < 18) { var v12 = 478 + i; map.h[479 + i] = v12; i += 2; } i = 0; map.h[496] = 74; map.h[499] = 497; map.h[501] = 500; while(i < 40) { var v13 = 504 + i; map.h[505 + i] = v13; i += 2; } i = 0; while(i < 18) { var v14 = 546 + i; map.h[547 + i] = v14; i += 2; } i = 0; map.h[572] = 571; var _g3 = 0; while(_g3 < 2) { var i4 = _g3++; var v15 = 11390 + i4; map.h[575 + i4] = v15; } map.h[578] = 577; while(i < 10) { var v16 = 582 + i; map.h[583 + i] = v16; i += 2; } i = 0; map.h[592] = 11375; map.h[593] = 11373; map.h[594] = 11376; map.h[595] = 385; map.h[596] = 390; var _g4 = 0; while(_g4 < 2) { var i5 = _g4++; var v17 = 393 + i5; map.h[598 + i5] = v17; } map.h[601] = 399; map.h[603] = 400; map.h[604] = 42923; map.h[608] = 403; map.h[609] = 42924; map.h[611] = 404; map.h[613] = 42893; map.h[614] = 42922; map.h[616] = 407; map.h[617] = 406; map.h[618] = 42926; map.h[619] = 11362; map.h[620] = 42925; map.h[623] = 412; map.h[625] = 11374; map.h[626] = 413; map.h[629] = 415; map.h[637] = 11364; map.h[640] = 422; map.h[643] = 425; map.h[647] = 42929; map.h[648] = 430; map.h[649] = 580; var _g5 = 0; while(_g5 < 2) { var i6 = _g5++; var v18 = 433 + i6; map.h[650 + i6] = v18; } map.h[652] = 581; map.h[658] = 439; map.h[669] = 42930; map.h[670] = 42928; while(i < 4) { var v19 = 880 + i; map.h[881 + i] = v19; i += 2; } i = 0; map.h[887] = 886; var _g6 = 0; while(_g6 < 3) { var i7 = _g6++; var v20 = 1021 + i7; map.h[891 + i7] = v20; } map.h[912] = 938; map.h[940] = 902; var _g7 = 0; while(_g7 < 3) { var i8 = _g7++; var v21 = 904 + i8; map.h[941 + i8] = v21; } map.h[944] = 939; var _g8 = 0; while(_g8 < 17) { var i9 = _g8++; var v22 = 913 + i9; map.h[945 + i9] = v22; } map.h[962] = 931; var _g9 = 0; while(_g9 < 9) { var i10 = _g9++; var v23 = 931 + i10; map.h[963 + i10] = v23; } map.h[972] = 908; var _g10 = 0; while(_g10 < 2) { var i11 = _g10++; var v24 = 910 + i11; map.h[973 + i11] = v24; } map.h[976] = 914; map.h[977] = 920; map.h[981] = 934; map.h[982] = 928; map.h[983] = 975; while(i < 24) { var v25 = 984 + i; map.h[985 + i] = v25; i += 2; } i = 0; map.h[1008] = 922; map.h[1009] = 929; map.h[1010] = 1017; map.h[1011] = 895; map.h[1013] = 917; map.h[1016] = 1015; map.h[1019] = 1018; var _g11 = 0; while(_g11 < 32) { var i12 = _g11++; var v26 = 1040 + i12; map.h[1072 + i12] = v26; } var _g12 = 0; while(_g12 < 16) { var i13 = _g12++; var v27 = 1024 + i13; map.h[1104 + i13] = v27; } while(i < 34) { var v28 = 1120 + i; map.h[1121 + i] = v28; i += 2; } i = 0; while(i < 54) { var v29 = 1162 + i; map.h[1163 + i] = v29; i += 2; } i = 0; while(i < 14) { var v30 = 1217 + i; map.h[1218 + i] = v30; i += 2; } i = 0; map.h[1231] = 1216; while(i < 96) { var v31 = 1232 + i; map.h[1233 + i] = v31; i += 2; } i = 0; var _g13 = 0; while(_g13 < 38) { var i14 = _g13++; var v32 = 1329 + i14; map.h[1377 + i14] = v32; } var _g14 = 0; while(_g14 < 6) { var i15 = _g14++; var v33 = 5104 + i15; map.h[5112 + i15] = v33; } map.h[7296] = 1042; map.h[7297] = 1044; map.h[7298] = 1054; var _g15 = 0; while(_g15 < 2) { var i16 = _g15++; var v34 = 1057 + i16; map.h[7299 + i16] = v34; } map.h[7301] = 1058; map.h[7302] = 1066; map.h[7303] = 1122; map.h[7304] = 42570; map.h[7545] = 42877; map.h[7549] = 11363; while(i < 150) { var v35 = 7680 + i; map.h[7681 + i] = v35; i += 2; } i = 0; map.h[7830] = 72; map.h[7831] = 84; map.h[7832] = 87; map.h[7833] = 89; map.h[7835] = 7776; while(i < 96) { var v36 = 7840 + i; map.h[7841 + i] = v36; i += 2; } i = 0; var _g16 = 0; while(_g16 < 8) { var i17 = _g16++; var v37 = 7944 + i17; map.h[7936 + i17] = v37; } var _g17 = 0; while(_g17 < 6) { var i18 = _g17++; var v38 = 7960 + i18; map.h[7952 + i18] = v38; } var _g18 = 0; while(_g18 < 8) { var i19 = _g18++; var v39 = 7976 + i19; map.h[7968 + i19] = v39; } var _g19 = 0; while(_g19 < 8) { var i20 = _g19++; var v40 = 7992 + i20; map.h[7984 + i20] = v40; } var _g20 = 0; while(_g20 < 6) { var i21 = _g20++; var v41 = 8008 + i21; map.h[8000 + i21] = v41; } map.h[8016] = 933; map.h[8017] = 8025; map.h[8018] = 933; map.h[8019] = 8027; map.h[8020] = 933; map.h[8021] = 8029; map.h[8022] = 933; map.h[8023] = 8031; var _g21 = 0; while(_g21 < 8) { var i22 = _g21++; var v42 = 8040 + i22; map.h[8032 + i22] = v42; } var _g22 = 0; while(_g22 < 2) { var i23 = _g22++; var v43 = 8122 + i23; map.h[8048 + i23] = v43; } var _g23 = 0; while(_g23 < 4) { var i24 = _g23++; var v44 = 8136 + i24; map.h[8050 + i24] = v44; } var _g24 = 0; while(_g24 < 2) { var i25 = _g24++; var v45 = 8154 + i25; map.h[8054 + i25] = v45; } var _g25 = 0; while(_g25 < 2) { var i26 = _g25++; var v46 = 8184 + i26; map.h[8056 + i26] = v46; } var _g26 = 0; while(_g26 < 2) { var i27 = _g26++; var v47 = 8170 + i27; map.h[8058 + i27] = v47; } var _g27 = 0; while(_g27 < 2) { var i28 = _g27++; var v48 = 8186 + i28; map.h[8060 + i28] = v48; } var _g28 = 0; while(_g28 < 8) { var i29 = _g28++; var v49 = 8072 + i29; map.h[8064 + i29] = v49; } var _g29 = 0; while(_g29 < 8) { var i30 = _g29++; var v50 = 8088 + i30; map.h[8080 + i30] = v50; } var _g30 = 0; while(_g30 < 8) { var i31 = _g30++; var v51 = 8104 + i31; map.h[8096 + i31] = v51; } var _g31 = 0; while(_g31 < 3) { var i32 = _g31++; var v52 = 8120 + i32; map.h[8112 + i32] = v52; } map.h[8115] = 8124; map.h[8116] = 902; map.h[8118] = 913; map.h[8119] = 913; map.h[8126] = 921; map.h[8130] = 8138; map.h[8131] = 8140; map.h[8132] = 905; map.h[8134] = 919; map.h[8135] = 919; var _g32 = 0; while(_g32 < 2) { var i33 = _g32++; var v53 = 8152 + i33; map.h[8144 + i33] = v53; } map.h[8146] = 938; map.h[8147] = 938; map.h[8150] = 921; map.h[8151] = 938; var _g33 = 0; while(_g33 < 2) { var i34 = _g33++; var v54 = 8168 + i34; map.h[8160 + i34] = v54; } map.h[8162] = 939; map.h[8163] = 939; map.h[8164] = 929; map.h[8165] = 8172; map.h[8166] = 933; map.h[8167] = 939; map.h[8178] = 8186; map.h[8179] = 8188; map.h[8180] = 911; map.h[8182] = 937; map.h[8183] = 937; map.h[8526] = 8498; map.h[8580] = 8579; var _g34 = 0; while(_g34 < 47) { var i35 = _g34++; var v55 = 11264 + i35; map.h[11312 + i35] = v55; } map.h[11361] = 11360; map.h[11365] = 570; map.h[11366] = 574; while(i < 6) { var v56 = 11367 + i; map.h[11368 + i] = v56; i += 2; } i = 0; map.h[11379] = 11378; map.h[11382] = 11381; while(i < 100) { var v57 = 11392 + i; map.h[11393 + i] = v57; i += 2; } i = 0; while(i < 4) { var v58 = 11499 + i; map.h[11500 + i] = v58; i += 2; } i = 0; map.h[11507] = 11506; var _g35 = 0; while(_g35 < 38) { var i36 = _g35++; var v59 = 4256 + i36; map.h[11520 + i36] = v59; } map.h[11559] = 4295; map.h[11565] = 4301; while(i < 46) { var v60 = 42560 + i; map.h[42561 + i] = v60; i += 2; } i = 0; while(i < 28) { var v61 = 42624 + i; map.h[42625 + i] = v61; i += 2; } i = 0; while(i < 14) { var v62 = 42786 + i; map.h[42787 + i] = v62; i += 2; } i = 0; while(i < 62) { var v63 = 42802 + i; map.h[42803 + i] = v63; i += 2; } i = 0; while(i < 4) { var v64 = 42873 + i; map.h[42874 + i] = v64; i += 2; } i = 0; while(i < 10) { var v65 = 42878 + i; map.h[42879 + i] = v65; i += 2; } i = 0; map.h[42892] = 42891; while(i < 4) { var v66 = 42896 + i; map.h[42897 + i] = v66; i += 2; } i = 0; while(i < 20) { var v67 = 42902 + i; map.h[42903 + i] = v67; i += 2; } i = 0; while(i < 4) { var v68 = 42932 + i; map.h[42933 + i] = v68; i += 2; } i = 0; map.h[43859] = 42931; var _g36 = 0; while(_g36 < 80) { var i37 = _g36++; var v69 = 5024 + i37; map.h[43888 + i37] = v69; } var _g37 = 0; while(_g37 < 26) { var i38 = _g37++; var v70 = 65313 + i38; map.h[65345 + i38] = v70; } var _g38 = 0; while(_g38 < 40) { var i39 = _g38++; var v71 = 66560 + i39; map.h[66600 + i39] = v71; } var _g39 = 0; while(_g39 < 36) { var i40 = _g39++; var v72 = 66736 + i40; map.h[66776 + i40] = v72; } var _g40 = 0; while(_g40 < 51) { var i41 = _g40++; var v73 = 68736 + i41; map.h[68800 + i41] = v73; } var _g41 = 0; while(_g41 < 32) { var i42 = _g41++; var v74 = 71840 + i42; map.h[71872 + i42] = v74; } var _g42 = 0; while(_g42 < 34) { var i43 = _g42++; var v75 = 125184 + i43; map.h[125218 + i43] = v75; } }; var lime_text_unifill__$CodePoint_CodePoint_$Impl_$ = {}; $hxClasses["lime.text.unifill._CodePoint.CodePoint_Impl_"] = lime_text_unifill__$CodePoint_CodePoint_$Impl_$; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.__name__ = ["lime","text","unifill","_CodePoint","CodePoint_Impl_"]; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.fromInt = function(code) { if(!(0 <= code && code <= 1114111 && !(55296 <= code && code <= 56319) && !(56320 <= code && code <= 57343))) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodePoint(code)); } var this1 = code; return this1; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.cons = function(a,b) { var this1; if(a <= 65535) { var this2 = String.fromCharCode(a); var this3 = this2; this1 = this3; } else { var this4 = String.fromCharCode((a >> 10) + 55232) + String.fromCharCode(a & 1023 | 56320); var this5 = this4; this1 = this5; } return this1 + b; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.snoc = function(a,b) { var this1; if(b <= 65535) { var this2 = String.fromCharCode(b); var this3 = this2; this1 = this3; } else { var this4 = String.fromCharCode((b >> 10) + 55232) + String.fromCharCode(b & 1023 | 56320); var this5 = this4; this1 = this5; } return a + this1; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.addInt = function(a,b) { var code = a + b; if(!(0 <= code && code <= 1114111 && !(55296 <= code && code <= 56319) && !(56320 <= code && code <= 57343))) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodePoint(code)); } var this1 = code; return this1; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.sub = function(a,b) { return a - b; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.subInt = function(a,b) { var code = a - b; if(!(0 <= code && code <= 1114111 && !(55296 <= code && code <= 56319) && !(56320 <= code && code <= 57343))) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodePoint(code)); } var this1 = code; return this1; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$._new = function(code) { var this1 = code; return this1; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.toString = function(this1) { var this2; if(this1 <= 65535) { var this3 = String.fromCharCode(this1); var this4 = this3; this2 = this4; } else { var this5 = String.fromCharCode((this1 >> 10) + 55232) + String.fromCharCode(this1 & 1023 | 56320); var this6 = this5; this2 = this6; } return this2; }; lime_text_unifill__$CodePoint_CodePoint_$Impl_$.toInt = function(this1) { return this1; }; var lime_text_unifill_CodePointIter = function(s) { this.i = 0; this.string = s; this.index = 0; this.endIndex = s.length; }; $hxClasses["lime.text.unifill.CodePointIter"] = lime_text_unifill_CodePointIter; lime_text_unifill_CodePointIter.__name__ = ["lime","text","unifill","CodePointIter"]; lime_text_unifill_CodePointIter.prototype = { string: null ,index: null ,endIndex: null ,hasNext: function() { return this.index < this.endIndex; } ,i: null ,next: function() { this.i = this.index; var tmp = this; var tmp1 = tmp.index; var this1 = this.string; var this2 = this1; var c = this2.charCodeAt(this.index); tmp.index = tmp1 + (!(55296 <= c && c <= 56319) ? 1 : 2); var this3 = this.string; var this4 = this3; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt(this4,this.i); } ,__class__: lime_text_unifill_CodePointIter }; var lime_text_unifill_Exception = function() { }; $hxClasses["lime.text.unifill.Exception"] = lime_text_unifill_Exception; lime_text_unifill_Exception.__name__ = ["lime","text","unifill","Exception"]; lime_text_unifill_Exception.prototype = { toString: function() { throw new js__$Boot_HaxeError(null); } ,__class__: lime_text_unifill_Exception }; var lime_text_unifill_InvalidCodePoint = function(code) { lime_text_unifill_Exception.call(this); this.code = code; }; $hxClasses["lime.text.unifill.InvalidCodePoint"] = lime_text_unifill_InvalidCodePoint; lime_text_unifill_InvalidCodePoint.__name__ = ["lime","text","unifill","InvalidCodePoint"]; lime_text_unifill_InvalidCodePoint.__super__ = lime_text_unifill_Exception; lime_text_unifill_InvalidCodePoint.prototype = $extend(lime_text_unifill_Exception.prototype,{ code: null ,toString: function() { return "InvalidCodePoint(code: " + this.code + ")"; } ,__class__: lime_text_unifill_InvalidCodePoint }); var lime_text_unifill_InvalidCodeUnitSequence = function(index) { lime_text_unifill_Exception.call(this); this.index = index; }; $hxClasses["lime.text.unifill.InvalidCodeUnitSequence"] = lime_text_unifill_InvalidCodeUnitSequence; lime_text_unifill_InvalidCodeUnitSequence.__name__ = ["lime","text","unifill","InvalidCodeUnitSequence"]; lime_text_unifill_InvalidCodeUnitSequence.__super__ = lime_text_unifill_Exception; lime_text_unifill_InvalidCodeUnitSequence.prototype = $extend(lime_text_unifill_Exception.prototype,{ index: null ,toString: function() { return "InvalidCodeUnitSequence(index: " + this.index + ")"; } ,__class__: lime_text_unifill_InvalidCodeUnitSequence }); var lime_text_unifill_InternalEncoding = function() { }; $hxClasses["lime.text.unifill.InternalEncoding"] = lime_text_unifill_InternalEncoding; lime_text_unifill_InternalEncoding.__name__ = ["lime","text","unifill","InternalEncoding"]; lime_text_unifill_InternalEncoding.__properties__ = {get_internalEncoding:"get_internalEncoding"}; lime_text_unifill_InternalEncoding.get_internalEncoding = function() { return "UTF-16"; }; lime_text_unifill_InternalEncoding.codeUnitAt = function(s,index) { var this1 = s; var this2 = this1; return this2.charCodeAt(index); }; lime_text_unifill_InternalEncoding.codePointAt = function(s,index) { var this1 = s; var this2 = this1; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt(this2,index); }; lime_text_unifill_InternalEncoding.charAt = function(s,index) { var this1 = s; var this2 = this1; var this3 = this2; var c = this3.charCodeAt(index); var this4 = HxOverrides.substr(this3,index,!(55296 <= c && c <= 56319) ? 1 : 2); var this5 = this4; return this5; }; lime_text_unifill_InternalEncoding.codePointCount = function(s,beginIndex,endIndex) { var this1 = s; var this2 = this1; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount(this2,beginIndex,endIndex); }; lime_text_unifill_InternalEncoding.codePointWidthAt = function(s,index) { var this1 = s; var this2 = this1; var c = this2.charCodeAt(index); if(!(55296 <= c && c <= 56319)) { return 1; } else { return 2; } }; lime_text_unifill_InternalEncoding.codePointWidthBefore = function(s,index) { var this1 = s; var this2 = this1; var c = this2.charCodeAt(index - 1); if(!(56320 <= c && c <= 57343)) { return 1; } else { return 2; } }; lime_text_unifill_InternalEncoding.offsetByCodePoints = function(s,index,codePointOffset) { var this1 = s; var this2 = this1; var this3 = this2; if(codePointOffset >= 0) { var index1 = index; var len = this3.length; var i = 0; while(i < codePointOffset && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } return index1; } else { var index2 = index; var count = 0; while(count < -codePointOffset && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } return index2; } }; lime_text_unifill_InternalEncoding.backwardOffsetByCodePoints = function(s,index,codePointOffset) { var this1 = s; var this2 = this1; var this3 = this2; var codePointOffset1 = -codePointOffset; if(codePointOffset1 >= 0) { var index1 = index; var len = this3.length; var i = 0; while(i < codePointOffset1 && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } return index1; } else { var index2 = index; var count = 0; while(count < -codePointOffset1 && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } return index2; } }; lime_text_unifill_InternalEncoding.fromCodePoint = function(codePoint) { var this1; if(codePoint <= 65535) { var this2 = String.fromCharCode(codePoint); var this3 = this2; this1 = this3; } else { var this4 = String.fromCharCode((codePoint >> 10) + 55232) + String.fromCharCode(codePoint & 1023 | 56320); var this5 = this4; this1 = this5; } return this1; }; lime_text_unifill_InternalEncoding.fromCodePoints = function(codePoints) { var this1 = new StringBuf(); var buf = this1; var c = $iterator(codePoints)(); while(c.hasNext()) { var c1 = c.next(); if(c1 <= 65535) { buf.b += String.fromCharCode(c1); } else { buf.b += String.fromCharCode((c1 >> 10) + 55232); buf.b += String.fromCharCode(c1 & 1023 | 56320); } } var this2 = buf.b; var this3 = this2; return this3; }; lime_text_unifill_InternalEncoding.validate = function(s) { var this1 = s; var this2 = this1; lime_text_unifill__$Utf16_Utf16_$Impl_$.validate(this2); }; lime_text_unifill_InternalEncoding.isValidString = function(s) { try { var this1 = s; var this2 = this1; lime_text_unifill__$Utf16_Utf16_$Impl_$.validate(this2); return true; } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; if( js_Boot.__instanceof(e,lime_text_unifill_InvalidCodeUnitSequence) ) { return false; } else throw(e); } }; lime_text_unifill_InternalEncoding.encodeWith = function(f,c) { if(c <= 65535) { f(c); } else { f((c >> 10) + 55232); f(c & 1023 | 56320); } }; var lime_text_unifill_InternalEncodingIter = function(s,beginIndex,endIndex) { this.i = 0; this.string = s; this.index = beginIndex; this.endIndex = endIndex; }; $hxClasses["lime.text.unifill.InternalEncodingIter"] = lime_text_unifill_InternalEncodingIter; lime_text_unifill_InternalEncodingIter.__name__ = ["lime","text","unifill","InternalEncodingIter"]; lime_text_unifill_InternalEncodingIter.prototype = { string: null ,index: null ,endIndex: null ,hasNext: function() { return this.index < this.endIndex; } ,i: null ,next: function() { this.i = this.index; var tmp = this; var tmp1 = tmp.index; var this1 = this.string; var this2 = this1; var c = this2.charCodeAt(this.index); tmp.index = tmp1 + (!(55296 <= c && c <= 56319) ? 1 : 2); return this.i; } ,__class__: lime_text_unifill_InternalEncodingIter }; var lime_text_unifill_Unicode = function() { }; $hxClasses["lime.text.unifill.Unicode"] = lime_text_unifill_Unicode; lime_text_unifill_Unicode.__name__ = ["lime","text","unifill","Unicode"]; lime_text_unifill_Unicode.decodeSurrogate = function(hi,lo) { return hi - 55232 << 10 | lo & 1023; }; lime_text_unifill_Unicode.encodeHighSurrogate = function(c) { return (c >> 10) + 55232; }; lime_text_unifill_Unicode.encodeLowSurrogate = function(c) { return c & 1023 | 56320; }; lime_text_unifill_Unicode.isScalar = function(code) { if(0 <= code && code <= 1114111 && !(55296 <= code && code <= 56319)) { return !(56320 <= code && code <= 57343); } else { return false; } }; lime_text_unifill_Unicode.isHighSurrogate = function(code) { if(55296 <= code) { return code <= 56319; } else { return false; } }; lime_text_unifill_Unicode.isLowSurrogate = function(code) { if(56320 <= code) { return code <= 57343; } else { return false; } }; var lime_text_unifill_Unifill = function() { }; $hxClasses["lime.text.unifill.Unifill"] = lime_text_unifill_Unifill; lime_text_unifill_Unifill.__name__ = ["lime","text","unifill","Unifill"]; lime_text_unifill_Unifill.uLength = function(s) { var this1 = s; var this2 = this1; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount(this2,0,s.length); }; lime_text_unifill_Unifill.uCharAt = function(s,index) { var this1 = s; var this2 = this1; var this3 = this2; var i; if(index >= 0) { var index1 = 0; var len = this3.length; var i1 = 0; while(i1 < index && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i1; } i = index1; } else { var index2 = 0; var count = 0; while(count < -index && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } i = index2; } var this4 = s; var this5 = this4; var this6 = this5; var c2 = this6.charCodeAt(i); var this7 = HxOverrides.substr(this6,i,!(55296 <= c2 && c2 <= 56319) ? 1 : 2); var this8 = this7; return this8; }; lime_text_unifill_Unifill.uCharCodeAt = function(s,index) { var this1 = s; var this2 = this1; var this3 = this2; var i; if(index >= 0) { var index1 = 0; var len = this3.length; var i1 = 0; while(i1 < index && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i1; } i = index1; } else { var index2 = 0; var count = 0; while(count < -index && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } i = index2; } var this4 = s; var this5 = this4; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt(this5,i); }; lime_text_unifill_Unifill.uCodePointAt = function(s,index) { var this1 = s; var this2 = this1; var this3 = this2; var i; if(index >= 0) { var index1 = 0; var len = this3.length; var i1 = 0; while(i1 < index && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i1; } i = index1; } else { var index2 = 0; var count = 0; while(count < -index && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } i = index2; } var this4 = s; var this5 = this4; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt(this5,i); }; lime_text_unifill_Unifill.uIndexOf = function(s,value,startIndex) { if(startIndex == null) { startIndex = 0; } var this1 = s; var this2 = this1; var this3 = this2; var index; if(startIndex >= 0) { var index1 = 0; var len = this3.length; var i = 0; while(i < startIndex && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } index = index1; } else { var index2 = 0; var count = 0; while(count < -startIndex && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } index = index2; } var index3 = s.indexOf(value,index); if(index3 >= 0) { var this4 = s; var this5 = this4; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount(this5,0,index3); } else { return -1; } }; lime_text_unifill_Unifill.uLastIndexOf = function(s,value,startIndex) { if(startIndex == null) { startIndex = s.length - 1; } var this1 = s; var this2 = this1; var this3 = this2; var index; if(startIndex >= 0) { var index1 = 0; var len = this3.length; var i = 0; while(i < startIndex && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } index = index1; } else { var index2 = 0; var count = 0; while(count < -startIndex && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } index = index2; } var index3 = s.lastIndexOf(value,index); if(index3 >= 0) { var this4 = s; var this5 = this4; return lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount(this5,0,index3); } else { return -1; } }; lime_text_unifill_Unifill.uSplit = function(s,delimiter) { if(delimiter.length == 0) { var _g = []; var _g1_string; var _g1_index; var _g1_i; var _g1_endIndex; _g1_i = 0; _g1_string = s; _g1_index = 0; _g1_endIndex = s.length; while(_g1_index < _g1_endIndex) { _g1_i = _g1_index; var this1 = _g1_string; var this2 = this1; var c = this2.charCodeAt(_g1_index); _g1_index += !(55296 <= c && c <= 56319) ? 1 : 2; var i = _g1_i; var this3 = s; var this4 = this3; var this5 = this4; var c1 = this5.charCodeAt(i); var this6 = HxOverrides.substr(this5,i,!(55296 <= c1 && c1 <= 56319) ? 1 : 2); var this7 = this6; _g.push(this7); } return _g; } else { return s.split(delimiter); } }; lime_text_unifill_Unifill.uSubstr = function(s,startIndex,length) { var index = startIndex >= 0 ? 0 : s.length; var this1 = s; var this2 = this1; var this3 = this2; var si; if(startIndex >= 0) { var index1 = index; var len = this3.length; var i = 0; while(i < startIndex && index1 < len) { var c = this3.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } si = index1; } else { var index2 = index; var count = 0; while(count < -startIndex && 0 < index2) { var c1 = this3.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } si = index2; } var ei; if(length == null) { ei = s.length; } else if(length < 0) { ei = si; } else { var this4 = s; var this5 = this4; var this6 = this5; if(length >= 0) { var index3 = si; var len1 = this6.length; var i1 = 0; while(i1 < length && index3 < len1) { var c2 = this6.charCodeAt(index3); index3 += !(55296 <= c2 && c2 <= 56319) ? 1 : 2; ++i1; } ei = index3; } else { var index4 = si; var count1 = 0; while(count1 < -length && 0 < index4) { var c3 = this6.charCodeAt(index4 - 1); index4 -= !(56320 <= c3 && c3 <= 57343) ? 1 : 2; ++count1; } ei = index4; } } return s.substring(si,ei); }; lime_text_unifill_Unifill.uSubstring = function(s,startIndex,endIndex) { var si; if(startIndex < 0) { si = 0; } else { var this1 = s; var this2 = this1; var this3 = this2; if(startIndex >= 0) { var index = 0; var len = this3.length; var i = 0; while(i < startIndex && index < len) { var c = this3.charCodeAt(index); index += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } si = index; } else { var index1 = 0; var count = 0; while(count < -startIndex && 0 < index1) { var c1 = this3.charCodeAt(index1 - 1); index1 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } si = index1; } } var ei; if(endIndex == null) { ei = s.length; } else if(endIndex < 0) { ei = 0; } else { var this4 = s; var this5 = this4; var this6 = this5; if(endIndex >= 0) { var index2 = 0; var len1 = this6.length; var i1 = 0; while(i1 < endIndex && index2 < len1) { var c2 = this6.charCodeAt(index2); index2 += !(55296 <= c2 && c2 <= 56319) ? 1 : 2; ++i1; } ei = index2; } else { var index3 = 0; var count1 = 0; while(count1 < -endIndex && 0 < index3) { var c3 = this6.charCodeAt(index3 - 1); index3 -= !(56320 <= c3 && c3 <= 57343) ? 1 : 2; ++count1; } ei = index3; } } return s.substring(si,ei); }; lime_text_unifill_Unifill.uIterator = function(s) { return new lime_text_unifill_CodePointIter(s); }; lime_text_unifill_Unifill.uCompare = function(a,b) { var aiter_string; var aiter_index; var aiter_i; var aiter_endIndex; aiter_i = 0; aiter_string = a; aiter_index = 0; aiter_endIndex = a.length; var biter_string; var biter_index; var biter_i; var biter_endIndex; biter_i = 0; biter_string = b; biter_index = 0; biter_endIndex = b.length; while(aiter_index < aiter_endIndex && biter_index < biter_endIndex) { aiter_i = aiter_index; var this1 = aiter_string; var this2 = this1; var c = this2.charCodeAt(aiter_index); aiter_index += !(55296 <= c && c <= 56319) ? 1 : 2; var this3 = a; var this4 = this3; var acode = lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt(this4,aiter_i); biter_i = biter_index; var this5 = biter_string; var this6 = this5; var c1 = this6.charCodeAt(biter_index); biter_index += !(55296 <= c1 && c1 <= 56319) ? 1 : 2; var this7 = b; var this8 = this7; var bcode = lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt(this8,biter_i); if(acode < bcode) { return -1; } if(acode > bcode) { return 1; } } if(biter_index < biter_endIndex) { return -1; } if(aiter_index < aiter_endIndex) { return 1; } return 0; }; lime_text_unifill_Unifill.uToString = function(codePoints) { var this1 = new StringBuf(); var buf = this1; var c = $iterator(codePoints)(); while(c.hasNext()) { var c1 = c.next(); if(c1 <= 65535) { buf.b += String.fromCharCode(c1); } else { buf.b += String.fromCharCode((c1 >> 10) + 55232); buf.b += String.fromCharCode(c1 & 1023 | 56320); } } var this2 = buf.b; var this3 = this2; return this3; }; lime_text_unifill_Unifill.uAddChar = function(sb,c) { var c1 = c; if(c1 <= 65535) { sb.b += String.fromCharCode(c1); } else { sb.b += String.fromCharCode((c1 >> 10) + 55232); sb.b += String.fromCharCode(c1 & 1023 | 56320); } }; var lime_text_unifill__$Utf16_Utf16_$Impl_$ = {}; $hxClasses["lime.text.unifill._Utf16.Utf16_Impl_"] = lime_text_unifill__$Utf16_Utf16_$Impl_$; lime_text_unifill__$Utf16_Utf16_$Impl_$.__name__ = ["lime","text","unifill","_Utf16","Utf16_Impl_"]; lime_text_unifill__$Utf16_Utf16_$Impl_$.__properties__ = {get_length:"get_length"}; lime_text_unifill__$Utf16_Utf16_$Impl_$.fromCodePoint = function(codePoint) { if(codePoint <= 65535) { var this1 = String.fromCharCode(codePoint); var this2 = this1; return this2; } else { var this3 = String.fromCharCode((codePoint >> 10) + 55232) + String.fromCharCode(codePoint & 1023 | 56320); var this4 = this3; return this4; } }; lime_text_unifill__$Utf16_Utf16_$Impl_$.fromCodePoints = function(codePoints) { var this1 = new StringBuf(); var buf = this1; var c = $iterator(codePoints)(); while(c.hasNext()) { var c1 = c.next(); if(c1 <= 65535) { buf.b += String.fromCharCode(c1); } else { buf.b += String.fromCharCode((c1 >> 10) + 55232); buf.b += String.fromCharCode(c1 & 1023 | 56320); } } var this2 = buf.b; var this3 = this2; return this3; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.fromString = function(s) { var this1 = s; var this2 = this1; return this2; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.fromArray = function(a) { var buf_b = ""; var _g = 0; while(_g < a.length) { var x = a[_g]; ++_g; buf_b += String.fromCharCode(x); } var this1 = buf_b; var this2 = this1; return this2; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.encodeWith = function(f,c) { if(c <= 65535) { f(c); } else { f((c >> 10) + 55232); f(c & 1023 | 56320); } }; lime_text_unifill__$Utf16_Utf16_$Impl_$.codeUnitAt = function(this1,index) { return this1.charCodeAt(index); }; lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointAt = function(this1,index) { return lime_text_unifill__$Utf16_Utf16Impl.decode_code_point(this1.length,function(i) { return this1.charCodeAt(i); },index); }; lime_text_unifill__$Utf16_Utf16_$Impl_$.charAt = function(this1,index) { var c = this1.charCodeAt(index); var this2 = HxOverrides.substr(this1,index,!(55296 <= c && c <= 56319) ? 1 : 2); var this3 = this2; return this3; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointCount = function(this1,beginIndex,endIndex) { var index = beginIndex; var i = 0; while(index < endIndex) { var c = this1.charCodeAt(index); index += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } return i; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointWidthAt = function(this1,index) { var c = this1.charCodeAt(index); if(!(55296 <= c && c <= 56319)) { return 1; } else { return 2; } }; lime_text_unifill__$Utf16_Utf16_$Impl_$.codePointWidthBefore = function(this1,index) { var c = this1.charCodeAt(index - 1); if(!(56320 <= c && c <= 57343)) { return 1; } else { return 2; } }; lime_text_unifill__$Utf16_Utf16_$Impl_$.offsetByCodePoints = function(this1,index,codePointOffset) { if(codePointOffset >= 0) { var index1 = index; var len = this1.length; var i = 0; while(i < codePointOffset && index1 < len) { var c = this1.charCodeAt(index1); index1 += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } return index1; } else { var index2 = index; var count = 0; while(count < -codePointOffset && 0 < index2) { var c1 = this1.charCodeAt(index2 - 1); index2 -= !(56320 <= c1 && c1 <= 57343) ? 1 : 2; ++count; } return index2; } }; lime_text_unifill__$Utf16_Utf16_$Impl_$.substr = function(this1,index,len) { var this2 = HxOverrides.substr(this1,index,len); var this3 = this2; return this3; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.validate = function(this1) { var len = this1.length; var accessor = function(i) { return this1.charCodeAt(i); }; var i1 = 0; while(i1 < len) { lime_text_unifill__$Utf16_Utf16Impl.decode_code_point(len,accessor,i1); var c = this1.charCodeAt(i1); i1 += !(55296 <= c && c <= 56319) ? 1 : 2; } }; lime_text_unifill__$Utf16_Utf16_$Impl_$.toString = function(this1) { return this1; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.toArray = function(this1) { var i = 0; var len = this1.length; var _g = []; while(i < len) _g.push(this1.charCodeAt(i++)); return _g; }; lime_text_unifill__$Utf16_Utf16_$Impl_$._new = function(s) { var this1 = s; return this1; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.get_length = function(this1) { return this1.length; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.forward_offset_by_code_points = function(this1,index,codePointOffset) { var len = this1.length; var i = 0; while(i < codePointOffset && index < len) { var c = this1.charCodeAt(index); index += !(55296 <= c && c <= 56319) ? 1 : 2; ++i; } return index; }; lime_text_unifill__$Utf16_Utf16_$Impl_$.backward_offset_by_code_points = function(this1,index,codePointOffset) { var count = 0; while(count < codePointOffset && 0 < index) { var c = this1.charCodeAt(index - 1); index -= !(56320 <= c && c <= 57343) ? 1 : 2; ++count; } return index; }; var lime_text_unifill__$Utf16_Utf16Impl = function() { }; $hxClasses["lime.text.unifill._Utf16.Utf16Impl"] = lime_text_unifill__$Utf16_Utf16Impl; lime_text_unifill__$Utf16_Utf16Impl.__name__ = ["lime","text","unifill","_Utf16","Utf16Impl"]; lime_text_unifill__$Utf16_Utf16Impl.code_point_width = function(c) { if(!(55296 <= c && c <= 56319)) { return 1; } else { return 2; } }; lime_text_unifill__$Utf16_Utf16Impl.find_prev_code_point = function(accessor,index) { var c = accessor(index - 1); if(!(56320 <= c && c <= 57343)) { return 1; } else { return 2; } }; lime_text_unifill__$Utf16_Utf16Impl.encode_code_point = function(addUnit,codePoint) { if(codePoint <= 65535) { addUnit(codePoint); } else { addUnit((codePoint >> 10) + 55232); addUnit(codePoint & 1023 | 56320); } }; lime_text_unifill__$Utf16_Utf16Impl.decode_code_point = function(len,accessor,index) { if(index < 0 || len <= index) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodeUnitSequence(index)); } var hi = accessor(index); if(55296 <= hi && hi <= 56319) { if(index + 1 < 0 || len <= index + 1) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodeUnitSequence(index)); } var lo = accessor(index + 1); if(56320 <= lo && lo <= 57343) { return hi - 55232 << 10 | lo & 1023; } else { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodeUnitSequence(index)); } } else if(56320 <= hi && hi <= 57343) { throw new js__$Boot_HaxeError(new lime_text_unifill_InvalidCodeUnitSequence(index)); } else { return hi; } }; var lime_text_unifill__$Utf16_StringU16Buffer_$Impl_$ = {}; $hxClasses["lime.text.unifill._Utf16.StringU16Buffer_Impl_"] = lime_text_unifill__$Utf16_StringU16Buffer_$Impl_$; lime_text_unifill__$Utf16_StringU16Buffer_$Impl_$.__name__ = ["lime","text","unifill","_Utf16","StringU16Buffer_Impl_"]; lime_text_unifill__$Utf16_StringU16Buffer_$Impl_$._new = function() { var this1 = new StringBuf(); return this1; }; lime_text_unifill__$Utf16_StringU16Buffer_$Impl_$.addUnit = function(this1,unit) { this1.b += String.fromCharCode(unit); }; lime_text_unifill__$Utf16_StringU16Buffer_$Impl_$.getStringU16 = function(this1) { var this2 = this1.b; return this2; }; var lime_text_unifill__$Utf16_StringU16_$Impl_$ = {}; $hxClasses["lime.text.unifill._Utf16.StringU16_Impl_"] = lime_text_unifill__$Utf16_StringU16_$Impl_$; lime_text_unifill__$Utf16_StringU16_$Impl_$.__name__ = ["lime","text","unifill","_Utf16","StringU16_Impl_"]; lime_text_unifill__$Utf16_StringU16_$Impl_$.__properties__ = {get_length:"get_length"}; lime_text_unifill__$Utf16_StringU16_$Impl_$.fromString = function(s) { var this1 = s; return this1; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.fromCodeUnit = function(u) { var this1 = String.fromCharCode(u); return this1; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.fromTwoCodeUnits = function(u0,u1) { var this1 = String.fromCharCode(u0) + String.fromCharCode(u1); return this1; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.ofArray = function(a) { var buf_b = ""; var _g = 0; while(_g < a.length) { var x = a[_g]; ++_g; buf_b += String.fromCharCode(x); } var this1 = buf_b; return this1; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.fromArray = function(a) { var buf_b = ""; var _g = 0; while(_g < a.length) { var x = a[_g]; ++_g; buf_b += String.fromCharCode(x); } var this1 = buf_b; return this1; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.codeUnitAt = function(this1,index) { return this1.charCodeAt(index); }; lime_text_unifill__$Utf16_StringU16_$Impl_$.substr = function(this1,index,len) { var this2 = HxOverrides.substr(this1,index,len); return this2; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.toString = function(this1) { return this1; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.toArray = function(this1) { var i = 0; var len = this1.length; var _g = []; while(i < len) _g.push(this1.charCodeAt(i++)); return _g; }; lime_text_unifill__$Utf16_StringU16_$Impl_$._new = function(s) { var this1 = s; return this1; }; lime_text_unifill__$Utf16_StringU16_$Impl_$.get_length = function(this1) { return this1.length; }; var lime_ui_Gamepad = function(id) { this.onDisconnect = new lime_app__$Event_$Void_$Void(); this.onButtonUp = new lime_app__$Event_$lime_$ui_$GamepadButton_$Void(); this.onButtonDown = new lime_app__$Event_$lime_$ui_$GamepadButton_$Void(); this.onAxisMove = new lime_app__$Event_$lime_$ui_$GamepadAxis_$Float_$Void(); this.id = id; this.connected = true; }; $hxClasses["lime.ui.Gamepad"] = lime_ui_Gamepad; lime_ui_Gamepad.__name__ = ["lime","ui","Gamepad"]; lime_ui_Gamepad.addMappings = function(mappings) { }; lime_ui_Gamepad.__connect = function(id) { if(!lime_ui_Gamepad.devices.h.hasOwnProperty(id)) { var gamepad = new lime_ui_Gamepad(id); lime_ui_Gamepad.devices.h[id] = gamepad; lime_ui_Gamepad.onConnect.dispatch(gamepad); } }; lime_ui_Gamepad.__disconnect = function(id) { var gamepad = lime_ui_Gamepad.devices.h[id]; if(gamepad != null) { gamepad.connected = false; } lime_ui_Gamepad.devices.remove(id); if(gamepad != null) { gamepad.onDisconnect.dispatch(); } }; lime_ui_Gamepad.prototype = { connected: null ,id: null ,onAxisMove: null ,onButtonDown: null ,onButtonUp: null ,onDisconnect: null ,get_guid: function() { var devices = lime_ui_Joystick.__getDeviceData(); return devices[this.id].id; } ,get_name: function() { var devices = lime_ui_Joystick.__getDeviceData(); return devices[this.id].id; } ,__class__: lime_ui_Gamepad ,__properties__: {get_name:"get_name",get_guid:"get_guid"} }; var lime_ui__$GamepadAxis_GamepadAxis_$Impl_$ = {}; $hxClasses["lime.ui._GamepadAxis.GamepadAxis_Impl_"] = lime_ui__$GamepadAxis_GamepadAxis_$Impl_$; lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.__name__ = ["lime","ui","_GamepadAxis","GamepadAxis_Impl_"]; lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.toString = function(this1) { switch(this1) { case 0: return "LEFT_X"; case 1: return "LEFT_Y"; case 2: return "RIGHT_X"; case 3: return "RIGHT_Y"; case 4: return "TRIGGER_LEFT"; case 5: return "TRIGGER_RIGHT"; default: return "UNKNOWN (" + this1 + ")"; } }; var lime_ui__$GamepadButton_GamepadButton_$Impl_$ = {}; $hxClasses["lime.ui._GamepadButton.GamepadButton_Impl_"] = lime_ui__$GamepadButton_GamepadButton_$Impl_$; lime_ui__$GamepadButton_GamepadButton_$Impl_$.__name__ = ["lime","ui","_GamepadButton","GamepadButton_Impl_"]; lime_ui__$GamepadButton_GamepadButton_$Impl_$.toString = function(this1) { switch(this1) { case 0: return "A"; case 1: return "B"; case 2: return "X"; case 3: return "Y"; case 4: return "BACK"; case 5: return "GUIDE"; case 6: return "START"; case 7: return "LEFT_STICK"; case 8: return "RIGHT_STICK"; case 9: return "LEFT_SHOULDER"; case 10: return "RIGHT_SHOULDER"; case 11: return "DPAD_UP"; case 12: return "DPAD_DOWN"; case 13: return "DPAD_LEFT"; case 14: return "DPAD_RIGHT"; default: return "UNKNOWN (" + this1 + ")"; } }; var lime_ui_Joystick = function(id) { this.onTrackballMove = new lime_app__$Event_$Int_$Float_$Float_$Void(); this.onHatMove = new lime_app__$Event_$Int_$lime_$ui_$JoystickHatPosition_$Void(); this.onDisconnect = new lime_app__$Event_$Void_$Void(); this.onButtonUp = new lime_app__$Event_$Int_$Void(); this.onButtonDown = new lime_app__$Event_$Int_$Void(); this.onAxisMove = new lime_app__$Event_$Int_$Float_$Void(); this.id = id; this.connected = true; }; $hxClasses["lime.ui.Joystick"] = lime_ui_Joystick; lime_ui_Joystick.__name__ = ["lime","ui","Joystick"]; lime_ui_Joystick.__connect = function(id) { if(!lime_ui_Joystick.devices.h.hasOwnProperty(id)) { var joystick = new lime_ui_Joystick(id); lime_ui_Joystick.devices.h[id] = joystick; lime_ui_Joystick.onConnect.dispatch(joystick); } }; lime_ui_Joystick.__disconnect = function(id) { var joystick = lime_ui_Joystick.devices.h[id]; if(joystick != null) { joystick.connected = false; } lime_ui_Joystick.devices.remove(id); if(joystick != null) { joystick.onDisconnect.dispatch(); } }; lime_ui_Joystick.__getDeviceData = function() { if(navigator.getGamepads) { return navigator.getGamepads(); } else if(navigator.webkitGetGamepads) { return navigator.webkitGetGamepads(); } else { return null; } }; lime_ui_Joystick.prototype = { connected: null ,id: null ,onAxisMove: null ,onButtonDown: null ,onButtonUp: null ,onDisconnect: null ,onHatMove: null ,onTrackballMove: null ,get_guid: function() { var devices = lime_ui_Joystick.__getDeviceData(); return devices[this.id].id; } ,get_name: function() { var devices = lime_ui_Joystick.__getDeviceData(); return devices[this.id].id; } ,get_numAxes: function() { var devices = lime_ui_Joystick.__getDeviceData(); return devices[this.id].axes.length; } ,get_numButtons: function() { var devices = lime_ui_Joystick.__getDeviceData(); return devices[this.id].buttons.length; } ,get_numHats: function() { return 0; } ,get_numTrackballs: function() { return 0; } ,__class__: lime_ui_Joystick ,__properties__: {get_numTrackballs:"get_numTrackballs",get_numHats:"get_numHats",get_numButtons:"get_numButtons",get_numAxes:"get_numAxes",get_name:"get_name",get_guid:"get_guid"} }; var lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$ = {}; $hxClasses["lime.ui._JoystickHatPosition.JoystickHatPosition_Impl_"] = lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.__name__ = ["lime","ui","_JoystickHatPosition","JoystickHatPosition_Impl_"]; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.__properties__ = {set_up:"set_up",get_up:"get_up",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_down:"set_down",get_down:"get_down",set_center:"set_center",get_center:"get_center"}; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$._new = function(value) { var this1 = value; return this1; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.get_center = function(this1) { return this1 == 0; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.set_center = function(this1,value) { if(value) { this1 = 0; } return value; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.get_down = function(this1) { return (this1 & 4) > 0; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.set_down = function(this1,value) { if(value) { this1 |= 4; } else { this1 &= 268435455 - 4; } return value; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.get_left = function(this1) { return (this1 & 8) > 0; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.set_left = function(this1,value) { if(value) { this1 |= 8; } else { this1 &= 268435455 - 8; } return value; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.get_right = function(this1) { return (this1 & 2) > 0; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.set_right = function(this1,value) { if(value) { this1 |= 2; } else { this1 &= 268435455 - 2; } return value; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.get_up = function(this1) { return (this1 & 1) > 0; }; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.set_up = function(this1,value) { if(value) { this1 |= 1; } else { this1 &= 268435455 - 1; } return value; }; var lime_ui__$KeyCode_KeyCode_$Impl_$ = {}; $hxClasses["lime.ui._KeyCode.KeyCode_Impl_"] = lime_ui__$KeyCode_KeyCode_$Impl_$; lime_ui__$KeyCode_KeyCode_$Impl_$.__name__ = ["lime","ui","_KeyCode","KeyCode_Impl_"]; lime_ui__$KeyCode_KeyCode_$Impl_$.fromScanCode = function(scanCode) { return 0; }; lime_ui__$KeyCode_KeyCode_$Impl_$.toScanCode = function(keyCode) { return 0; }; lime_ui__$KeyCode_KeyCode_$Impl_$.gt = function(a,b) { return a > b; }; lime_ui__$KeyCode_KeyCode_$Impl_$.gte = function(a,b) { return a >= b; }; lime_ui__$KeyCode_KeyCode_$Impl_$.lt = function(a,b) { return a < b; }; lime_ui__$KeyCode_KeyCode_$Impl_$.lte = function(a,b) { return a <= b; }; lime_ui__$KeyCode_KeyCode_$Impl_$.plus = function(a,b) { return a + b; }; var lime_ui__$KeyModifier_KeyModifier_$Impl_$ = {}; $hxClasses["lime.ui._KeyModifier.KeyModifier_Impl_"] = lime_ui__$KeyModifier_KeyModifier_$Impl_$; lime_ui__$KeyModifier_KeyModifier_$Impl_$.__name__ = ["lime","ui","_KeyModifier","KeyModifier_Impl_"]; lime_ui__$KeyModifier_KeyModifier_$Impl_$.__properties__ = {set_shiftKey:"set_shiftKey",get_shiftKey:"get_shiftKey",set_numLock:"set_numLock",get_numLock:"get_numLock",set_metaKey:"set_metaKey",get_metaKey:"get_metaKey",set_ctrlKey:"set_ctrlKey",get_ctrlKey:"get_ctrlKey",set_capsLock:"set_capsLock",get_capsLock:"get_capsLock",set_altKey:"set_altKey",get_altKey:"get_altKey"}; lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_altKey = function(this1) { if((this1 & 256) <= 0) { return (this1 & 512) > 0; } else { return true; } }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.set_altKey = function(this1,value) { if(value) { this1 |= 768; } else { this1 &= 268435455 - 768; } return value; }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_capsLock = function(this1) { if((this1 & 8192) <= 0) { return (this1 & 8192) > 0; } else { return true; } }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.set_capsLock = function(this1,value) { if(value) { this1 |= 8192; } else { this1 &= 268435455 - 8192; } return value; }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey = function(this1) { if((this1 & 64) <= 0) { return (this1 & 128) > 0; } else { return true; } }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.set_ctrlKey = function(this1,value) { if(value) { this1 |= 192; } else { this1 &= 268435455 - 192; } return value; }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey = function(this1) { if((this1 & 1024) <= 0) { return (this1 & 2048) > 0; } else { return true; } }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.set_metaKey = function(this1,value) { if(value) { this1 |= 3072; } else { this1 &= 268435455 - 3072; } return value; }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_numLock = function(this1) { if((this1 & 4096) <= 0) { return (this1 & 4096) > 0; } else { return true; } }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.set_numLock = function(this1,value) { if(value) { this1 |= 4096; } else { this1 &= 268435455 - 4096; } return value; }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey = function(this1) { if((this1 & 1) <= 0) { return (this1 & 2) > 0; } else { return true; } }; lime_ui__$KeyModifier_KeyModifier_$Impl_$.set_shiftKey = function(this1,value) { if(value) { this1 |= 3; } else { this1 &= 268435455 - 3; } return value; }; var lime_ui_Mouse = function() { }; $hxClasses["lime.ui.Mouse"] = lime_ui_Mouse; lime_ui_Mouse.__name__ = ["lime","ui","Mouse"]; lime_ui_Mouse.__properties__ = {set_lock:"set_lock",get_lock:"get_lock",set_cursor:"set_cursor",get_cursor:"get_cursor"}; lime_ui_Mouse.hide = function() { lime__$backend_html5_HTML5Mouse.hide(); }; lime_ui_Mouse.show = function() { lime__$backend_html5_HTML5Mouse.show(); }; lime_ui_Mouse.warp = function(x,y,window) { lime__$backend_html5_HTML5Mouse.warp(x,y,window); }; lime_ui_Mouse.get_cursor = function() { return lime__$backend_html5_HTML5Mouse.get_cursor(); }; lime_ui_Mouse.set_cursor = function(value) { return lime__$backend_html5_HTML5Mouse.set_cursor(value); }; lime_ui_Mouse.get_lock = function() { return lime__$backend_html5_HTML5Mouse.get_lock(); }; lime_ui_Mouse.set_lock = function(value) { return lime__$backend_html5_HTML5Mouse.set_lock(value); }; var lime_ui_MouseCursor = $hxClasses["lime.ui.MouseCursor"] = { __ename__ : ["lime","ui","MouseCursor"], __constructs__ : ["ARROW","CROSSHAIR","DEFAULT","MOVE","POINTER","RESIZE_NESW","RESIZE_NS","RESIZE_NWSE","RESIZE_WE","TEXT","WAIT","WAIT_ARROW","CUSTOM"] }; lime_ui_MouseCursor.ARROW = ["ARROW",0]; lime_ui_MouseCursor.ARROW.toString = $estr; lime_ui_MouseCursor.ARROW.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.CROSSHAIR = ["CROSSHAIR",1]; lime_ui_MouseCursor.CROSSHAIR.toString = $estr; lime_ui_MouseCursor.CROSSHAIR.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.DEFAULT = ["DEFAULT",2]; lime_ui_MouseCursor.DEFAULT.toString = $estr; lime_ui_MouseCursor.DEFAULT.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.MOVE = ["MOVE",3]; lime_ui_MouseCursor.MOVE.toString = $estr; lime_ui_MouseCursor.MOVE.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.POINTER = ["POINTER",4]; lime_ui_MouseCursor.POINTER.toString = $estr; lime_ui_MouseCursor.POINTER.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.RESIZE_NESW = ["RESIZE_NESW",5]; lime_ui_MouseCursor.RESIZE_NESW.toString = $estr; lime_ui_MouseCursor.RESIZE_NESW.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.RESIZE_NS = ["RESIZE_NS",6]; lime_ui_MouseCursor.RESIZE_NS.toString = $estr; lime_ui_MouseCursor.RESIZE_NS.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.RESIZE_NWSE = ["RESIZE_NWSE",7]; lime_ui_MouseCursor.RESIZE_NWSE.toString = $estr; lime_ui_MouseCursor.RESIZE_NWSE.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.RESIZE_WE = ["RESIZE_WE",8]; lime_ui_MouseCursor.RESIZE_WE.toString = $estr; lime_ui_MouseCursor.RESIZE_WE.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.TEXT = ["TEXT",9]; lime_ui_MouseCursor.TEXT.toString = $estr; lime_ui_MouseCursor.TEXT.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.WAIT = ["WAIT",10]; lime_ui_MouseCursor.WAIT.toString = $estr; lime_ui_MouseCursor.WAIT.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.WAIT_ARROW = ["WAIT_ARROW",11]; lime_ui_MouseCursor.WAIT_ARROW.toString = $estr; lime_ui_MouseCursor.WAIT_ARROW.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.CUSTOM = ["CUSTOM",12]; lime_ui_MouseCursor.CUSTOM.toString = $estr; lime_ui_MouseCursor.CUSTOM.__enum__ = lime_ui_MouseCursor; lime_ui_MouseCursor.__empty_constructs__ = [lime_ui_MouseCursor.ARROW,lime_ui_MouseCursor.CROSSHAIR,lime_ui_MouseCursor.DEFAULT,lime_ui_MouseCursor.MOVE,lime_ui_MouseCursor.POINTER,lime_ui_MouseCursor.RESIZE_NESW,lime_ui_MouseCursor.RESIZE_NS,lime_ui_MouseCursor.RESIZE_NWSE,lime_ui_MouseCursor.RESIZE_WE,lime_ui_MouseCursor.TEXT,lime_ui_MouseCursor.WAIT,lime_ui_MouseCursor.WAIT_ARROW,lime_ui_MouseCursor.CUSTOM]; var lime_ui__$ScanCode_ScanCode_$Impl_$ = {}; $hxClasses["lime.ui._ScanCode.ScanCode_Impl_"] = lime_ui__$ScanCode_ScanCode_$Impl_$; lime_ui__$ScanCode_ScanCode_$Impl_$.__name__ = ["lime","ui","_ScanCode","ScanCode_Impl_"]; lime_ui__$ScanCode_ScanCode_$Impl_$.fromKeyCode = function(keyCode) { return lime_ui__$KeyCode_KeyCode_$Impl_$.toScanCode(keyCode); }; lime_ui__$ScanCode_ScanCode_$Impl_$.toKeyCode = function(scanCode) { return lime_ui__$KeyCode_KeyCode_$Impl_$.fromScanCode(scanCode); }; lime_ui__$ScanCode_ScanCode_$Impl_$.gt = function(a,b) { return a > b; }; lime_ui__$ScanCode_ScanCode_$Impl_$.gte = function(a,b) { return a >= b; }; lime_ui__$ScanCode_ScanCode_$Impl_$.lt = function(a,b) { return a < b; }; lime_ui__$ScanCode_ScanCode_$Impl_$.lte = function(a,b) { return a <= b; }; lime_ui__$ScanCode_ScanCode_$Impl_$.plus = function(a,b) { return a + b; }; var lime_ui_Touch = function(x,y,id,dx,dy,pressure,device) { this.x = x; this.y = y; this.id = id; this.dx = dx; this.dy = dy; this.pressure = pressure; this.device = device; }; $hxClasses["lime.ui.Touch"] = lime_ui_Touch; lime_ui_Touch.__name__ = ["lime","ui","Touch"]; lime_ui_Touch.prototype = { device: null ,dx: null ,dy: null ,id: null ,pressure: null ,x: null ,y: null ,__class__: lime_ui_Touch }; var lime_ui_Window = function(config) { this.onTextInput = new lime_app__$Event_$String_$Void(); this.onTextEdit = new lime_app__$Event_$String_$Int_$Int_$Void(); this.onRestore = new lime_app__$Event_$Void_$Void(); this.onResize = new lime_app__$Event_$Int_$Int_$Void(); this.onMove = new lime_app__$Event_$Float_$Float_$Void(); this.onMouseWheel = new lime_app__$Event_$Float_$Float_$Void(); this.onMouseUp = new lime_app__$Event_$Float_$Float_$Int_$Void(); this.onMouseMoveRelative = new lime_app__$Event_$Float_$Float_$Void(); this.onMouseMove = new lime_app__$Event_$Float_$Float_$Void(); this.onMouseDown = new lime_app__$Event_$Float_$Float_$Int_$Void(); this.onMinimize = new lime_app__$Event_$Void_$Void(); this.onLeave = new lime_app__$Event_$Void_$Void(); this.onKeyUp = new lime_app__$Event_$lime_$ui_$KeyCode_$lime_$ui_$KeyModifier_$Void(); this.onKeyDown = new lime_app__$Event_$lime_$ui_$KeyCode_$lime_$ui_$KeyModifier_$Void(); this.onFullscreen = new lime_app__$Event_$Void_$Void(); this.onFocusOut = new lime_app__$Event_$Void_$Void(); this.onFocusIn = new lime_app__$Event_$Void_$Void(); this.onEnter = new lime_app__$Event_$Void_$Void(); this.onDropFile = new lime_app__$Event_$String_$Void(); this.onDeactivate = new lime_app__$Event_$Void_$Void(); this.onCreate = new lime_app__$Event_$Void_$Void(); this.onClose = new lime_app__$Event_$Void_$Void(); this.onActivate = new lime_app__$Event_$Void_$Void(); this.config = config; this.__width = 0; this.__height = 0; this.__fullscreen = false; this.__scale = 1; this.__x = 0; this.__y = 0; this.__title = ""; this.id = -1; if(config != null) { if(Object.prototype.hasOwnProperty.call(config,"width")) { this.__width = config.width; } if(Object.prototype.hasOwnProperty.call(config,"height")) { this.__height = config.height; } if(Object.prototype.hasOwnProperty.call(config,"x")) { this.__x = config.x; } if(Object.prototype.hasOwnProperty.call(config,"y")) { this.__y = config.y; } if(Object.prototype.hasOwnProperty.call(config,"borderless")) { this.__borderless = config.borderless; } if(Object.prototype.hasOwnProperty.call(config,"resizable")) { this.__resizable = config.resizable; } if(Object.prototype.hasOwnProperty.call(config,"title")) { this.__title = config.title; } } this.backend = new lime__$backend_html5_HTML5Window(this); }; $hxClasses["lime.ui.Window"] = lime_ui_Window; lime_ui_Window.__name__ = ["lime","ui","Window"]; lime_ui_Window.prototype = { application: null ,config: null ,display: null ,id: null ,onActivate: null ,onClose: null ,onCreate: null ,onDeactivate: null ,onDropFile: null ,onEnter: null ,onFocusIn: null ,onFocusOut: null ,onFullscreen: null ,onKeyDown: null ,onKeyUp: null ,onLeave: null ,onMinimize: null ,onMouseDown: null ,onMouseMove: null ,onMouseMoveRelative: null ,onMouseUp: null ,onMouseWheel: null ,onMove: null ,onResize: null ,onRestore: null ,onTextEdit: null ,onTextInput: null ,renderer: null ,scale: null ,stage: null ,backend: null ,__borderless: null ,__fullscreen: null ,__height: null ,__maximized: null ,__minimized: null ,__resizable: null ,__scale: null ,__title: null ,__width: null ,__x: null ,__y: null ,alert: function(message,title) { this.backend.alert(message,title); } ,close: function() { this.backend.close(); } ,create: function(application) { this.application = application; this.backend.create(application); if(this.renderer != null) { this.renderer.create(); } } ,focus: function() { this.backend.focus(); } ,move: function(x,y) { this.backend.move(x,y); this.__x = x; this.__y = y; } ,resize: function(width,height) { this.backend.resize(width,height); this.__width = width; this.__height = height; } ,setIcon: function(image) { if(image == null) { return; } this.backend.setIcon(image); } ,toString: function() { return "[object Window]"; } ,get_display: function() { return this.backend.getDisplay(); } ,get_displayMode: function() { return this.backend.getDisplayMode(); } ,set_displayMode: function(value) { return this.backend.setDisplayMode(value); } ,get_borderless: function() { return this.__borderless; } ,set_borderless: function(value) { return this.__borderless = this.backend.setBorderless(value); } ,get_enableTextEvents: function() { return this.backend.getEnableTextEvents(); } ,set_enableTextEvents: function(value) { return this.backend.setEnableTextEvents(value); } ,get_fullscreen: function() { return this.__fullscreen; } ,set_fullscreen: function(value) { return this.__fullscreen = this.backend.setFullscreen(value); } ,get_height: function() { return this.__height; } ,set_height: function(value) { this.resize(this.__width,value); return this.__height; } ,get_maximized: function() { return this.__maximized; } ,set_maximized: function(value) { this.__minimized = false; return this.__maximized = this.backend.setMaximized(value); } ,get_minimized: function() { return this.__minimized; } ,set_minimized: function(value) { this.__maximized = false; return this.__minimized = this.backend.setMinimized(value); } ,get_resizable: function() { return this.__resizable; } ,set_resizable: function(value) { this.__resizable = this.backend.setResizable(value); return this.__resizable; } ,get_scale: function() { return this.__scale; } ,get_title: function() { return this.__title; } ,set_title: function(value) { return this.__title = this.backend.setTitle(value); } ,get_width: function() { return this.__width; } ,set_width: function(value) { this.resize(value,this.__height); return this.__width; } ,get_x: function() { return this.__x; } ,set_x: function(value) { this.move(value,this.__y); return this.__x; } ,get_y: function() { return this.__y; } ,set_y: function(value) { this.move(this.__x,value); return this.__y; } ,__class__: lime_ui_Window ,__properties__: {set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width",get_width:"get_width",set_title:"set_title",get_title:"get_title",get_scale:"get_scale",set_resizable:"set_resizable",get_resizable:"get_resizable",set_minimized:"set_minimized",get_minimized:"get_minimized",set_maximized:"set_maximized",get_maximized:"get_maximized",set_height:"set_height",get_height:"get_height",set_fullscreen:"set_fullscreen",get_fullscreen:"get_fullscreen",set_enableTextEvents:"set_enableTextEvents",get_enableTextEvents:"get_enableTextEvents",set_displayMode:"set_displayMode",get_displayMode:"get_displayMode",get_display:"get_display",set_borderless:"set_borderless",get_borderless:"get_borderless"} }; var lime_utils_TAError = $hxClasses["lime.utils.TAError"] = { __ename__ : ["lime","utils","TAError"], __constructs__ : ["RangeError"] }; lime_utils_TAError.RangeError = ["RangeError",0]; lime_utils_TAError.RangeError.toString = $estr; lime_utils_TAError.RangeError.__enum__ = lime_utils_TAError; lime_utils_TAError.__empty_constructs__ = [lime_utils_TAError.RangeError]; var lime_utils_AssetCache = function() { this.enabled = true; this.audio = new haxe_ds_StringMap(); this.font = new haxe_ds_StringMap(); this.image = new haxe_ds_StringMap(); this.version = 365389; }; $hxClasses["lime.utils.AssetCache"] = lime_utils_AssetCache; lime_utils_AssetCache.__name__ = ["lime","utils","AssetCache"]; lime_utils_AssetCache.prototype = { audio: null ,enabled: null ,image: null ,font: null ,version: null ,exists: function(id,type) { if(type == "IMAGE" || type == null) { var _this = this.image; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { return true; } } if(type == "FONT" || type == null) { var _this1 = this.font; if(__map_reserved[id] != null ? _this1.existsReserved(id) : _this1.h.hasOwnProperty(id)) { return true; } } if(type == "SOUND" || type == "MUSIC" || type == null) { var _this2 = this.audio; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { return true; } } return false; } ,set: function(id,type,asset) { switch(type) { case "FONT": this.font.set(id,asset); break; case "IMAGE": if(!js_Boot.__instanceof(asset,lime_graphics_Image)) { throw new js__$Boot_HaxeError("Cannot cache non-Image asset: " + Std.string(asset) + " as Image"); } this.image.set(id,asset); break; case "MUSIC":case "SOUND": if(!js_Boot.__instanceof(asset,lime_media_AudioBuffer)) { throw new js__$Boot_HaxeError("Cannot cache non-AudioBuffer asset: " + Std.string(asset) + " as AudioBuffer"); } this.audio.set(id,asset); break; default: throw new js__$Boot_HaxeError(type + " assets are not cachable"); } } ,clear: function(prefix) { if(prefix == null) { this.audio = new haxe_ds_StringMap(); this.font = new haxe_ds_StringMap(); this.image = new haxe_ds_StringMap(); } else { var keys = this.audio.keys(); var key = keys; while(key.hasNext()) { var key1 = key.next(); if(StringTools.startsWith(key1,prefix)) { this.audio.remove(key1); } } var keys1 = this.font.keys(); var key2 = keys1; while(key2.hasNext()) { var key3 = key2.next(); if(StringTools.startsWith(key3,prefix)) { this.font.remove(key3); } } var keys2 = this.image.keys(); var key4 = keys2; while(key4.hasNext()) { var key5 = key4.next(); if(StringTools.startsWith(key5,prefix)) { this.image.remove(key5); } } } } ,__class__: lime_utils_AssetCache }; var lime_utils_AssetLibrary = function() { this.types = new haxe_ds_StringMap(); this.sizes = new haxe_ds_StringMap(); this.preload = new haxe_ds_StringMap(); this.paths = new haxe_ds_StringMap(); this.pathGroups = new haxe_ds_StringMap(); this.classTypes = new haxe_ds_StringMap(); this.cachedText = new haxe_ds_StringMap(); this.cachedImages = new haxe_ds_StringMap(); this.cachedFonts = new haxe_ds_StringMap(); this.cachedBytes = new haxe_ds_StringMap(); this.cachedAudioBuffers = new haxe_ds_StringMap(); this.onChange = new lime_app__$Event_$Void_$Void(); this.bytesLoaded = 0; this.bytesTotal = 0; }; $hxClasses["lime.utils.AssetLibrary"] = lime_utils_AssetLibrary; lime_utils_AssetLibrary.__name__ = ["lime","utils","AssetLibrary"]; lime_utils_AssetLibrary.fromBytes = function(bytes,rootPath) { return lime_utils_AssetLibrary.fromManifest(lime_utils_AssetManifest.fromBytes(bytes,rootPath)); }; lime_utils_AssetLibrary.fromFile = function(path,rootPath) { return lime_utils_AssetLibrary.fromManifest(lime_utils_AssetManifest.fromFile(path,rootPath)); }; lime_utils_AssetLibrary.fromManifest = function(manifest) { if(manifest == null) { return null; } var library = null; if(manifest.libraryType == null) { library = new lime_utils_AssetLibrary(); } else { var libraryClass = Type.resolveClass(manifest.libraryType); if(libraryClass != null) { library = Type.createInstance(libraryClass,manifest.libraryArgs); } else { lime_utils_Log.warn("Could not find library type: " + manifest.libraryType,{ fileName : "AssetLibrary.hx", lineNumber : 138, className : "lime.utils.AssetLibrary", methodName : "fromManifest"}); return null; } } library.__fromManifest(manifest); return library; }; lime_utils_AssetLibrary.loadFromBytes = function(bytes,rootPath) { return lime_utils_AssetManifest.loadFromBytes(bytes,rootPath).then(function(manifest) { return lime_utils_AssetLibrary.loadFromManifest(manifest); }); }; lime_utils_AssetLibrary.loadFromFile = function(path,rootPath) { return lime_utils_AssetManifest.loadFromFile(path,rootPath).then(function(manifest) { return lime_utils_AssetLibrary.loadFromManifest(manifest); }); }; lime_utils_AssetLibrary.loadFromManifest = function(manifest) { var library = lime_utils_AssetLibrary.fromManifest(manifest); if(library != null) { return library.load(); } else { return lime_app_Future.withError("Could not load asset manifest"); } }; lime_utils_AssetLibrary.prototype = { onChange: null ,assetsLoaded: null ,assetsTotal: null ,bytesLoaded: null ,bytesLoadedCache: null ,bytesTotal: null ,cachedAudioBuffers: null ,cachedBytes: null ,cachedFonts: null ,cachedImages: null ,cachedText: null ,classTypes: null ,loaded: null ,pathGroups: null ,paths: null ,preload: null ,promise: null ,sizes: null ,types: null ,exists: function(id,type) { var requestedType = type != null ? js_Boot.__cast(type , String) : null; var _this = this.types; var assetType = __map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]; if(assetType != null) { if(assetType == requestedType || (requestedType == "SOUND" || requestedType == "MUSIC") && (assetType == "MUSIC" || assetType == "SOUND")) { return true; } if(requestedType == "BINARY" || requestedType == null || assetType == "BINARY" && requestedType == "TEXT") { return true; } } return false; } ,getAsset: function(id,type) { switch(type) { case "BINARY": return this.getBytes(id); case "FONT": return this.getFont(id); case "IMAGE": return this.getImage(id); case "MUSIC":case "SOUND": return this.getAudioBuffer(id); case "TEMPLATE": throw new js__$Boot_HaxeError("Not sure how to get template: " + id); break; case "TEXT": return this.getText(id); default: throw new js__$Boot_HaxeError("Unknown asset type: " + type); } } ,getAudioBuffer: function(id) { var _this = this.cachedAudioBuffers; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedAudioBuffers; if(__map_reserved[id] != null) { return _this1.getReserved(id); } else { return _this1.h[id]; } } else { var _this2 = this.classTypes; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.classTypes; return lime_media_AudioBuffer.fromBytes(js_Boot.__cast(Type.createInstance(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id],[]) , haxe_io_Bytes)); } else { var _this4 = this.paths; return lime_media_AudioBuffer.fromFile(__map_reserved[id] != null ? _this4.getReserved(id) : _this4.h[id]); } } } ,getBytes: function(id) { var _this = this.cachedBytes; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedBytes; if(__map_reserved[id] != null) { return _this1.getReserved(id); } else { return _this1.h[id]; } } else { var _this2 = this.cachedText; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.cachedText; var bytes = lime_utils__$Bytes_Bytes_$Impl_$.ofString(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id]); var _this4 = this.cachedBytes; if(__map_reserved[id] != null) { _this4.setReserved(id,bytes); } else { _this4.h[id] = bytes; } return bytes; } else { var _this5 = this.classTypes; if(__map_reserved[id] != null ? _this5.existsReserved(id) : _this5.h.hasOwnProperty(id)) { var _this6 = this.classTypes; return js_Boot.__cast(Type.createInstance(__map_reserved[id] != null ? _this6.getReserved(id) : _this6.h[id],[]) , haxe_io_Bytes); } else { var _this7 = this.paths; return lime_utils__$Bytes_Bytes_$Impl_$.fromFile(__map_reserved[id] != null ? _this7.getReserved(id) : _this7.h[id]); } } } } ,getFont: function(id) { var _this = this.cachedFonts; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedFonts; if(__map_reserved[id] != null) { return _this1.getReserved(id); } else { return _this1.h[id]; } } else { var _this2 = this.classTypes; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.classTypes; return js_Boot.__cast(Type.createInstance(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id],[]) , lime_text_Font); } else { var _this4 = this.paths; return lime_text_Font.fromFile(__map_reserved[id] != null ? _this4.getReserved(id) : _this4.h[id]); } } } ,getImage: function(id) { var _this = this.cachedImages; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedImages; if(__map_reserved[id] != null) { return _this1.getReserved(id); } else { return _this1.h[id]; } } else { var _this2 = this.classTypes; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.classTypes; return js_Boot.__cast(Type.createInstance(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id],[]) , lime_graphics_Image); } else { var _this4 = this.paths; return lime_graphics_Image.fromFile(__map_reserved[id] != null ? _this4.getReserved(id) : _this4.h[id]); } } } ,getPath: function(id) { var _this = this.paths; if(__map_reserved[id] != null) { return _this.getReserved(id); } else { return _this.h[id]; } } ,getText: function(id) { var _this = this.cachedText; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedText; if(__map_reserved[id] != null) { return _this1.getReserved(id); } else { return _this1.h[id]; } } else { var bytes = this.getBytes(id); if(bytes == null) { return null; } else { return bytes.getString(0,bytes.length); } } } ,isLocal: function(id,type) { var _this = this.classTypes; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { return true; } var requestedType = type != null ? js_Boot.__cast(type , String) : null; switch(requestedType) { case "IMAGE": return this.cachedImages.exists(id); case "MUSIC":case "SOUND": return this.cachedAudioBuffers.exists(id); default: if(!this.cachedBytes.exists(id)) { return this.cachedText.exists(id); } else { return true; } } } ,list: function(type) { var requestedType = type != null ? js_Boot.__cast(type , String) : null; var items = []; var id = this.types.keys(); while(id.hasNext()) { var id1 = id.next(); if(requestedType == null || this.exists(id1,type)) { items.push(id1); } } return items; } ,loadAsset: function(id,type) { switch(type) { case "BINARY": return this.loadBytes(id); case "FONT": return this.loadFont(id); case "IMAGE": return this.loadImage(id); case "MUSIC":case "SOUND": return this.loadAudioBuffer(id); case "TEMPLATE": throw new js__$Boot_HaxeError("Not sure how to load template: " + id); break; case "TEXT": return this.loadText(id); default: throw new js__$Boot_HaxeError("Unknown asset type: " + type); } } ,load: function() { if(this.loaded) { return lime_app_Future.withValue(this); } if(this.promise == null) { this.promise = new lime_app_Promise(); this.bytesLoadedCache = new haxe_ds_StringMap(); this.assetsLoaded = 0; this.assetsTotal = 1; var id = this.preload.keys(); while(id.hasNext()) { var id1 = id.next(); var _this = this.preload; if(!(__map_reserved[id1] != null ? _this.getReserved(id1) : _this.h[id1])) { continue; } var _this1 = this.types; lime_utils_Log.verbose("Preloading asset: " + id1 + " [" + (__map_reserved[id1] != null ? _this1.getReserved(id1) : _this1.h[id1]) + "]",{ fileName : "AssetLibrary.hx", lineNumber : 434, className : "lime.utils.AssetLibrary", methodName : "load"}); var _g = this.types.get(id1); if(_g != null) { switch(_g) { case "BINARY": this.assetsTotal++; var future = this.loadBytes(id1); future.onProgress((function(id2,f) { return function(a1,a2) { f[0](id2[0],a1,a2); }; })([id1],[$bind(this,this.load_onProgress)])); future.onError((function(id3,f1) { return function(a11) { f1[0](id3[0],a11); }; })([id1],[$bind(this,this.load_onError)])); future.onComplete((function(id4,f2) { return function(a12) { f2[0](id4[0],a12); }; })([id1],[$bind(this,this.loadBytes_onComplete)])); break; case "FONT": this.assetsTotal++; var future1 = this.loadFont(id1); future1.onProgress((function(id5,f3) { return function(a13,a21) { f3[0](id5[0],a13,a21); }; })([id1],[$bind(this,this.load_onProgress)])); future1.onError((function(id6,f4) { return function(a14) { f4[0](id6[0],a14); }; })([id1],[$bind(this,this.load_onError)])); future1.onComplete((function(id7,f5) { return function(a15) { f5[0](id7[0],a15); }; })([id1],[$bind(this,this.loadFont_onComplete)])); break; case "IMAGE": this.assetsTotal++; var future2 = this.loadImage(id1); future2.onProgress((function(id8,f6) { return function(a16,a22) { f6[0](id8[0],a16,a22); }; })([id1],[$bind(this,this.load_onProgress)])); future2.onError((function(id9,f7) { return function(a17) { f7[0](id9[0],a17); }; })([id1],[$bind(this,this.load_onError)])); future2.onComplete((function(id10,f8) { return function(a18) { f8[0](id10[0],a18); }; })([id1],[$bind(this,this.loadImage_onComplete)])); break; case "MUSIC":case "SOUND": this.assetsTotal++; var future3 = this.loadAudioBuffer(id1); future3.onProgress((function(id11,f9) { return function(a19,a23) { f9[0](id11[0],a19,a23); }; })([id1],[$bind(this,this.load_onProgress)])); future3.onError((function(id12,f10) { return function(a110) { f10[0](id12[0],a110); }; })([id1],[$bind(this,this.load_onError)])); future3.onComplete((function(id13,f11) { return function(a111) { f11[0](id13[0],a111); }; })([id1],[$bind(this,this.loadAudioBuffer_onComplete)])); break; case "TEXT": this.assetsTotal++; var future4 = this.loadText(id1); future4.onProgress((function(id14,f12) { return function(a112,a24) { f12[0](id14[0],a112,a24); }; })([id1],[$bind(this,this.load_onProgress)])); future4.onError((function(id15,f13) { return function(a113) { f13[0](id15[0],a113); }; })([id1],[$bind(this,this.load_onError)])); future4.onComplete((function(id16,f14) { return function(a114) { f14[0](id16[0],a114); }; })([id1],[$bind(this,this.loadText_onComplete)])); break; default: } } } this.__assetLoaded(null); } return this.promise.future; } ,loadAudioBuffer: function(id) { var _this = this.cachedAudioBuffers; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedAudioBuffers; return lime_app_Future.withValue(__map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]); } else { var _this2 = this.classTypes; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.classTypes; return lime_app_Future.withValue(Type.createInstance(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id],[])); } else { var _this4 = this.pathGroups; if(__map_reserved[id] != null ? _this4.existsReserved(id) : _this4.h.hasOwnProperty(id)) { var _this5 = this.pathGroups; return lime_media_AudioBuffer.loadFromFiles(__map_reserved[id] != null ? _this5.getReserved(id) : _this5.h[id]); } else { var _this6 = this.paths; return lime_media_AudioBuffer.loadFromFile(__map_reserved[id] != null ? _this6.getReserved(id) : _this6.h[id]); } } } } ,loadBytes: function(id) { var _this = this.cachedBytes; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedBytes; return lime_app_Future.withValue(__map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]); } else { var _this2 = this.classTypes; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.classTypes; return lime_app_Future.withValue(Type.createInstance(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id],[])); } else { var _this4 = this.paths; return lime_utils__$Bytes_Bytes_$Impl_$.loadFromFile(__map_reserved[id] != null ? _this4.getReserved(id) : _this4.h[id]); } } } ,loadFont: function(id) { var _this = this.cachedFonts; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedFonts; return lime_app_Future.withValue(__map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]); } else { var _this2 = this.classTypes; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.classTypes; var font = Type.createInstance(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id],[]); return lime_text_Font.loadFromName(font.name); } else { var _this4 = this.paths; return lime_text_Font.loadFromName(__map_reserved[id] != null ? _this4.getReserved(id) : _this4.h[id]); } } } ,loadImage: function(id) { var _this = this.cachedImages; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedImages; return lime_app_Future.withValue(__map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]); } else { var _this2 = this.classTypes; if(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)) { var _this3 = this.classTypes; return lime_app_Future.withValue(Type.createInstance(__map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id],[])); } else { var _this4 = this.paths; return lime_graphics_Image.loadFromFile(__map_reserved[id] != null ? _this4.getReserved(id) : _this4.h[id]); } } } ,loadText: function(id) { var _this = this.cachedText; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.cachedText; return lime_app_Future.withValue(__map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]); } else { var tmp; var _this2 = this.cachedBytes; if(!(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id))) { var _this3 = this.classTypes; if(__map_reserved[id] != null) { tmp = _this3.existsReserved(id); } else { tmp = _this3.h.hasOwnProperty(id); } } else { tmp = true; } if(tmp) { var bytes = this.getBytes(id); if(bytes == null) { return lime_app_Future.withValue(null); } else { var text = bytes.getString(0,bytes.length); var _this4 = this.cachedText; if(__map_reserved[id] != null) { _this4.setReserved(id,text); } else { _this4.h[id] = text; } return lime_app_Future.withValue(text); } } else { var request = new lime_net__$HTTPRequest_$String(); var _this5 = this.paths; return request.load(__map_reserved[id] != null ? _this5.getReserved(id) : _this5.h[id]); } } } ,unload: function() { } ,__assetLoaded: function(id) { this.assetsLoaded++; if(id != null) { var _this = this.types; lime_utils_Log.verbose("Loaded asset: " + id + " [" + (__map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]) + "] (" + (this.assetsLoaded - 1) + "/" + (this.assetsTotal - 1) + ")",{ fileName : "AssetLibrary.hx", lineNumber : 680, className : "lime.utils.AssetLibrary", methodName : "__assetLoaded"}); } if(id != null) { var _this1 = this.sizes; var size = __map_reserved[id] != null ? _this1.getReserved(id) : _this1.h[id]; var _this2 = this.bytesLoadedCache; if(!(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id))) { this.bytesLoaded += size; } else { var _this3 = this.bytesLoadedCache; var cache = __map_reserved[id] != null ? _this3.getReserved(id) : _this3.h[id]; if(cache < size) { this.bytesLoaded += size - cache; } } var _this4 = this.bytesLoadedCache; if(__map_reserved[id] != null) { _this4.setReserved(id,size); } else { _this4.h[id] = size; } } if(this.assetsLoaded < this.assetsTotal) { this.promise.progress(this.bytesLoaded,this.bytesTotal); } else { this.loaded = true; this.promise.progress(this.bytesTotal,this.bytesTotal); this.promise.complete(this); } } ,__cacheBreak: function(path) { if(path.indexOf("?") > -1) { path += "&" + lime_utils_Assets.cache.version; } else { path += "?" + lime_utils_Assets.cache.version; } return path; } ,__fromManifest: function(manifest) { var hasSize = manifest.version >= 2; var size; var id; var pathGroup; var classRef; var basePath = manifest.rootPath; if(basePath == null) { basePath = ""; } if(basePath != "") { basePath += "/"; } var _g = 0; var _g1 = manifest.assets; while(_g < _g1.length) { var asset = _g1[_g]; ++_g; if(hasSize) { size = asset.size; } else { size = 100; } id = asset.id; if(Object.prototype.hasOwnProperty.call(asset,"path")) { var this1 = this.paths; var value = this.__cacheBreak(basePath + Std.string(Reflect.field(asset,"path"))); var _this = this1; if(__map_reserved[id] != null) { _this.setReserved(id,value); } else { _this.h[id] = value; } } if(Object.prototype.hasOwnProperty.call(asset,"pathGroup")) { pathGroup = Reflect.field(asset,"pathGroup"); var _g3 = 0; var _g2 = pathGroup.length; while(_g3 < _g2) { var i = _g3++; pathGroup[i] = this.__cacheBreak(basePath + pathGroup[i]); } var _this1 = this.pathGroups; if(__map_reserved[id] != null) { _this1.setReserved(id,pathGroup); } else { _this1.h[id] = pathGroup; } } var _this2 = this.sizes; if(__map_reserved[id] != null) { _this2.setReserved(id,size); } else { _this2.h[id] = size; } var value1 = asset.type; var _this3 = this.types; if(__map_reserved[id] != null) { _this3.setReserved(id,value1); } else { _this3.h[id] = value1; } if(Object.prototype.hasOwnProperty.call(asset,"preload")) { var this2 = this.preload; var value2 = Reflect.field(asset,"preload"); var _this4 = this2; if(__map_reserved[id] != null) { _this4.setReserved(id,value2); } else { _this4.h[id] = value2; } } if(Object.prototype.hasOwnProperty.call(asset,"className")) { classRef = Type.resolveClass(Reflect.field(asset,"className")); var _this5 = this.classTypes; if(__map_reserved[id] != null) { _this5.setReserved(id,classRef); } else { _this5.h[id] = classRef; } } } this.bytesTotal = 0; var _g4 = 0; var _g11 = manifest.assets; while(_g4 < _g11.length) { var asset1 = _g11[_g4]; ++_g4; id = asset1.id; var tmp; var _this6 = this.preload; if(__map_reserved[id] != null ? _this6.existsReserved(id) : _this6.h.hasOwnProperty(id)) { var _this7 = this.preload; if(__map_reserved[id] != null) { tmp = _this7.getReserved(id); } else { tmp = _this7.h[id]; } } else { tmp = false; } if(tmp) { var _this8 = this.sizes; this.bytesTotal += __map_reserved[id] != null ? _this8.getReserved(id) : _this8.h[id]; } } } ,loadAudioBuffer_onComplete: function(id,audioBuffer) { var _this = this.cachedAudioBuffers; if(__map_reserved[id] != null) { _this.setReserved(id,audioBuffer); } else { _this.h[id] = audioBuffer; } var _this1 = this.pathGroups; if(__map_reserved[id] != null ? _this1.existsReserved(id) : _this1.h.hasOwnProperty(id)) { var _this2 = this.pathGroups; var pathGroup = __map_reserved[id] != null ? _this2.getReserved(id) : _this2.h[id]; var otherID = this.pathGroups.keys(); while(otherID.hasNext()) { var otherID1 = otherID.next(); if(otherID1 == id) { continue; } var _g = 0; while(_g < pathGroup.length) { var path = pathGroup[_g]; ++_g; var _this3 = this.pathGroups; if((__map_reserved[otherID1] != null ? _this3.getReserved(otherID1) : _this3.h[otherID1]).indexOf(path) > -1) { var _this4 = this.cachedAudioBuffers; if(__map_reserved[otherID1] != null) { _this4.setReserved(otherID1,audioBuffer); } else { _this4.h[otherID1] = audioBuffer; } break; } } } } this.__assetLoaded(id); } ,loadBytes_onComplete: function(id,bytes) { var _this = this.cachedBytes; if(__map_reserved[id] != null) { _this.setReserved(id,bytes); } else { _this.h[id] = bytes; } this.__assetLoaded(id); } ,loadFont_onComplete: function(id,font) { var _this = this.cachedFonts; if(__map_reserved[id] != null) { _this.setReserved(id,font); } else { _this.h[id] = font; } this.__assetLoaded(id); } ,loadImage_onComplete: function(id,image) { var _this = this.cachedImages; if(__map_reserved[id] != null) { _this.setReserved(id,image); } else { _this.h[id] = image; } this.__assetLoaded(id); } ,loadText_onComplete: function(id,text) { var _this = this.cachedText; if(__map_reserved[id] != null) { _this.setReserved(id,text); } else { _this.h[id] = text; } this.__assetLoaded(id); } ,load_onError: function(id,message) { if(message != null && message != "") { this.promise.error("Error loading asset \"" + id + "\": " + Std.string(message)); } else { this.promise.error("Error loading asset \"" + id + "\""); } } ,load_onProgress: function(id,bytesLoaded,bytesTotal) { if(bytesLoaded > 0) { var _this = this.sizes; var size = __map_reserved[id] != null ? _this.getReserved(id) : _this.h[id]; var percent; if(bytesTotal > 0) { percent = bytesLoaded / bytesTotal; if(percent > 1) { percent = 1; } bytesLoaded = Math.floor(percent * size); } else if(bytesLoaded > size) { bytesLoaded = size; } var _this1 = this.bytesLoadedCache; if(__map_reserved[id] != null ? _this1.existsReserved(id) : _this1.h.hasOwnProperty(id)) { var _this2 = this.bytesLoadedCache; var cache = __map_reserved[id] != null ? _this2.getReserved(id) : _this2.h[id]; if(bytesLoaded != cache) { this.bytesLoaded += bytesLoaded - cache; } } else { this.bytesLoaded += bytesLoaded; } var _this3 = this.bytesLoadedCache; if(__map_reserved[id] != null) { _this3.setReserved(id,bytesLoaded); } else { _this3.h[id] = bytesLoaded; } this.promise.progress(this.bytesLoaded,this.bytesTotal); } } ,__class__: lime_utils_AssetLibrary }; var lime_utils_AssetManifest = function() { this.assets = []; this.libraryArgs = []; this.version = 2; }; $hxClasses["lime.utils.AssetManifest"] = lime_utils_AssetManifest; lime_utils_AssetManifest.__name__ = ["lime","utils","AssetManifest"]; lime_utils_AssetManifest.fromBytes = function(bytes,rootPath) { if(bytes != null) { return lime_utils_AssetManifest.parse(bytes.getString(0,bytes.length),rootPath); } else { return null; } }; lime_utils_AssetManifest.fromFile = function(path,rootPath) { path = lime_utils_AssetManifest.__resolvePath(path); rootPath = lime_utils_AssetManifest.__resolveRootPath(rootPath,path); if(path == null) { return null; } return lime_utils_AssetManifest.fromBytes(lime_utils__$Bytes_Bytes_$Impl_$.fromFile(path),rootPath); }; lime_utils_AssetManifest.loadFromBytes = function(bytes,rootPath) { return lime_app_Future.withValue(lime_utils_AssetManifest.fromBytes(bytes,rootPath)); }; lime_utils_AssetManifest.loadFromFile = function(path,rootPath) { path = lime_utils_AssetManifest.__resolvePath(path); rootPath = lime_utils_AssetManifest.__resolveRootPath(rootPath,path); if(path == null) { return null; } return lime_utils__$Bytes_Bytes_$Impl_$.loadFromFile(path).then(function(bytes) { return lime_app_Future.withValue(lime_utils_AssetManifest.fromBytes(bytes,rootPath)); }); }; lime_utils_AssetManifest.parse = function(data,rootPath) { if(data == null || data == "") { return null; } var manifestData = new haxe_format_JsonParser(data).parseRec(); var manifest = new lime_utils_AssetManifest(); manifest.name = manifestData.name; manifest.libraryType = manifestData.libraryType; manifest.libraryArgs = manifestData.libraryArgs; manifest.assets = haxe_Unserializer.run(manifestData.assets); if(rootPath != null) { manifest.rootPath = rootPath; } return manifest; }; lime_utils_AssetManifest.__resolvePath = function(path) { if(path == null) { return null; } var queryIndex = path.indexOf("?"); var basePath; if(queryIndex > -1) { basePath = HxOverrides.substr(path,0,queryIndex); } else { basePath = path; } StringTools.replace(basePath,"\\","/"); while(StringTools.endsWith(basePath,"/")) basePath = HxOverrides.substr(basePath,0,basePath.length - 1); if(StringTools.endsWith(basePath,".bundle")) { if(queryIndex > -1) { return basePath + "/library.json" + HxOverrides.substr(path,queryIndex,null); } else { return basePath + "/library.json"; } } else { return path; } }; lime_utils_AssetManifest.__resolveRootPath = function(rootPath,path) { if(rootPath != null) { return rootPath; } var queryIndex = path.indexOf("?"); if(queryIndex > -1) { rootPath = HxOverrides.substr(path,0,queryIndex); } else { rootPath = path; } StringTools.replace(rootPath,"\\","/"); while(StringTools.endsWith(rootPath,"/")) { if(rootPath == "/") { return rootPath; } rootPath = HxOverrides.substr(rootPath,0,rootPath.length - 1); } if(StringTools.endsWith(rootPath,".bundle")) { return rootPath; } else { return haxe_io_Path.directory(rootPath); } }; lime_utils_AssetManifest.prototype = { assets: null ,libraryArgs: null ,libraryType: null ,name: null ,rootPath: null ,version: null ,serialize: function() { var manifestData = { }; manifestData.version = this.version; manifestData.libraryType = this.libraryType; manifestData.libraryArgs = this.libraryArgs; manifestData.name = this.name; manifestData.assets = haxe_Serializer.run(this.assets); return haxe_format_JsonPrinter.print(manifestData,null,null); } ,__class__: lime_utils_AssetManifest }; var lime_utils_Assets = function() { }; $hxClasses["lime.utils.Assets"] = lime_utils_Assets; lime_utils_Assets.__name__ = ["lime","utils","Assets"]; lime_utils_Assets.exists = function(id,type) { if(type == null) { type = "BINARY"; } var symbol_symbolName; var symbol_libraryName; var symbol_library; var colonIndex = id.indexOf(":"); symbol_libraryName = id.substring(0,colonIndex); symbol_symbolName = id.substring(colonIndex + 1); symbol_library = lime_utils_Assets.getLibrary(symbol_libraryName); if(symbol_library != null) { return symbol_library.exists(symbol_symbolName,type); } return false; }; lime_utils_Assets.getAsset = function(id,type,useCache) { if(useCache && lime_utils_Assets.cache.enabled) { switch(type) { case "BINARY":case "TEXT": useCache = false; break; case "FONT": var font = lime_utils_Assets.cache.font.get(id); if(font != null) { return font; } break; case "IMAGE": var image = lime_utils_Assets.cache.image.get(id); if(lime_utils_Assets.isValidImage(image)) { return image; } break; case "MUSIC":case "SOUND": var audio = lime_utils_Assets.cache.audio.get(id); if(lime_utils_Assets.isValidAudio(audio)) { return audio; } break; case "TEMPLATE": throw new js__$Boot_HaxeError("Not sure how to get template: " + id); break; default: return null; } } var symbol_symbolName; var symbol_libraryName; var symbol_library; var colonIndex = id.indexOf(":"); symbol_libraryName = id.substring(0,colonIndex); symbol_symbolName = id.substring(colonIndex + 1); symbol_library = lime_utils_Assets.getLibrary(symbol_libraryName); if(symbol_library != null) { if(symbol_library.exists(symbol_symbolName,type)) { if(symbol_library.isLocal(symbol_symbolName,type)) { var asset = symbol_library.getAsset(symbol_symbolName,type); if(useCache && lime_utils_Assets.cache.enabled) { lime_utils_Assets.cache.set(id,type,asset); } return asset; } else { lime_utils_Log.error(type + " asset \"" + id + "\" exists, but only asynchronously",{ fileName : "Assets.hx", lineNumber : 160, className : "lime.utils.Assets", methodName : "getAsset"}); } } else { lime_utils_Log.error("There is no " + type + " asset with an ID of \"" + id + "\"",{ fileName : "Assets.hx", lineNumber : 166, className : "lime.utils.Assets", methodName : "getAsset"}); } } else { lime_utils_Log.error(lime_utils_Assets.__libraryNotFound(symbol_libraryName),{ fileName : "Assets.hx", lineNumber : 172, className : "lime.utils.Assets", methodName : "getAsset"}); } return null; }; lime_utils_Assets.getAudioBuffer = function(id,useCache) { if(useCache == null) { useCache = true; } return lime_utils_Assets.getAsset(id,"SOUND",useCache); }; lime_utils_Assets.getBytes = function(id) { return lime_utils_Assets.getAsset(id,"BINARY",false); }; lime_utils_Assets.getFont = function(id,useCache) { if(useCache == null) { useCache = true; } return lime_utils_Assets.getAsset(id,"FONT",useCache); }; lime_utils_Assets.getImage = function(id,useCache) { if(useCache == null) { useCache = true; } return lime_utils_Assets.getAsset(id,"IMAGE",useCache); }; lime_utils_Assets.getLibrary = function(name) { if(name == null || name == "") { name = "default"; } var _this = lime_utils_Assets.libraries; if(__map_reserved[name] != null) { return _this.getReserved(name); } else { return _this.h[name]; } }; lime_utils_Assets.getPath = function(id) { var symbol_symbolName; var symbol_libraryName; var symbol_library; var colonIndex = id.indexOf(":"); symbol_libraryName = id.substring(0,colonIndex); symbol_symbolName = id.substring(colonIndex + 1); symbol_library = lime_utils_Assets.getLibrary(symbol_libraryName); if(symbol_library != null) { if(symbol_library.exists(symbol_symbolName,null)) { return symbol_library.getPath(symbol_symbolName); } else { lime_utils_Log.error("There is no asset with an ID of \"" + id + "\"",{ fileName : "Assets.hx", lineNumber : 269, className : "lime.utils.Assets", methodName : "getPath"}); } } else { lime_utils_Log.error(lime_utils_Assets.__libraryNotFound(symbol_libraryName),{ fileName : "Assets.hx", lineNumber : 275, className : "lime.utils.Assets", methodName : "getPath"}); } return null; }; lime_utils_Assets.getText = function(id) { return lime_utils_Assets.getAsset(id,"TEXT",false); }; lime_utils_Assets.hasLibrary = function(name) { if(name == null || name == "") { name = "default"; } var _this = lime_utils_Assets.libraries; if(__map_reserved[name] != null) { return _this.existsReserved(name); } else { return _this.h.hasOwnProperty(name); } }; lime_utils_Assets.isLocal = function(id,type,useCache) { if(useCache == null) { useCache = true; } if(useCache && lime_utils_Assets.cache.enabled) { if(lime_utils_Assets.cache.exists(id,type)) { return true; } } var symbol_symbolName; var symbol_libraryName; var symbol_library; var colonIndex = id.indexOf(":"); symbol_libraryName = id.substring(0,colonIndex); symbol_symbolName = id.substring(colonIndex + 1); symbol_library = lime_utils_Assets.getLibrary(symbol_libraryName); if(symbol_library != null) { return symbol_library.isLocal(symbol_symbolName,type); } else { return false; } }; lime_utils_Assets.isValidAudio = function(buffer) { return buffer != null; }; lime_utils_Assets.isValidImage = function(image) { if(image != null) { return image.buffer != null; } else { return false; } }; lime_utils_Assets.list = function(type) { var items = []; var _this = lime_utils_Assets.libraries; var library = new haxe_ds__$StringMap_StringMapIterator(_this,_this.arrayKeys()); while(library.hasNext()) { var library1 = library.next(); var libraryItems = library1.list(type); if(libraryItems != null) { items = items.concat(libraryItems); } } return items; }; lime_utils_Assets.loadAsset = function(id,type,useCache) { if(useCache && lime_utils_Assets.cache.enabled) { switch(type) { case "BINARY":case "TEXT": useCache = false; break; case "FONT": var font = lime_utils_Assets.cache.font.get(id); if(font != null) { return lime_app_Future.withValue(font); } break; case "IMAGE": var image = lime_utils_Assets.cache.image.get(id); if(lime_utils_Assets.isValidImage(image)) { return lime_app_Future.withValue(image); } break; case "MUSIC":case "SOUND": var audio = lime_utils_Assets.cache.audio.get(id); if(lime_utils_Assets.isValidAudio(audio)) { return lime_app_Future.withValue(audio); } break; case "TEMPLATE": throw new js__$Boot_HaxeError("Not sure how to get template: " + id); break; default: return null; } } var symbol_symbolName; var symbol_libraryName; var symbol_library; var colonIndex = id.indexOf(":"); symbol_libraryName = id.substring(0,colonIndex); symbol_symbolName = id.substring(colonIndex + 1); symbol_library = lime_utils_Assets.getLibrary(symbol_libraryName); if(symbol_library != null) { if(symbol_library.exists(symbol_symbolName,type)) { var future = symbol_library.loadAsset(symbol_symbolName,type); if(useCache && lime_utils_Assets.cache.enabled) { future.onComplete(function(asset) { lime_utils_Assets.cache.set(id,type,asset); }); } return future; } else { return lime_app_Future.withError("There is no " + type + " asset with an ID of \"" + id + "\""); } } else { return lime_app_Future.withError(lime_utils_Assets.__libraryNotFound(symbol_libraryName)); } }; lime_utils_Assets.loadAudioBuffer = function(id,useCache) { if(useCache == null) { useCache = true; } return lime_utils_Assets.loadAsset(id,"SOUND",useCache); }; lime_utils_Assets.loadBytes = function(id) { return lime_utils_Assets.loadAsset(id,"BINARY",false); }; lime_utils_Assets.loadFont = function(id,useCache) { if(useCache == null) { useCache = true; } return lime_utils_Assets.loadAsset(id,"FONT",useCache); }; lime_utils_Assets.loadImage = function(id,useCache) { if(useCache == null) { useCache = true; } return lime_utils_Assets.loadAsset(id,"IMAGE",useCache); }; lime_utils_Assets.loadLibrary = function(id) { var promise = new lime_app_Promise(); var library = lime_utils_Assets.getLibrary(id); if(library != null) { return library.load(); } var path = id; var rootPath = null; var _this = lime_utils_Assets.libraryPaths; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = lime_utils_Assets.libraryPaths; if(__map_reserved[id] != null) { path = _this1.getReserved(id); } else { path = _this1.h[id]; } rootPath = lime_utils_Assets.defaultRootPath; } else if(StringTools.endsWith(path,".bundle")) { path += "/library.json"; } lime_utils_AssetManifest.loadFromFile(path,rootPath).onComplete(function(manifest) { if(manifest == null) { promise.error("Cannot parse asset manifest for library \"" + id + "\""); return; } var library1 = lime_utils_AssetLibrary.fromManifest(manifest); if(library1 == null) { promise.error("Cannot open library \"" + id + "\""); } else { var _this2 = lime_utils_Assets.libraries; if(__map_reserved[id] != null) { _this2.setReserved(id,library1); } else { _this2.h[id] = library1; } library1.onChange.add(($_=lime_utils_Assets.onChange,$bind($_,$_.dispatch))); var tmp = library1.load(); promise.completeWith(tmp); } }).onError(function(_) { promise.error("There is no asset library with an ID of \"" + id + "\""); }); return promise.future; }; lime_utils_Assets.loadText = function(id) { return lime_utils_Assets.loadAsset(id,"TEXT",false); }; lime_utils_Assets.registerLibrary = function(name,library) { var _this = lime_utils_Assets.libraries; if(__map_reserved[name] != null ? _this.existsReserved(name) : _this.h.hasOwnProperty(name)) { var _this1 = lime_utils_Assets.libraries; if((__map_reserved[name] != null ? _this1.getReserved(name) : _this1.h[name]) == library) { return; } else { lime_utils_Assets.unloadLibrary(name); } } if(library != null) { library.onChange.add(lime_utils_Assets.library_onChange); } var _this2 = lime_utils_Assets.libraries; if(__map_reserved[name] != null) { _this2.setReserved(name,library); } else { _this2.h[name] = library; } }; lime_utils_Assets.unloadLibrary = function(name) { var _this = lime_utils_Assets.libraries; var library = __map_reserved[name] != null ? _this.getReserved(name) : _this.h[name]; if(library != null) { lime_utils_Assets.cache.clear(name + ":"); library.onChange.remove(lime_utils_Assets.library_onChange); library.unload(); } lime_utils_Assets.libraries.remove(name); }; lime_utils_Assets.__libraryNotFound = function(name) { if(name == null || name == "") { name = "default"; } if(lime_app_Application.current != null && lime_app_Application.current.__preloader != null && !lime_app_Application.current.__preloader.complete) { return "There is no asset library named \"" + name + "\", or it is not yet preloaded"; } else { return "There is no asset library named \"" + name + "\""; } }; lime_utils_Assets.library_onChange = function() { lime_utils_Assets.cache.clear(); lime_utils_Assets.onChange.dispatch(); }; var lime_utils__$Assets_LibrarySymbol = function(id) { var colonIndex = id.indexOf(":"); this.libraryName = id.substring(0,colonIndex); this.symbolName = id.substring(colonIndex + 1); this.library = lime_utils_Assets.getLibrary(this.libraryName); }; $hxClasses["lime.utils._Assets.LibrarySymbol"] = lime_utils__$Assets_LibrarySymbol; lime_utils__$Assets_LibrarySymbol.__name__ = ["lime","utils","_Assets","LibrarySymbol"]; lime_utils__$Assets_LibrarySymbol.prototype = { library: null ,libraryName: null ,symbolName: null ,isLocal: function(type) { return this.library.isLocal(this.symbolName,type); } ,exists: function(type) { return this.library.exists(this.symbolName,type); } ,__class__: lime_utils__$Assets_LibrarySymbol }; var lime_utils__$BytePointer_BytePointer_$Impl_$ = {}; $hxClasses["lime.utils._BytePointer.BytePointer_Impl_"] = lime_utils__$BytePointer_BytePointer_$Impl_$; lime_utils__$BytePointer_BytePointer_$Impl_$.__name__ = ["lime","utils","_BytePointer","BytePointer_Impl_"]; lime_utils__$BytePointer_BytePointer_$Impl_$._new = function(bytes,offset) { if(offset == null) { offset = 0; } var this1 = new lime_utils_BytePointerData(bytes,offset); return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.set = function(this1,bytes,bufferView,buffer,offset) { if(buffer != null) { bytes = haxe_io_Bytes.ofData(buffer); } if(bytes != null || bufferView == null) { this1.bytes = bytes; this1.offset = offset != null ? offset : 0; } else { this1.bytes = haxe_io_Bytes.ofData(bufferView.buffer); this1.offset = offset != null ? bufferView.byteOffset + offset : bufferView.byteOffset; } }; lime_utils__$BytePointer_BytePointer_$Impl_$.__arrayGet = function(this1,index) { if(this1.bytes != null) { return this1.bytes.b[index + this1.offset]; } else { return 0; } }; lime_utils__$BytePointer_BytePointer_$Impl_$.__arraySet = function(this1,index,value) { if(this1.bytes == null) { this1.bytes.b[index + this1.offset] = value & 255; } return value; }; lime_utils__$BytePointer_BytePointer_$Impl_$.fromArrayBufferView = function(arrayBufferView) { if(arrayBufferView == null) { return null; } return new lime_utils_BytePointerData(haxe_io_Bytes.ofData(arrayBufferView.buffer),arrayBufferView.byteOffset); }; lime_utils__$BytePointer_BytePointer_$Impl_$.fromArrayBuffer = function(buffer) { if(buffer == null) { return null; } return new lime_utils_BytePointerData(haxe_io_Bytes.ofData(buffer),0); }; lime_utils__$BytePointer_BytePointer_$Impl_$.fromBytes = function(bytes) { return new lime_utils_BytePointerData(bytes,0); }; lime_utils__$BytePointer_BytePointer_$Impl_$.fromBytesData = function(bytesData) { if(bytesData == null) { return new lime_utils_BytePointerData(null,0); } else { return new lime_utils_BytePointerData(haxe_io_Bytes.ofData(bytesData),0); } }; lime_utils__$BytePointer_BytePointer_$Impl_$.fromFile = function(path) { return new lime_utils_BytePointerData(lime_utils__$Bytes_Bytes_$Impl_$.fromFile(path),0); }; lime_utils__$BytePointer_BytePointer_$Impl_$.fromLimeBytes = function(bytes) { return new lime_utils_BytePointerData(bytes,0); }; lime_utils__$BytePointer_BytePointer_$Impl_$.toUInt8Array = function(bytePointer) { var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 8 | 0; var this1; if(buffer != null) { this1 = new Uint8Array(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toUInt8ClampedArray = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 8 | 0; var this1; if(buffer != null) { this1 = new Uint8ClampedArray(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toInt8Array = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 8 | 0; var this1; if(buffer != null) { this1 = new Int8Array(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toUInt16Array = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 16 | 0; var this1; if(buffer != null) { this1 = new Uint16Array(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toInt16Array = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 16 | 0; var this1; if(buffer != null) { this1 = new Int16Array(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toUInt32Array = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 32 | 0; var this1; if(buffer != null) { this1 = new Uint32Array(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toInt32Array = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 32 | 0; var this1; if(buffer != null) { this1 = new Int32Array(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toFloat32Array = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 32 | 0; var this1; if(buffer != null) { this1 = new Float32Array(buffer,byteoffset); } else { this1 = null; } return this1; }; lime_utils__$BytePointer_BytePointer_$Impl_$.toFloat64Array = function(bytePointer) { if(bytePointer == null || bytePointer.bytes == null) { return null; } var buffer = bytePointer.bytes.b.bufferValue; var byteoffset = bytePointer.offset / 64 | 0; var this1; if(buffer != null) { this1 = new Float64Array(buffer,byteoffset); } else { this1 = null; } return this1; }; var lime_utils__$Bytes_Bytes_$Impl_$ = {}; $hxClasses["lime.utils._Bytes.Bytes_Impl_"] = lime_utils__$Bytes_Bytes_$Impl_$; lime_utils__$Bytes_Bytes_$Impl_$.__name__ = ["lime","utils","_Bytes","Bytes_Impl_"]; lime_utils__$Bytes_Bytes_$Impl_$._new = function(length,bytesData) { var this1 = new haxe_io_Bytes(bytesData); return this1; }; lime_utils__$Bytes_Bytes_$Impl_$.alloc = function(length) { var bytes = new haxe_io_Bytes(new ArrayBuffer(length)); return lime_utils__$Bytes_Bytes_$Impl_$._new(bytes.length,bytes.b.bufferValue); }; lime_utils__$Bytes_Bytes_$Impl_$.fastGet = function(b,pos) { return b.bytes[pos]; }; lime_utils__$Bytes_Bytes_$Impl_$.fromBytes = function(bytes) { if(bytes == null) { return null; } return lime_utils__$Bytes_Bytes_$Impl_$._new(bytes.length,bytes.b.bufferValue); }; lime_utils__$Bytes_Bytes_$Impl_$.fromFile = function(path) { return null; }; lime_utils__$Bytes_Bytes_$Impl_$.loadFromBytes = function(bytes) { return lime_app_Future.withValue(lime_utils__$Bytes_Bytes_$Impl_$.fromBytes(bytes)); }; lime_utils__$Bytes_Bytes_$Impl_$.loadFromFile = function(path) { var request = new lime_net__$HTTPRequest_$lime_$utils_$Bytes(); return request.load(path); }; lime_utils__$Bytes_Bytes_$Impl_$.ofData = function(b) { var bytes = haxe_io_Bytes.ofData(b); return lime_utils__$Bytes_Bytes_$Impl_$._new(bytes.length,bytes.b.bufferValue); }; lime_utils__$Bytes_Bytes_$Impl_$.ofString = function(s) { var bytes = haxe_io_Bytes.ofString(s); return lime_utils__$Bytes_Bytes_$Impl_$._new(bytes.length,bytes.b.bufferValue); }; var lime_utils__$DataPointer_DataPointer_$Impl_$ = {}; $hxClasses["lime.utils._DataPointer.DataPointer_Impl_"] = lime_utils__$DataPointer_DataPointer_$Impl_$; lime_utils__$DataPointer_DataPointer_$Impl_$.__name__ = ["lime","utils","_DataPointer","DataPointer_Impl_"]; lime_utils__$DataPointer_DataPointer_$Impl_$._new = function(data) { var this1 = data; return this1; }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt = function(value) { return lime_utils__$DataPointer_DataPointer_$Impl_$._new(new lime_utils_DataPointerObject(null,null,value)); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromFloat = function(value) { return lime_utils__$DataPointer_DataPointer_$Impl_$._new(new lime_utils_DataPointerObject(null,null,value | 0)); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromBytesPointer = function(pointer) { return lime_utils__$DataPointer_DataPointer_$Impl_$._new(new lime_utils_DataPointerObject(null,pointer.bytes.b.bufferValue,pointer.offset)); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView = function(arrayBufferView) { return lime_utils__$DataPointer_DataPointer_$Impl_$._new(new lime_utils_DataPointerObject(arrayBufferView)); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBuffer = function(buffer) { return lime_utils__$DataPointer_DataPointer_$Impl_$._new(new lime_utils_DataPointerObject(null,buffer)); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromBytes = function(bytes) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBuffer(bytes.b.bufferValue); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromBytesData = function(bytesData) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBuffer(bytesData); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromLimeBytes = function(bytes) { return lime_utils__$DataPointer_DataPointer_$Impl_$.fromBytes(bytes); }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromCFFIPointer = function(pointer) { return null; }; lime_utils__$DataPointer_DataPointer_$Impl_$.fromFile = function(path) { return null; }; lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferOrBufferView = function(this1,length) { var data = this1; if (!data) return null; var _g = data.type; switch(_g[1]) { case 0: if(length == null) { length = data.buffer.byteLength; } if(data.offset == 0 && length == data.buffer.byteLength) { return data.buffer; } else { var buffer = data.buffer; var byteoffset = data.offset; var this2; if(buffer != null) { if(length == null) { this2 = new Uint8Array(buffer,byteoffset); } else { this2 = new Uint8Array(buffer,byteoffset,length); } } else { this2 = null; } return this2; } break; case 1: if(length == null) { length = data.bufferView.byteLength; } if(data.offset == 0 && length == data.bufferView.byteLength) { return data.bufferView; } else { var buffer1 = data.bufferView.buffer; var byteoffset1 = data.bufferView.byteOffset + data.offset; var this3; if(buffer1 != null) { if(length == null) { this3 = new Uint8Array(buffer1,byteoffset1); } else { this3 = new Uint8Array(buffer1,byteoffset1,length); } } else { this3 = null; } return this3; } break; default: return null; } }; lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView = function(this1,length) { var data = this1; if (!data) return null; var _g = data.type; switch(_g[1]) { case 0: if(length == null) { length = data.buffer.byteLength; } var buffer = data.buffer; var byteoffset = data.offset; var this2; if(buffer != null) { if(length == null) { this2 = new Uint8Array(buffer,byteoffset); } else { this2 = new Uint8Array(buffer,byteoffset,length); } } else { this2 = null; } return this2; case 1: if(length == null) { length = data.bufferView.byteLength; } if(data.offset == 0 && length == data.bufferView.byteLength) { return data.bufferView; } else { var buffer1 = data.bufferView.buffer; var byteoffset1 = data.bufferView.byteOffset + data.offset; var this3; if(buffer1 != null) { if(length == null) { this3 = new Uint8Array(buffer1,byteoffset1); } else { this3 = new Uint8Array(buffer1,byteoffset1,length); } } else { this3 = null; } return this3; } break; default: return null; } }; lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array = function(this1,length) { var data = this1; if (!data) return null; var _g = data.type; switch(_g[1]) { case 0: if(length == null) { length = data.buffer.byteLength; } var buffer = data.buffer; var byteoffset = data.offset; var len = length / 4 | 0; var this2; if(buffer != null) { if(len == null) { this2 = new Float32Array(buffer,byteoffset); } else { this2 = new Float32Array(buffer,byteoffset,len); } } else { this2 = null; } return this2; case 1: if(length == null) { length = data.bufferView.byteLength; } if(data.offset == 0 && length == data.bufferView.byteLength && data.bufferView.constructor == Float32Array) { return data.bufferView; } else { var buffer1 = data.bufferView.buffer; var byteoffset1 = data.bufferView.byteOffset + data.offset; var len1 = length / 4 | 0; var this3; if(buffer1 != null) { if(len1 == null) { this3 = new Float32Array(buffer1,byteoffset1); } else { this3 = new Float32Array(buffer1,byteoffset1,len1); } } else { this3 = null; } return this3; } break; default: return null; } }; lime_utils__$DataPointer_DataPointer_$Impl_$.toInt32Array = function(this1,length) { var data = this1; if (!data) return null; var _g = data.type; switch(_g[1]) { case 0: if(length == null) { length = data.buffer.byteLength; } var buffer = data.buffer; var byteoffset = data.offset; var len = length / 4 | 0; var this2; if(buffer != null) { if(len == null) { this2 = new Int32Array(buffer,byteoffset); } else { this2 = new Int32Array(buffer,byteoffset,len); } } else { this2 = null; } return this2; case 1: if(length == null) { length = data.bufferView.byteLength; } if(data.offset == 0 && length == data.bufferView.byteLength && data.bufferView.constructor == Int32Array) { return data.bufferView; } else { var buffer1 = data.bufferView.buffer; var byteoffset1 = data.bufferView.byteOffset + data.offset; var len1 = length / 4 | 0; var this3; if(buffer1 != null) { if(len1 == null) { this3 = new Int32Array(buffer1,byteoffset1); } else { this3 = new Int32Array(buffer1,byteoffset1,len1); } } else { this3 = null; } return this3; } break; default: return null; } }; lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt8Array = function(this1,length) { var data = this1; if (!data) return null; var _g = data.type; switch(_g[1]) { case 0: if(length == null) { length = data.buffer.byteLength; } var buffer = data.buffer; var byteoffset = data.offset; var this2; if(buffer != null) { if(length == null) { this2 = new Uint8Array(buffer,byteoffset); } else { this2 = new Uint8Array(buffer,byteoffset,length); } } else { this2 = null; } return this2; case 1: if(length == null) { length = data.bufferView.byteLength; } if(data.offset == 0 && length == data.bufferView.byteLength && data.bufferView.constructor == Uint8Array) { return data.bufferView; } else { var buffer1 = data.bufferView.buffer; var byteoffset1 = data.bufferView.byteOffset + data.offset; var this3; if(buffer1 != null) { if(length == null) { this3 = new Uint8Array(buffer1,byteoffset1); } else { this3 = new Uint8Array(buffer1,byteoffset1,length); } } else { this3 = null; } return this3; } break; default: return null; } }; lime_utils__$DataPointer_DataPointer_$Impl_$.toUInt32Array = function(this1,length) { var data = this1; if (!data) return null; var _g = data.type; switch(_g[1]) { case 0: if(length == null) { length = data.buffer.byteLength; } var buffer = data.buffer; var byteoffset = data.offset; var len = length / 4 | 0; var this2; if(buffer != null) { if(len == null) { this2 = new Uint32Array(buffer,byteoffset); } else { this2 = new Uint32Array(buffer,byteoffset,len); } } else { this2 = null; } return this2; case 1: if(length == null) { length = data.bufferView.byteLength; } if(data.offset == 0 && length == data.bufferView.byteLength && data.bufferView.constructor == Uint32Array) { return data.bufferView; } else { var buffer1 = data.bufferView.buffer; var byteoffset1 = data.bufferView.byteOffset + data.offset; var len1 = length / 4 | 0; var this3; if(buffer1 != null) { if(len1 == null) { this3 = new Uint32Array(buffer1,byteoffset1); } else { this3 = new Uint32Array(buffer1,byteoffset1,len1); } } else { this3 = null; } return this3; } break; default: return null; } }; lime_utils__$DataPointer_DataPointer_$Impl_$.toValue = function(this1) { var data = this1; if (!data) return 0; if (typeof data === 'number') return data; var _g = data.type; if(_g[1] == 2) { return data.offset; } else { return 0; } }; lime_utils__$DataPointer_DataPointer_$Impl_$.__withOffset = function(data,offset) { return null; }; lime_utils__$DataPointer_DataPointer_$Impl_$.equals = function(a,b) { return a == b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.equalsPointer = function(a,b) { return a == b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.greaterThan = function(a,b) { return a > b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.greaterThanPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) > lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_utils__$DataPointer_DataPointer_$Impl_$.greaterThanOrEqual = function(a,b) { return a >= b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.greaterThanOrEqualPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) >= lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_utils__$DataPointer_DataPointer_$Impl_$.lessThan = function(a,b) { return a < b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.lessThanPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) < lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_utils__$DataPointer_DataPointer_$Impl_$.lessThanOrEqual = function(a,b) { return a <= b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.lessThanOrEqualPointer = function(a,b) { return lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(a) <= lime_system__$CFFIPointer_CFFIPointer_$Impl_$.get(b); }; lime_utils__$DataPointer_DataPointer_$Impl_$.notEquals = function(a,b) { return a != b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.notEqualsPointer = function(a,b) { return a != b; }; lime_utils__$DataPointer_DataPointer_$Impl_$.plus = function(a,b) { return lime_utils__$DataPointer_DataPointer_$Impl_$.__withOffset(a,b); }; lime_utils__$DataPointer_DataPointer_$Impl_$.plusPointer = function(a,b) { return lime_utils__$DataPointer_DataPointer_$Impl_$.__withOffset(a,b | 0); }; lime_utils__$DataPointer_DataPointer_$Impl_$.minus = function(a,b) { return lime_utils__$DataPointer_DataPointer_$Impl_$.__withOffset(a,-b); }; lime_utils__$DataPointer_DataPointer_$Impl_$.minusPointer = function(a,b) { return lime_utils__$DataPointer_DataPointer_$Impl_$.__withOffset(a,-(b | 0)); }; var lime_utils_DataPointerObject = function(bufferView,buffer,offset) { if(offset == null) { offset = 0; } if(bufferView != null) { this.bufferView = bufferView; this.type = lime_utils_DataPointerObjectType.BUFFER_VIEW; } else if(buffer != null) { this.buffer = buffer; this.type = lime_utils_DataPointerObjectType.BUFFER; } else { this.type = lime_utils_DataPointerObjectType.VALUE; } this.offset = offset; }; $hxClasses["lime.utils.DataPointerObject"] = lime_utils_DataPointerObject; lime_utils_DataPointerObject.__name__ = ["lime","utils","DataPointerObject"]; lime_utils_DataPointerObject.prototype = { buffer: null ,bufferView: null ,offset: null ,type: null ,__class__: lime_utils_DataPointerObject }; var lime_utils_DataPointerObjectType = $hxClasses["lime.utils.DataPointerObjectType"] = { __ename__ : ["lime","utils","DataPointerObjectType"], __constructs__ : ["BUFFER","BUFFER_VIEW","VALUE"] }; lime_utils_DataPointerObjectType.BUFFER = ["BUFFER",0]; lime_utils_DataPointerObjectType.BUFFER.toString = $estr; lime_utils_DataPointerObjectType.BUFFER.__enum__ = lime_utils_DataPointerObjectType; lime_utils_DataPointerObjectType.BUFFER_VIEW = ["BUFFER_VIEW",1]; lime_utils_DataPointerObjectType.BUFFER_VIEW.toString = $estr; lime_utils_DataPointerObjectType.BUFFER_VIEW.__enum__ = lime_utils_DataPointerObjectType; lime_utils_DataPointerObjectType.VALUE = ["VALUE",2]; lime_utils_DataPointerObjectType.VALUE.toString = $estr; lime_utils_DataPointerObjectType.VALUE.__enum__ = lime_utils_DataPointerObjectType; lime_utils_DataPointerObjectType.__empty_constructs__ = [lime_utils_DataPointerObjectType.BUFFER,lime_utils_DataPointerObjectType.BUFFER_VIEW,lime_utils_DataPointerObjectType.VALUE]; var lime_utils__$Float32Array_Float32Array_$Impl_$ = {}; $hxClasses["lime.utils._Float32Array.Float32Array_Impl_"] = lime_utils__$Float32Array_Float32Array_$Impl_$; lime_utils__$Float32Array_Float32Array_$Impl_$.__name__ = ["lime","utils","_Float32Array","Float32Array_Impl_"]; lime_utils__$Float32Array_Float32Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } if(byteOffset == null) { return new Float32Array(bytes.b.bufferValue); } if(len == null) { return new Float32Array(bytes.b.bufferValue,byteOffset); } return new Float32Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$Float32Array_Float32Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$Float32Array_Float32Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "Float32Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils__$Float64Array_Float64Array_$Impl_$ = {}; $hxClasses["lime.utils._Float64Array.Float64Array_Impl_"] = lime_utils__$Float64Array_Float64Array_$Impl_$; lime_utils__$Float64Array_Float64Array_$Impl_$.__name__ = ["lime","utils","_Float64Array","Float64Array_Impl_"]; lime_utils__$Float64Array_Float64Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } if(byteOffset == null) { return new Float64Array(bytes.b.bufferValue); } if(len == null) { return new Float64Array(bytes.b.bufferValue,byteOffset); } return new Float64Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$Float64Array_Float64Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$Float64Array_Float64Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "Float64Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils_GLUtils = function() { }; $hxClasses["lime.utils.GLUtils"] = lime_utils_GLUtils; lime_utils_GLUtils.__name__ = ["lime","utils","GLUtils"]; lime_utils_GLUtils.compileShader = function(source,type) { var shader = lime_graphics_opengl_GL.context.__context.createShader(type); lime_graphics_opengl_GL.context.__context.shaderSource(shader,source); lime_graphics_opengl_GL.context.__context.compileShader(shader); if(lime_graphics_opengl_GL.context.__context.getShaderParameter(shader,35713) == 0) { var message; switch(type) { case 35632: message = "Error compiling fragment shader"; break; case 35633: message = "Error compiling vertex shader"; break; default: message = "Error compiling unknown shader type"; } message += "\n" + lime_graphics_opengl_GL.context.__context.getShaderInfoLog(shader); lime_utils_Log.error(message,{ fileName : "GLUtils.hx", lineNumber : 35, className : "lime.utils.GLUtils", methodName : "compileShader"}); } return shader; }; lime_utils_GLUtils.createProgram = function(vertexSource,fragmentSource) { var vertexShader = lime_utils_GLUtils.compileShader(vertexSource,35633); var fragmentShader = lime_utils_GLUtils.compileShader(fragmentSource,35632); var program = lime_graphics_opengl_GL.context.__context.createProgram(); lime_graphics_opengl_GL.context.__context.attachShader(program,vertexShader); lime_graphics_opengl_GL.context.__context.attachShader(program,fragmentShader); lime_graphics_opengl_GL.context.__context.linkProgram(program); if(lime_graphics_opengl_GL.context.__context.getProgramParameter(program,35714) == 0) { lime_utils_Log.error("Unable to initialize the shader program",{ fileName : "GLUtils.hx", lineNumber : 56, className : "lime.utils.GLUtils", methodName : "createProgram"}); } return program; }; var lime_utils__$Int16Array_Int16Array_$Impl_$ = {}; $hxClasses["lime.utils._Int16Array.Int16Array_Impl_"] = lime_utils__$Int16Array_Int16Array_$Impl_$; lime_utils__$Int16Array_Int16Array_$Impl_$.__name__ = ["lime","utils","_Int16Array","Int16Array_Impl_"]; lime_utils__$Int16Array_Int16Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } if(byteOffset == null) { return new Int16Array(bytes.b.bufferValue); } if(len == null) { return new Int16Array(bytes.b.bufferValue,byteOffset); } return new Int16Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$Int16Array_Int16Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$Int16Array_Int16Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "Int16Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils__$Int32Array_Int32Array_$Impl_$ = {}; $hxClasses["lime.utils._Int32Array.Int32Array_Impl_"] = lime_utils__$Int32Array_Int32Array_$Impl_$; lime_utils__$Int32Array_Int32Array_$Impl_$.__name__ = ["lime","utils","_Int32Array","Int32Array_Impl_"]; lime_utils__$Int32Array_Int32Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } if(byteOffset == null) { return new Int32Array(bytes.b.bufferValue); } if(len == null) { return new Int32Array(bytes.b.bufferValue,byteOffset); } return new Int32Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$Int32Array_Int32Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$Int32Array_Int32Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "Int32Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils__$Int8Array_Int8Array_$Impl_$ = {}; $hxClasses["lime.utils._Int8Array.Int8Array_Impl_"] = lime_utils__$Int8Array_Int8Array_$Impl_$; lime_utils__$Int8Array_Int8Array_$Impl_$.__name__ = ["lime","utils","_Int8Array","Int8Array_Impl_"]; lime_utils__$Int8Array_Int8Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } return new Int8Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$Int8Array_Int8Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$Int8Array_Int8Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "Int8Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils_Log = function() { }; $hxClasses["lime.utils.Log"] = lime_utils_Log; lime_utils_Log.__name__ = ["lime","utils","Log"]; lime_utils_Log.debug = function(message,info) { if(lime_utils_Log.level >= 4) { console.log("[" + info.className + "] " + message); } }; lime_utils_Log.error = function(message,info) { if(lime_utils_Log.level >= 1) { var message1 = "[" + info.className + "] ERROR: " + message; if(lime_utils_Log.throwErrors) { throw new js__$Boot_HaxeError(message1); } else { console.log(message1); } } }; lime_utils_Log.info = function(message,info) { if(lime_utils_Log.level >= 3) { console.log("[" + info.className + "] " + message); } }; lime_utils_Log.print = function(message) { console.log(message); }; lime_utils_Log.println = function(message) { console.log(message); }; lime_utils_Log.verbose = function(message,info) { if(lime_utils_Log.level >= 5) { console.log("[" + info.className + "] " + message); } }; lime_utils_Log.warn = function(message,info) { if(lime_utils_Log.level >= 2) { console.log("[" + info.className + "] WARNING: " + message); } }; var lime_utils__$Log_LogLevel_$Impl_$ = {}; $hxClasses["lime.utils._Log.LogLevel_Impl_"] = lime_utils__$Log_LogLevel_$Impl_$; lime_utils__$Log_LogLevel_$Impl_$.__name__ = ["lime","utils","_Log","LogLevel_Impl_"]; lime_utils__$Log_LogLevel_$Impl_$.gt = function(a,b) { return a > b; }; lime_utils__$Log_LogLevel_$Impl_$.gte = function(a,b) { return a >= b; }; lime_utils__$Log_LogLevel_$Impl_$.lt = function(a,b) { return a < b; }; lime_utils__$Log_LogLevel_$Impl_$.lte = function(a,b) { return a <= b; }; var lime_utils_ObjectPool = function(create,clean,size) { if(create != null) { this.create = create; } if(clean != null) { this.clean = clean; } if(size != null) { this.set_size(size); } this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList = new List(); }; $hxClasses["lime.utils.ObjectPool"] = lime_utils_ObjectPool; lime_utils_ObjectPool.__name__ = ["lime","utils","ObjectPool"]; lime_utils_ObjectPool.prototype = { activeObjects: null ,inactiveObjects: null ,__inactiveObject0: null ,__inactiveObject1: null ,__inactiveObjectList: null ,__pool: null ,__size: null ,add: function(object) { if(this.__pool.h.__keys__[object.__id__] == null) { this.__pool.set(object,false); this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } } ,clean: function(object) { } ,clear: function() { this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList.clear(); } ,create: function() { return null; } ,get: function() { var object = null; if(this.inactiveObjects > 0) { var object1 = null; if(this.__inactiveObject0 != null) { object1 = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object1 = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object1 = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; object = object1; } else if(this.__size == null || this.activeObjects < this.__size) { object = this.create(); if(object != null) { this.__pool.set(object,true); this.activeObjects++; } } return object; } ,release: function(object) { this.activeObjects--; if(this.__size == null || this.activeObjects + this.inactiveObjects < this.__size) { this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } else { this.__pool.remove(object); } } ,__addInactive: function(object) { if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } ,__getInactive: function() { var object = null; if(this.__inactiveObject0 != null) { object = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; return object; } ,__removeInactive: function(count) { if(count <= 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject0 != null) { this.__pool.remove(this.__inactiveObject0); this.__inactiveObject0 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject1 != null) { this.__pool.remove(this.__inactiveObject1); this.__inactiveObject1 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } var _g_head = this.__inactiveObjectList.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var object = val; this.__pool.remove(object); this.__inactiveObjectList.remove(object); this.inactiveObjects--; --count; if(count == 0 || this.inactiveObjects == 0) { return; } } } ,get_size: function() { return this.__size; } ,set_size: function(value) { if(value == null) { this.__size = null; } else { var current = this.inactiveObjects + this.activeObjects; this.__size = value; if(current > value) { this.__removeInactive(current - value); } else if(value > current) { var object; var _g1 = 0; var _g = value - current; while(_g1 < _g) { var i = _g1++; object = this.create(); if(object != null) { this.__pool.set(object,false); this.__inactiveObjectList.add(object); this.inactiveObjects++; } else { break; } } } } return value; } ,__class__: lime_utils_ObjectPool ,__properties__: {set_size:"set_size",get_size:"get_size"} }; var lime_utils_ObjectPool_$openfl_$utils_$TouchData = function(create,clean,size) { if(create != null) { this.create = create; } if(clean != null) { this.clean = clean; } if(size != null) { this.set_size(size); } this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList = new List(); }; $hxClasses["lime.utils.ObjectPool_openfl_utils_TouchData"] = lime_utils_ObjectPool_$openfl_$utils_$TouchData; lime_utils_ObjectPool_$openfl_$utils_$TouchData.__name__ = ["lime","utils","ObjectPool_openfl_utils_TouchData"]; lime_utils_ObjectPool_$openfl_$utils_$TouchData.prototype = { activeObjects: null ,inactiveObjects: null ,__inactiveObject0: null ,__inactiveObject1: null ,__inactiveObjectList: null ,__pool: null ,__size: null ,add: function(object) { if(!this.__pool.exists(object)) { this.__pool.set(object,false); this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } } ,clean: function(object) { } ,clear: function() { this.__pool = new haxe_ds_ObjectMap(); this.activeObjects = 0; this.inactiveObjects = 0; this.__inactiveObject0 = null; this.__inactiveObject1 = null; this.__inactiveObjectList.clear(); } ,create: function() { return null; } ,get: function() { var object = null; if(this.inactiveObjects > 0) { var object1 = null; if(this.__inactiveObject0 != null) { object1 = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object1 = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object1 = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; object = object1; } else if(this.__size == null || this.activeObjects < this.__size) { object = this.create(); if(object != null) { this.__pool.set(object,true); this.activeObjects++; } } return object; } ,release: function(object) { this.activeObjects--; if(this.__size == null || this.activeObjects + this.inactiveObjects < this.__size) { this.clean(object); if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } else { this.__pool.remove(object); } } ,__addInactive: function(object) { if(this.__inactiveObject0 == null) { this.__inactiveObject0 = object; } else if(this.__inactiveObject1 == null) { this.__inactiveObject1 = object; } else { this.__inactiveObjectList.add(object); } this.inactiveObjects++; } ,__getInactive: function() { var object = null; if(this.__inactiveObject0 != null) { object = this.__inactiveObject0; this.__inactiveObject0 = null; } else if(this.__inactiveObject1 != null) { object = this.__inactiveObject1; this.__inactiveObject1 = null; } else { object = this.__inactiveObjectList.pop(); if(this.__inactiveObjectList.length > 0) { this.__inactiveObject0 = this.__inactiveObjectList.pop(); } if(this.__inactiveObjectList.length > 0) { this.__inactiveObject1 = this.__inactiveObjectList.pop(); } } this.inactiveObjects--; this.activeObjects++; return object; } ,__removeInactive: function(count) { if(count <= 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject0 != null) { this.__pool.remove(this.__inactiveObject0); this.__inactiveObject0 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } if(this.__inactiveObject1 != null) { this.__pool.remove(this.__inactiveObject1); this.__inactiveObject1 = null; this.inactiveObjects--; --count; } if(count == 0 || this.inactiveObjects == 0) { return; } var _g_head = this.__inactiveObjectList.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var object = val; this.__pool.remove(object); this.__inactiveObjectList.remove(object); this.inactiveObjects--; --count; if(count == 0 || this.inactiveObjects == 0) { return; } } } ,get_size: function() { return this.__size; } ,set_size: function(value) { if(value == null) { this.__size = null; } else { var current = this.inactiveObjects + this.activeObjects; this.__size = value; if(current > value) { this.__removeInactive(current - value); } else if(value > current) { var object; var _g1 = 0; var _g = value - current; while(_g1 < _g) { var i = _g1++; object = this.create(); if(object != null) { this.__pool.set(object,false); this.__inactiveObjectList.add(object); this.inactiveObjects++; } else { break; } } } } return value; } ,__class__: lime_utils_ObjectPool_$openfl_$utils_$TouchData ,__properties__: {set_size:"set_size",get_size:"get_size"} }; var lime_utils__$UInt16Array_UInt16Array_$Impl_$ = {}; $hxClasses["lime.utils._UInt16Array.UInt16Array_Impl_"] = lime_utils__$UInt16Array_UInt16Array_$Impl_$; lime_utils__$UInt16Array_UInt16Array_$Impl_$.__name__ = ["lime","utils","_UInt16Array","UInt16Array_Impl_"]; lime_utils__$UInt16Array_UInt16Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } if(byteOffset == null) { return new Uint16Array(bytes.b.bufferValue); } if(len == null) { return new Uint16Array(bytes.b.bufferValue,byteOffset); } return new Uint16Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$UInt16Array_UInt16Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$UInt16Array_UInt16Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "UInt16Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils__$UInt32Array_UInt32Array_$Impl_$ = {}; $hxClasses["lime.utils._UInt32Array.UInt32Array_Impl_"] = lime_utils__$UInt32Array_UInt32Array_$Impl_$; lime_utils__$UInt32Array_UInt32Array_$Impl_$.__name__ = ["lime","utils","_UInt32Array","UInt32Array_Impl_"]; lime_utils__$UInt32Array_UInt32Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } if(byteOffset == null) { return new Uint32Array(bytes.b.bufferValue); } if(len == null) { return new Uint32Array(bytes.b.bufferValue,byteOffset); } return new Uint32Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$UInt32Array_UInt32Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$UInt32Array_UInt32Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "UInt32Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils__$UInt8Array_UInt8Array_$Impl_$ = {}; $hxClasses["lime.utils._UInt8Array.UInt8Array_Impl_"] = lime_utils__$UInt8Array_UInt8Array_$Impl_$; lime_utils__$UInt8Array_UInt8Array_$Impl_$.__name__ = ["lime","utils","_UInt8Array","UInt8Array_Impl_"]; lime_utils__$UInt8Array_UInt8Array_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { return new Uint8Array(bytes.b.bufferValue); } if(len == null) { return new Uint8Array(bytes.b.bufferValue,byteOffset); } return new Uint8Array(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$UInt8Array_UInt8Array_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$UInt8Array_UInt8Array_$Impl_$.toString = function(this1) { if(this1 != null) { return "UInt8Array [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; var lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$ = {}; $hxClasses["lime.utils._UInt8ClampedArray.UInt8ClampedArray_Impl_"] = lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$; lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$.__name__ = ["lime","utils","_UInt8ClampedArray","UInt8ClampedArray_Impl_"]; lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$.fromBytes = function(bytes,byteOffset,len) { if(byteOffset == null) { byteOffset = 0; } if(byteOffset == null) { return new Uint8ClampedArray(bytes.b.bufferValue); } if(len == null) { return new Uint8ClampedArray(bytes.b.bufferValue,byteOffset); } return new Uint8ClampedArray(bytes.b.bufferValue,byteOffset,len); }; lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$.toBytes = function(this1) { return new haxe_io_Bytes(new Uint8Array(this1.buffer)); }; lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$.toString = function(this1) { if(this1 != null) { return "UInt8ClampedArray [byteLength:" + this1.byteLength + ", length:" + this1.length + "]"; } else { return null; } }; lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$._clamp = function(_in) { var _out = _in | 0; if(_out > 255) { _out = 255; } else { _out = _out; } if(_out < 0) { return 0; } else { return _out; } }; var lime_utils_compress_Deflate = function() { }; $hxClasses["lime.utils.compress.Deflate"] = lime_utils_compress_Deflate; lime_utils_compress_Deflate.__name__ = ["lime","utils","compress","Deflate"]; lime_utils_compress_Deflate.compress = function(bytes) { var data = pako.deflateRaw(bytes.b.bufferValue); return haxe_io_Bytes.ofData(data); }; lime_utils_compress_Deflate.decompress = function(bytes) { var data = pako.inflateRaw(bytes.b.bufferValue); return haxe_io_Bytes.ofData(data); }; var lime_utils_compress_LZMA = function() { }; $hxClasses["lime.utils.compress.LZMA"] = lime_utils_compress_LZMA; lime_utils_compress_LZMA.__name__ = ["lime","utils","compress","LZMA"]; lime_utils_compress_LZMA.compress = function(bytes) { return null; }; lime_utils_compress_LZMA.decompress = function(bytes) { return null; }; var lime_utils_compress_Zlib = function() { }; $hxClasses["lime.utils.compress.Zlib"] = lime_utils_compress_Zlib; lime_utils_compress_Zlib.__name__ = ["lime","utils","compress","Zlib"]; lime_utils_compress_Zlib.compress = function(bytes) { var data = pako.deflate(bytes.b.bufferValue); return haxe_io_Bytes.ofData(data); }; lime_utils_compress_Zlib.decompress = function(bytes) { var data = pako.inflate(bytes.b.bufferValue); return haxe_io_Bytes.ofData(data); }; var motion_actuators_IGenericActuator = function() { }; $hxClasses["motion.actuators.IGenericActuator"] = motion_actuators_IGenericActuator; motion_actuators_IGenericActuator.__name__ = ["motion","actuators","IGenericActuator"]; motion_actuators_IGenericActuator.prototype = { autoVisible: null ,delay: null ,ease: null ,onComplete: null ,onRepeat: null ,onUpdate: null ,reflect: null ,repeat: null ,reverse: null ,smartRotation: null ,snapping: null ,onPause: null ,onResume: null ,apply: null ,move: null ,pause: null ,resume: null ,stop: null ,__class__: motion_actuators_IGenericActuator }; var motion_actuators_GenericActuator = function(target,duration,properties) { this._autoVisible = true; this._delay = 0; this._reflect = false; this._repeat = 0; this._reverse = false; this._smartRotation = false; this._snapping = false; this.special = false; this.target = target; this.properties = properties; this.duration = duration; this._ease = motion_Actuate.defaultEase; }; $hxClasses["motion.actuators.GenericActuator"] = motion_actuators_GenericActuator; motion_actuators_GenericActuator.__name__ = ["motion","actuators","GenericActuator"]; motion_actuators_GenericActuator.__interfaces__ = [motion_actuators_IGenericActuator]; motion_actuators_GenericActuator.prototype = { duration: null ,id: null ,properties: null ,target: null ,_autoVisible: null ,_delay: null ,_ease: null ,_onComplete: null ,_onCompleteParams: null ,_onRepeat: null ,_onRepeatParams: null ,_onUpdate: null ,_onUpdateParams: null ,_onResume: null ,_onResumeParams: null ,_onPause: null ,_onPauseParams: null ,_reflect: null ,_repeat: null ,_reverse: null ,_smartRotation: null ,_snapping: null ,special: null ,apply: function() { var _g = 0; var _g1 = Reflect.fields(this.properties); while(_g < _g1.length) { var i = _g1[_g]; ++_g; if(Object.prototype.hasOwnProperty.call(this.target,i)) { this.target[i] = Reflect.field(this.properties,i); } else { Reflect.setProperty(this.target,i,Reflect.field(this.properties,i)); } } } ,autoVisible: function(value) { if(value == null) { value = true; } this._autoVisible = value; return this; } ,callMethod: function(method,params) { if(params == null) { params = []; } return method.apply(method,params); } ,change: function() { if(this._onUpdate != null) { var method = this._onUpdate; var params = this._onUpdateParams; if(params == null) { params = []; } method.apply(method,params); } } ,complete: function(sendEvent) { if(sendEvent == null) { sendEvent = true; } if(sendEvent) { this.change(); if(this._onComplete != null) { var method = this._onComplete; var params = this._onCompleteParams; if(params == null) { params = []; } method.apply(method,params); } } motion_Actuate.unload(this); } ,delay: function(duration) { this._delay = duration; return this; } ,ease: function(easing) { this._ease = easing; return this; } ,move: function() { } ,onComplete: function(handler,parameters) { this._onComplete = handler; if(parameters == null) { this._onCompleteParams = []; } else { this._onCompleteParams = parameters; } if(this.duration == 0) { this.complete(); } return this; } ,onRepeat: function(handler,parameters) { this._onRepeat = handler; if(parameters == null) { this._onRepeatParams = []; } else { this._onRepeatParams = parameters; } return this; } ,onUpdate: function(handler,parameters) { this._onUpdate = handler; if(parameters == null) { this._onUpdateParams = []; } else { this._onUpdateParams = parameters; } return this; } ,onPause: function(handler,parameters) { this._onPause = handler; if(parameters == null) { this._onPauseParams = []; } else { this._onPauseParams = parameters; } return this; } ,onResume: function(handler,parameters) { this._onResume = handler; if(parameters == null) { this._onResumeParams = []; } else { this._onResumeParams = parameters; } return this; } ,pause: function() { if(this._onPause != null) { var method = this._onPause; var params = this._onPauseParams; if(params == null) { params = []; } method.apply(method,params); } } ,reflect: function(value) { if(value == null) { value = true; } this._reflect = value; this.special = true; return this; } ,repeat: function(times) { if(times == null) { times = -1; } this._repeat = times; return this; } ,resume: function() { if(this._onResume != null) { var method = this._onResume; var params = this._onResumeParams; if(params == null) { params = []; } method.apply(method,params); } } ,reverse: function(value) { if(value == null) { value = true; } this._reverse = value; this.special = true; return this; } ,smartRotation: function(value) { if(value == null) { value = true; } this._smartRotation = value; this.special = true; return this; } ,snapping: function(value) { if(value == null) { value = true; } this._snapping = value; this.special = true; return this; } ,stop: function(properties,complete,sendEvent) { } ,__class__: motion_actuators_GenericActuator }; var motion_actuators_SimpleActuator = function(target,duration,properties) { this.active = true; this.propertyDetails = []; this.sendChange = false; this.paused = false; this.cacheVisible = false; this.initialized = false; this.setVisible = false; this.toggleVisible = false; this.startTime = openfl_Lib.getTimer() / 1000; motion_actuators_GenericActuator.call(this,target,duration,properties); if(!motion_actuators_SimpleActuator.addedEvent) { motion_actuators_SimpleActuator.addedEvent = true; openfl_Lib.current.stage.addEventListener("enterFrame",motion_actuators_SimpleActuator.stage_onEnterFrame); } }; $hxClasses["motion.actuators.SimpleActuator"] = motion_actuators_SimpleActuator; motion_actuators_SimpleActuator.__name__ = ["motion","actuators","SimpleActuator"]; motion_actuators_SimpleActuator.stage_onEnterFrame = function(event) { var currentTime = openfl_Lib.getTimer() / 1000; var actuator; var j = 0; var cleanup = false; var _g1 = 0; var _g = motion_actuators_SimpleActuator.actuatorsLength; while(_g1 < _g) { var i = _g1++; actuator = motion_actuators_SimpleActuator.actuators[j]; if(actuator != null && actuator.active) { if(currentTime >= actuator.timeOffset) { actuator.update(currentTime); } ++j; } else { motion_actuators_SimpleActuator.actuators.splice(j,1); --motion_actuators_SimpleActuator.actuatorsLength; } } }; motion_actuators_SimpleActuator.__super__ = motion_actuators_GenericActuator; motion_actuators_SimpleActuator.prototype = $extend(motion_actuators_GenericActuator.prototype,{ setField_openfl_geom_Transform: function(target,propertyName,value) { if(Object.prototype.hasOwnProperty.call(target,propertyName)) { target[propertyName] = value; } else { Reflect.setProperty(target,propertyName,value); } } ,setField_motion_actuators_TransformActuator_T: function(target,propertyName,value) { if(Object.prototype.hasOwnProperty.call(target,propertyName)) { target[propertyName] = value; } else { Reflect.setProperty(target,propertyName,value); } } ,setField_motion_actuators_MotionPathActuator_T: function(target,propertyName,value) { if(Object.prototype.hasOwnProperty.call(target,propertyName)) { target[propertyName] = value; } else { Reflect.setProperty(target,propertyName,value); } } ,setField_openfl_display_DisplayObject: function(target,propertyName,value) { if(Object.prototype.hasOwnProperty.call(target,propertyName)) { target[propertyName] = value; } else { Reflect.setProperty(target,propertyName,value); } } ,setField_motion_actuators_SimpleActuator_T: function(target,propertyName,value) { if(Object.prototype.hasOwnProperty.call(target,propertyName)) { target[propertyName] = value; } else { Reflect.setProperty(target,propertyName,value); } } ,timeOffset: null ,active: null ,cacheVisible: null ,detailsLength: null ,initialized: null ,paused: null ,pauseTime: null ,propertyDetails: null ,sendChange: null ,setVisible: null ,startTime: null ,toggleVisible: null ,autoVisible: function(value) { if(value == null) { value = true; } this._autoVisible = value; if(!value) { this.toggleVisible = false; if(this.setVisible) { var target = this.target; var value1 = this.cacheVisible; if(Object.prototype.hasOwnProperty.call(target,"visible")) { target["visible"] = value1; } else { Reflect.setProperty(target,"visible",value1); } } } return this; } ,delay: function(duration) { this._delay = duration; this.timeOffset = this.startTime + duration; return this; } ,getField: function(target,propertyName) { var value = null; if(Object.prototype.hasOwnProperty.call(target,propertyName)) { value = Reflect.field(target,propertyName); } else { value = Reflect.getProperty(target,propertyName); } return value; } ,initialize: function() { var details; var start; var _g = 0; var _g1 = Reflect.fields(this.properties); while(_g < _g1.length) { var i = _g1[_g]; ++_g; var isField = true; if(Object.prototype.hasOwnProperty.call(this.target,i) && !(this.target.__properties__ && this.target.__properties__["set_" + i])) { start = Reflect.field(this.target,i); } else { isField = false; start = Reflect.getProperty(this.target,i); } if(typeof(start) == "number") { var target = this.properties; var value = null; if(Object.prototype.hasOwnProperty.call(target,i)) { value = Reflect.field(target,i); } else { value = Reflect.getProperty(target,i); } var value1 = value; if(start == null) { start = 0; } if(value1 == null) { value1 = 0; } details = new motion_actuators_PropertyDetails(this.target,i,start,value1 - start,isField); this.propertyDetails.push(details); } } this.detailsLength = this.propertyDetails.length; this.initialized = true; } ,move: function() { this.toggleVisible = Object.prototype.hasOwnProperty.call(this.properties,"alpha") && js_Boot.__instanceof(this.target,openfl_display_DisplayObject); var tmp; if(this.toggleVisible && this.properties.alpha != 0) { var target = this.target; var value = null; if(Object.prototype.hasOwnProperty.call(target,"visible")) { value = Reflect.field(target,"visible"); } else { value = Reflect.getProperty(target,"visible"); } tmp = !value; } else { tmp = false; } if(tmp) { this.setVisible = true; var target1 = this.target; var value1 = null; if(Object.prototype.hasOwnProperty.call(target1,"visible")) { value1 = Reflect.field(target1,"visible"); } else { value1 = Reflect.getProperty(target1,"visible"); } this.cacheVisible = value1; var target2 = this.target; if(Object.prototype.hasOwnProperty.call(target2,"visible")) { target2["visible"] = true; } else { Reflect.setProperty(target2,"visible",true); } } this.timeOffset = this.startTime; motion_actuators_SimpleActuator.actuators.push(this); ++motion_actuators_SimpleActuator.actuatorsLength; } ,onUpdate: function(handler,parameters) { this._onUpdate = handler; if(parameters == null) { this._onUpdateParams = []; } else { this._onUpdateParams = parameters; } this.sendChange = true; return this; } ,pause: function() { if(!this.paused) { this.paused = true; motion_actuators_GenericActuator.prototype.pause.call(this); this.pauseTime = openfl_Lib.getTimer(); } } ,resume: function() { if(this.paused) { this.paused = false; this.timeOffset += (openfl_Lib.getTimer() - this.pauseTime) / 1000; motion_actuators_GenericActuator.prototype.resume.call(this); } } ,setProperty: function(details,value) { if(details.isField) { details.target[details.propertyName] = value; } else { Reflect.setProperty(details.target,details.propertyName,value); } } ,stop: function(properties,complete,sendEvent) { if(this.active) { if(properties == null) { this.active = false; if(complete) { this.apply(); } this.complete(sendEvent); return; } var _g = 0; var _g1 = Reflect.fields(properties); while(_g < _g1.length) { var i = _g1[_g]; ++_g; if(Object.prototype.hasOwnProperty.call(this.properties,i)) { this.active = false; if(complete) { this.apply(); } this.complete(sendEvent); return; } } } } ,update: function(currentTime) { if(!this.paused) { var details; var easing; var i; var tweenPosition = (currentTime - this.timeOffset) / this.duration; if(tweenPosition > 1) { tweenPosition = 1; } if(!this.initialized) { this.initialize(); } if(!this.special) { easing = this._ease.calculate(tweenPosition); var _g1 = 0; var _g = this.detailsLength; while(_g1 < _g) { var i1 = _g1++; details = this.propertyDetails[i1]; var value = details.start + details.change * easing; if(details.isField) { details.target[details.propertyName] = value; } else { Reflect.setProperty(details.target,details.propertyName,value); } } } else { if(!this._reverse) { easing = this._ease.calculate(tweenPosition); } else { easing = this._ease.calculate(1 - tweenPosition); } var endValue; var _g11 = 0; var _g2 = this.detailsLength; while(_g11 < _g2) { var i2 = _g11++; details = this.propertyDetails[i2]; if(this._smartRotation && (details.propertyName == "rotation" || details.propertyName == "rotationX" || details.propertyName == "rotationY" || details.propertyName == "rotationZ")) { var rotation = details.change % 360; if(rotation > 180) { rotation -= 360; } else if(rotation < -180) { rotation += 360; } endValue = details.start + rotation * easing; } else { endValue = details.start + details.change * easing; } if(!this._snapping) { if(details.isField) { details.target[details.propertyName] = endValue; } else { Reflect.setProperty(details.target,details.propertyName,endValue); } } else { var value1 = Math.round(endValue); if(details.isField) { details.target[details.propertyName] = value1; } else { Reflect.setProperty(details.target,details.propertyName,value1); } } } } if(tweenPosition == 1) { if(this._repeat == 0) { this.active = false; var tmp; if(this.toggleVisible) { var target = this.target; var value2 = null; if(Object.prototype.hasOwnProperty.call(target,"alpha")) { value2 = Reflect.field(target,"alpha"); } else { value2 = Reflect.getProperty(target,"alpha"); } tmp = value2 == 0; } else { tmp = false; } if(tmp) { var target1 = this.target; if(Object.prototype.hasOwnProperty.call(target1,"visible")) { target1["visible"] = false; } else { Reflect.setProperty(target1,"visible",false); } } this.complete(true); return; } else { if(this._onRepeat != null) { var method = this._onRepeat; var params = this._onRepeatParams; if(params == null) { params = []; } method.apply(method,params); } if(this._reflect) { this._reverse = !this._reverse; } this.startTime = currentTime; this.timeOffset = this.startTime + this._delay; if(this._repeat > 0) { this._repeat--; } } } if(this.sendChange) { this.change(); } } } ,__class__: motion_actuators_SimpleActuator }); var motion_easing_Expo = function() { }; $hxClasses["motion.easing.Expo"] = motion_easing_Expo; motion_easing_Expo.__name__ = ["motion","easing","Expo"]; motion_easing_Expo.__properties__ = {get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"}; motion_easing_Expo.get_easeIn = function() { return new motion_easing_ExpoEaseIn(); }; motion_easing_Expo.get_easeInOut = function() { return new motion_easing_ExpoEaseInOut(); }; motion_easing_Expo.get_easeOut = function() { return new motion_easing_ExpoEaseOut(); }; var motion_easing_IEasing = function() { }; $hxClasses["motion.easing.IEasing"] = motion_easing_IEasing; motion_easing_IEasing.__name__ = ["motion","easing","IEasing"]; motion_easing_IEasing.prototype = { calculate: null ,ease: null ,__class__: motion_easing_IEasing }; var motion_easing_ExpoEaseOut = function() { }; $hxClasses["motion.easing.ExpoEaseOut"] = motion_easing_ExpoEaseOut; motion_easing_ExpoEaseOut.__name__ = ["motion","easing","ExpoEaseOut"]; motion_easing_ExpoEaseOut.__interfaces__ = [motion_easing_IEasing]; motion_easing_ExpoEaseOut.prototype = { calculate: function(k) { if(k == 1) { return 1; } else { return 1 - Math.pow(2,-10 * k); } } ,ease: function(t,b,c,d) { if(t == d) { return b + c; } else { return c * (1 - Math.pow(2,-10 * t / d)) + b; } } ,__class__: motion_easing_ExpoEaseOut }; var motion_Actuate = function() { }; $hxClasses["motion.Actuate"] = motion_Actuate; motion_Actuate.__name__ = ["motion","Actuate"]; motion_Actuate.apply = function(target,properties,customActuator) { motion_Actuate.stop(target,properties); if(customActuator == null) { customActuator = motion_Actuate.defaultActuator; } var actuator = Type.createInstance(customActuator,[target,0,properties]); actuator.apply(); return actuator; }; motion_Actuate.effects = function(target,duration,overwrite) { if(overwrite == null) { overwrite = true; } return new motion__$Actuate_EffectsOptions(target,duration,overwrite); }; motion_Actuate.getLibrary = function(target,allowCreation) { if(allowCreation == null) { allowCreation = true; } if(motion_Actuate.targetLibraries.h.__keys__[target.__id__] == null && allowCreation) { motion_Actuate.targetLibraries.set(target,[]); } return motion_Actuate.targetLibraries.h[target.__id__]; }; motion_Actuate.isActive = function() { var result = false; var library = motion_Actuate.targetLibraries.iterator(); while(library.hasNext()) { var library1 = library.next(); result = true; break; } return result; }; motion_Actuate.motionPath = function(target,duration,properties,overwrite) { if(overwrite == null) { overwrite = true; } return motion_Actuate.tween(target,duration,properties,overwrite,motion_actuators_MotionPathActuator); }; motion_Actuate.pause = function(target) { if(js_Boot.__instanceof(target,motion_actuators_IGenericActuator)) { var actuator = target; actuator.pause(); } else { var library = motion_Actuate.getLibrary(target,false); if(library != null) { var _g = 0; while(_g < library.length) { var actuator1 = library[_g]; ++_g; actuator1.pause(); } } } }; motion_Actuate.pauseAll = function() { var library = motion_Actuate.targetLibraries.iterator(); while(library.hasNext()) { var library1 = library.next(); var _g = 0; while(_g < library1.length) { var actuator = library1[_g]; ++_g; actuator.pause(); } } }; motion_Actuate.reset = function() { var library = motion_Actuate.targetLibraries.iterator(); while(library.hasNext()) { var library1 = library.next(); var i = library1.length - 1; while(i >= 0) { library1[i].stop(null,false,false); --i; } } motion_Actuate.targetLibraries = new haxe_ds_ObjectMap(); }; motion_Actuate.resume = function(target) { if(js_Boot.__instanceof(target,motion_actuators_IGenericActuator)) { var actuator = target; actuator.resume(); } else { var library = motion_Actuate.getLibrary(target,false); if(library != null) { var _g = 0; while(_g < library.length) { var actuator1 = library[_g]; ++_g; actuator1.resume(); } } } }; motion_Actuate.resumeAll = function() { var library = motion_Actuate.targetLibraries.iterator(); while(library.hasNext()) { var library1 = library.next(); var _g = 0; while(_g < library1.length) { var actuator = library1[_g]; ++_g; actuator.resume(); } } }; motion_Actuate.stop = function(target,properties,complete,sendEvent) { if(sendEvent == null) { sendEvent = true; } if(complete == null) { complete = false; } if(target != null) { if(js_Boot.__instanceof(target,motion_actuators_IGenericActuator)) { var actuator = target; actuator.stop(null,complete,sendEvent); } else { var library = motion_Actuate.getLibrary(target,false); if(library != null) { if(typeof(properties) == "string") { var temp = { }; temp[properties] = null; properties = temp; } else if((properties instanceof Array) && properties.__enum__ == null) { var temp1 = { }; var _g = 0; var _g1 = js_Boot.__cast(properties , Array); while(_g < _g1.length) { var property = _g1[_g]; ++_g; temp1[property] = null; } properties = temp1; } var i = library.length - 1; while(i >= 0) { library[i].stop(properties,complete,sendEvent); --i; } } } } }; motion_Actuate.timer = function(duration,customActuator) { return motion_Actuate.tween(new motion__$Actuate_TweenTimer(0),duration,new motion__$Actuate_TweenTimer(1),false,customActuator); }; motion_Actuate.transform = function(target,duration,overwrite) { if(overwrite == null) { overwrite = true; } if(duration == null) { duration = 0; } return new motion__$Actuate_TransformOptions(target,duration,overwrite); }; motion_Actuate.tween = function(target,duration,properties,overwrite,customActuator) { if(overwrite == null) { overwrite = true; } if(target != null) { if(duration > 0) { if(customActuator == null) { customActuator = motion_Actuate.defaultActuator; } var actuator = Type.createInstance(customActuator,[target,duration,properties]); var library = motion_Actuate.getLibrary(actuator.target); if(overwrite) { var i = library.length - 1; while(i >= 0) { library[i].stop(actuator.properties,false,false); --i; } library = motion_Actuate.getLibrary(actuator.target); } library.push(actuator); actuator.move(); return actuator; } else { return motion_Actuate.apply(target,properties,customActuator); } } return null; }; motion_Actuate.unload = function(actuator) { var target = actuator.target; if(motion_Actuate.targetLibraries.h.__keys__[target.__id__] != null) { HxOverrides.remove(motion_Actuate.targetLibraries.h[target.__id__],actuator); if(motion_Actuate.targetLibraries.h[target.__id__].length == 0) { motion_Actuate.targetLibraries.remove(target); } } }; motion_Actuate.update = function(target,duration,start,end,overwrite) { if(overwrite == null) { overwrite = true; } var properties = { start : start, end : end}; return motion_Actuate.tween(target,duration,properties,overwrite,motion_actuators_MethodActuator); }; var motion__$Actuate_EffectsOptions = function(target,duration,overwrite) { this.target = target; this.duration = duration; this.overwrite = overwrite; }; $hxClasses["motion._Actuate.EffectsOptions"] = motion__$Actuate_EffectsOptions; motion__$Actuate_EffectsOptions.__name__ = ["motion","_Actuate","EffectsOptions"]; motion__$Actuate_EffectsOptions.prototype = { duration: null ,overwrite: null ,target: null ,filter: function(reference,properties) { properties.filter = reference; return motion_Actuate.tween(this.target,this.duration,properties,this.overwrite,motion_actuators_FilterActuator); } ,__class__: motion__$Actuate_EffectsOptions }; var motion__$Actuate_TransformOptions = function(target,duration,overwrite) { this.target = target; this.duration = duration; this.overwrite = overwrite; }; $hxClasses["motion._Actuate.TransformOptions"] = motion__$Actuate_TransformOptions; motion__$Actuate_TransformOptions.__name__ = ["motion","_Actuate","TransformOptions"]; motion__$Actuate_TransformOptions.prototype = { duration: null ,overwrite: null ,target: null ,color: function(value,strength,alpha) { if(strength == null) { strength = 1; } if(value == null) { value = 0; } var properties = { colorValue : value, colorStrength : strength}; if(alpha != null) { properties.colorAlpha = alpha; } return motion_Actuate.tween(this.target,this.duration,properties,this.overwrite,motion_actuators_TransformActuator); } ,sound: function(volume,pan) { var properties = { }; if(volume != null) { properties.soundVolume = volume; } if(pan != null) { properties.soundPan = pan; } return motion_Actuate.tween(this.target,this.duration,properties,this.overwrite,motion_actuators_TransformActuator); } ,__class__: motion__$Actuate_TransformOptions }; var motion__$Actuate_TweenTimer = function(progress) { this.progress = progress; }; $hxClasses["motion._Actuate.TweenTimer"] = motion__$Actuate_TweenTimer; motion__$Actuate_TweenTimer.__name__ = ["motion","_Actuate","TweenTimer"]; motion__$Actuate_TweenTimer.prototype = { progress: null ,__class__: motion__$Actuate_TweenTimer }; var motion_MotionPath = function() { this._x = new motion_ComponentPath(); this._y = new motion_ComponentPath(); this._rotation = null; }; $hxClasses["motion.MotionPath"] = motion_MotionPath; motion_MotionPath.__name__ = ["motion","MotionPath"]; motion_MotionPath.prototype = { rotation: null ,x: null ,y: null ,_rotation: null ,_x: null ,_y: null ,bezier: function(x,y,controlX,controlY,strength) { if(strength == null) { strength = 1; } this._x.addPath(new motion_BezierPath(x,controlX,strength)); this._y.addPath(new motion_BezierPath(y,controlY,strength)); return this; } ,line: function(x,y,strength) { if(strength == null) { strength = 1; } this._x.addPath(new motion_LinearPath(x,strength)); this._y.addPath(new motion_LinearPath(y,strength)); return this; } ,get_rotation: function() { if(this._rotation == null) { this._rotation = new motion_RotationPath(this._x,this._y); } return this._rotation; } ,get_x: function() { return this._x; } ,get_y: function() { return this._y; } ,__class__: motion_MotionPath ,__properties__: {get_y:"get_y",get_x:"get_x",get_rotation:"get_rotation"} }; var motion_IComponentPath = function() { }; $hxClasses["motion.IComponentPath"] = motion_IComponentPath; motion_IComponentPath.__name__ = ["motion","IComponentPath"]; motion_IComponentPath.prototype = { get_end: null ,end: null ,start: null ,calculate: null ,__class__: motion_IComponentPath ,__properties__: {get_end:"get_end"} }; var motion_ComponentPath = function() { this.paths = []; this.start = 0; this.totalStrength = 0; }; $hxClasses["motion.ComponentPath"] = motion_ComponentPath; motion_ComponentPath.__name__ = ["motion","ComponentPath"]; motion_ComponentPath.__interfaces__ = [motion_IComponentPath]; motion_ComponentPath.prototype = { start: null ,end: null ,paths: null ,totalStrength: null ,addPath: function(path) { this.paths.push(path); this.totalStrength += path.strength; } ,calculate: function(k) { if(this.paths.length == 1) { return this.paths[0].calculate(this.start,k); } else { var ratio = k * this.totalStrength; var lastEnd = this.start; var _g = 0; var _g1 = this.paths; while(_g < _g1.length) { var path = _g1[_g]; ++_g; if(ratio > path.strength) { ratio -= path.strength; lastEnd = path.end; } else { return path.calculate(lastEnd,ratio / path.strength); } } } return 0; } ,get_end: function() { if(this.paths.length > 0) { var path = this.paths[this.paths.length - 1]; return path.end; } else { return this.start; } } ,__class__: motion_ComponentPath ,__properties__: {get_end:"get_end"} }; var motion_BezierPath = function(end,control,strength) { this.end = end; this.control = control; this.strength = strength; }; $hxClasses["motion.BezierPath"] = motion_BezierPath; motion_BezierPath.__name__ = ["motion","BezierPath"]; motion_BezierPath.prototype = { control: null ,end: null ,strength: null ,calculate: function(start,k) { return (1 - k) * (1 - k) * start + 2 * (1 - k) * k * this.control + k * k * this.end; } ,__class__: motion_BezierPath }; var motion_LinearPath = function(end,strength) { motion_BezierPath.call(this,end,0,strength); }; $hxClasses["motion.LinearPath"] = motion_LinearPath; motion_LinearPath.__name__ = ["motion","LinearPath"]; motion_LinearPath.__super__ = motion_BezierPath; motion_LinearPath.prototype = $extend(motion_BezierPath.prototype,{ calculate: function(start,k) { return start + k * (this.end - start); } ,__class__: motion_LinearPath }); var motion_RotationPath = function(x,y) { this.step = 0.01; this._x = x; this._y = y; this.offset = 0; this.start = this.calculate(0.0); }; $hxClasses["motion.RotationPath"] = motion_RotationPath; motion_RotationPath.__name__ = ["motion","RotationPath"]; motion_RotationPath.__interfaces__ = [motion_IComponentPath]; motion_RotationPath.prototype = { end: null ,offset: null ,start: null ,step: null ,_x: null ,_y: null ,calculate: function(k) { var dX = this._x.calculate(k) - this._x.calculate(k + this.step); var dY = this._y.calculate(k) - this._y.calculate(k + this.step); var angle = Math.atan2(dY,dX) * (180 / Math.PI); angle = (angle + this.offset) % 360; return angle; } ,get_end: function() { return this.calculate(1.0); } ,__class__: motion_RotationPath ,__properties__: {get_end:"get_end"} }; var motion_actuators_FilterActuator = function(target,duration,properties) { this.filterIndex = -1; motion_actuators_SimpleActuator.call(this,target,duration,properties); if(js_Boot.__instanceof(properties.filter,Class)) { this.filterClass = properties.filter; if(target.get_filters().length == 0) { target.set_filters([Type.createInstance(this.filterClass,[])]); } var _g = 0; var _g1 = target.get_filters(); while(_g < _g1.length) { var filter = _g1[_g]; ++_g; if(js_Boot.__instanceof(filter,this.filterClass)) { this.filter = filter; } } } else { this.filterIndex = properties.filter; this.filter = target.get_filters()[this.filterIndex]; } }; $hxClasses["motion.actuators.FilterActuator"] = motion_actuators_FilterActuator; motion_actuators_FilterActuator.__name__ = ["motion","actuators","FilterActuator"]; motion_actuators_FilterActuator.__super__ = motion_actuators_SimpleActuator; motion_actuators_FilterActuator.prototype = $extend(motion_actuators_SimpleActuator.prototype,{ filter: null ,filterClass: null ,filterIndex: null ,apply: function() { var _g = 0; var _g1 = Reflect.fields(this.properties); while(_g < _g1.length) { var propertyName = _g1[_g]; ++_g; if(propertyName != "filter") { this.filter[propertyName] = Reflect.field(this.properties,propertyName); } } var target = this.target; var value = null; if(Object.prototype.hasOwnProperty.call(target,"filters")) { value = Reflect.field(target,"filters"); } else { value = Reflect.getProperty(target,"filters"); } var filters = value; filters[this.properties.filter] = this.filter; var target1 = this.target; if(Object.prototype.hasOwnProperty.call(target1,"filters")) { target1["filters"] = filters; } else { Reflect.setProperty(target1,"filters",filters); } } ,initialize: function() { var details; var start; var _g = 0; var _g1 = Reflect.fields(this.properties); while(_g < _g1.length) { var propertyName = _g1[_g]; ++_g; if(propertyName != "filter") { var target = this.filter; var value = null; if(Object.prototype.hasOwnProperty.call(target,propertyName)) { value = Reflect.field(target,propertyName); } else { value = Reflect.getProperty(target,propertyName); } start = value; details = new motion_actuators_PropertyDetails(this.filter,propertyName,start,Reflect.field(this.properties,propertyName) - start); this.propertyDetails.push(details); } } this.detailsLength = this.propertyDetails.length; this.initialized = true; } ,update: function(currentTime) { motion_actuators_SimpleActuator.prototype.update.call(this,currentTime); var filters = this.target.get_filters(); if(this.filterIndex > -1) { filters[this.properties.filter] = this.filter; } else { var _g1 = 0; var _g = filters.length; while(_g1 < _g) { var i = _g1++; if(js_Boot.__instanceof(filters[i],this.filterClass)) { filters[i] = this.filter; } } } var target = this.target; if(Object.prototype.hasOwnProperty.call(target,"filters")) { target["filters"] = filters; } else { Reflect.setProperty(target,"filters",filters); } } ,__class__: motion_actuators_FilterActuator }); var motion_actuators_MethodActuator = function(target,duration,properties) { this.currentParameters = []; this.tweenProperties = { }; motion_actuators_SimpleActuator.call(this,target,duration,properties); if(!Object.prototype.hasOwnProperty.call(properties,"start")) { this.properties.start = []; } if(!Object.prototype.hasOwnProperty.call(properties,"end")) { this.properties.end = this.properties.start; } var _g1 = 0; var _g = this.properties.start.length; while(_g1 < _g) { var i = _g1++; this.currentParameters.push(this.properties.start[i]); } }; $hxClasses["motion.actuators.MethodActuator"] = motion_actuators_MethodActuator; motion_actuators_MethodActuator.__name__ = ["motion","actuators","MethodActuator"]; motion_actuators_MethodActuator.__super__ = motion_actuators_SimpleActuator; motion_actuators_MethodActuator.prototype = $extend(motion_actuators_SimpleActuator.prototype,{ currentParameters: null ,tweenProperties: null ,apply: function() { var method = this.target; var params = this.properties.end; if(params == null) { params = []; } method.apply(method,params); } ,complete: function(sendEvent) { if(sendEvent == null) { sendEvent = true; } var _g1 = 0; var _g = this.properties.start.length; while(_g1 < _g) { var i = _g1++; this.currentParameters[i] = Reflect.field(this.tweenProperties,"param" + i); } var method = this.target; var params = this.currentParameters; if(params == null) { params = []; } method.apply(method,params); motion_actuators_SimpleActuator.prototype.complete.call(this,sendEvent); } ,initialize: function() { var details; var propertyName; var start; var _g1 = 0; var _g = this.properties.start.length; while(_g1 < _g) { var i = _g1++; propertyName = "param" + i; start = this.properties.start[i]; this.tweenProperties[propertyName] = start; if(typeof(start) == "number" || typeof(start) == "number" && ((start | 0) === start)) { details = new motion_actuators_PropertyDetails(this.tweenProperties,propertyName,start,this.properties.end[i] - start); this.propertyDetails.push(details); } } this.detailsLength = this.propertyDetails.length; this.initialized = true; } ,update: function(currentTime) { motion_actuators_SimpleActuator.prototype.update.call(this,currentTime); if(this.active && !this.paused) { var _g1 = 0; var _g = this.properties.start.length; while(_g1 < _g) { var i = _g1++; this.currentParameters[i] = Reflect.field(this.tweenProperties,"param" + i); } var method = this.target; var params = this.currentParameters; if(params == null) { params = []; } method.apply(method,params); } } ,__class__: motion_actuators_MethodActuator }); var motion_actuators_MotionPathActuator = function(target,duration,properties) { motion_actuators_SimpleActuator.call(this,target,duration,properties); }; $hxClasses["motion.actuators.MotionPathActuator"] = motion_actuators_MotionPathActuator; motion_actuators_MotionPathActuator.__name__ = ["motion","actuators","MotionPathActuator"]; motion_actuators_MotionPathActuator.__super__ = motion_actuators_SimpleActuator; motion_actuators_MotionPathActuator.prototype = $extend(motion_actuators_SimpleActuator.prototype,{ apply: function() { var _g = 0; var _g1 = Reflect.fields(this.properties); while(_g < _g1.length) { var propertyName = _g1[_g]; ++_g; if(Object.prototype.hasOwnProperty.call(this.target,propertyName)) { this.target[propertyName] = (js_Boot.__cast(Reflect.field(this.properties,propertyName) , motion_IComponentPath)).get_end(); } else { Reflect.setProperty(this.target,propertyName,(js_Boot.__cast(Reflect.field(this.properties,propertyName) , motion_IComponentPath)).get_end()); } } } ,initialize: function() { var details; var path; var _g = 0; var _g1 = Reflect.fields(this.properties); while(_g < _g1.length) { var propertyName = _g1[_g]; ++_g; path = js_Boot.__cast(Reflect.field(this.properties,propertyName) , motion_IComponentPath); if(path != null) { var isField = true; if(Object.prototype.hasOwnProperty.call(this.target,propertyName)) { path.start = Reflect.field(this.target,propertyName); } else { isField = false; path.start = Reflect.getProperty(this.target,propertyName); } details = new motion_actuators_PropertyPathDetails(this.target,propertyName,path,isField); this.propertyDetails.push(details); } } this.detailsLength = this.propertyDetails.length; this.initialized = true; } ,update: function(currentTime) { if(!this.paused) { var details; var easing; var tweenPosition = (currentTime - this.timeOffset) / this.duration; if(tweenPosition > 1) { tweenPosition = 1; } if(!this.initialized) { this.initialize(); } if(!this.special) { easing = this._ease.calculate(tweenPosition); var _g = 0; var _g1 = this.propertyDetails; while(_g < _g1.length) { var details1 = _g1[_g]; ++_g; if(details1.isField) { details1.target[details1.propertyName] = (js_Boot.__cast(details1 , motion_actuators_PropertyPathDetails)).path.calculate(easing); } else { Reflect.setProperty(details1.target,details1.propertyName,(js_Boot.__cast(details1 , motion_actuators_PropertyPathDetails)).path.calculate(easing)); } } } else { if(!this._reverse) { easing = this._ease.calculate(tweenPosition); } else { easing = this._ease.calculate(1 - tweenPosition); } var endValue; var _g2 = 0; var _g11 = this.propertyDetails; while(_g2 < _g11.length) { var details2 = _g11[_g2]; ++_g2; if(!this._snapping) { if(details2.isField) { details2.target[details2.propertyName] = (js_Boot.__cast(details2 , motion_actuators_PropertyPathDetails)).path.calculate(easing); } else { Reflect.setProperty(details2.target,details2.propertyName,(js_Boot.__cast(details2 , motion_actuators_PropertyPathDetails)).path.calculate(easing)); } } else if(details2.isField) { details2.target[details2.propertyName] = Math.round((js_Boot.__cast(details2 , motion_actuators_PropertyPathDetails)).path.calculate(easing)); } else { Reflect.setProperty(details2.target,details2.propertyName,Math.round((js_Boot.__cast(details2 , motion_actuators_PropertyPathDetails)).path.calculate(easing))); } } } if(tweenPosition == 1) { if(this._repeat == 0) { this.active = false; var tmp; if(this.toggleVisible) { var target = this.target; var value = null; if(Object.prototype.hasOwnProperty.call(target,"alpha")) { value = Reflect.field(target,"alpha"); } else { value = Reflect.getProperty(target,"alpha"); } tmp = value == 0; } else { tmp = false; } if(tmp) { var target1 = this.target; if(Object.prototype.hasOwnProperty.call(target1,"visible")) { target1["visible"] = false; } else { Reflect.setProperty(target1,"visible",false); } } this.complete(true); return; } else { if(this._onRepeat != null) { var method = this._onRepeat; var params = this._onRepeatParams; if(params == null) { params = []; } method.apply(method,params); } if(this._reflect) { this._reverse = !this._reverse; } this.startTime = currentTime; this.timeOffset = this.startTime + this._delay; if(this._repeat > 0) { this._repeat--; } } } if(this.sendChange) { this.change(); } } } ,__class__: motion_actuators_MotionPathActuator }); var motion_actuators_PropertyDetails = function(target,propertyName,start,change,isField) { if(isField == null) { isField = true; } this.target = target; this.propertyName = propertyName; this.start = start; this.change = change; this.isField = isField; }; $hxClasses["motion.actuators.PropertyDetails"] = motion_actuators_PropertyDetails; motion_actuators_PropertyDetails.__name__ = ["motion","actuators","PropertyDetails"]; motion_actuators_PropertyDetails.prototype = { change: null ,isField: null ,propertyName: null ,start: null ,target: null ,__class__: motion_actuators_PropertyDetails }; var motion_actuators_PropertyPathDetails = function(target,propertyName,path,isField) { if(isField == null) { isField = true; } motion_actuators_PropertyDetails.call(this,target,propertyName,0,0,isField); this.path = path; }; $hxClasses["motion.actuators.PropertyPathDetails"] = motion_actuators_PropertyPathDetails; motion_actuators_PropertyPathDetails.__name__ = ["motion","actuators","PropertyPathDetails"]; motion_actuators_PropertyPathDetails.__super__ = motion_actuators_PropertyDetails; motion_actuators_PropertyPathDetails.prototype = $extend(motion_actuators_PropertyDetails.prototype,{ path: null ,__class__: motion_actuators_PropertyPathDetails }); var motion_actuators_TransformActuator = function(target,duration,properties) { motion_actuators_SimpleActuator.call(this,target,duration,properties); }; $hxClasses["motion.actuators.TransformActuator"] = motion_actuators_TransformActuator; motion_actuators_TransformActuator.__name__ = ["motion","actuators","TransformActuator"]; motion_actuators_TransformActuator.__super__ = motion_actuators_SimpleActuator; motion_actuators_TransformActuator.prototype = $extend(motion_actuators_SimpleActuator.prototype,{ endColorTransform: null ,endSoundTransform: null ,tweenColorTransform: null ,tweenSoundTransform: null ,apply: function() { this.initialize(); if(this.endColorTransform != null) { var target = this.target; var value = null; if(Object.prototype.hasOwnProperty.call(target,"transform")) { value = Reflect.field(target,"transform"); } else { value = Reflect.getProperty(target,"transform"); } var transform = value; var value1 = this.endColorTransform; if(Object.prototype.hasOwnProperty.call(transform,"colorTransform")) { transform["colorTransform"] = value1; } else { Reflect.setProperty(transform,"colorTransform",value1); } } if(this.endSoundTransform != null) { var target1 = this.target; var value2 = this.endSoundTransform; if(Object.prototype.hasOwnProperty.call(target1,"soundTransform")) { target1["soundTransform"] = value2; } else { Reflect.setProperty(target1,"soundTransform",value2); } } } ,initialize: function() { if(Object.prototype.hasOwnProperty.call(this.properties,"colorValue") && js_Boot.__instanceof(this.target,openfl_display_DisplayObject)) { this.initializeColor(); } if(Object.prototype.hasOwnProperty.call(this.properties,"soundVolume") || Object.prototype.hasOwnProperty.call(this.properties,"soundPan")) { this.initializeSound(); } this.detailsLength = this.propertyDetails.length; this.initialized = true; } ,initializeColor: function() { this.endColorTransform = new openfl_geom_ColorTransform(); var color = this.properties.colorValue; var strength = this.properties.colorStrength; if(strength < 1) { var multiplier; var offset; if(strength < 0.5) { multiplier = 1; offset = strength * 2; } else { multiplier = 1 - (strength - 0.5) * 2; offset = 1; } this.endColorTransform.redMultiplier = multiplier; this.endColorTransform.greenMultiplier = multiplier; this.endColorTransform.blueMultiplier = multiplier; this.endColorTransform.redOffset = offset * (color >> 16 & 255); this.endColorTransform.greenOffset = offset * (color >> 8 & 255); this.endColorTransform.blueOffset = offset * (color & 255); } else { this.endColorTransform.redMultiplier = 0; this.endColorTransform.greenMultiplier = 0; this.endColorTransform.blueMultiplier = 0; this.endColorTransform.redOffset = color >> 16 & 255; this.endColorTransform.greenOffset = color >> 8 & 255; this.endColorTransform.blueOffset = color & 255; } var propertyNames = ["redMultiplier","greenMultiplier","blueMultiplier","redOffset","greenOffset","blueOffset"]; if(Object.prototype.hasOwnProperty.call(this.properties,"colorAlpha")) { this.endColorTransform.alphaMultiplier = this.properties.colorAlpha; propertyNames.push("alphaMultiplier"); } else { var target = this.target; var value = null; if(Object.prototype.hasOwnProperty.call(target,"alpha")) { value = Reflect.field(target,"alpha"); } else { value = Reflect.getProperty(target,"alpha"); } this.endColorTransform.alphaMultiplier = value; } var target1 = this.target; var value1 = null; if(Object.prototype.hasOwnProperty.call(target1,"transform")) { value1 = Reflect.field(target1,"transform"); } else { value1 = Reflect.getProperty(target1,"transform"); } var transform = value1; var value2 = null; if(Object.prototype.hasOwnProperty.call(transform,"colorTransform")) { value2 = Reflect.field(transform,"colorTransform"); } else { value2 = Reflect.getProperty(transform,"colorTransform"); } var begin = value2; this.tweenColorTransform = new openfl_geom_ColorTransform(); var details; var start; var _g = 0; while(_g < propertyNames.length) { var propertyName = propertyNames[_g]; ++_g; var value3 = null; if(Object.prototype.hasOwnProperty.call(begin,propertyName)) { value3 = Reflect.field(begin,propertyName); } else { value3 = Reflect.getProperty(begin,propertyName); } start = value3; var details1 = this.tweenColorTransform; var target2 = this.endColorTransform; var value4 = null; if(Object.prototype.hasOwnProperty.call(target2,propertyName)) { value4 = Reflect.field(target2,propertyName); } else { value4 = Reflect.getProperty(target2,propertyName); } details = new motion_actuators_PropertyDetails(details1,propertyName,start,value4 - start); this.propertyDetails.push(details); } } ,initializeSound: function() { var target = this.target; var value = null; if(Object.prototype.hasOwnProperty.call(target,"soundTransform")) { value = Reflect.field(target,"soundTransform"); } else { value = Reflect.getProperty(target,"soundTransform"); } if(value == null) { var target1 = this.target; var value1 = new openfl_media_SoundTransform(); if(Object.prototype.hasOwnProperty.call(target1,"soundTransform")) { target1["soundTransform"] = value1; } else { Reflect.setProperty(target1,"soundTransform",value1); } } var target2 = this.target; var value2 = null; if(Object.prototype.hasOwnProperty.call(target2,"soundTransform")) { value2 = Reflect.field(target2,"soundTransform"); } else { value2 = Reflect.getProperty(target2,"soundTransform"); } var start = value2; var target3 = this.target; var value3 = null; if(Object.prototype.hasOwnProperty.call(target3,"soundTransform")) { value3 = Reflect.field(target3,"soundTransform"); } else { value3 = Reflect.getProperty(target3,"soundTransform"); } this.endSoundTransform = value3; this.tweenSoundTransform = new openfl_media_SoundTransform(); if(Object.prototype.hasOwnProperty.call(this.properties,"soundVolume")) { this.endSoundTransform.volume = this.properties.soundVolume; this.propertyDetails.push(new motion_actuators_PropertyDetails(this.tweenSoundTransform,"volume",start.volume,this.endSoundTransform.volume - start.volume)); } if(Object.prototype.hasOwnProperty.call(this.properties,"soundPan")) { this.endSoundTransform.pan = this.properties.soundPan; this.propertyDetails.push(new motion_actuators_PropertyDetails(this.tweenSoundTransform,"pan",start.pan,this.endSoundTransform.pan - start.pan)); } } ,update: function(currentTime) { motion_actuators_SimpleActuator.prototype.update.call(this,currentTime); if(this.endColorTransform != null) { var target = this.target; var value = null; if(Object.prototype.hasOwnProperty.call(target,"transform")) { value = Reflect.field(target,"transform"); } else { value = Reflect.getProperty(target,"transform"); } var transform = value; var value1 = this.tweenColorTransform; if(Object.prototype.hasOwnProperty.call(transform,"colorTransform")) { transform["colorTransform"] = value1; } else { Reflect.setProperty(transform,"colorTransform",value1); } } if(this.endSoundTransform != null) { var target1 = this.target; var value2 = this.tweenSoundTransform; if(Object.prototype.hasOwnProperty.call(target1,"soundTransform")) { target1["soundTransform"] = value2; } else { Reflect.setProperty(target1,"soundTransform",value2); } } } ,__class__: motion_actuators_TransformActuator }); var motion_easing_ExpoEaseIn = function() { }; $hxClasses["motion.easing.ExpoEaseIn"] = motion_easing_ExpoEaseIn; motion_easing_ExpoEaseIn.__name__ = ["motion","easing","ExpoEaseIn"]; motion_easing_ExpoEaseIn.__interfaces__ = [motion_easing_IEasing]; motion_easing_ExpoEaseIn.prototype = { calculate: function(k) { if(k == 0) { return 0; } else { return Math.pow(2,10 * (k - 1)); } } ,ease: function(t,b,c,d) { if(t == 0) { return b; } else { return c * Math.pow(2,10 * (t / d - 1)) + b; } } ,__class__: motion_easing_ExpoEaseIn }; var motion_easing_ExpoEaseInOut = function() { }; $hxClasses["motion.easing.ExpoEaseInOut"] = motion_easing_ExpoEaseInOut; motion_easing_ExpoEaseInOut.__name__ = ["motion","easing","ExpoEaseInOut"]; motion_easing_ExpoEaseInOut.__interfaces__ = [motion_easing_IEasing]; motion_easing_ExpoEaseInOut.prototype = { calculate: function(k) { if(k == 0) { return 0; } if(k == 1) { return 1; } if((k /= 0.5) < 1.0) { return 0.5 * Math.pow(2,10 * (k - 1)); } return 0.5 * (2 - Math.pow(2,-10 * --k)); } ,ease: function(t,b,c,d) { if(t == 0) { return b; } if(t == d) { return b + c; } if((t /= d / 2.0) < 1.0) { return c / 2 * Math.pow(2,10 * (t - 1)) + b; } return c / 2 * (2 - Math.pow(2,-10 * --t)) + b; } ,__class__: motion_easing_ExpoEaseInOut }; var motion_easing_Linear = function() { }; $hxClasses["motion.easing.Linear"] = motion_easing_Linear; motion_easing_Linear.__name__ = ["motion","easing","Linear"]; motion_easing_Linear.__properties__ = {get_easeNone:"get_easeNone"}; motion_easing_Linear.get_easeNone = function() { return new motion_easing_LinearEaseNone(); }; var motion_easing_LinearEaseNone = function() { }; $hxClasses["motion.easing.LinearEaseNone"] = motion_easing_LinearEaseNone; motion_easing_LinearEaseNone.__name__ = ["motion","easing","LinearEaseNone"]; motion_easing_LinearEaseNone.__interfaces__ = [motion_easing_IEasing]; motion_easing_LinearEaseNone.prototype = { calculate: function(k) { return k; } ,ease: function(t,b,c,d) { return c * t / d + b; } ,__class__: motion_easing_LinearEaseNone }; var motion_easing_Quad = function() { }; $hxClasses["motion.easing.Quad"] = motion_easing_Quad; motion_easing_Quad.__name__ = ["motion","easing","Quad"]; motion_easing_Quad.__properties__ = {get_easeOut:"get_easeOut",get_easeInOut:"get_easeInOut",get_easeIn:"get_easeIn"}; motion_easing_Quad.get_easeIn = function() { return new motion_easing_QuadEaseIn(); }; motion_easing_Quad.get_easeInOut = function() { return new motion_easing_QuadEaseInOut(); }; motion_easing_Quad.get_easeOut = function() { return new motion_easing_QuadEaseOut(); }; var motion_easing_QuadEaseIn = function() { }; $hxClasses["motion.easing.QuadEaseIn"] = motion_easing_QuadEaseIn; motion_easing_QuadEaseIn.__name__ = ["motion","easing","QuadEaseIn"]; motion_easing_QuadEaseIn.__interfaces__ = [motion_easing_IEasing]; motion_easing_QuadEaseIn.prototype = { calculate: function(k) { return k * k; } ,ease: function(t,b,c,d) { return c * (t /= d) * t + b; } ,__class__: motion_easing_QuadEaseIn }; var motion_easing_QuadEaseInOut = function() { }; $hxClasses["motion.easing.QuadEaseInOut"] = motion_easing_QuadEaseInOut; motion_easing_QuadEaseInOut.__name__ = ["motion","easing","QuadEaseInOut"]; motion_easing_QuadEaseInOut.__interfaces__ = [motion_easing_IEasing]; motion_easing_QuadEaseInOut.prototype = { calculate: function(k) { if((k *= 2) < 1) { return 0.5 * k * k; } return -0.5 * ((k - 1) * (k - 3) - 1); } ,ease: function(t,b,c,d) { if((t /= d / 2) < 1) { return c / 2 * t * t + b; } return -c / 2 * ((t - 1) * (t - 3) - 1) + b; } ,__class__: motion_easing_QuadEaseInOut }; var motion_easing_QuadEaseOut = function() { }; $hxClasses["motion.easing.QuadEaseOut"] = motion_easing_QuadEaseOut; motion_easing_QuadEaseOut.__name__ = ["motion","easing","QuadEaseOut"]; motion_easing_QuadEaseOut.__interfaces__ = [motion_easing_IEasing]; motion_easing_QuadEaseOut.prototype = { calculate: function(k) { return -k * (k - 2); } ,ease: function(t,b,c,d) { return -c * (t /= d) * (t - 2) + b; } ,__class__: motion_easing_QuadEaseOut }; var openfl__$Vector_AbstractVector = function(data,array) { this.data = data; if(array != null) { var cacheFixed = data.fixed; data.fixed = false; var _g1 = 0; var _g = array.length; while(_g1 < _g) { var i = _g1++; data.set(i,array[i]); } data.fixed = cacheFixed; } }; $hxClasses["openfl._Vector.AbstractVector"] = openfl__$Vector_AbstractVector; openfl__$Vector_AbstractVector.__name__ = ["openfl","_Vector","AbstractVector"]; openfl__$Vector_AbstractVector.prototype = { data: null ,__class__: openfl__$Vector_AbstractVector }; var openfl__$Vector_IVector = function() { }; $hxClasses["openfl._Vector.IVector"] = openfl__$Vector_IVector; openfl__$Vector_IVector.__name__ = ["openfl","_Vector","IVector"]; openfl__$Vector_IVector.prototype = { get_length: null ,set_length: null ,fixed: null ,concat: null ,copy: null ,get: null ,indexOf: null ,insertAt: null ,iterator: null ,join: null ,lastIndexOf: null ,pop: null ,push: null ,removeAt: null ,reverse: null ,set: null ,shift: null ,slice: null ,sort: null ,splice: null ,toString: null ,unshift: null ,__class__: openfl__$Vector_IVector ,__properties__: {set_length:"set_length",get_length:"get_length"} }; var openfl__$Vector_BoolVector = function(length,fixed,array) { if(array == null) { array = []; } this.__array = array; if(length != null) { this.set_length(length); } this.fixed = fixed == true; }; $hxClasses["openfl._Vector.BoolVector"] = openfl__$Vector_BoolVector; openfl__$Vector_BoolVector.__name__ = ["openfl","_Vector","BoolVector"]; openfl__$Vector_BoolVector.__interfaces__ = [openfl__$Vector_IVector]; openfl__$Vector_BoolVector.prototype = { fixed: null ,__array: null ,concat: function(a) { if(a == null) { return new openfl__$Vector_BoolVector(null,null,this.__array.slice()); } else { return new openfl__$Vector_BoolVector(null,null,this.__array.concat((js_Boot.__cast(a , openfl__$Vector_BoolVector)).__array)); } } ,copy: function() { return new openfl__$Vector_BoolVector(null,this.fixed,this.__array.slice()); } ,get: function(index) { if(index >= this.__array.length) { return false; } else { return this.__array[index]; } } ,indexOf: function(x,from) { if(from == null) { from = 0; } var _g1 = from; var _g = this.__array.length; while(_g1 < _g) { var i = _g1++; if(this.__array[i] == x) { return i; } } return -1; } ,insertAt: function(index,element) { if(!this.fixed || index < this.__array.length) { this.__array.splice(index,0,element); } } ,iterator: function() { return HxOverrides.iter(this.__array); } ,join: function(sep) { if(sep == null) { sep = ","; } return this.__array.join(sep); } ,lastIndexOf: function(x,from) { if(from == null) { from = 0; } var i = this.__array.length - 1; while(i >= from) { if(this.__array[i] == x) { return i; } --i; } return -1; } ,pop: function() { if(!this.fixed) { return this.__array.pop(); } else { return null; } } ,push: function(x) { if(!this.fixed) { return this.__array.push(x); } else { return this.__array.length; } } ,removeAt: function(index) { if(!this.fixed || index < this.__array.length) { return this.__array.splice(index,1)[0]; } return false; } ,reverse: function() { this.__array.reverse(); return this; } ,set: function(index,value) { if(!this.fixed || index < this.__array.length) { return this.__array[index] = value; } else { return value; } } ,shift: function() { if(!this.fixed) { return this.__array.shift(); } else { return null; } } ,slice: function(startIndex,endIndex) { if(endIndex == null) { endIndex = 16777215; } if(startIndex == null) { startIndex = 0; } return new openfl__$Vector_BoolVector(null,null,this.__array.slice(startIndex,endIndex)); } ,sort: function(f) { this.__array.sort(f); } ,splice: function(pos,len) { return new openfl__$Vector_BoolVector(null,null,this.__array.splice(pos,len)); } ,toJSON: function() { return this.__array; } ,toString: function() { if(this.__array != null) { return this.__array.toString(); } else { return null; } } ,unshift: function(x) { if(!this.fixed) { this.__array.unshift(x); } } ,get_length: function() { return this.__array.length; } ,set_length: function(value) { if(!this.fixed) { var currentLength = this.__array.length; if(value < 0) { value = 0; } if(value > currentLength) { var _g1 = currentLength; var _g = value; while(_g1 < _g) { var i = _g1++; this.__array[i] = false; } } else { while(this.__array.length > value) this.__array.pop(); } } return this.__array.length; } ,__class__: openfl__$Vector_BoolVector ,__properties__: {set_length:"set_length",get_length:"get_length"} }; var openfl__$Vector_FloatVector = function(length,fixed,array) { if(array == null) { array = []; } this.__array = array; if(length != null) { this.set_length(length); } this.fixed = fixed == true; }; $hxClasses["openfl._Vector.FloatVector"] = openfl__$Vector_FloatVector; openfl__$Vector_FloatVector.__name__ = ["openfl","_Vector","FloatVector"]; openfl__$Vector_FloatVector.__interfaces__ = [openfl__$Vector_IVector]; openfl__$Vector_FloatVector.prototype = { fixed: null ,__array: null ,concat: function(a) { if(a == null) { return new openfl__$Vector_FloatVector(null,null,this.__array.slice()); } else { return new openfl__$Vector_FloatVector(null,null,this.__array.concat((js_Boot.__cast(a , openfl__$Vector_FloatVector)).__array)); } } ,copy: function() { return new openfl__$Vector_FloatVector(null,this.fixed,this.__array.slice()); } ,get: function(index) { return this.__array[index]; } ,indexOf: function(x,from) { if(from == null) { from = 0; } var _g1 = from; var _g = this.__array.length; while(_g1 < _g) { var i = _g1++; if(this.__array[i] == x) { return i; } } return -1; } ,insertAt: function(index,element) { if(!this.fixed || index < this.__array.length) { this.__array.splice(index,0,element); } } ,iterator: function() { return HxOverrides.iter(this.__array); } ,join: function(sep) { if(sep == null) { sep = ","; } return this.__array.join(sep); } ,lastIndexOf: function(x,from) { if(from == null) { from = 0; } var i = this.__array.length - 1; while(i >= from) { if(this.__array[i] == x) { return i; } --i; } return -1; } ,pop: function() { if(!this.fixed) { return this.__array.pop(); } else { return null; } } ,push: function(x) { if(!this.fixed) { return this.__array.push(x); } else { return this.__array.length; } } ,removeAt: function(index) { if(!this.fixed || index < this.__array.length) { return this.__array.splice(index,1)[0]; } return 0; } ,reverse: function() { this.__array.reverse(); return this; } ,set: function(index,value) { if(!this.fixed || index < this.__array.length) { return this.__array[index] = value; } else { return value; } } ,shift: function() { if(!this.fixed) { return this.__array.shift(); } else { return null; } } ,slice: function(startIndex,endIndex) { if(endIndex == null) { endIndex = 16777215; } if(startIndex == null) { startIndex = 0; } return new openfl__$Vector_FloatVector(null,null,this.__array.slice(startIndex,endIndex)); } ,sort: function(f) { this.__array.sort(f); } ,splice: function(pos,len) { return new openfl__$Vector_FloatVector(null,null,this.__array.splice(pos,len)); } ,toJSON: function() { return this.__array; } ,toString: function() { if(this.__array != null) { return this.__array.toString(); } else { return null; } } ,unshift: function(x) { if(!this.fixed) { this.__array.unshift(x); } } ,get_length: function() { return this.__array.length; } ,set_length: function(value) { if(!this.fixed) { var currentLength = this.__array.length; if(value < 0) { value = 0; } if(value > currentLength) { var _g1 = currentLength; var _g = value; while(_g1 < _g) { var i = _g1++; this.__array[i] = 0; } } else { while(this.__array.length > value) this.__array.pop(); } } return this.__array.length; } ,__class__: openfl__$Vector_FloatVector ,__properties__: {set_length:"set_length",get_length:"get_length"} }; var openfl__$Vector_FunctionVector = function(length,fixed,array) { if(array == null) { array = []; } this.__array = array; if(length != null) { this.set_length(length); } this.fixed = fixed == true; }; $hxClasses["openfl._Vector.FunctionVector"] = openfl__$Vector_FunctionVector; openfl__$Vector_FunctionVector.__name__ = ["openfl","_Vector","FunctionVector"]; openfl__$Vector_FunctionVector.__interfaces__ = [openfl__$Vector_IVector]; openfl__$Vector_FunctionVector.prototype = { fixed: null ,__array: null ,concat: function(a) { if(a == null) { return new openfl__$Vector_FunctionVector(null,null,this.__array.slice()); } else { return new openfl__$Vector_FunctionVector(null,null,this.__array.concat((js_Boot.__cast(a , openfl__$Vector_FunctionVector)).__array)); } } ,copy: function() { return new openfl__$Vector_FunctionVector(null,this.fixed,this.__array.slice()); } ,get: function(index) { if(index >= this.__array.length) { return null; } else { return this.__array[index]; } } ,indexOf: function(x,from) { if(from == null) { from = 0; } var _g1 = from; var _g = this.__array.length; while(_g1 < _g) { var i = _g1++; if(Reflect.compareMethods(this.__array[i],x)) { return i; } } return -1; } ,insertAt: function(index,element) { if(!this.fixed || index < this.__array.length) { this.__array.splice(index,0,element); } } ,iterator: function() { return HxOverrides.iter(this.__array); } ,join: function(sep) { if(sep == null) { sep = ","; } return this.__array.join(sep); } ,lastIndexOf: function(x,from) { if(from == null) { from = 0; } var i = this.__array.length - 1; while(i >= from) { if(Reflect.compareMethods(this.__array[i],x)) { return i; } --i; } return -1; } ,pop: function() { if(!this.fixed) { return this.__array.pop(); } else { return null; } } ,push: function(x) { if(!this.fixed) { return this.__array.push(x); } else { return this.__array.length; } } ,removeAt: function(index) { if(!this.fixed || index < this.__array.length) { return this.__array.splice(index,1)[0]; } return null; } ,reverse: function() { this.__array.reverse(); return this; } ,set: function(index,value) { if(!this.fixed || index < this.__array.length) { return this.__array[index] = value; } else { return value; } } ,shift: function() { if(!this.fixed) { return this.__array.shift(); } else { return null; } } ,slice: function(startIndex,endIndex) { if(endIndex == null) { endIndex = 16777215; } if(startIndex == null) { startIndex = 0; } return new openfl__$Vector_FunctionVector(null,null,this.__array.slice(startIndex,endIndex)); } ,sort: function(f) { this.__array.sort(f); } ,splice: function(pos,len) { return new openfl__$Vector_FunctionVector(null,null,this.__array.splice(pos,len)); } ,toJSON: function() { return this.__array; } ,toString: function() { if(this.__array != null) { return this.__array.toString(); } else { return null; } } ,unshift: function(x) { if(!this.fixed) { this.__array.unshift(x); } } ,get_length: function() { return this.__array.length; } ,set_length: function(value) { if(!this.fixed) { var currentLength = this.__array.length; if(value < 0) { value = 0; } if(value > currentLength) { var _g1 = currentLength; var _g = value; while(_g1 < _g) { var i = _g1++; this.__array[i] = null; } } else { while(this.__array.length > value) this.__array.pop(); } } return this.__array.length; } ,__class__: openfl__$Vector_FunctionVector ,__properties__: {set_length:"set_length",get_length:"get_length"} }; var openfl__$Vector_IntVector = function(length,fixed,array) { if(array == null) { array = []; } this.__array = array; if(length != null) { this.set_length(length); } this.fixed = fixed == true; }; $hxClasses["openfl._Vector.IntVector"] = openfl__$Vector_IntVector; openfl__$Vector_IntVector.__name__ = ["openfl","_Vector","IntVector"]; openfl__$Vector_IntVector.__interfaces__ = [openfl__$Vector_IVector]; openfl__$Vector_IntVector.prototype = { fixed: null ,__array: null ,concat: function(a) { if(a == null) { return new openfl__$Vector_IntVector(null,null,this.__array.slice()); } else { return new openfl__$Vector_IntVector(null,null,this.__array.concat((js_Boot.__cast(a , openfl__$Vector_IntVector)).__array)); } } ,copy: function() { return new openfl__$Vector_IntVector(null,this.fixed,this.__array.slice()); } ,get: function(index) { return this.__array[index]; } ,indexOf: function(x,from) { if(from == null) { from = 0; } var _g1 = from; var _g = this.__array.length; while(_g1 < _g) { var i = _g1++; if(this.__array[i] == x) { return i; } } return -1; } ,insertAt: function(index,element) { if(!this.fixed || index < this.__array.length) { this.__array.splice(index,0,element); } } ,iterator: function() { return HxOverrides.iter(this.__array); } ,join: function(sep) { if(sep == null) { sep = ","; } return this.__array.join(sep); } ,lastIndexOf: function(x,from) { if(from == null) { from = 0; } var i = this.__array.length - 1; while(i >= from) { if(this.__array[i] == x) { return i; } --i; } return -1; } ,pop: function() { if(!this.fixed) { return this.__array.pop(); } else { return null; } } ,push: function(x) { if(!this.fixed) { return this.__array.push(x); } else { return this.__array.length; } } ,removeAt: function(index) { if(!this.fixed || index < this.__array.length) { return this.__array.splice(index,1)[0]; } return 0; } ,reverse: function() { this.__array.reverse(); return this; } ,set: function(index,value) { if(!this.fixed || index < this.__array.length) { return this.__array[index] = value; } else { return value; } } ,shift: function() { if(!this.fixed) { return this.__array.shift(); } else { return null; } } ,slice: function(startIndex,endIndex) { if(endIndex == null) { endIndex = 16777215; } if(startIndex == null) { startIndex = 0; } return new openfl__$Vector_IntVector(null,null,this.__array.slice(startIndex,endIndex)); } ,sort: function(f) { this.__array.sort(f); } ,splice: function(pos,len) { return new openfl__$Vector_IntVector(null,null,this.__array.splice(pos,len)); } ,toJSON: function() { return this.__array; } ,toString: function() { if(this.__array != null) { return this.__array.toString(); } else { return null; } } ,unshift: function(x) { if(!this.fixed) { this.__array.unshift(x); } } ,get_length: function() { return this.__array.length; } ,set_length: function(value) { if(!this.fixed) { var currentLength = this.__array.length; if(value < 0) { value = 0; } if(value > currentLength) { var _g1 = currentLength; var _g = value; while(_g1 < _g) { var i = _g1++; this.__array[i] = 0; } } else { while(this.__array.length > value) this.__array.pop(); } } return this.__array.length; } ,__class__: openfl__$Vector_IntVector ,__properties__: {set_length:"set_length",get_length:"get_length"} }; var openfl__$Vector_ObjectVector = function(length,fixed,array) { if(array == null) { array = []; } this.__array = array; if(length != null) { this.set_length(length); } this.fixed = fixed == true; }; $hxClasses["openfl._Vector.ObjectVector"] = openfl__$Vector_ObjectVector; openfl__$Vector_ObjectVector.__name__ = ["openfl","_Vector","ObjectVector"]; openfl__$Vector_ObjectVector.__interfaces__ = [openfl__$Vector_IVector]; openfl__$Vector_ObjectVector.prototype = { fixed: null ,__array: null ,concat: function(a) { if(a == null) { return new openfl__$Vector_ObjectVector(null,null,this.__array.slice()); } else { return new openfl__$Vector_ObjectVector(null,null,this.__array.concat((js_Boot.__cast(a , openfl__$Vector_ObjectVector)).__array)); } } ,copy: function() { return new openfl__$Vector_ObjectVector(null,null,this.__array.slice()); } ,get: function(index) { return this.__array[index]; } ,indexOf: function(x,from) { if(from == null) { from = 0; } var _g1 = from; var _g = this.__array.length; while(_g1 < _g) { var i = _g1++; if(this.__array[i] == x) { return i; } } return -1; } ,insertAt: function(index,element) { if(!this.fixed || index < this.__array.length) { this.__array.splice(index,0,element); } } ,iterator: function() { return HxOverrides.iter(this.__array); } ,join: function(sep) { if(sep == null) { sep = ","; } return this.__array.join(sep); } ,lastIndexOf: function(x,from) { if(from == null) { from = 0; } var i = this.__array.length - 1; while(i >= from) { if(this.__array[i] == x) { return i; } --i; } return -1; } ,pop: function() { if(!this.fixed) { return this.__array.pop(); } else { return null; } } ,push: function(x) { if(!this.fixed) { return this.__array.push(x); } else { return this.__array.length; } } ,removeAt: function(index) { if(!this.fixed || index < this.__array.length) { return this.__array.splice(index,1)[0]; } return null; } ,reverse: function() { this.__array.reverse(); return this; } ,set: function(index,value) { if(!this.fixed || index < this.__array.length) { return this.__array[index] = value; } else { return value; } } ,shift: function() { if(!this.fixed) { return this.__array.shift(); } else { return null; } } ,slice: function(startIndex,endIndex) { if(endIndex == null) { endIndex = 16777215; } if(startIndex == null) { startIndex = 0; } return new openfl__$Vector_ObjectVector(null,null,this.__array.slice(startIndex,endIndex)); } ,sort: function(f) { this.__array.sort(f); } ,splice: function(pos,len) { return new openfl__$Vector_ObjectVector(null,null,this.__array.splice(pos,len)); } ,toJSON: function() { return this.__array; } ,toString: function() { if(this.__array != null) { return this.__array.toString(); } else { return null; } } ,unshift: function(x) { if(!this.fixed) { this.__array.unshift(x); } } ,get_length: function() { return this.__array.length; } ,set_length: function(value) { if(!this.fixed) { var currentLength = this.__array.length; if(value < 0) { value = 0; } if(value > currentLength) { var _g1 = currentLength; var _g = value; while(_g1 < _g) { var i = _g1++; this.__array.push(null); } } else { while(this.__array.length > value) this.__array.pop(); } } return this.__array.length; } ,__class__: openfl__$Vector_ObjectVector ,__properties__: {set_length:"set_length",get_length:"get_length"} }; var openfl__$internal_renderer_AbstractBlendModeManager = function() { }; $hxClasses["openfl._internal.renderer.AbstractBlendModeManager"] = openfl__$internal_renderer_AbstractBlendModeManager; openfl__$internal_renderer_AbstractBlendModeManager.__name__ = ["openfl","_internal","renderer","AbstractBlendModeManager"]; openfl__$internal_renderer_AbstractBlendModeManager.prototype = { setBlendMode: function(blendMode) { } ,__class__: openfl__$internal_renderer_AbstractBlendModeManager }; var openfl__$internal_renderer_AbstractFilterManager = function(renderSession) { this.renderSession = renderSession; }; $hxClasses["openfl._internal.renderer.AbstractFilterManager"] = openfl__$internal_renderer_AbstractFilterManager; openfl__$internal_renderer_AbstractFilterManager.__name__ = ["openfl","_internal","renderer","AbstractFilterManager"]; openfl__$internal_renderer_AbstractFilterManager.prototype = { renderSession: null ,pushObject: function(object) { return null; } ,popObject: function(object) { } ,__class__: openfl__$internal_renderer_AbstractFilterManager }; var openfl__$internal_renderer_AbstractMaskManager = function(renderSession) { this.renderSession = renderSession; }; $hxClasses["openfl._internal.renderer.AbstractMaskManager"] = openfl__$internal_renderer_AbstractMaskManager; openfl__$internal_renderer_AbstractMaskManager.__name__ = ["openfl","_internal","renderer","AbstractMaskManager"]; openfl__$internal_renderer_AbstractMaskManager.prototype = { renderSession: null ,pushMask: function(mask) { } ,pushObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } } ,pushRect: function(rect,transform) { } ,popMask: function() { } ,popObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } } ,popRect: function() { } ,saveState: function() { } ,restoreState: function() { } ,__class__: openfl__$internal_renderer_AbstractMaskManager }; var openfl__$internal_renderer_AbstractRenderer = function(stage) { this.stage = stage; this.width = stage.stageWidth; this.height = stage.stageHeight; }; $hxClasses["openfl._internal.renderer.AbstractRenderer"] = openfl__$internal_renderer_AbstractRenderer; openfl__$internal_renderer_AbstractRenderer.__name__ = ["openfl","_internal","renderer","AbstractRenderer"]; openfl__$internal_renderer_AbstractRenderer.prototype = { height: null ,width: null ,transparent: null ,viewport: null ,renderSession: null ,stage: null ,clear: function() { } ,render: function() { } ,renderStage3D: function() { } ,resize: function(width,height) { this.width = width; this.height = height; } ,__class__: openfl__$internal_renderer_AbstractRenderer }; var openfl__$internal_renderer_AbstractShaderManager = function() { }; $hxClasses["openfl._internal.renderer.AbstractShaderManager"] = openfl__$internal_renderer_AbstractShaderManager; openfl__$internal_renderer_AbstractShaderManager.__name__ = ["openfl","_internal","renderer","AbstractShaderManager"]; openfl__$internal_renderer_AbstractShaderManager.prototype = { currentShader: null ,defaultShader: null ,initShader: function(shader) { return shader; } ,setShader: function(shader) { } ,updateShader: function(shader) { } ,__class__: openfl__$internal_renderer_AbstractShaderManager }; var openfl__$internal_renderer_DrawCommandBuffer = function() { if(openfl__$internal_renderer_DrawCommandBuffer.empty == null) { this.types = []; this.b = []; this.i = []; this.f = []; this.o = []; this.ff = []; this.ii = []; this.copyOnWrite = true; } else { this.clear(); } }; $hxClasses["openfl._internal.renderer.DrawCommandBuffer"] = openfl__$internal_renderer_DrawCommandBuffer; openfl__$internal_renderer_DrawCommandBuffer.__name__ = ["openfl","_internal","renderer","DrawCommandBuffer"]; openfl__$internal_renderer_DrawCommandBuffer.prototype = { types: null ,b: null ,copyOnWrite: null ,f: null ,ff: null ,i: null ,ii: null ,o: null ,append: function(other) { if(this.get_length() == 0) { this.types = other.types; this.b = other.b; this.i = other.i; this.f = other.f; this.o = other.o; this.ff = other.ff; this.ii = other.ii; this.copyOnWrite = other.copyOnWrite = true; return other; } var data = new openfl__$internal_renderer_DrawCommandReader(other); var _g = 0; var _g1 = other.types; while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 0: var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL; var this1 = data; var c = this1; this.beginBitmapFill(c.buffer.o[c.oPos],c.buffer.o[c.oPos + 1],c.buffer.b[c.bPos],c.buffer.b[c.bPos + 1]); break; case 1: var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_FILL; var this2 = data; var c1 = this2; this.beginFill(c1.buffer.i[c1.iPos],c1.buffer.f[c1.fPos]); break; case 2: var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL; var this3 = data; var c2 = this3; this.beginGradientFill(c2.buffer.o[c2.oPos],c2.buffer.ii[c2.iiPos],c2.buffer.ff[c2.ffPos],c2.buffer.ii[c2.iiPos + 1],c2.buffer.o[c2.oPos + 1],c2.buffer.o[c2.oPos + 2],c2.buffer.o[c2.oPos + 3],c2.buffer.f[c2.fPos]); break; case 3: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this4 = data; var c3 = this4; this.cubicCurveTo(c3.buffer.f[c3.fPos],c3.buffer.f[c3.fPos + 1],c3.buffer.f[c3.fPos + 2],c3.buffer.f[c3.fPos + 3],c3.buffer.f[c3.fPos + 4],c3.buffer.f[c3.fPos + 5]); break; case 4: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this5 = data; var c4 = this5; this.curveTo(c4.buffer.f[c4.fPos],c4.buffer.f[c4.fPos + 1],c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); break; case 5: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this6 = data; var c5 = this6; this.drawCircle(c5.buffer.f[c5.fPos],c5.buffer.f[c5.fPos + 1],c5.buffer.f[c5.fPos + 2]); break; case 6: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this7 = data; var c6 = this7; this.drawEllipse(c6.buffer.f[c6.fPos],c6.buffer.f[c6.fPos + 1],c6.buffer.f[c6.fPos + 2],c6.buffer.f[c6.fPos + 3]); break; case 7: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this8 = data; var c7 = this8; this.drawRect(c7.buffer.f[c7.fPos],c7.buffer.f[c7.fPos + 1],c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); break; case 8: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this9 = data; var c8 = this9; this.drawRoundRect(c8.buffer.f[c8.fPos],c8.buffer.f[c8.fPos + 1],c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos]); break; case 10: var _g11 = data.prev; switch(_g11[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES; var this10 = data; var c9 = this10; this.drawTriangles(c9.buffer.o[c9.oPos],c9.buffer.o[c9.oPos + 1],c9.buffer.o[c9.oPos + 2],c9.buffer.o[c9.oPos + 3]); break; case 11: var _g12 = data.prev; switch(_g12[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.END_FILL; var this11 = data; var c10 = this11; this.endFill(); break; case 12: var _g13 = data.prev; switch(_g13[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE; var this12 = data; var c11 = this12; this.lineBitmapStyle(c11.buffer.o[c11.oPos],c11.buffer.o[c11.oPos + 1],c11.buffer.b[c11.bPos],c11.buffer.b[c11.bPos + 1]); break; case 13: var _g14 = data.prev; switch(_g14[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE; var this13 = data; var c12 = this13; this.lineGradientStyle(c12.buffer.o[c12.oPos],c12.buffer.ii[c12.iiPos],c12.buffer.ff[c12.ffPos],c12.buffer.ii[c12.iiPos + 1],c12.buffer.o[c12.oPos + 1],c12.buffer.o[c12.oPos + 2],c12.buffer.o[c12.oPos + 3],c12.buffer.f[c12.fPos]); break; case 14: var _g15 = data.prev; switch(_g15[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_STYLE; var this14 = data; var c13 = this14; this.lineStyle(c13.buffer.o[c13.oPos],c13.buffer.i[c13.iPos],c13.buffer.f[c13.fPos],c13.buffer.b[c13.bPos],c13.buffer.o[c13.oPos + 1],c13.buffer.o[c13.oPos + 2],c13.buffer.o[c13.oPos + 3],c13.buffer.f[c13.fPos + 1]); break; case 15: var _g16 = data.prev; switch(_g16[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this15 = data; var c14 = this15; this.lineTo(c14.buffer.f[c14.fPos],c14.buffer.f[c14.fPos + 1]); break; case 16: var _g17 = data.prev; switch(_g17[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this16 = data; var c15 = this16; this.moveTo(c15.buffer.f[c15.fPos],c15.buffer.f[c15.fPos + 1]); break; case 17: var _g18 = data.prev; switch(_g18[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.OVERRIDE_MATRIX; var this17 = data; var c16 = this17; this.overrideMatrix(c16.buffer.o[c16.oPos]); break; case 18: var _g19 = data.prev; switch(_g19[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD; var this18 = data; var c17 = this18; this.windingEvenOdd(); break; case 19: var _g20 = data.prev; switch(_g20[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO; var this19 = data; var c18 = this19; this.windingNonZero(); break; default: } } data.destroy(); return other; } ,beginBitmapFill: function(bitmap,matrix,repeat,smooth) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL); this.o.push(bitmap); this.o.push(matrix); this.b.push(repeat); this.b.push(smooth); } ,beginFill: function(color,alpha) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.BEGIN_FILL); this.i.push(color); this.f.push(alpha); } ,beginGradientFill: function(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL); this.o.push(type); this.ii.push(colors); this.ff.push(alphas); this.ii.push(ratios); this.o.push(matrix); this.o.push(spreadMethod); this.o.push(interpolationMethod); this.f.push(focalPointRatio); } ,clear: function() { this.types = openfl__$internal_renderer_DrawCommandBuffer.empty.types; this.b = openfl__$internal_renderer_DrawCommandBuffer.empty.b; this.i = openfl__$internal_renderer_DrawCommandBuffer.empty.i; this.f = openfl__$internal_renderer_DrawCommandBuffer.empty.f; this.o = openfl__$internal_renderer_DrawCommandBuffer.empty.o; this.ff = openfl__$internal_renderer_DrawCommandBuffer.empty.ff; this.ii = openfl__$internal_renderer_DrawCommandBuffer.empty.ii; this.copyOnWrite = true; } ,copy: function() { var copy = new openfl__$internal_renderer_DrawCommandBuffer(); copy.append(this); return copy; } ,cubicCurveTo: function(controlX1,controlY1,controlX2,controlY2,anchorX,anchorY) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO); this.f.push(controlX1); this.f.push(controlY1); this.f.push(controlX2); this.f.push(controlY2); this.f.push(anchorX); this.f.push(anchorY); } ,curveTo: function(controlX,controlY,anchorX,anchorY) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.CURVE_TO); this.f.push(controlX); this.f.push(controlY); this.f.push(anchorX); this.f.push(anchorY); } ,destroy: function() { this.clear(); this.types = null; this.b = null; this.i = null; this.f = null; this.o = null; this.ff = null; this.ii = null; } ,drawCircle: function(x,y,radius) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE); this.f.push(x); this.f.push(y); this.f.push(radius); } ,drawEllipse: function(x,y,width,height) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE); this.f.push(x); this.f.push(y); this.f.push(width); this.f.push(height); } ,drawRect: function(x,y,width,height) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.DRAW_RECT); this.f.push(x); this.f.push(y); this.f.push(width); this.f.push(height); } ,drawRoundRect: function(x,y,width,height,ellipseWidth,ellipseHeight) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT); this.f.push(x); this.f.push(y); this.f.push(width); this.f.push(height); this.f.push(ellipseWidth); this.o.push(ellipseHeight); } ,drawTriangles: function(vertices,indices,uvtData,culling) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES); this.o.push(vertices); this.o.push(indices); this.o.push(uvtData); this.o.push(culling); } ,endFill: function() { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.END_FILL); } ,lineBitmapStyle: function(bitmap,matrix,repeat,smooth) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE); this.o.push(bitmap); this.o.push(matrix); this.b.push(repeat); this.b.push(smooth); } ,lineGradientStyle: function(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE); this.o.push(type); this.ii.push(colors); this.ff.push(alphas); this.ii.push(ratios); this.o.push(matrix); this.o.push(spreadMethod); this.o.push(interpolationMethod); this.f.push(focalPointRatio); } ,lineStyle: function(thickness,color,alpha,pixelHinting,scaleMode,caps,joints,miterLimit) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.LINE_STYLE); this.o.push(thickness); this.i.push(color); this.f.push(alpha); this.b.push(pixelHinting); this.o.push(scaleMode); this.o.push(caps); this.o.push(joints); this.f.push(miterLimit); } ,lineTo: function(x,y) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.LINE_TO); this.f.push(x); this.f.push(y); } ,moveTo: function(x,y) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.MOVE_TO); this.f.push(x); this.f.push(y); } ,prepareWrite: function() { if(this.copyOnWrite) { this.types = this.types.slice(); this.b = this.b.slice(); this.i = this.i.slice(); this.f = this.f.slice(); this.o = this.o.slice(); this.ff = this.ff.slice(); this.ii = this.ii.slice(); this.copyOnWrite = false; } } ,overrideMatrix: function(matrix) { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.OVERRIDE_MATRIX); this.o.push(matrix); } ,windingEvenOdd: function() { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD); } ,windingNonZero: function() { this.prepareWrite(); this.types.push(openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO); } ,get_length: function() { return this.types.length; } ,__class__: openfl__$internal_renderer_DrawCommandBuffer ,__properties__: {get_length:"get_length"} }; var openfl__$internal_renderer_DrawCommandReader = function(buffer) { this.buffer = buffer; this.bPos = this.iPos = this.fPos = this.oPos = this.ffPos = this.iiPos = this.tsPos = 0; this.prev = openfl__$internal_renderer_DrawCommandType.UNKNOWN; }; $hxClasses["openfl._internal.renderer.DrawCommandReader"] = openfl__$internal_renderer_DrawCommandReader; openfl__$internal_renderer_DrawCommandReader.__name__ = ["openfl","_internal","renderer","DrawCommandReader"]; openfl__$internal_renderer_DrawCommandReader.prototype = { buffer: null ,bPos: null ,iiPos: null ,iPos: null ,ffPos: null ,fPos: null ,oPos: null ,prev: null ,tsPos: null ,advance: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } } ,bool: function(index) { return this.buffer.b[this.bPos + index]; } ,destroy: function() { this.buffer = null; this.reset(); } ,fArr: function(index) { return this.buffer.ff[this.ffPos + index]; } ,'float': function(index) { return this.buffer.f[this.fPos + index]; } ,iArr: function(index) { return this.buffer.ii[this.iiPos + index]; } ,'int': function(index) { return this.buffer.i[this.iPos + index]; } ,obj: function(index) { return this.buffer.o[this.oPos + index]; } ,readBeginBitmapFill: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL; var this1 = this; return this1; } ,readBeginFill: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_FILL; var this1 = this; return this1; } ,readBeginGradientFill: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL; var this1 = this; return this1; } ,readCubicCurveTo: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this1 = this; return this1; } ,readCurveTo: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this1 = this; return this1; } ,readDrawCircle: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this1 = this; return this1; } ,readDrawEllipse: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this1 = this; return this1; } ,readDrawRect: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this1 = this; return this1; } ,readDrawRoundRect: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this1 = this; return this1; } ,readDrawTriangles: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES; var this1 = this; return this1; } ,readEndFill: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.END_FILL; var this1 = this; return this1; } ,readLineBitmapStyle: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE; var this1 = this; return this1; } ,readLineGradientStyle: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE; var this1 = this; return this1; } ,readLineStyle: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.LINE_STYLE; var this1 = this; return this1; } ,readLineTo: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this1 = this; return this1; } ,readMoveTo: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this1 = this; return this1; } ,readOverrideMatrix: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.OVERRIDE_MATRIX; var this1 = this; return this1; } ,readWindingEvenOdd: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD; var this1 = this; return this1; } ,readWindingNonZero: function() { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO; var this1 = this; return this1; } ,reset: function() { this.bPos = this.iPos = this.fPos = this.oPos = this.ffPos = this.iiPos = this.tsPos = 0; } ,skip: function(type) { var _g = this.prev; switch(_g[1]) { case 0: this.oPos += 2; this.bPos += 2; break; case 1: this.iPos += 1; this.fPos += 1; break; case 2: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 4; break; case 7: this.fPos += 4; break; case 8: this.fPos += 5; this.oPos += 1; break; case 10: this.oPos += 4; break; case 11: break; case 12: this.oPos += 2; this.bPos += 2; break; case 13: this.oPos += 4; this.iiPos += 2; this.ffPos += 1; this.fPos += 1; break; case 14: this.oPos += 4; this.iPos += 1; this.fPos += 2; this.bPos += 1; break; case 15: this.fPos += 2; break; case 16: this.fPos += 2; break; case 17: this.oPos += 1; break; case 18:case 19: break; default: } this.prev = type; } ,__class__: openfl__$internal_renderer_DrawCommandReader }; var openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.BeginBitmapFillView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","BeginBitmapFillView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$.__properties__ = {get_smooth:"get_smooth",get_repeat:"get_repeat",get_matrix:"get_matrix",get_bitmap:"get_bitmap"}; openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$.get_bitmap = function(this1) { return this1.buffer.o[this1.oPos]; }; openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$.get_matrix = function(this1) { return this1.buffer.o[this1.oPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$.get_repeat = function(this1) { return this1.buffer.b[this1.bPos]; }; openfl__$internal_renderer__$DrawCommandReader_BeginBitmapFillView_$Impl_$.get_smooth = function(this1) { return this1.buffer.b[this1.bPos + 1]; }; var openfl__$internal_renderer__$DrawCommandReader_BeginFillView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.BeginFillView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_BeginFillView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_BeginFillView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","BeginFillView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_BeginFillView_$Impl_$.__properties__ = {get_alpha:"get_alpha",get_color:"get_color"}; openfl__$internal_renderer__$DrawCommandReader_BeginFillView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_BeginFillView_$Impl_$.get_color = function(this1) { return this1.buffer.i[this1.iPos]; }; openfl__$internal_renderer__$DrawCommandReader_BeginFillView_$Impl_$.get_alpha = function(this1) { return this1.buffer.f[this1.fPos]; }; var openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.BeginGradientFillView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","BeginGradientFillView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.__properties__ = {get_focalPointRatio:"get_focalPointRatio",get_interpolationMethod:"get_interpolationMethod",get_spreadMethod:"get_spreadMethod",get_matrix:"get_matrix",get_ratios:"get_ratios",get_alphas:"get_alphas",get_colors:"get_colors",get_type:"get_type"}; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_type = function(this1) { return this1.buffer.o[this1.oPos]; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_colors = function(this1) { return this1.buffer.ii[this1.iiPos]; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_alphas = function(this1) { return this1.buffer.ff[this1.ffPos]; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_ratios = function(this1) { return this1.buffer.ii[this1.iiPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_matrix = function(this1) { return this1.buffer.o[this1.oPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_spreadMethod = function(this1) { return this1.buffer.o[this1.oPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_interpolationMethod = function(this1) { return this1.buffer.o[this1.oPos + 3]; }; openfl__$internal_renderer__$DrawCommandReader_BeginGradientFillView_$Impl_$.get_focalPointRatio = function(this1) { return this1.buffer.f[this1.fPos]; }; var openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.CubicCurveToView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","CubicCurveToView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.__properties__ = {get_anchorY:"get_anchorY",get_anchorX:"get_anchorX",get_controlY2:"get_controlY2",get_controlX2:"get_controlX2",get_controlY1:"get_controlY1",get_controlX1:"get_controlX1"}; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.get_controlX1 = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.get_controlY1 = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.get_controlX2 = function(this1) { return this1.buffer.f[this1.fPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.get_controlY2 = function(this1) { return this1.buffer.f[this1.fPos + 3]; }; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.get_anchorX = function(this1) { return this1.buffer.f[this1.fPos + 4]; }; openfl__$internal_renderer__$DrawCommandReader_CubicCurveToView_$Impl_$.get_anchorY = function(this1) { return this1.buffer.f[this1.fPos + 5]; }; var openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.CurveToView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","CurveToView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$.__properties__ = {get_anchorY:"get_anchorY",get_anchorX:"get_anchorX",get_controlY:"get_controlY",get_controlX:"get_controlX"}; openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$.get_controlX = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$.get_controlY = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$.get_anchorX = function(this1) { return this1.buffer.f[this1.fPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_CurveToView_$Impl_$.get_anchorY = function(this1) { return this1.buffer.f[this1.fPos + 3]; }; var openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.DrawCircleView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","DrawCircleView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$.__properties__ = {get_radius:"get_radius",get_y:"get_y",get_x:"get_x"}; openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$.get_x = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$.get_y = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_DrawCircleView_$Impl_$.get_radius = function(this1) { return this1.buffer.f[this1.fPos + 2]; }; var openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.DrawEllipseView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","DrawEllipseView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$.__properties__ = {get_height:"get_height",get_width:"get_width",get_y:"get_y",get_x:"get_x"}; openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$.get_x = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$.get_y = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$.get_width = function(this1) { return this1.buffer.f[this1.fPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_DrawEllipseView_$Impl_$.get_height = function(this1) { return this1.buffer.f[this1.fPos + 3]; }; var openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.DrawRectView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","DrawRectView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$.__properties__ = {get_height:"get_height",get_width:"get_width",get_y:"get_y",get_x:"get_x"}; openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$.get_x = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$.get_y = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$.get_width = function(this1) { return this1.buffer.f[this1.fPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRectView_$Impl_$.get_height = function(this1) { return this1.buffer.f[this1.fPos + 3]; }; var openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.DrawRoundRectView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","DrawRoundRectView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.__properties__ = {get_ellipseHeight:"get_ellipseHeight",get_ellipseWidth:"get_ellipseWidth",get_height:"get_height",get_width:"get_width",get_y:"get_y",get_x:"get_x"}; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.get_x = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.get_y = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.get_width = function(this1) { return this1.buffer.f[this1.fPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.get_height = function(this1) { return this1.buffer.f[this1.fPos + 3]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.get_ellipseWidth = function(this1) { return this1.buffer.f[this1.fPos + 4]; }; openfl__$internal_renderer__$DrawCommandReader_DrawRoundRectView_$Impl_$.get_ellipseHeight = function(this1) { return this1.buffer.o[this1.oPos]; }; var openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.DrawTrianglesView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","DrawTrianglesView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$.__properties__ = {get_culling:"get_culling",get_uvtData:"get_uvtData",get_indices:"get_indices",get_vertices:"get_vertices"}; openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$.get_vertices = function(this1) { return this1.buffer.o[this1.oPos]; }; openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$.get_indices = function(this1) { return this1.buffer.o[this1.oPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$.get_uvtData = function(this1) { return this1.buffer.o[this1.oPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_DrawTrianglesView_$Impl_$.get_culling = function(this1) { return this1.buffer.o[this1.oPos + 3]; }; var openfl__$internal_renderer__$DrawCommandReader_EndFillView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.EndFillView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_EndFillView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_EndFillView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","EndFillView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_EndFillView_$Impl_$._new = function(d) { var this1 = d; return this1; }; var openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.LineBitmapStyleView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","LineBitmapStyleView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$.__properties__ = {get_smooth:"get_smooth",get_repeat:"get_repeat",get_matrix:"get_matrix",get_bitmap:"get_bitmap"}; openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$.get_bitmap = function(this1) { return this1.buffer.o[this1.oPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$.get_matrix = function(this1) { return this1.buffer.o[this1.oPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$.get_repeat = function(this1) { return this1.buffer.b[this1.bPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineBitmapStyleView_$Impl_$.get_smooth = function(this1) { return this1.buffer.b[this1.bPos + 1]; }; var openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.LineGradientStyleView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","LineGradientStyleView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.__properties__ = {get_focalPointRatio:"get_focalPointRatio",get_interpolationMethod:"get_interpolationMethod",get_spreadMethod:"get_spreadMethod",get_matrix:"get_matrix",get_ratios:"get_ratios",get_alphas:"get_alphas",get_colors:"get_colors",get_type:"get_type"}; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_type = function(this1) { return this1.buffer.o[this1.oPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_colors = function(this1) { return this1.buffer.ii[this1.iiPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_alphas = function(this1) { return this1.buffer.ff[this1.ffPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_ratios = function(this1) { return this1.buffer.ii[this1.iiPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_matrix = function(this1) { return this1.buffer.o[this1.oPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_spreadMethod = function(this1) { return this1.buffer.o[this1.oPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_interpolationMethod = function(this1) { return this1.buffer.o[this1.oPos + 3]; }; openfl__$internal_renderer__$DrawCommandReader_LineGradientStyleView_$Impl_$.get_focalPointRatio = function(this1) { return this1.buffer.f[this1.fPos]; }; var openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.LineStyleView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","LineStyleView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.__properties__ = {get_miterLimit:"get_miterLimit",get_joints:"get_joints",get_caps:"get_caps",get_scaleMode:"get_scaleMode",get_pixelHinting:"get_pixelHinting",get_alpha:"get_alpha",get_color:"get_color",get_thickness:"get_thickness"}; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_thickness = function(this1) { return this1.buffer.o[this1.oPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_color = function(this1) { return this1.buffer.i[this1.iPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_alpha = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_pixelHinting = function(this1) { return this1.buffer.b[this1.bPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_scaleMode = function(this1) { return this1.buffer.o[this1.oPos + 1]; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_caps = function(this1) { return this1.buffer.o[this1.oPos + 2]; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_joints = function(this1) { return this1.buffer.o[this1.oPos + 3]; }; openfl__$internal_renderer__$DrawCommandReader_LineStyleView_$Impl_$.get_miterLimit = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; var openfl__$internal_renderer__$DrawCommandReader_LineToView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.LineToView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_LineToView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_LineToView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","LineToView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_LineToView_$Impl_$.__properties__ = {get_y:"get_y",get_x:"get_x"}; openfl__$internal_renderer__$DrawCommandReader_LineToView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_LineToView_$Impl_$.get_x = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_LineToView_$Impl_$.get_y = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; var openfl__$internal_renderer__$DrawCommandReader_MoveToView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.MoveToView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_MoveToView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_MoveToView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","MoveToView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_MoveToView_$Impl_$.__properties__ = {get_y:"get_y",get_x:"get_x"}; openfl__$internal_renderer__$DrawCommandReader_MoveToView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_MoveToView_$Impl_$.get_x = function(this1) { return this1.buffer.f[this1.fPos]; }; openfl__$internal_renderer__$DrawCommandReader_MoveToView_$Impl_$.get_y = function(this1) { return this1.buffer.f[this1.fPos + 1]; }; var openfl__$internal_renderer__$DrawCommandReader_OverrideMatrixView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.OverrideMatrixView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_OverrideMatrixView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_OverrideMatrixView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","OverrideMatrixView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_OverrideMatrixView_$Impl_$.__properties__ = {get_matrix:"get_matrix"}; openfl__$internal_renderer__$DrawCommandReader_OverrideMatrixView_$Impl_$._new = function(d) { var this1 = d; return this1; }; openfl__$internal_renderer__$DrawCommandReader_OverrideMatrixView_$Impl_$.get_matrix = function(this1) { return this1.buffer.o[this1.oPos]; }; var openfl__$internal_renderer__$DrawCommandReader_WindingEvenOddView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.WindingEvenOddView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_WindingEvenOddView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_WindingEvenOddView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","WindingEvenOddView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_WindingEvenOddView_$Impl_$._new = function(d) { var this1 = d; return this1; }; var openfl__$internal_renderer__$DrawCommandReader_WindingNonZeroView_$Impl_$ = {}; $hxClasses["openfl._internal.renderer._DrawCommandReader.WindingNonZeroView_Impl_"] = openfl__$internal_renderer__$DrawCommandReader_WindingNonZeroView_$Impl_$; openfl__$internal_renderer__$DrawCommandReader_WindingNonZeroView_$Impl_$.__name__ = ["openfl","_internal","renderer","_DrawCommandReader","WindingNonZeroView_Impl_"]; openfl__$internal_renderer__$DrawCommandReader_WindingNonZeroView_$Impl_$._new = function(d) { var this1 = d; return this1; }; var openfl__$internal_renderer_DrawCommandType = $hxClasses["openfl._internal.renderer.DrawCommandType"] = { __ename__ : ["openfl","_internal","renderer","DrawCommandType"], __constructs__ : ["BEGIN_BITMAP_FILL","BEGIN_FILL","BEGIN_GRADIENT_FILL","CUBIC_CURVE_TO","CURVE_TO","DRAW_CIRCLE","DRAW_ELLIPSE","DRAW_RECT","DRAW_ROUND_RECT","DRAW_TILES","DRAW_TRIANGLES","END_FILL","LINE_BITMAP_STYLE","LINE_GRADIENT_STYLE","LINE_STYLE","LINE_TO","MOVE_TO","OVERRIDE_MATRIX","WINDING_EVEN_ODD","WINDING_NON_ZERO","UNKNOWN"] }; openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL = ["BEGIN_BITMAP_FILL",0]; openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL.toString = $estr; openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.BEGIN_FILL = ["BEGIN_FILL",1]; openfl__$internal_renderer_DrawCommandType.BEGIN_FILL.toString = $estr; openfl__$internal_renderer_DrawCommandType.BEGIN_FILL.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL = ["BEGIN_GRADIENT_FILL",2]; openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL.toString = $estr; openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO = ["CUBIC_CURVE_TO",3]; openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO.toString = $estr; openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.CURVE_TO = ["CURVE_TO",4]; openfl__$internal_renderer_DrawCommandType.CURVE_TO.toString = $estr; openfl__$internal_renderer_DrawCommandType.CURVE_TO.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE = ["DRAW_CIRCLE",5]; openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE.toString = $estr; openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE = ["DRAW_ELLIPSE",6]; openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE.toString = $estr; openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.DRAW_RECT = ["DRAW_RECT",7]; openfl__$internal_renderer_DrawCommandType.DRAW_RECT.toString = $estr; openfl__$internal_renderer_DrawCommandType.DRAW_RECT.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT = ["DRAW_ROUND_RECT",8]; openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT.toString = $estr; openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.DRAW_TILES = ["DRAW_TILES",9]; openfl__$internal_renderer_DrawCommandType.DRAW_TILES.toString = $estr; openfl__$internal_renderer_DrawCommandType.DRAW_TILES.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES = ["DRAW_TRIANGLES",10]; openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES.toString = $estr; openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.END_FILL = ["END_FILL",11]; openfl__$internal_renderer_DrawCommandType.END_FILL.toString = $estr; openfl__$internal_renderer_DrawCommandType.END_FILL.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE = ["LINE_BITMAP_STYLE",12]; openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE.toString = $estr; openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE = ["LINE_GRADIENT_STYLE",13]; openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE.toString = $estr; openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.LINE_STYLE = ["LINE_STYLE",14]; openfl__$internal_renderer_DrawCommandType.LINE_STYLE.toString = $estr; openfl__$internal_renderer_DrawCommandType.LINE_STYLE.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.LINE_TO = ["LINE_TO",15]; openfl__$internal_renderer_DrawCommandType.LINE_TO.toString = $estr; openfl__$internal_renderer_DrawCommandType.LINE_TO.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.MOVE_TO = ["MOVE_TO",16]; openfl__$internal_renderer_DrawCommandType.MOVE_TO.toString = $estr; openfl__$internal_renderer_DrawCommandType.MOVE_TO.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.OVERRIDE_MATRIX = ["OVERRIDE_MATRIX",17]; openfl__$internal_renderer_DrawCommandType.OVERRIDE_MATRIX.toString = $estr; openfl__$internal_renderer_DrawCommandType.OVERRIDE_MATRIX.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD = ["WINDING_EVEN_ODD",18]; openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD.toString = $estr; openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO = ["WINDING_NON_ZERO",19]; openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO.toString = $estr; openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.UNKNOWN = ["UNKNOWN",20]; openfl__$internal_renderer_DrawCommandType.UNKNOWN.toString = $estr; openfl__$internal_renderer_DrawCommandType.UNKNOWN.__enum__ = openfl__$internal_renderer_DrawCommandType; openfl__$internal_renderer_DrawCommandType.__empty_constructs__ = [openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL,openfl__$internal_renderer_DrawCommandType.BEGIN_FILL,openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL,openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO,openfl__$internal_renderer_DrawCommandType.CURVE_TO,openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE,openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE,openfl__$internal_renderer_DrawCommandType.DRAW_RECT,openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT,openfl__$internal_renderer_DrawCommandType.DRAW_TILES,openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES,openfl__$internal_renderer_DrawCommandType.END_FILL,openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE,openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE,openfl__$internal_renderer_DrawCommandType.LINE_STYLE,openfl__$internal_renderer_DrawCommandType.LINE_TO,openfl__$internal_renderer_DrawCommandType.MOVE_TO,openfl__$internal_renderer_DrawCommandType.OVERRIDE_MATRIX,openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD,openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO,openfl__$internal_renderer_DrawCommandType.UNKNOWN]; var openfl__$internal_renderer_RenderSession = function() { this.activeTextures = 0; this.allowSmoothing = true; this.clearRenderDirty = false; }; $hxClasses["openfl._internal.renderer.RenderSession"] = openfl__$internal_renderer_RenderSession; openfl__$internal_renderer_RenderSession.__name__ = ["openfl","_internal","renderer","RenderSession"]; openfl__$internal_renderer_RenderSession.prototype = { allowSmoothing: null ,cairo: null ,clearRenderDirty: null ,context: null ,element: null ,gl: null ,lockTransform: null ,renderer: null ,roundPixels: null ,transformProperty: null ,transformOriginProperty: null ,upscaled: null ,vendorPrefix: null ,projectionMatrix: null ,z: null ,drawCount: null ,currentBlendMode: null ,activeTextures: null ,blendModeManager: null ,filterManager: null ,maskManager: null ,shaderManager: null ,__class__: openfl__$internal_renderer_RenderSession }; var openfl__$internal_renderer_cairo_CairoBitmap = function() { }; $hxClasses["openfl._internal.renderer.cairo.CairoBitmap"] = openfl__$internal_renderer_cairo_CairoBitmap; openfl__$internal_renderer_cairo_CairoBitmap.__name__ = ["openfl","_internal","renderer","cairo","CairoBitmap"]; openfl__$internal_renderer_cairo_CairoBitmap.render = function(bitmap,renderSession) { if(!bitmap.__renderable || bitmap.__worldAlpha <= 0) { return; } var cairo = renderSession.cairo; if(bitmap.bitmapData != null && bitmap.bitmapData.__isValid) { renderSession.blendModeManager.setBlendMode(bitmap.__worldBlendMode); renderSession.maskManager.pushObject(bitmap); var transform = bitmap.__renderTransform; if(renderSession.roundPixels) { var matrix = transform.__toMatrix3(); matrix.tx = Math.round(matrix.tx); matrix.ty = Math.round(matrix.ty); cairo.set_matrix(matrix); } else { cairo.set_matrix(transform.__toMatrix3()); } var surface = bitmap.bitmapData.getSurface(); if(surface != null) { var pattern = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createForSurface(surface); lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_filter(pattern,renderSession.allowSmoothing && bitmap.smoothing ? 1 : 3); cairo.set_source(pattern); if(bitmap.__worldAlpha == 1) { cairo.paint(); } else { cairo.paintWithAlpha(bitmap.__worldAlpha); } } renderSession.maskManager.popObject(bitmap); } }; var openfl__$internal_renderer_cairo_CairoDisplayObject = function() { }; $hxClasses["openfl._internal.renderer.cairo.CairoDisplayObject"] = openfl__$internal_renderer_cairo_CairoDisplayObject; openfl__$internal_renderer_cairo_CairoDisplayObject.__name__ = ["openfl","_internal","renderer","cairo","CairoDisplayObject"]; openfl__$internal_renderer_cairo_CairoDisplayObject.render = function(displayObject,renderSession) { }; var openfl__$internal_renderer_cairo_CairoGraphics = function() { }; $hxClasses["openfl._internal.renderer.cairo.CairoGraphics"] = openfl__$internal_renderer_cairo_CairoGraphics; openfl__$internal_renderer_cairo_CairoGraphics.__name__ = ["openfl","_internal","renderer","cairo","CairoGraphics"]; openfl__$internal_renderer_cairo_CairoGraphics.closePath = function(strokeBefore) { if(strokeBefore == null) { strokeBefore = false; } if(openfl__$internal_renderer_cairo_CairoGraphics.strokePattern == null) { return; } if(!strokeBefore) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.closePath(); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_source(openfl__$internal_renderer_cairo_CairoGraphics.strokePattern); if(!openfl__$internal_renderer_cairo_CairoGraphics.hitTesting) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.strokePreserve(); } if(strokeBefore) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.closePath(); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.newPath(); }; openfl__$internal_renderer_cairo_CairoGraphics.createGradientPattern = function(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { var pattern = null; var point = null; var point2 = null; var releaseMatrix = false; if(matrix == null) { matrix = openfl_geom_Matrix.__pool.get(); releaseMatrix = true; } switch(type) { case 0: point = openfl_geom_Point.__pool.get(); point.setTo(-819.2,0); var px = point.x; var py = point.y; point.x = px * matrix.a + py * matrix.c + matrix.tx; point.y = px * matrix.b + py * matrix.d + matrix.ty; point2 = openfl_geom_Point.__pool.get(); point2.setTo(819.2,0); var px1 = point2.x; var py1 = point2.y; point2.x = px1 * matrix.a + py1 * matrix.c + matrix.tx; point2.y = px1 * matrix.b + py1 * matrix.d + matrix.ty; point.x += openfl__$internal_renderer_cairo_CairoGraphics.graphics.__bounds.x; point2.x += openfl__$internal_renderer_cairo_CairoGraphics.graphics.__bounds.x; point.y += openfl__$internal_renderer_cairo_CairoGraphics.graphics.__bounds.y; point2.y += openfl__$internal_renderer_cairo_CairoGraphics.graphics.__bounds.y; pattern = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createLinear(point.x,point.y,point2.x,point2.y); break; case 1: point = openfl_geom_Point.__pool.get(); point.setTo(1638.4,0); var px2 = point.x; var py2 = point.y; point.x = px2 * matrix.a + py2 * matrix.c + matrix.tx; point.y = px2 * matrix.b + py2 * matrix.d + matrix.ty; var x = matrix.tx + openfl__$internal_renderer_cairo_CairoGraphics.graphics.__bounds.x; var y = matrix.ty + openfl__$internal_renderer_cairo_CairoGraphics.graphics.__bounds.y; pattern = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createRadial(x,y,0,x,y,Math.abs((point.x - matrix.tx) / 2)); break; } var rgb; var alpha; var r; var g; var b; var ratio; var _g1 = 0; var _g = colors.length; while(_g1 < _g) { var i = _g1++; rgb = colors[i]; alpha = alphas[i]; r = ((rgb & 16711680) >>> 16) / 255; g = ((rgb & 65280) >>> 8) / 255; b = (rgb & 255) / 255; ratio = ratios[i] / 255; if(ratio < 0) { ratio = 0; } if(ratio > 1) { ratio = 1; } lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.addColorStopRGBA(pattern,ratio,r,g,b,alpha); } if(point != null) { openfl_geom_Point.__pool.release(point); } if(point2 != null) { openfl_geom_Point.__pool.release(point2); } if(releaseMatrix) { openfl_geom_Matrix.__pool.release(matrix); } var mat = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.get_matrix(pattern); mat.tx = openfl__$internal_renderer_cairo_CairoGraphics.bounds.x; mat.ty = openfl__$internal_renderer_cairo_CairoGraphics.bounds.y; lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_matrix(pattern,mat); return pattern; }; openfl__$internal_renderer_cairo_CairoGraphics.createImagePattern = function(bitmapFill,matrix,bitmapRepeat,smooth) { var pattern = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createForSurface(bitmapFill.getSurface()); lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_filter(pattern,smooth && openfl__$internal_renderer_cairo_CairoGraphics.allowSmoothing ? 1 : 3); if(bitmapRepeat) { lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_extend(pattern,1); } openfl__$internal_renderer_cairo_CairoGraphics.fillPatternMatrix = matrix; return pattern; }; openfl__$internal_renderer_cairo_CairoGraphics.drawRoundRect = function(x,y,width,height,ellipseWidth,ellipseHeight) { if(ellipseHeight == null) { ellipseHeight = ellipseWidth; } ellipseWidth *= 0.5; ellipseHeight *= 0.5; if(ellipseWidth > width / 2) { ellipseWidth = width / 2; } if(ellipseHeight > height / 2) { ellipseHeight = height / 2; } var xe = x + width; var ye = y + height; var cx1 = -ellipseWidth + ellipseWidth * openfl__$internal_renderer_cairo_CairoGraphics.SIN45; var cx2 = -ellipseWidth + ellipseWidth * openfl__$internal_renderer_cairo_CairoGraphics.TAN22; var cy1 = -ellipseHeight + ellipseHeight * openfl__$internal_renderer_cairo_CairoGraphics.SIN45; var cy2 = -ellipseHeight + ellipseHeight * openfl__$internal_renderer_cairo_CairoGraphics.TAN22; openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(xe,ye - ellipseHeight); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(xe,ye + cy2,xe + cx1,ye + cy1); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(xe + cx2,ye,xe - ellipseWidth,ye); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(x + ellipseWidth,ye); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(x - cx2,ye,x - cx1,ye + cy1); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(x,ye + cy2,x,ye - ellipseHeight); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(x,y + ellipseHeight); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(x,y - cy2,x - cx1,y - cy1); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(x - cx2,y,x + ellipseWidth,y); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(xe - ellipseWidth,y); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(xe + cx2,y,xe + cx1,y - cy1); openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(xe,y - cy2,xe,y + ellipseHeight); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(xe,ye - ellipseHeight); }; openfl__$internal_renderer_cairo_CairoGraphics.endFill = function() { openfl__$internal_renderer_cairo_CairoGraphics.cairo.newPath(); openfl__$internal_renderer_cairo_CairoGraphics.playCommands(openfl__$internal_renderer_cairo_CairoGraphics.fillCommands,false); openfl__$internal_renderer_cairo_CairoGraphics.fillCommands.clear(); }; openfl__$internal_renderer_cairo_CairoGraphics.endStroke = function() { openfl__$internal_renderer_cairo_CairoGraphics.cairo.newPath(); openfl__$internal_renderer_cairo_CairoGraphics.playCommands(openfl__$internal_renderer_cairo_CairoGraphics.strokeCommands,true); openfl__$internal_renderer_cairo_CairoGraphics.cairo.closePath(); openfl__$internal_renderer_cairo_CairoGraphics.strokeCommands.clear(); }; openfl__$internal_renderer_cairo_CairoGraphics.hitTest = function(graphics,x,y) { return false; }; openfl__$internal_renderer_cairo_CairoGraphics.isCCW = function(x1,y1,x2,y2,x3,y3) { return (x2 - x1) * (y3 - y1) - (y2 - y1) * (x3 - x1) < 0; }; openfl__$internal_renderer_cairo_CairoGraphics.normalizeUVT = function(uvt,skipT) { if(skipT == null) { skipT = false; } var max = -Infinity; var tmp = -Infinity; var len = uvt.data.get_length(); var _g1 = 1; var _g = len + 1; while(_g1 < _g) { var t = _g1++; if(skipT && t % 3 == 0) { continue; } tmp = uvt.data.get(t - 1); if(max < tmp) { max = tmp; } } if(!skipT) { return { max : max, uvt : uvt}; } var result = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g11 = 1; var _g2 = len + 1; while(_g11 < _g2) { var t1 = _g11++; if(skipT && t1 % 3 == 0) { continue; } var x = uvt.data.get(t1 - 1); result.data.push(x); } return { max : max, uvt : result}; }; openfl__$internal_renderer_cairo_CairoGraphics.playCommands = function(commands,stroke) { if(stroke == null) { stroke = false; } if(commands.get_length() == 0) { return; } openfl__$internal_renderer_cairo_CairoGraphics.bounds = openfl__$internal_renderer_cairo_CairoGraphics.graphics.__bounds; var offsetX = openfl__$internal_renderer_cairo_CairoGraphics.bounds.x; var offsetY = openfl__$internal_renderer_cairo_CairoGraphics.bounds.y; var positionX = 0.0; var positionY = 0.0; var closeGap = false; var startX = 0.0; var startY = 0.0; var setStart = false; openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_fillRule(1); openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_antialias(3); var hasPath = false; var data = new openfl__$internal_renderer_DrawCommandReader(commands); var x; var y; var width; var height; var kappa = .5522848; var ox; var oy; var xe; var ye; var xm; var ym; var r; var g; var b; var _g = 0; var _g1 = commands.types; try { while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 0: var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL; var this1 = data; var c = this1; openfl__$internal_renderer_cairo_CairoGraphics.fillPattern = openfl__$internal_renderer_cairo_CairoGraphics.createImagePattern(c.buffer.o[c.oPos],c.buffer.o[c.oPos + 1],c.buffer.b[c.bPos],c.buffer.b[c.bPos + 1]); openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill = c.buffer.o[c.oPos]; openfl__$internal_renderer_cairo_CairoGraphics.bitmapRepeat = c.buffer.b[c.bPos]; openfl__$internal_renderer_cairo_CairoGraphics.hasFill = true; break; case 1: var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_FILL; var this2 = data; var c1 = this2; if(c1.buffer.f[c1.fPos] < 0.005) { openfl__$internal_renderer_cairo_CairoGraphics.hasFill = false; } else { if(openfl__$internal_renderer_cairo_CairoGraphics.fillPattern != null) { openfl__$internal_renderer_cairo_CairoGraphics.fillPatternMatrix = null; } openfl__$internal_renderer_cairo_CairoGraphics.fillPattern = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createRGBA(((c1.buffer.i[c1.iPos] & 16711680) >>> 16) / 255,((c1.buffer.i[c1.iPos] & 65280) >>> 8) / 255,(c1.buffer.i[c1.iPos] & 255) / 255,c1.buffer.f[c1.fPos]); openfl__$internal_renderer_cairo_CairoGraphics.hasFill = true; } openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill = null; break; case 2: var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL; var this3 = data; var c2 = this3; if(openfl__$internal_renderer_cairo_CairoGraphics.fillPattern != null) { openfl__$internal_renderer_cairo_CairoGraphics.fillPatternMatrix = null; } openfl__$internal_renderer_cairo_CairoGraphics.fillPattern = openfl__$internal_renderer_cairo_CairoGraphics.createGradientPattern(c2.buffer.o[c2.oPos],c2.buffer.ii[c2.iiPos],c2.buffer.ff[c2.ffPos],c2.buffer.ii[c2.iiPos + 1],c2.buffer.o[c2.oPos + 1],c2.buffer.o[c2.oPos + 2],c2.buffer.o[c2.oPos + 3],c2.buffer.f[c2.fPos]); openfl__$internal_renderer_cairo_CairoGraphics.hasFill = true; openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill = null; break; case 3: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this4 = data; var c3 = this4; hasPath = true; openfl__$internal_renderer_cairo_CairoGraphics.cairo.curveTo(c3.buffer.f[c3.fPos] - offsetX,c3.buffer.f[c3.fPos + 1] - offsetY,c3.buffer.f[c3.fPos + 2] - offsetX,c3.buffer.f[c3.fPos + 3] - offsetY,c3.buffer.f[c3.fPos + 4] - offsetX,c3.buffer.f[c3.fPos + 5] - offsetY); break; case 4: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this5 = data; var c4 = this5; hasPath = true; openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(c4.buffer.f[c4.fPos] - offsetX,c4.buffer.f[c4.fPos + 1] - offsetY,c4.buffer.f[c4.fPos + 2] - offsetX,c4.buffer.f[c4.fPos + 3] - offsetY); break; case 5: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this6 = data; var c5 = this6; hasPath = true; openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(c5.buffer.f[c5.fPos] - offsetX + c5.buffer.f[c5.fPos + 2],c5.buffer.f[c5.fPos + 1] - offsetY); openfl__$internal_renderer_cairo_CairoGraphics.cairo.arc(c5.buffer.f[c5.fPos] - offsetX,c5.buffer.f[c5.fPos + 1] - offsetY,c5.buffer.f[c5.fPos + 2],0,Math.PI * 2); break; case 6: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this7 = data; var c6 = this7; hasPath = true; x = c6.buffer.f[c6.fPos]; y = c6.buffer.f[c6.fPos + 1]; width = c6.buffer.f[c6.fPos + 2]; height = c6.buffer.f[c6.fPos + 3]; x -= offsetX; y -= offsetY; ox = width / 2 * kappa; oy = height / 2 * kappa; xe = x + width; ye = y + height; xm = x + width / 2; ym = y + height / 2; openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(x,ym); openfl__$internal_renderer_cairo_CairoGraphics.cairo.curveTo(x,ym - oy,xm - ox,y,xm,y); openfl__$internal_renderer_cairo_CairoGraphics.cairo.curveTo(xm + ox,y,xe,ym - oy,xe,ym); openfl__$internal_renderer_cairo_CairoGraphics.cairo.curveTo(xe,ym + oy,xm + ox,ye,xm,ye); openfl__$internal_renderer_cairo_CairoGraphics.cairo.curveTo(xm - ox,ye,x,ym + oy,x,ym); break; case 7: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this8 = data; var c7 = this8; hasPath = true; openfl__$internal_renderer_cairo_CairoGraphics.cairo.rectangle(c7.buffer.f[c7.fPos] - offsetX,c7.buffer.f[c7.fPos + 1] - offsetY,c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); break; case 8: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this9 = data; var c8 = this9; hasPath = true; openfl__$internal_renderer_cairo_CairoGraphics.drawRoundRect(c8.buffer.f[c8.fPos] - offsetX,c8.buffer.f[c8.fPos + 1] - offsetY,c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos]); break; case 10: var _g11 = data.prev; switch(_g11[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES; var this10 = data; var c9 = this10; var v = c9.buffer.o[c9.oPos]; var ind = c9.buffer.o[c9.oPos + 1]; var uvt = c9.buffer.o[c9.oPos + 2]; var colorFill = openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill == null; if(colorFill && uvt != null) { throw "__break__"; } var width1 = 0; var height1 = 0; var currentMatrix = openfl__$internal_renderer_cairo_CairoGraphics.graphics.__renderTransform.__toMatrix3(); if(!colorFill) { if(uvt == null) { uvt = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g31 = 0; var _g21 = v.data.get_length() / 2 | 0; while(_g31 < _g21) { var i = _g31++; var x1 = v.data.get(i * 2); uvt.data.push(x1 - offsetX / openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill.width); var x2 = v.data.get(i * 2 + 1); uvt.data.push(x2 - offsetY / openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill.height); } } var skipT = c9.buffer.o[c9.oPos + 2].data.get_length() != v.data.get_length(); var normalizedUVT = openfl__$internal_renderer_cairo_CairoGraphics.normalizeUVT(uvt,skipT); var maxUVT = normalizedUVT.max; uvt = normalizedUVT.uvt; if(maxUVT > 1) { width1 = openfl__$internal_renderer_cairo_CairoGraphics.bounds.width | 0; height1 = openfl__$internal_renderer_cairo_CairoGraphics.bounds.height | 0; } else { width1 = openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill.width; height1 = openfl__$internal_renderer_cairo_CairoGraphics.bitmapFill.height; } } var i1 = 0; var l = ind.data.get_length(); var a_; var b_; var c_; var iax; var iay; var ibx; var iby; var icx; var icy; var x11; var y1; var x21; var y2; var x3; var y3; var uvx1; var uvy1; var uvx2; var uvy2; var uvx3; var uvy3; var denom; var t1; var t2; var t3; var t4; var dx; var dy; var matrix = new lime_math_Matrix3(); openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_antialias(1); openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_source(openfl__$internal_renderer_cairo_CairoGraphics.fillPattern); while(i1 < l) { a_ = i1; b_ = i1 + 1; c_ = i1 + 2; iax = ind.data.get(a_) * 2; iay = ind.data.get(a_) * 2 + 1; ibx = ind.data.get(b_) * 2; iby = ind.data.get(b_) * 2 + 1; icx = ind.data.get(c_) * 2; icy = ind.data.get(c_) * 2 + 1; x11 = v.data.get(iax) - offsetX; y1 = v.data.get(iay) - offsetY; x21 = v.data.get(ibx) - offsetX; y2 = v.data.get(iby) - offsetY; x3 = v.data.get(icx) - offsetX; y3 = v.data.get(icy) - offsetY; var _g22 = c9.buffer.o[c9.oPos + 3]; switch(_g22) { case 0: if((x21 - x11) * (y3 - y1) - (y2 - y1) * (x3 - x11) < 0) { i1 += 3; continue; } break; case 2: if(!((x21 - x11) * (y3 - y1) - (y2 - y1) * (x3 - x11) < 0)) { i1 += 3; continue; } break; default: } if(colorFill) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.newPath(); openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(x11,y1); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(x21,y2); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(x3,y3); openfl__$internal_renderer_cairo_CairoGraphics.cairo.closePath(); if(!openfl__$internal_renderer_cairo_CairoGraphics.hitTesting) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.fillPreserve(); } i1 += 3; continue; } openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_matrix(openfl__$internal_renderer_cairo_CairoGraphics.graphics.__renderTransform.__toMatrix3()); openfl__$internal_renderer_cairo_CairoGraphics.cairo.newPath(); openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(x11,y1); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(x21,y2); openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(x3,y3); openfl__$internal_renderer_cairo_CairoGraphics.cairo.closePath(); uvx1 = uvt.data.get(iax) * width1; uvx2 = uvt.data.get(ibx) * width1; uvx3 = uvt.data.get(icx) * width1; uvy1 = uvt.data.get(iay) * height1; uvy2 = uvt.data.get(iby) * height1; uvy3 = uvt.data.get(icy) * height1; denom = uvx1 * (uvy3 - uvy2) - uvx2 * uvy3 + uvx3 * uvy2 + (uvx2 - uvx3) * uvy1; if(denom == 0) { i1 += 3; continue; } x11 *= currentMatrix.a; x21 *= currentMatrix.a; x3 *= currentMatrix.a; y1 *= currentMatrix.d; y2 *= currentMatrix.d; y3 *= currentMatrix.d; t1 = -(uvy1 * (x3 - x21) - uvy2 * x3 + uvy3 * x21 + (uvy2 - uvy3) * x11) / denom; t2 = (uvy2 * y3 + uvy1 * (y2 - y3) - uvy3 * y2 + (uvy3 - uvy2) * y1) / denom; t3 = (uvx1 * (x3 - x21) - uvx2 * x3 + uvx3 * x21 + (uvx2 - uvx3) * x11) / denom; t4 = -(uvx2 * y3 + uvx1 * (y2 - y3) - uvx3 * y2 + (uvx3 - uvx2) * y1) / denom; dx = (uvx1 * (uvy3 * x21 - uvy2 * x3) + uvy1 * (uvx2 * x3 - uvx3 * x21) + (uvx3 * uvy2 - uvx2 * uvy3) * x11) / denom; dy = (uvx1 * (uvy3 * y2 - uvy2 * y3) + uvy1 * (uvx2 * y3 - uvx3 * y2) + (uvx3 * uvy2 - uvx2 * uvy3) * y1) / denom; matrix.setTo(t1,t2,t3,t4,dx,dy); openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_matrix(matrix); if(!openfl__$internal_renderer_cairo_CairoGraphics.hitTesting) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.fill(); } i1 += 3; } break; case 12: var _g12 = data.prev; switch(_g12[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE; var this11 = data; var c10 = this11; if(stroke && openfl__$internal_renderer_cairo_CairoGraphics.hasStroke) { openfl__$internal_renderer_cairo_CairoGraphics.closePath(); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(positionX - offsetX,positionY - offsetY); openfl__$internal_renderer_cairo_CairoGraphics.strokePattern = openfl__$internal_renderer_cairo_CairoGraphics.createImagePattern(c10.buffer.o[c10.oPos],c10.buffer.o[c10.oPos + 1],c10.buffer.b[c10.bPos],c10.buffer.b[c10.bPos + 1]); openfl__$internal_renderer_cairo_CairoGraphics.hasStroke = true; break; case 13: var _g13 = data.prev; switch(_g13[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE; var this12 = data; var c11 = this12; if(stroke && openfl__$internal_renderer_cairo_CairoGraphics.hasStroke) { openfl__$internal_renderer_cairo_CairoGraphics.closePath(); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(positionX - offsetX,positionY - offsetY); openfl__$internal_renderer_cairo_CairoGraphics.strokePattern = openfl__$internal_renderer_cairo_CairoGraphics.createGradientPattern(c11.buffer.o[c11.oPos],c11.buffer.ii[c11.iiPos],c11.buffer.ff[c11.ffPos],c11.buffer.ii[c11.iiPos + 1],c11.buffer.o[c11.oPos + 1],c11.buffer.o[c11.oPos + 2],c11.buffer.o[c11.oPos + 3],c11.buffer.f[c11.fPos]); openfl__$internal_renderer_cairo_CairoGraphics.hasStroke = true; break; case 14: var _g14 = data.prev; switch(_g14[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_STYLE; var this13 = data; var c12 = this13; if(stroke && openfl__$internal_renderer_cairo_CairoGraphics.hasStroke) { openfl__$internal_renderer_cairo_CairoGraphics.closePath(true); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(positionX - offsetX,positionY - offsetY); if(c12.buffer.o[c12.oPos] == null) { openfl__$internal_renderer_cairo_CairoGraphics.hasStroke = false; } else { openfl__$internal_renderer_cairo_CairoGraphics.hasStroke = true; openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_lineWidth(c12.buffer.o[c12.oPos] > 0 ? c12.buffer.o[c12.oPos] : 1); if(c12.buffer.o[c12.oPos + 3] == null) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_lineJoin(1); } else { var _g23 = c12.buffer.o[c12.oPos + 3]; var tmp; switch(_g23) { case 0: tmp = 2; break; case 1: tmp = 0; break; default: tmp = 1; } openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_lineJoin(tmp); } if(c12.buffer.o[c12.oPos + 2] == null) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_lineCap(1); } else { var _g24 = c12.buffer.o[c12.oPos + 2]; var tmp1; switch(_g24) { case 0: tmp1 = 0; break; case 2: tmp1 = 2; break; default: tmp1 = 1; } openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_lineCap(tmp1); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_miterLimit(c12.buffer.f[c12.fPos + 1]); r = ((c12.buffer.i[c12.iPos] & 16711680) >>> 16) / 255; g = ((c12.buffer.i[c12.iPos] & 65280) >>> 8) / 255; b = (c12.buffer.i[c12.iPos] & 255) / 255; if(c12.buffer.f[c12.fPos] == 1) { openfl__$internal_renderer_cairo_CairoGraphics.strokePattern = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createRGB(r,g,b); } else { openfl__$internal_renderer_cairo_CairoGraphics.strokePattern = lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.createRGBA(r,g,b,c12.buffer.f[c12.fPos]); } } break; case 15: var _g15 = data.prev; switch(_g15[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this14 = data; var c13 = this14; hasPath = true; openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(c13.buffer.f[c13.fPos] - offsetX,c13.buffer.f[c13.fPos + 1] - offsetY); positionX = c13.buffer.f[c13.fPos]; positionY = c13.buffer.f[c13.fPos + 1]; if(positionX == startX && positionY == startY) { closeGap = true; } break; case 16: var _g16 = data.prev; switch(_g16[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this15 = data; var c14 = this15; openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(c14.buffer.f[c14.fPos] - offsetX,c14.buffer.f[c14.fPos + 1] - offsetY); positionX = c14.buffer.f[c14.fPos]; positionY = c14.buffer.f[c14.fPos + 1]; if(setStart) { closeGap = true; } startX = c14.buffer.f[c14.fPos]; startY = c14.buffer.f[c14.fPos + 1]; setStart = true; break; case 18: var _g17 = data.prev; switch(_g17[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD; var this16 = data; openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_fillRule(1); break; case 19: var _g18 = data.prev; switch(_g18[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO; var this17 = data; openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_fillRule(0); break; default: var _g19 = data.prev; switch(_g19[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = type; } } } catch( e ) { if( e != "__break__" ) throw e; } data.destroy(); if(hasPath) { if(stroke && openfl__$internal_renderer_cairo_CairoGraphics.hasStroke) { if(openfl__$internal_renderer_cairo_CairoGraphics.hasFill && closeGap) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.lineTo(startX - offsetX,startY - offsetY); openfl__$internal_renderer_cairo_CairoGraphics.closePath(false); } else if(closeGap && positionX == startX && positionY == startY) { openfl__$internal_renderer_cairo_CairoGraphics.closePath(false); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_source(openfl__$internal_renderer_cairo_CairoGraphics.strokePattern); if(!openfl__$internal_renderer_cairo_CairoGraphics.hitTesting) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.strokePreserve(); } } if(!stroke && openfl__$internal_renderer_cairo_CairoGraphics.hasFill) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.translate(-openfl__$internal_renderer_cairo_CairoGraphics.bounds.x,-openfl__$internal_renderer_cairo_CairoGraphics.bounds.y); if(openfl__$internal_renderer_cairo_CairoGraphics.fillPatternMatrix != null) { var matrix1 = openfl_geom_Matrix.__pool.get(); matrix1.copyFrom(openfl__$internal_renderer_cairo_CairoGraphics.fillPatternMatrix); matrix1.invert(); if(openfl__$internal_renderer_cairo_CairoGraphics.pendingMatrix != null) { matrix1.concat(openfl__$internal_renderer_cairo_CairoGraphics.pendingMatrix); } lime_graphics_cairo__$CairoPattern_CairoPattern_$Impl_$.set_matrix(openfl__$internal_renderer_cairo_CairoGraphics.fillPattern,matrix1.__toMatrix3()); openfl_geom_Matrix.__pool.release(matrix1); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.set_source(openfl__$internal_renderer_cairo_CairoGraphics.fillPattern); if(openfl__$internal_renderer_cairo_CairoGraphics.pendingMatrix != null) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.transform(openfl__$internal_renderer_cairo_CairoGraphics.pendingMatrix.__toMatrix3()); if(!openfl__$internal_renderer_cairo_CairoGraphics.hitTesting) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.fillPreserve(); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.transform(openfl__$internal_renderer_cairo_CairoGraphics.inversePendingMatrix.__toMatrix3()); } else if(!openfl__$internal_renderer_cairo_CairoGraphics.hitTesting) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.fillPreserve(); } openfl__$internal_renderer_cairo_CairoGraphics.cairo.translate(openfl__$internal_renderer_cairo_CairoGraphics.bounds.x,openfl__$internal_renderer_cairo_CairoGraphics.bounds.y); openfl__$internal_renderer_cairo_CairoGraphics.cairo.closePath(); } } }; openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo = function(cx,cy,x,y) { var current = null; if(!openfl__$internal_renderer_cairo_CairoGraphics.cairo.get_hasCurrentPoint()) { openfl__$internal_renderer_cairo_CairoGraphics.cairo.moveTo(cx,cy); current = new lime_math_Vector2(cx,cy); } else { current = openfl__$internal_renderer_cairo_CairoGraphics.cairo.get_currentPoint(); } var cx1 = current.x + 0.66666666666666663 * (cx - current.x); var cy1 = current.y + 0.66666666666666663 * (cy - current.y); var cx2 = x + 0.66666666666666663 * (cx - x); var cy2 = y + 0.66666666666666663 * (cy - y); openfl__$internal_renderer_cairo_CairoGraphics.cairo.curveTo(cx1,cy1,cx2,cy2,x,y); }; openfl__$internal_renderer_cairo_CairoGraphics.render = function(graphics,renderSession,parentTransform) { }; openfl__$internal_renderer_cairo_CairoGraphics.renderMask = function(graphics,renderSession) { if(graphics.__commands.get_length() != 0) { var cairo = renderSession.cairo; var positionX = 0.0; var positionY = 0.0; var offsetX = 0; var offsetY = 0; var data = new openfl__$internal_renderer_DrawCommandReader(graphics.__commands); var x; var y; var width; var height; var kappa = .5522848; var ox; var oy; var xe; var ye; var xm; var ym; var _g = 0; var _g1 = graphics.__commands.types; while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 3: var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this1 = data; var c = this1; cairo.curveTo(c.buffer.f[c.fPos] - offsetX,c.buffer.f[c.fPos + 1] - offsetY,c.buffer.f[c.fPos + 2] - offsetX,c.buffer.f[c.fPos + 3] - offsetY,c.buffer.f[c.fPos + 4] - offsetX,c.buffer.f[c.fPos + 5] - offsetY); positionX = c.buffer.f[c.fPos + 4]; positionY = c.buffer.f[c.fPos + 4]; break; case 4: var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this2 = data; var c1 = this2; openfl__$internal_renderer_cairo_CairoGraphics.quadraticCurveTo(c1.buffer.f[c1.fPos] - offsetX,c1.buffer.f[c1.fPos + 1] - offsetY,c1.buffer.f[c1.fPos + 2] - offsetX,c1.buffer.f[c1.fPos + 3] - offsetY); positionX = c1.buffer.f[c1.fPos + 2]; positionY = c1.buffer.f[c1.fPos + 3]; break; case 5: var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this3 = data; var c2 = this3; cairo.arc(c2.buffer.f[c2.fPos] - offsetX,c2.buffer.f[c2.fPos + 1] - offsetY,c2.buffer.f[c2.fPos + 2],0,Math.PI * 2); break; case 6: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this4 = data; var c3 = this4; x = c3.buffer.f[c3.fPos]; y = c3.buffer.f[c3.fPos + 1]; width = c3.buffer.f[c3.fPos + 2]; height = c3.buffer.f[c3.fPos + 3]; x -= offsetX; y -= offsetY; ox = width / 2 * kappa; oy = height / 2 * kappa; xe = x + width; ye = y + height; xm = x + width / 2; ym = y + height / 2; cairo.moveTo(x,ym); cairo.curveTo(x,ym - oy,xm - ox,y,xm,y); cairo.curveTo(xm + ox,y,xe,ym - oy,xe,ym); cairo.curveTo(xe,ym + oy,xm + ox,ye,xm,ye); cairo.curveTo(xm - ox,ye,x,ym + oy,x,ym); break; case 7: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this5 = data; var c4 = this5; cairo.rectangle(c4.buffer.f[c4.fPos] - offsetX,c4.buffer.f[c4.fPos + 1] - offsetY,c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); break; case 8: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this6 = data; var c5 = this6; openfl__$internal_renderer_cairo_CairoGraphics.drawRoundRect(c5.buffer.f[c5.fPos] - offsetX,c5.buffer.f[c5.fPos + 1] - offsetY,c5.buffer.f[c5.fPos + 2],c5.buffer.f[c5.fPos + 3],c5.buffer.f[c5.fPos + 4],c5.buffer.o[c5.oPos]); break; case 15: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this7 = data; var c6 = this7; cairo.lineTo(c6.buffer.f[c6.fPos] - offsetX,c6.buffer.f[c6.fPos + 1] - offsetY); positionX = c6.buffer.f[c6.fPos]; positionY = c6.buffer.f[c6.fPos + 1]; break; case 16: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this8 = data; var c7 = this8; cairo.moveTo(c7.buffer.f[c7.fPos] - offsetX,c7.buffer.f[c7.fPos + 1] - offsetY); positionX = c7.buffer.f[c7.fPos]; positionY = c7.buffer.f[c7.fPos + 1]; break; default: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = type; } } data.destroy(); } }; var openfl__$internal_renderer_cairo_CairoRenderer = function(stage,cairo) { openfl__$internal_renderer_AbstractRenderer.call(this,stage); }; $hxClasses["openfl._internal.renderer.cairo.CairoRenderer"] = openfl__$internal_renderer_cairo_CairoRenderer; openfl__$internal_renderer_cairo_CairoRenderer.__name__ = ["openfl","_internal","renderer","cairo","CairoRenderer"]; openfl__$internal_renderer_cairo_CairoRenderer.__super__ = openfl__$internal_renderer_AbstractRenderer; openfl__$internal_renderer_cairo_CairoRenderer.prototype = $extend(openfl__$internal_renderer_AbstractRenderer.prototype,{ cairo: null ,clear: function() { this.cairo.identityMatrix(); if(this.stage.__clearBeforeRender) { this.cairo.setSourceRGB(this.stage.__colorSplit[0],this.stage.__colorSplit[1],this.stage.__colorSplit[2]); this.cairo.paint(); } } ,render: function() { this.renderSession.allowSmoothing = this.stage.quality != 2; this.stage.__renderCairo(this.renderSession); } ,renderStage3D: function() { var _g = 0; var _g1 = this.stage.stage3Ds; while(_g < _g1.data.get_length()) { var stage3D = _g1.data.get(_g); ++_g; stage3D.__renderCairo(this.stage,this.renderSession); } } ,__class__: openfl__$internal_renderer_cairo_CairoRenderer }); var openfl__$internal_renderer_cairo_CairoTextField = function() { }; $hxClasses["openfl._internal.renderer.cairo.CairoTextField"] = openfl__$internal_renderer_cairo_CairoTextField; openfl__$internal_renderer_cairo_CairoTextField.__name__ = ["openfl","_internal","renderer","cairo","CairoTextField"]; openfl__$internal_renderer_cairo_CairoTextField.render = function(textField,renderSession,transform) { }; var openfl__$internal_renderer_canvas_CanvasBitmap = function() { }; $hxClasses["openfl._internal.renderer.canvas.CanvasBitmap"] = openfl__$internal_renderer_canvas_CanvasBitmap; openfl__$internal_renderer_canvas_CanvasBitmap.__name__ = ["openfl","_internal","renderer","canvas","CanvasBitmap"]; openfl__$internal_renderer_canvas_CanvasBitmap.render = function(bitmap,renderSession) { if(!bitmap.__renderable || bitmap.__worldAlpha <= 0) { return; } var context = renderSession.context; if(bitmap.bitmapData != null && bitmap.bitmapData.__isValid && bitmap.bitmapData.readable) { renderSession.blendModeManager.setBlendMode(bitmap.__worldBlendMode); renderSession.maskManager.pushObject(bitmap,false); lime_graphics_utils_ImageCanvasUtil.convertToCanvas(bitmap.bitmapData.image); context.globalAlpha = bitmap.__worldAlpha; var transform = bitmap.__renderTransform; var scrollRect = bitmap.__scrollRect; if(renderSession.roundPixels) { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx | 0,transform.ty | 0); } else { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); } if(!renderSession.allowSmoothing || !bitmap.smoothing) { context.mozImageSmoothingEnabled = false; context.msImageSmoothingEnabled = false; context.imageSmoothingEnabled = false; } if(scrollRect == null) { context.drawImage(bitmap.bitmapData.image.get_src(),0,0); } else { context.drawImage(bitmap.bitmapData.image.get_src(),scrollRect.x,scrollRect.y,scrollRect.width,scrollRect.height,scrollRect.x,scrollRect.y,scrollRect.width,scrollRect.height); } if(!renderSession.allowSmoothing || !bitmap.smoothing) { context.mozImageSmoothingEnabled = true; context.msImageSmoothingEnabled = true; context.imageSmoothingEnabled = true; } renderSession.maskManager.popObject(bitmap,false); } }; var openfl__$internal_renderer_canvas_CanvasBlendModeManager = function(renderSession) { openfl__$internal_renderer_AbstractBlendModeManager.call(this); this.renderSession = renderSession; }; $hxClasses["openfl._internal.renderer.canvas.CanvasBlendModeManager"] = openfl__$internal_renderer_canvas_CanvasBlendModeManager; openfl__$internal_renderer_canvas_CanvasBlendModeManager.__name__ = ["openfl","_internal","renderer","canvas","CanvasBlendModeManager"]; openfl__$internal_renderer_canvas_CanvasBlendModeManager.__super__ = openfl__$internal_renderer_AbstractBlendModeManager; openfl__$internal_renderer_canvas_CanvasBlendModeManager.prototype = $extend(openfl__$internal_renderer_AbstractBlendModeManager.prototype,{ currentBlendMode: null ,renderSession: null ,setBlendMode: function(blendMode) { if(this.currentBlendMode == blendMode) { return; } this.currentBlendMode = blendMode; switch(blendMode) { case 0: this.renderSession.context.globalCompositeOperation = "lighter"; break; case 1: this.renderSession.context.globalCompositeOperation = "destination-in"; break; case 2: this.renderSession.context.globalCompositeOperation = "darken"; break; case 3: this.renderSession.context.globalCompositeOperation = "difference"; break; case 4: this.renderSession.context.globalCompositeOperation = "destination-out"; break; case 5: this.renderSession.context.globalCompositeOperation = "hard-light"; break; case 7: this.renderSession.context.globalCompositeOperation = "source-over"; break; case 8: this.renderSession.context.globalCompositeOperation = "lighten"; break; case 9: this.renderSession.context.globalCompositeOperation = "multiply"; break; case 11: this.renderSession.context.globalCompositeOperation = "overlay"; break; case 12: this.renderSession.context.globalCompositeOperation = "screen"; break; default: this.renderSession.context.globalCompositeOperation = "source-over"; } } ,__class__: openfl__$internal_renderer_canvas_CanvasBlendModeManager }); var openfl__$internal_renderer_canvas_CanvasDisplayObject = function() { }; $hxClasses["openfl._internal.renderer.canvas.CanvasDisplayObject"] = openfl__$internal_renderer_canvas_CanvasDisplayObject; openfl__$internal_renderer_canvas_CanvasDisplayObject.__name__ = ["openfl","_internal","renderer","canvas","CanvasDisplayObject"]; openfl__$internal_renderer_canvas_CanvasDisplayObject.render = function(displayObject,renderSession) { if(displayObject.opaqueBackground == null && displayObject.__graphics == null) { return; } if(!displayObject.__renderable || displayObject.__worldAlpha <= 0) { return; } if(displayObject.opaqueBackground != null && !displayObject.__cacheBitmapRender && displayObject.get_width() > 0 && displayObject.get_height() > 0) { renderSession.blendModeManager.setBlendMode(displayObject.__worldBlendMode); renderSession.maskManager.pushObject(displayObject); var context = renderSession.context; var transform = displayObject.__renderTransform; if(renderSession.roundPixels) { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx | 0,transform.ty | 0); } else { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); } var color = displayObject.opaqueBackground; context.fillStyle = "rgb(" + (color >>> 16 & 255) + "," + (color >>> 8 & 255) + "," + (color & 255) + ")"; context.fillRect(0,0,displayObject.get_width(),displayObject.get_height()); renderSession.maskManager.popObject(displayObject); } if(displayObject.__graphics != null) { if(!(!displayObject.__renderable || displayObject.__worldAlpha <= 0)) { var graphics = displayObject.__graphics; if(graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,displayObject.__renderTransform); var bounds = graphics.__bounds; var width = graphics.__width; var height = graphics.__height; if(graphics.__canvas != null) { var context1 = renderSession.context; var scrollRect = displayObject.__scrollRect; if(width > 0 && height > 0 && (scrollRect == null || scrollRect.width > 0 && scrollRect.height > 0)) { renderSession.blendModeManager.setBlendMode(displayObject.__worldBlendMode); renderSession.maskManager.pushObject(displayObject); context1.globalAlpha = displayObject.__worldAlpha; var transform1 = graphics.__worldTransform; if(renderSession.roundPixels) { context1.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx | 0,transform1.ty | 0); } else { context1.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx,transform1.ty); } context1.drawImage(graphics.__canvas,0,0); renderSession.maskManager.popObject(displayObject); } } } } } }; var openfl__$internal_renderer_canvas_CanvasGraphics = function() { }; $hxClasses["openfl._internal.renderer.canvas.CanvasGraphics"] = openfl__$internal_renderer_canvas_CanvasGraphics; openfl__$internal_renderer_canvas_CanvasGraphics.__name__ = ["openfl","_internal","renderer","canvas","CanvasGraphics"]; openfl__$internal_renderer_canvas_CanvasGraphics.closePath = function(strokeBefore) { if(strokeBefore == null) { strokeBefore = false; } if(openfl__$internal_renderer_canvas_CanvasGraphics.context.strokeStyle == null) { return; } if(!strokeBefore) { openfl__$internal_renderer_canvas_CanvasGraphics.context.closePath(); } openfl__$internal_renderer_canvas_CanvasGraphics.context.stroke(); if(strokeBefore) { openfl__$internal_renderer_canvas_CanvasGraphics.context.closePath(); } openfl__$internal_renderer_canvas_CanvasGraphics.context.beginPath(); }; openfl__$internal_renderer_canvas_CanvasGraphics.createBitmapFill = function(bitmap,bitmapRepeat,smooth) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(bitmap.image); openfl__$internal_renderer_canvas_CanvasGraphics.setSmoothing(smooth); return openfl__$internal_renderer_canvas_CanvasGraphics.context.createPattern(bitmap.image.get_src(),bitmapRepeat ? "repeat" : "no-repeat"); }; openfl__$internal_renderer_canvas_CanvasGraphics.createGradientPattern = function(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { var gradientFill = null; var point = null; var point2 = null; var releaseMatrix = false; if(matrix == null) { matrix = openfl_geom_Matrix.__pool.get(); releaseMatrix = true; } switch(type) { case 0: point = openfl_geom_Point.__pool.get(); point.setTo(-819.2,0); var px = point.x; var py = point.y; point.x = px * matrix.a + py * matrix.c + matrix.tx; point.y = px * matrix.b + py * matrix.d + matrix.ty; point2 = openfl_geom_Point.__pool.get(); point2.setTo(819.2,0); var px1 = point2.x; var py1 = point2.y; point2.x = px1 * matrix.a + py1 * matrix.c + matrix.tx; point2.y = px1 * matrix.b + py1 * matrix.d + matrix.ty; gradientFill = openfl__$internal_renderer_canvas_CanvasGraphics.context.createLinearGradient(point.x,point.y,point2.x,point2.y); break; case 1: point = openfl_geom_Point.__pool.get(); point.setTo(1638.4,0); var px2 = point.x; var py2 = point.y; point.x = px2 * matrix.a + py2 * matrix.c + matrix.tx; point.y = px2 * matrix.b + py2 * matrix.d + matrix.ty; gradientFill = openfl__$internal_renderer_canvas_CanvasGraphics.context.createRadialGradient(matrix.tx,matrix.ty,0,matrix.tx,matrix.ty,Math.abs((point.x - matrix.tx) / 2)); break; } var rgb; var alpha; var r; var g; var b; var ratio; var _g1 = 0; var _g = colors.length; while(_g1 < _g) { var i = _g1++; rgb = colors[i]; alpha = alphas[i]; r = (rgb & 16711680) >>> 16; g = (rgb & 65280) >>> 8; b = rgb & 255; ratio = ratios[i] / 255; if(ratio < 0) { ratio = 0; } if(ratio > 1) { ratio = 1; } gradientFill.addColorStop(ratio,"rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")"); } if(point != null) { openfl_geom_Point.__pool.release(point); } if(point2 != null) { openfl_geom_Point.__pool.release(point2); } if(releaseMatrix) { openfl_geom_Matrix.__pool.release(matrix); } return gradientFill; }; openfl__$internal_renderer_canvas_CanvasGraphics.createTempPatternCanvas = function(bitmap,repeat,width,height) { var canvas = window.document.createElement("canvas"); var context = canvas.getContext("2d"); canvas.width = width; canvas.height = height; var tmp = bitmap.image.get_src(); context.fillStyle = context.createPattern(tmp,repeat ? "repeat" : "no-repeat"); context.beginPath(); context.moveTo(0,0); context.lineTo(0,height); context.lineTo(width,height); context.lineTo(width,0); context.lineTo(0,0); context.closePath(); if(!openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting) { context.fill(openfl__$internal_renderer_canvas_CanvasGraphics.windingRule); } return canvas; }; openfl__$internal_renderer_canvas_CanvasGraphics.drawRoundRect = function(x,y,width,height,ellipseWidth,ellipseHeight) { if(ellipseHeight == null) { ellipseHeight = ellipseWidth; } ellipseWidth *= 0.5; ellipseHeight *= 0.5; if(ellipseWidth > width / 2) { ellipseWidth = width / 2; } if(ellipseHeight > height / 2) { ellipseHeight = height / 2; } var xe = x + width; var ye = y + height; var cx1 = -ellipseWidth + ellipseWidth * openfl__$internal_renderer_canvas_CanvasGraphics.SIN45; var cx2 = -ellipseWidth + ellipseWidth * openfl__$internal_renderer_canvas_CanvasGraphics.TAN22; var cy1 = -ellipseHeight + ellipseHeight * openfl__$internal_renderer_canvas_CanvasGraphics.SIN45; var cy2 = -ellipseHeight + ellipseHeight * openfl__$internal_renderer_canvas_CanvasGraphics.TAN22; openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(xe,ye - ellipseHeight); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(xe,ye + cy2,xe + cx1,ye + cy1); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(xe + cx2,ye,xe - ellipseWidth,ye); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(x + ellipseWidth,ye); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(x - cx2,ye,x - cx1,ye + cy1); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(x,ye + cy2,x,ye - ellipseHeight); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(x,y + ellipseHeight); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(x,y - cy2,x - cx1,y - cy1); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(x - cx2,y,x + ellipseWidth,y); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(xe - ellipseWidth,y); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(xe + cx2,y,xe + cx1,y - cy1); openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(xe,y - cy2,xe,y + ellipseHeight); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(xe,ye - ellipseHeight); }; openfl__$internal_renderer_canvas_CanvasGraphics.endFill = function() { openfl__$internal_renderer_canvas_CanvasGraphics.context.beginPath(); openfl__$internal_renderer_canvas_CanvasGraphics.playCommands(openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands,false); openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.clear(); }; openfl__$internal_renderer_canvas_CanvasGraphics.endStroke = function() { openfl__$internal_renderer_canvas_CanvasGraphics.context.beginPath(); openfl__$internal_renderer_canvas_CanvasGraphics.playCommands(openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands,true); openfl__$internal_renderer_canvas_CanvasGraphics.context.closePath(); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.clear(); }; openfl__$internal_renderer_canvas_CanvasGraphics.hitTest = function(graphics,x,y) { openfl__$internal_renderer_canvas_CanvasGraphics.bounds = graphics.__bounds; openfl__$internal_renderer_canvas_CanvasGraphics.graphics = graphics; if(graphics.__commands.get_length() == 0 || openfl__$internal_renderer_canvas_CanvasGraphics.bounds == null || openfl__$internal_renderer_canvas_CanvasGraphics.bounds.width <= 0 || openfl__$internal_renderer_canvas_CanvasGraphics.bounds.height <= 0) { return false; } else { openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting = true; var transform = graphics.__renderTransform; var px = x * transform.a + y * transform.c + transform.tx; var py = x * transform.b + y * transform.d + transform.ty; x = px; y = py; x -= openfl__$internal_renderer_canvas_CanvasGraphics.bounds.x * transform.a + openfl__$internal_renderer_canvas_CanvasGraphics.bounds.y * transform.c + transform.tx; y -= openfl__$internal_renderer_canvas_CanvasGraphics.bounds.x * transform.b + openfl__$internal_renderer_canvas_CanvasGraphics.bounds.y * transform.d + transform.ty; var cacheCanvas = graphics.__canvas; var cacheContext = graphics.__context; graphics.__canvas = openfl__$internal_renderer_canvas_CanvasGraphics.hitTestCanvas; graphics.__context = openfl__$internal_renderer_canvas_CanvasGraphics.hitTestContext; openfl__$internal_renderer_canvas_CanvasGraphics.context = graphics.__context; openfl__$internal_renderer_canvas_CanvasGraphics.context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.clear(); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.clear(); openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = false; openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke = false; openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill = null; openfl__$internal_renderer_canvas_CanvasGraphics.bitmapRepeat = false; openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "evenodd"; var data = new openfl__$internal_renderer_DrawCommandReader(graphics.__commands); var _g = 0; var _g1 = graphics.__commands.types; while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 0:case 1:case 2: openfl__$internal_renderer_canvas_CanvasGraphics.endFill(); if(openfl__$internal_renderer_canvas_CanvasGraphics.hasFill && openfl__$internal_renderer_canvas_CanvasGraphics.context.isPointInPath(x,y,openfl__$internal_renderer_canvas_CanvasGraphics.windingRule)) { data.destroy(); graphics.__canvas = cacheCanvas; graphics.__context = cacheContext; return true; } openfl__$internal_renderer_canvas_CanvasGraphics.endStroke(); if(openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke && openfl__$internal_renderer_canvas_CanvasGraphics.context.isPointInStroke(x,y)) { data.destroy(); graphics.__canvas = cacheCanvas; graphics.__context = cacheContext; return true; } if(type == openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL) { var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL; var this1 = data; var c = this1; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.beginBitmapFill(c.buffer.o[c.oPos],c.buffer.o[c.oPos + 1],c.buffer.b[c.bPos],c.buffer.b[c.bPos + 1]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.beginBitmapFill(c.buffer.o[c.oPos],c.buffer.o[c.oPos + 1],c.buffer.b[c.bPos],c.buffer.b[c.bPos + 1]); } else if(type == openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL) { var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL; var this2 = data; var c1 = this2; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.beginGradientFill(c1.buffer.o[c1.oPos],c1.buffer.ii[c1.iiPos],c1.buffer.ff[c1.ffPos],c1.buffer.ii[c1.iiPos + 1],c1.buffer.o[c1.oPos + 1],c1.buffer.o[c1.oPos + 2],c1.buffer.o[c1.oPos + 3],c1.buffer.f[c1.fPos]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.beginGradientFill(c1.buffer.o[c1.oPos],c1.buffer.ii[c1.iiPos],c1.buffer.ff[c1.ffPos],c1.buffer.ii[c1.iiPos + 1],c1.buffer.o[c1.oPos + 1],c1.buffer.o[c1.oPos + 2],c1.buffer.o[c1.oPos + 3],c1.buffer.f[c1.fPos]); } else { var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_FILL; var this3 = data; var c2 = this3; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.beginFill(c2.buffer.i[c2.iPos],1); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.beginFill(c2.buffer.i[c2.iPos],1); } break; case 3: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this4 = data; var c3 = this4; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.cubicCurveTo(c3.buffer.f[c3.fPos],c3.buffer.f[c3.fPos + 1],c3.buffer.f[c3.fPos + 2],c3.buffer.f[c3.fPos + 3],c3.buffer.f[c3.fPos + 4],c3.buffer.f[c3.fPos + 5]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.cubicCurveTo(c3.buffer.f[c3.fPos],c3.buffer.f[c3.fPos + 1],c3.buffer.f[c3.fPos + 2],c3.buffer.f[c3.fPos + 3],c3.buffer.f[c3.fPos + 4],c3.buffer.f[c3.fPos + 5]); break; case 4: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this5 = data; var c4 = this5; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.curveTo(c4.buffer.f[c4.fPos],c4.buffer.f[c4.fPos + 1],c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.curveTo(c4.buffer.f[c4.fPos],c4.buffer.f[c4.fPos + 1],c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); break; case 5: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this6 = data; var c5 = this6; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawCircle(c5.buffer.f[c5.fPos],c5.buffer.f[c5.fPos + 1],c5.buffer.f[c5.fPos + 2]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawCircle(c5.buffer.f[c5.fPos],c5.buffer.f[c5.fPos + 1],c5.buffer.f[c5.fPos + 2]); break; case 6: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this7 = data; var c6 = this7; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawEllipse(c6.buffer.f[c6.fPos],c6.buffer.f[c6.fPos + 1],c6.buffer.f[c6.fPos + 2],c6.buffer.f[c6.fPos + 3]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawEllipse(c6.buffer.f[c6.fPos],c6.buffer.f[c6.fPos + 1],c6.buffer.f[c6.fPos + 2],c6.buffer.f[c6.fPos + 3]); break; case 7: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this8 = data; var c7 = this8; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawRect(c7.buffer.f[c7.fPos],c7.buffer.f[c7.fPos + 1],c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawRect(c7.buffer.f[c7.fPos],c7.buffer.f[c7.fPos + 1],c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); break; case 8: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this9 = data; var c8 = this9; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawRoundRect(c8.buffer.f[c8.fPos],c8.buffer.f[c8.fPos + 1],c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawRoundRect(c8.buffer.f[c8.fPos],c8.buffer.f[c8.fPos + 1],c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos]); break; case 11: var _g11 = data.prev; switch(_g11[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.END_FILL; var this10 = data; openfl__$internal_renderer_canvas_CanvasGraphics.endFill(); if(openfl__$internal_renderer_canvas_CanvasGraphics.hasFill && openfl__$internal_renderer_canvas_CanvasGraphics.context.isPointInPath(x,y,openfl__$internal_renderer_canvas_CanvasGraphics.windingRule)) { data.destroy(); graphics.__canvas = cacheCanvas; graphics.__context = cacheContext; return true; } openfl__$internal_renderer_canvas_CanvasGraphics.endStroke(); if(openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke && openfl__$internal_renderer_canvas_CanvasGraphics.context.isPointInStroke(x,y)) { data.destroy(); graphics.__canvas = cacheCanvas; graphics.__context = cacheContext; return true; } openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = false; openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill = null; break; case 12: var _g12 = data.prev; switch(_g12[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE; var this11 = data; var c9 = this11; openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineBitmapStyle(c9.buffer.o[c9.oPos],c9.buffer.o[c9.oPos + 1],c9.buffer.b[c9.bPos],c9.buffer.b[c9.bPos + 1]); break; case 13: var _g13 = data.prev; switch(_g13[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE; var this12 = data; var c10 = this12; openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineGradientStyle(c10.buffer.o[c10.oPos],c10.buffer.ii[c10.iiPos],c10.buffer.ff[c10.ffPos],c10.buffer.ii[c10.iiPos + 1],c10.buffer.o[c10.oPos + 1],c10.buffer.o[c10.oPos + 2],c10.buffer.o[c10.oPos + 3],c10.buffer.f[c10.fPos]); break; case 14: var _g14 = data.prev; switch(_g14[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_STYLE; var this13 = data; var c11 = this13; openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineStyle(c11.buffer.o[c11.oPos],c11.buffer.i[c11.iPos],1,c11.buffer.b[c11.bPos],c11.buffer.o[c11.oPos + 1],c11.buffer.o[c11.oPos + 2],c11.buffer.o[c11.oPos + 3],c11.buffer.f[c11.fPos + 1]); break; case 15: var _g15 = data.prev; switch(_g15[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this14 = data; var c12 = this14; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.lineTo(c12.buffer.f[c12.fPos],c12.buffer.f[c12.fPos + 1]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineTo(c12.buffer.f[c12.fPos],c12.buffer.f[c12.fPos + 1]); break; case 16: var _g16 = data.prev; switch(_g16[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this15 = data; var c13 = this15; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.moveTo(c13.buffer.f[c13.fPos],c13.buffer.f[c13.fPos + 1]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.moveTo(c13.buffer.f[c13.fPos],c13.buffer.f[c13.fPos + 1]); break; case 18: openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "evenodd"; break; case 19: openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "nonzero"; break; default: var _g17 = data.prev; switch(_g17[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = type; } } var hitTest = false; if(openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.get_length() > 0) { openfl__$internal_renderer_canvas_CanvasGraphics.endFill(); } if(openfl__$internal_renderer_canvas_CanvasGraphics.hasFill && openfl__$internal_renderer_canvas_CanvasGraphics.context.isPointInPath(x,y,openfl__$internal_renderer_canvas_CanvasGraphics.windingRule)) { hitTest = true; } if(openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.get_length() > 0) { openfl__$internal_renderer_canvas_CanvasGraphics.endStroke(); } if(openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke && openfl__$internal_renderer_canvas_CanvasGraphics.context.isPointInStroke(x,y)) { hitTest = true; } data.destroy(); graphics.__canvas = cacheCanvas; graphics.__context = cacheContext; return hitTest; } }; openfl__$internal_renderer_canvas_CanvasGraphics.isCCW = function(x1,y1,x2,y2,x3,y3) { return (x2 - x1) * (y3 - y1) - (y2 - y1) * (x3 - x1) < 0; }; openfl__$internal_renderer_canvas_CanvasGraphics.normalizeUVT = function(uvt,skipT) { if(skipT == null) { skipT = false; } var max = -Infinity; var tmp = -Infinity; var len = uvt.data.get_length(); var _g1 = 1; var _g = len + 1; while(_g1 < _g) { var t = _g1++; if(skipT && t % 3 == 0) { continue; } tmp = uvt.data.get(t - 1); if(max < tmp) { max = tmp; } } if(!skipT) { return { max : max, uvt : uvt}; } var result = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g11 = 1; var _g2 = len + 1; while(_g11 < _g2) { var t1 = _g11++; if(skipT && t1 % 3 == 0) { continue; } var x = uvt.data.get(t1 - 1); result.data.push(x); } return { max : max, uvt : result}; }; openfl__$internal_renderer_canvas_CanvasGraphics.playCommands = function(commands,stroke) { if(stroke == null) { stroke = false; } openfl__$internal_renderer_canvas_CanvasGraphics.bounds = openfl__$internal_renderer_canvas_CanvasGraphics.graphics.__bounds; var offsetX = openfl__$internal_renderer_canvas_CanvasGraphics.bounds.x; var offsetY = openfl__$internal_renderer_canvas_CanvasGraphics.bounds.y; var positionX = 0.0; var positionY = 0.0; var closeGap = false; var startX = 0.0; var startY = 0.0; var setStart = false; openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "evenodd"; openfl__$internal_renderer_canvas_CanvasGraphics.setSmoothing(true); var data = new openfl__$internal_renderer_DrawCommandReader(commands); var x; var y; var width; var height; var kappa = .5522848; var ox; var oy; var xe; var ye; var xm; var ym; var r; var g; var b; var optimizationUsed; var canOptimizeMatrix; var st; var sr; var sb; var sl; var stl = null; var sbr = null; var _g = 0; var _g1 = commands.types; try { while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 0: var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL; var this1 = data; var c = this1; openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill = c.buffer.o[c.oPos]; openfl__$internal_renderer_canvas_CanvasGraphics.context.fillStyle = openfl__$internal_renderer_canvas_CanvasGraphics.createBitmapFill(c.buffer.o[c.oPos],true,c.buffer.b[c.bPos + 1]); openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = true; if(c.buffer.o[c.oPos + 1] != null) { openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix = c.buffer.o[c.oPos + 1]; openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix = c.buffer.o[c.oPos + 1].clone(); openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix.invert(); } else { openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix = null; openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix = null; } break; case 1: var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_FILL; var this2 = data; var c1 = this2; if(c1.buffer.f[c1.fPos] < 0.005) { openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = false; } else { if(c1.buffer.f[c1.fPos] == 1) { var tmp = StringTools.hex(c1.buffer.i[c1.iPos] & 16777215,6); openfl__$internal_renderer_canvas_CanvasGraphics.context.fillStyle = "#" + tmp; } else { r = (c1.buffer.i[c1.iPos] & 16711680) >>> 16; g = (c1.buffer.i[c1.iPos] & 65280) >>> 8; b = c1.buffer.i[c1.iPos] & 255; openfl__$internal_renderer_canvas_CanvasGraphics.context.fillStyle = "rgba(" + r + ", " + g + ", " + b + ", " + c1.buffer.f[c1.fPos] + ")"; } openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill = null; openfl__$internal_renderer_canvas_CanvasGraphics.setSmoothing(true); openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = true; } break; case 2: var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL; var this3 = data; var c2 = this3; openfl__$internal_renderer_canvas_CanvasGraphics.context.fillStyle = openfl__$internal_renderer_canvas_CanvasGraphics.createGradientPattern(c2.buffer.o[c2.oPos],c2.buffer.ii[c2.iiPos],c2.buffer.ff[c2.ffPos],c2.buffer.ii[c2.iiPos + 1],c2.buffer.o[c2.oPos + 1],c2.buffer.o[c2.oPos + 2],c2.buffer.o[c2.oPos + 3],c2.buffer.f[c2.fPos]); openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill = null; openfl__$internal_renderer_canvas_CanvasGraphics.setSmoothing(true); openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = true; break; case 3: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this4 = data; var c3 = this4; openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(c3.buffer.f[c3.fPos] - offsetX,c3.buffer.f[c3.fPos + 1] - offsetY,c3.buffer.f[c3.fPos + 2] - offsetX,c3.buffer.f[c3.fPos + 3] - offsetY,c3.buffer.f[c3.fPos + 4] - offsetX,c3.buffer.f[c3.fPos + 5] - offsetY); break; case 4: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this5 = data; var c4 = this5; openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(c4.buffer.f[c4.fPos] - offsetX,c4.buffer.f[c4.fPos + 1] - offsetY,c4.buffer.f[c4.fPos + 2] - offsetX,c4.buffer.f[c4.fPos + 3] - offsetY); break; case 5: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this6 = data; var c5 = this6; openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(c5.buffer.f[c5.fPos] - offsetX + c5.buffer.f[c5.fPos + 2],c5.buffer.f[c5.fPos + 1] - offsetY); openfl__$internal_renderer_canvas_CanvasGraphics.context.arc(c5.buffer.f[c5.fPos] - offsetX,c5.buffer.f[c5.fPos + 1] - offsetY,c5.buffer.f[c5.fPos + 2],0,Math.PI * 2,true); break; case 6: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this7 = data; var c6 = this7; x = c6.buffer.f[c6.fPos]; y = c6.buffer.f[c6.fPos + 1]; width = c6.buffer.f[c6.fPos + 2]; height = c6.buffer.f[c6.fPos + 3]; x -= offsetX; y -= offsetY; ox = width / 2 * kappa; oy = height / 2 * kappa; xe = x + width; ye = y + height; xm = x + width / 2; ym = y + height / 2; openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(x,ym); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(x,ym - oy,xm - ox,y,xm,y); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(xm + ox,y,xe,ym - oy,xe,ym); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(xe,ym + oy,xm + ox,ye,xm,ye); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(xm - ox,ye,x,ym + oy,x,ym); break; case 7: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this8 = data; var c7 = this8; optimizationUsed = false; if(openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill != null && !openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting) { st = 0; sr = 0; sb = 0; sl = 0; canOptimizeMatrix = true; if(openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix != null) { if(openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.b != 0 || openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.c != 0) { canOptimizeMatrix = false; } else { if(stl == null) { stl = openfl_geom_Point.__pool.get(); } if(sbr == null) { sbr = openfl_geom_Point.__pool.get(); } stl.setTo(c7.buffer.f[c7.fPos],c7.buffer.f[c7.fPos + 1]); var _this = openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix; var px = stl.x; var py = stl.y; stl.x = px * _this.a + py * _this.c + _this.tx; stl.y = px * _this.b + py * _this.d + _this.ty; sbr.setTo(c7.buffer.f[c7.fPos] + c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 1] + c7.buffer.f[c7.fPos + 3]); var _this1 = openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix; var px1 = sbr.x; var py1 = sbr.y; sbr.x = px1 * _this1.a + py1 * _this1.c + _this1.tx; sbr.y = px1 * _this1.b + py1 * _this1.d + _this1.ty; st = stl.y; sl = stl.x; sb = sbr.y; sr = sbr.x; } } else { st = c7.buffer.f[c7.fPos + 1]; sl = c7.buffer.f[c7.fPos]; sb = c7.buffer.f[c7.fPos + 1] + c7.buffer.f[c7.fPos + 3]; sr = c7.buffer.f[c7.fPos] + c7.buffer.f[c7.fPos + 2]; } if(canOptimizeMatrix && st >= 0 && sl >= 0 && sr <= openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill.width && sb <= openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill.height) { optimizationUsed = true; if(!openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting) { openfl__$internal_renderer_canvas_CanvasGraphics.context.drawImage(openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill.image.get_src(),sl,st,sr - sl,sb - st,c7.buffer.f[c7.fPos] - offsetX,c7.buffer.f[c7.fPos + 1] - offsetY,c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); } } } if(!optimizationUsed) { openfl__$internal_renderer_canvas_CanvasGraphics.context.rect(c7.buffer.f[c7.fPos] - offsetX,c7.buffer.f[c7.fPos + 1] - offsetY,c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); } break; case 8: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this9 = data; var c8 = this9; openfl__$internal_renderer_canvas_CanvasGraphics.drawRoundRect(c8.buffer.f[c8.fPos] - offsetX,c8.buffer.f[c8.fPos + 1] - offsetY,c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos]); break; case 10: var _g11 = data.prev; switch(_g11[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES; var this10 = data; var c9 = this10; var v = c9.buffer.o[c9.oPos]; var ind = c9.buffer.o[c9.oPos + 1]; var uvt = c9.buffer.o[c9.oPos + 2]; var pattern = null; var colorFill = openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill == null; if(colorFill && uvt != null) { throw "__break__"; } if(!colorFill) { if(uvt == null) { uvt = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g31 = 0; var _g21 = v.data.get_length() / 2 | 0; while(_g31 < _g21) { var i = _g31++; var x1 = v.data.get(i * 2); uvt.data.push(x1 - offsetX / openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill.width); var x2 = v.data.get(i * 2 + 1); uvt.data.push(x2 - offsetY / openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill.height); } } var skipT = uvt.data.get_length() != v.data.get_length(); var normalizedUVT = openfl__$internal_renderer_canvas_CanvasGraphics.normalizeUVT(uvt,skipT); var maxUVT = normalizedUVT.max; uvt = normalizedUVT.uvt; if(maxUVT > 1) { pattern = openfl__$internal_renderer_canvas_CanvasGraphics.createTempPatternCanvas(openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill,openfl__$internal_renderer_canvas_CanvasGraphics.bitmapRepeat,openfl__$internal_renderer_canvas_CanvasGraphics.bounds.width | 0,openfl__$internal_renderer_canvas_CanvasGraphics.bounds.height | 0); } else { pattern = openfl__$internal_renderer_canvas_CanvasGraphics.createTempPatternCanvas(openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill,openfl__$internal_renderer_canvas_CanvasGraphics.bitmapRepeat,openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill.width,openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill.height); } } var i1 = 0; var l = ind.data.get_length(); var a_; var b_; var c_; var iax; var iay; var ibx; var iby; var icx; var icy; var x11; var y1; var x21; var y2; var x3; var y3; var uvx1; var uvy1; var uvx2; var uvy2; var uvx3; var uvy3; var denom; var t1; var t2; var t3; var t4; var dx; var dy; while(i1 < l) { a_ = i1; b_ = i1 + 1; c_ = i1 + 2; iax = ind.data.get(a_) * 2; iay = ind.data.get(a_) * 2 + 1; ibx = ind.data.get(b_) * 2; iby = ind.data.get(b_) * 2 + 1; icx = ind.data.get(c_) * 2; icy = ind.data.get(c_) * 2 + 1; x11 = v.data.get(iax) - offsetX; y1 = v.data.get(iay) - offsetY; x21 = v.data.get(ibx) - offsetX; y2 = v.data.get(iby) - offsetY; x3 = v.data.get(icx) - offsetX; y3 = v.data.get(icy) - offsetY; var _g22 = c9.buffer.o[c9.oPos + 3]; switch(_g22) { case 0: if((x21 - x11) * (y3 - y1) - (y2 - y1) * (x3 - x11) < 0) { i1 += 3; continue; } break; case 2: if(!((x21 - x11) * (y3 - y1) - (y2 - y1) * (x3 - x11) < 0)) { i1 += 3; continue; } break; default: } if(colorFill) { openfl__$internal_renderer_canvas_CanvasGraphics.context.beginPath(); openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(x11,y1); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(x21,y2); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(x3,y3); openfl__$internal_renderer_canvas_CanvasGraphics.context.closePath(); if(!openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting) { openfl__$internal_renderer_canvas_CanvasGraphics.context.fill(openfl__$internal_renderer_canvas_CanvasGraphics.windingRule); } i1 += 3; continue; } openfl__$internal_renderer_canvas_CanvasGraphics.context.save(); openfl__$internal_renderer_canvas_CanvasGraphics.context.beginPath(); openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(x11,y1); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(x21,y2); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(x3,y3); openfl__$internal_renderer_canvas_CanvasGraphics.context.closePath(); openfl__$internal_renderer_canvas_CanvasGraphics.context.clip(); uvx1 = uvt.data.get(iax) * pattern.width; uvx2 = uvt.data.get(ibx) * pattern.width; uvx3 = uvt.data.get(icx) * pattern.width; uvy1 = uvt.data.get(iay) * pattern.height; uvy2 = uvt.data.get(iby) * pattern.height; uvy3 = uvt.data.get(icy) * pattern.height; denom = uvx1 * (uvy3 - uvy2) - uvx2 * uvy3 + uvx3 * uvy2 + (uvx2 - uvx3) * uvy1; if(denom == 0) { i1 += 3; continue; } t1 = -(uvy1 * (x3 - x21) - uvy2 * x3 + uvy3 * x21 + (uvy2 - uvy3) * x11) / denom; t2 = (uvy2 * y3 + uvy1 * (y2 - y3) - uvy3 * y2 + (uvy3 - uvy2) * y1) / denom; t3 = (uvx1 * (x3 - x21) - uvx2 * x3 + uvx3 * x21 + (uvx2 - uvx3) * x11) / denom; t4 = -(uvx2 * y3 + uvx1 * (y2 - y3) - uvx3 * y2 + (uvx3 - uvx2) * y1) / denom; dx = (uvx1 * (uvy3 * x21 - uvy2 * x3) + uvy1 * (uvx2 * x3 - uvx3 * x21) + (uvx3 * uvy2 - uvx2 * uvy3) * x11) / denom; dy = (uvx1 * (uvy3 * y2 - uvy2 * y3) + uvy1 * (uvx2 * y3 - uvx3 * y2) + (uvx3 * uvy2 - uvx2 * uvy3) * y1) / denom; openfl__$internal_renderer_canvas_CanvasGraphics.context.transform(t1,t2,t3,t4,dx,dy); openfl__$internal_renderer_canvas_CanvasGraphics.context.drawImage(pattern,0,0); openfl__$internal_renderer_canvas_CanvasGraphics.context.restore(); i1 += 3; } break; case 12: var _g12 = data.prev; switch(_g12[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE; var this11 = data; var c10 = this11; if(stroke && openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke) { openfl__$internal_renderer_canvas_CanvasGraphics.closePath(); } openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(positionX - offsetX,positionY - offsetY); openfl__$internal_renderer_canvas_CanvasGraphics.context.strokeStyle = openfl__$internal_renderer_canvas_CanvasGraphics.createBitmapFill(c10.buffer.o[c10.oPos],c10.buffer.b[c10.bPos],c10.buffer.b[c10.bPos + 1]); openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke = true; break; case 13: var _g13 = data.prev; switch(_g13[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE; var this12 = data; var c11 = this12; if(stroke && openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke) { openfl__$internal_renderer_canvas_CanvasGraphics.closePath(); } openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(positionX - offsetX,positionY - offsetY); openfl__$internal_renderer_canvas_CanvasGraphics.context.strokeStyle = openfl__$internal_renderer_canvas_CanvasGraphics.createGradientPattern(c11.buffer.o[c11.oPos],c11.buffer.ii[c11.iiPos],c11.buffer.ff[c11.ffPos],c11.buffer.ii[c11.iiPos + 1],c11.buffer.o[c11.oPos + 1],c11.buffer.o[c11.oPos + 2],c11.buffer.o[c11.oPos + 3],c11.buffer.f[c11.fPos]); openfl__$internal_renderer_canvas_CanvasGraphics.setSmoothing(true); openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke = true; break; case 14: var _g14 = data.prev; switch(_g14[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_STYLE; var this13 = data; var c12 = this13; if(stroke && openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke) { openfl__$internal_renderer_canvas_CanvasGraphics.closePath(true); } openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(positionX - offsetX,positionY - offsetY); if(c12.buffer.o[c12.oPos] == null) { openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke = false; } else { openfl__$internal_renderer_canvas_CanvasGraphics.context.lineWidth = c12.buffer.o[c12.oPos] > 0 ? c12.buffer.o[c12.oPos] : 1; var tmp1 = c12.buffer.o[c12.oPos + 3] == null ? "round" : openfl_display__$JointStyle_JointStyle_$Impl_$.toString(c12.buffer.o[c12.oPos + 3]).toLowerCase(); openfl__$internal_renderer_canvas_CanvasGraphics.context.lineJoin = tmp1; var tmp2; if(c12.buffer.o[c12.oPos + 2] == null) { tmp2 = "round"; } else { var _g23 = c12.buffer.o[c12.oPos + 2]; if(_g23 == 0) { tmp2 = "butt"; } else { tmp2 = openfl_display__$CapsStyle_CapsStyle_$Impl_$.toString(c12.buffer.o[c12.oPos + 2]).toLowerCase(); } } openfl__$internal_renderer_canvas_CanvasGraphics.context.lineCap = tmp2; openfl__$internal_renderer_canvas_CanvasGraphics.context.miterLimit = c12.buffer.f[c12.fPos + 1]; if(c12.buffer.f[c12.fPos] == 1) { var tmp3 = StringTools.hex(c12.buffer.i[c12.iPos] & 16777215,6); openfl__$internal_renderer_canvas_CanvasGraphics.context.strokeStyle = "#" + tmp3; } else { r = (c12.buffer.i[c12.iPos] & 16711680) >>> 16; g = (c12.buffer.i[c12.iPos] & 65280) >>> 8; b = c12.buffer.i[c12.iPos] & 255; openfl__$internal_renderer_canvas_CanvasGraphics.context.strokeStyle = "rgba(" + r + ", " + g + ", " + b + ", " + c12.buffer.f[c12.fPos] + ")"; } openfl__$internal_renderer_canvas_CanvasGraphics.setSmoothing(true); openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke = true; } break; case 15: var _g15 = data.prev; switch(_g15[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this14 = data; var c13 = this14; openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(c13.buffer.f[c13.fPos] - offsetX,c13.buffer.f[c13.fPos + 1] - offsetY); positionX = c13.buffer.f[c13.fPos]; positionY = c13.buffer.f[c13.fPos + 1]; if(positionX == startX && positionY == startY) { closeGap = true; } break; case 16: var _g16 = data.prev; switch(_g16[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this15 = data; var c14 = this15; openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(c14.buffer.f[c14.fPos] - offsetX,c14.buffer.f[c14.fPos + 1] - offsetY); positionX = c14.buffer.f[c14.fPos]; positionY = c14.buffer.f[c14.fPos + 1]; if(setStart) { closeGap = true; } startX = c14.buffer.f[c14.fPos]; startY = c14.buffer.f[c14.fPos + 1]; setStart = true; break; case 18: openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "evenodd"; break; case 19: openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "nonzero"; break; default: var _g17 = data.prev; switch(_g17[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = type; } } } catch( e ) { if( e != "__break__" ) throw e; } if(stl != null) { openfl_geom_Point.__pool.release(stl); } if(sbr != null) { openfl_geom_Point.__pool.release(sbr); } data.destroy(); if(stroke && openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke) { if(openfl__$internal_renderer_canvas_CanvasGraphics.hasFill && closeGap) { openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(startX - offsetX,startY - offsetY); openfl__$internal_renderer_canvas_CanvasGraphics.closePath(false); } else if(closeGap && positionX == startX && positionY == startY) { openfl__$internal_renderer_canvas_CanvasGraphics.closePath(false); } if(!openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting) { openfl__$internal_renderer_canvas_CanvasGraphics.context.stroke(); } } if(!stroke) { if(openfl__$internal_renderer_canvas_CanvasGraphics.hasFill || openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill != null) { openfl__$internal_renderer_canvas_CanvasGraphics.context.translate(-openfl__$internal_renderer_canvas_CanvasGraphics.bounds.x,-openfl__$internal_renderer_canvas_CanvasGraphics.bounds.y); if(openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix != null) { openfl__$internal_renderer_canvas_CanvasGraphics.context.transform(openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.a,openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.b,openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.c,openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.d,openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.tx,openfl__$internal_renderer_canvas_CanvasGraphics.pendingMatrix.ty); if(!openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting) { openfl__$internal_renderer_canvas_CanvasGraphics.context.fill(openfl__$internal_renderer_canvas_CanvasGraphics.windingRule); } openfl__$internal_renderer_canvas_CanvasGraphics.context.transform(openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix.a,openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix.b,openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix.c,openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix.d,openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix.tx,openfl__$internal_renderer_canvas_CanvasGraphics.inversePendingMatrix.ty); } else if(!openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting) { openfl__$internal_renderer_canvas_CanvasGraphics.context.fill(openfl__$internal_renderer_canvas_CanvasGraphics.windingRule); } openfl__$internal_renderer_canvas_CanvasGraphics.context.translate(openfl__$internal_renderer_canvas_CanvasGraphics.bounds.x,openfl__$internal_renderer_canvas_CanvasGraphics.bounds.y); openfl__$internal_renderer_canvas_CanvasGraphics.context.closePath(); } } }; openfl__$internal_renderer_canvas_CanvasGraphics.render = function(graphics,renderSession,parentTransform) { graphics.__update(); if(graphics.__dirty) { openfl__$internal_renderer_canvas_CanvasGraphics.hitTesting = false; openfl__$internal_renderer_canvas_CanvasGraphics.graphics = graphics; openfl__$internal_renderer_canvas_CanvasGraphics.allowSmoothing = renderSession.allowSmoothing; openfl__$internal_renderer_canvas_CanvasGraphics.bounds = graphics.__bounds; var width = graphics.__width; var height = graphics.__height; if(!graphics.__visible || graphics.__commands.get_length() == 0 || openfl__$internal_renderer_canvas_CanvasGraphics.bounds == null || width < 1 || height < 1) { graphics.__canvas = null; graphics.__context = null; graphics.__bitmap = null; } else { if(graphics.__canvas == null) { graphics.__canvas = window.document.createElement("canvas"); graphics.__context = graphics.__canvas.getContext("2d"); } openfl__$internal_renderer_canvas_CanvasGraphics.context = graphics.__context; var transform = graphics.__renderTransform; var canvas = graphics.__canvas; var scale = openfl__$internal_renderer_canvas_CanvasRenderer.scale; var scaledWidth = width * scale | 0; var scaledHeight = height * scale | 0; if(canvas.width == scaledWidth && canvas.height == scaledHeight) { openfl__$internal_renderer_canvas_CanvasGraphics.context.clearRect(0,0,scaledWidth,scaledHeight); } else { canvas.width = width; canvas.height = height; } openfl__$internal_renderer_canvas_CanvasGraphics.context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.clear(); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.clear(); openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = false; openfl__$internal_renderer_canvas_CanvasGraphics.hasStroke = false; openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill = null; openfl__$internal_renderer_canvas_CanvasGraphics.bitmapRepeat = false; var hasLineStyle = false; var initStrokeX = 0.0; var initStrokeY = 0.0; openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "evenodd"; var data = new openfl__$internal_renderer_DrawCommandReader(graphics.__commands); var _g = 0; var _g1 = graphics.__commands.types; while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 0:case 1:case 2: openfl__$internal_renderer_canvas_CanvasGraphics.endFill(); openfl__$internal_renderer_canvas_CanvasGraphics.endStroke(); if(type == openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL) { var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL; var this1 = data; var c = this1; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.beginBitmapFill(c.buffer.o[c.oPos],c.buffer.o[c.oPos + 1],c.buffer.b[c.bPos],c.buffer.b[c.bPos + 1]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.beginBitmapFill(c.buffer.o[c.oPos],c.buffer.o[c.oPos + 1],c.buffer.b[c.bPos],c.buffer.b[c.bPos + 1]); } else if(type == openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL) { var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL; var this2 = data; var c1 = this2; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.beginGradientFill(c1.buffer.o[c1.oPos],c1.buffer.ii[c1.iiPos],c1.buffer.ff[c1.ffPos],c1.buffer.ii[c1.iiPos + 1],c1.buffer.o[c1.oPos + 1],c1.buffer.o[c1.oPos + 2],c1.buffer.o[c1.oPos + 3],c1.buffer.f[c1.fPos]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.beginGradientFill(c1.buffer.o[c1.oPos],c1.buffer.ii[c1.iiPos],c1.buffer.ff[c1.ffPos],c1.buffer.ii[c1.iiPos + 1],c1.buffer.o[c1.oPos + 1],c1.buffer.o[c1.oPos + 2],c1.buffer.o[c1.oPos + 3],c1.buffer.f[c1.fPos]); } else { var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_FILL; var this3 = data; var c2 = this3; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.beginFill(c2.buffer.i[c2.iPos],c2.buffer.f[c2.fPos]); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.beginFill(c2.buffer.i[c2.iPos],c2.buffer.f[c2.fPos]); } break; case 3: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this4 = data; var c3 = this4; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.cubicCurveTo(c3.buffer.f[c3.fPos],c3.buffer.f[c3.fPos + 1],c3.buffer.f[c3.fPos + 2],c3.buffer.f[c3.fPos + 3],c3.buffer.f[c3.fPos + 4],c3.buffer.f[c3.fPos + 5]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.cubicCurveTo(c3.buffer.f[c3.fPos],c3.buffer.f[c3.fPos + 1],c3.buffer.f[c3.fPos + 2],c3.buffer.f[c3.fPos + 3],c3.buffer.f[c3.fPos + 4],c3.buffer.f[c3.fPos + 5]); } else { initStrokeX = c3.buffer.f[c3.fPos + 4]; initStrokeY = c3.buffer.f[c3.fPos + 5]; } break; case 4: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this5 = data; var c4 = this5; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.curveTo(c4.buffer.f[c4.fPos],c4.buffer.f[c4.fPos + 1],c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.curveTo(c4.buffer.f[c4.fPos],c4.buffer.f[c4.fPos + 1],c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); } else { initStrokeX = c4.buffer.f[c4.fPos + 2]; initStrokeY = c4.buffer.f[c4.fPos + 3]; } break; case 5: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this6 = data; var c5 = this6; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawCircle(c5.buffer.f[c5.fPos],c5.buffer.f[c5.fPos + 1],c5.buffer.f[c5.fPos + 2]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawCircle(c5.buffer.f[c5.fPos],c5.buffer.f[c5.fPos + 1],c5.buffer.f[c5.fPos + 2]); } break; case 6: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this7 = data; var c6 = this7; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawEllipse(c6.buffer.f[c6.fPos],c6.buffer.f[c6.fPos + 1],c6.buffer.f[c6.fPos + 2],c6.buffer.f[c6.fPos + 3]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawEllipse(c6.buffer.f[c6.fPos],c6.buffer.f[c6.fPos + 1],c6.buffer.f[c6.fPos + 2],c6.buffer.f[c6.fPos + 3]); } break; case 7: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this8 = data; var c7 = this8; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawRect(c7.buffer.f[c7.fPos],c7.buffer.f[c7.fPos + 1],c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawRect(c7.buffer.f[c7.fPos],c7.buffer.f[c7.fPos + 1],c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); } break; case 8: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this9 = data; var c8 = this9; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawRoundRect(c8.buffer.f[c8.fPos],c8.buffer.f[c8.fPos + 1],c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.drawRoundRect(c8.buffer.f[c8.fPos],c8.buffer.f[c8.fPos + 1],c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos]); } break; case 10: var _g11 = data.prev; switch(_g11[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_TRIANGLES; var this10 = data; var c9 = this10; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.drawTriangles(c9.buffer.o[c9.oPos],c9.buffer.o[c9.oPos + 1],c9.buffer.o[c9.oPos + 2],c9.buffer.o[c9.oPos + 3]); break; case 11: var _g12 = data.prev; switch(_g12[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.END_FILL; var this11 = data; openfl__$internal_renderer_canvas_CanvasGraphics.endFill(); openfl__$internal_renderer_canvas_CanvasGraphics.endStroke(); openfl__$internal_renderer_canvas_CanvasGraphics.hasFill = false; hasLineStyle = false; openfl__$internal_renderer_canvas_CanvasGraphics.bitmapFill = null; initStrokeX = 0; initStrokeY = 0; break; case 12: var _g13 = data.prev; switch(_g13[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE; var this12 = data; var c10 = this12; if(!hasLineStyle && (initStrokeX != 0 || initStrokeY != 0)) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.moveTo(initStrokeX,initStrokeY); initStrokeX = 0; initStrokeY = 0; } hasLineStyle = true; openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineBitmapStyle(c10.buffer.o[c10.oPos],c10.buffer.o[c10.oPos + 1],c10.buffer.b[c10.bPos],c10.buffer.b[c10.bPos + 1]); break; case 13: var _g14 = data.prev; switch(_g14[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE; var this13 = data; var c11 = this13; if(!hasLineStyle && (initStrokeX != 0 || initStrokeY != 0)) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.moveTo(initStrokeX,initStrokeY); initStrokeX = 0; initStrokeY = 0; } hasLineStyle = true; openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineGradientStyle(c11.buffer.o[c11.oPos],c11.buffer.ii[c11.iiPos],c11.buffer.ff[c11.ffPos],c11.buffer.ii[c11.iiPos + 1],c11.buffer.o[c11.oPos + 1],c11.buffer.o[c11.oPos + 2],c11.buffer.o[c11.oPos + 3],c11.buffer.f[c11.fPos]); break; case 14: var _g15 = data.prev; switch(_g15[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_STYLE; var this14 = data; var c12 = this14; if(!hasLineStyle && c12.buffer.o[c12.oPos] != null) { if(initStrokeX != 0 || initStrokeY != 0) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.moveTo(initStrokeX,initStrokeY); initStrokeX = 0; initStrokeY = 0; } } hasLineStyle = c12.buffer.o[c12.oPos] != null; openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineStyle(c12.buffer.o[c12.oPos],c12.buffer.i[c12.iPos],c12.buffer.f[c12.fPos],c12.buffer.b[c12.bPos],c12.buffer.o[c12.oPos + 1],c12.buffer.o[c12.oPos + 2],c12.buffer.o[c12.oPos + 3],c12.buffer.f[c12.fPos + 1]); break; case 15: var _g16 = data.prev; switch(_g16[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this15 = data; var c13 = this15; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.lineTo(c13.buffer.f[c13.fPos],c13.buffer.f[c13.fPos + 1]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.lineTo(c13.buffer.f[c13.fPos],c13.buffer.f[c13.fPos + 1]); } else { initStrokeX = c13.buffer.f[c13.fPos]; initStrokeY = c13.buffer.f[c13.fPos + 1]; } break; case 16: var _g17 = data.prev; switch(_g17[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this16 = data; var c14 = this16; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.moveTo(c14.buffer.f[c14.fPos],c14.buffer.f[c14.fPos + 1]); if(hasLineStyle) { openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.moveTo(c14.buffer.f[c14.fPos],c14.buffer.f[c14.fPos + 1]); } else { initStrokeX = c14.buffer.f[c14.fPos]; initStrokeY = c14.buffer.f[c14.fPos + 1]; } break; case 18: var _g18 = data.prev; switch(_g18[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.WINDING_EVEN_ODD; var this17 = data; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.windingEvenOdd(); openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "evenodd"; break; case 19: var _g19 = data.prev; switch(_g19[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.WINDING_NON_ZERO; var this18 = data; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.windingNonZero(); openfl__$internal_renderer_canvas_CanvasGraphics.windingRule = "nonzero"; break; default: var _g20 = data.prev; switch(_g20[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = type; } } if(openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands.get_length() > 0) { openfl__$internal_renderer_canvas_CanvasGraphics.endFill(); } if(openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands.get_length() > 0) { openfl__$internal_renderer_canvas_CanvasGraphics.endStroke(); } data.destroy(); graphics.__bitmap = openfl_display_BitmapData.fromCanvas(graphics.__canvas); } graphics.set___dirty(false); } }; openfl__$internal_renderer_canvas_CanvasGraphics.renderMask = function(graphics,renderSession) { if(graphics.__commands.get_length() != 0) { openfl__$internal_renderer_canvas_CanvasGraphics.context = renderSession.context; var positionX = 0.0; var positionY = 0.0; var offsetX = 0; var offsetY = 0; var data = new openfl__$internal_renderer_DrawCommandReader(graphics.__commands); var x; var y; var width; var height; var kappa = .5522848; var ox; var oy; var xe; var ye; var xm; var ym; var _g = 0; var _g1 = graphics.__commands.types; while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 3: var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this1 = data; var c = this1; openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(c.buffer.f[c.fPos] - offsetX,c.buffer.f[c.fPos + 1] - offsetY,c.buffer.f[c.fPos + 2] - offsetX,c.buffer.f[c.fPos + 3] - offsetY,c.buffer.f[c.fPos + 4] - offsetX,c.buffer.f[c.fPos + 5] - offsetY); positionX = c.buffer.f[c.fPos + 4]; positionY = c.buffer.f[c.fPos + 5]; break; case 4: var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this2 = data; var c1 = this2; openfl__$internal_renderer_canvas_CanvasGraphics.context.quadraticCurveTo(c1.buffer.f[c1.fPos] - offsetX,c1.buffer.f[c1.fPos + 1] - offsetY,c1.buffer.f[c1.fPos + 2] - offsetX,c1.buffer.f[c1.fPos + 3] - offsetY); positionX = c1.buffer.f[c1.fPos + 2]; positionY = c1.buffer.f[c1.fPos + 3]; break; case 5: var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this3 = data; var c2 = this3; openfl__$internal_renderer_canvas_CanvasGraphics.context.arc(c2.buffer.f[c2.fPos] - offsetX,c2.buffer.f[c2.fPos + 1] - offsetY,c2.buffer.f[c2.fPos + 2],0,Math.PI * 2,true); break; case 6: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this4 = data; var c3 = this4; x = c3.buffer.f[c3.fPos]; y = c3.buffer.f[c3.fPos + 1]; width = c3.buffer.f[c3.fPos + 2]; height = c3.buffer.f[c3.fPos + 3]; x -= offsetX; y -= offsetY; ox = width / 2 * kappa; oy = height / 2 * kappa; xe = x + width; ye = y + height; xm = x + width / 2; ym = y + height / 2; openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(x,ym); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(x,ym - oy,xm - ox,y,xm,y); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(xm + ox,y,xe,ym - oy,xe,ym); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(xe,ym + oy,xm + ox,ye,xm,ye); openfl__$internal_renderer_canvas_CanvasGraphics.context.bezierCurveTo(xm - ox,ye,x,ym + oy,x,ym); break; case 7: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this5 = data; var c4 = this5; openfl__$internal_renderer_canvas_CanvasGraphics.context.rect(c4.buffer.f[c4.fPos] - offsetX,c4.buffer.f[c4.fPos + 1] - offsetY,c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); break; case 8: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this6 = data; var c5 = this6; openfl__$internal_renderer_canvas_CanvasGraphics.drawRoundRect(c5.buffer.f[c5.fPos] - offsetX,c5.buffer.f[c5.fPos + 1] - offsetY,c5.buffer.f[c5.fPos + 2],c5.buffer.f[c5.fPos + 3],c5.buffer.f[c5.fPos + 4],c5.buffer.o[c5.oPos]); break; case 15: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this7 = data; var c6 = this7; openfl__$internal_renderer_canvas_CanvasGraphics.context.lineTo(c6.buffer.f[c6.fPos] - offsetX,c6.buffer.f[c6.fPos + 1] - offsetY); positionX = c6.buffer.f[c6.fPos]; positionY = c6.buffer.f[c6.fPos + 1]; break; case 16: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this8 = data; var c7 = this8; openfl__$internal_renderer_canvas_CanvasGraphics.context.moveTo(c7.buffer.f[c7.fPos] - offsetX,c7.buffer.f[c7.fPos + 1] - offsetY); positionX = c7.buffer.f[c7.fPos]; positionY = c7.buffer.f[c7.fPos + 1]; break; default: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = type; } } data.destroy(); } }; openfl__$internal_renderer_canvas_CanvasGraphics.setSmoothing = function(smooth) { if(!openfl__$internal_renderer_canvas_CanvasGraphics.allowSmoothing) { smooth = false; } if(openfl__$internal_renderer_canvas_CanvasGraphics.context.imageSmoothingEnabled != smooth) { openfl__$internal_renderer_canvas_CanvasGraphics.context.mozImageSmoothingEnabled = smooth; openfl__$internal_renderer_canvas_CanvasGraphics.context.msImageSmoothingEnabled = smooth; openfl__$internal_renderer_canvas_CanvasGraphics.context.imageSmoothingEnabled = smooth; } }; var openfl__$internal_renderer_canvas_CanvasMaskManager = function(renderSession) { openfl__$internal_renderer_AbstractMaskManager.call(this,renderSession); }; $hxClasses["openfl._internal.renderer.canvas.CanvasMaskManager"] = openfl__$internal_renderer_canvas_CanvasMaskManager; openfl__$internal_renderer_canvas_CanvasMaskManager.__name__ = ["openfl","_internal","renderer","canvas","CanvasMaskManager"]; openfl__$internal_renderer_canvas_CanvasMaskManager.__super__ = openfl__$internal_renderer_AbstractMaskManager; openfl__$internal_renderer_canvas_CanvasMaskManager.prototype = $extend(openfl__$internal_renderer_AbstractMaskManager.prototype,{ pushMask: function(mask) { var context = this.renderSession.context; context.save(); var transform = mask.__getRenderTransform(); context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); context.beginPath(); mask.__renderCanvasMask(this.renderSession); context.clip(); } ,pushObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } if(handleScrollRect && object.__scrollRect != null) { this.pushRect(object.__scrollRect,object.__renderTransform); } if(object.__mask != null) { this.pushMask(object.__mask); } } ,pushRect: function(rect,transform) { var context = this.renderSession.context; context.save(); context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); context.beginPath(); context.rect(rect.x,rect.y,rect.width,rect.height); context.clip(); } ,popMask: function() { this.renderSession.context.restore(); } ,popObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } if(object.__mask != null) { this.popMask(); } if(handleScrollRect && object.__scrollRect != null) { this.popRect(); } } ,popRect: function() { this.renderSession.context.restore(); } ,__class__: openfl__$internal_renderer_canvas_CanvasMaskManager }); var openfl__$internal_renderer_canvas_CanvasRenderer = function(stage,context) { openfl__$internal_renderer_AbstractRenderer.call(this,stage); this.context = context; this.renderSession = new openfl__$internal_renderer_RenderSession(); this.renderSession.clearRenderDirty = true; this.renderSession.context = context; this.renderSession.renderer = this; this.renderSession.blendModeManager = new openfl__$internal_renderer_canvas_CanvasBlendModeManager(this.renderSession); this.renderSession.maskManager = new openfl__$internal_renderer_canvas_CanvasMaskManager(this.renderSession); var config = stage.window.config; if(config != null && Object.prototype.hasOwnProperty.call(config,"allowHighDPI") && config.allowHighDPI) { openfl__$internal_renderer_canvas_CanvasRenderer.scale = window.devicePixelRatio || 1; } }; $hxClasses["openfl._internal.renderer.canvas.CanvasRenderer"] = openfl__$internal_renderer_canvas_CanvasRenderer; openfl__$internal_renderer_canvas_CanvasRenderer.__name__ = ["openfl","_internal","renderer","canvas","CanvasRenderer"]; openfl__$internal_renderer_canvas_CanvasRenderer.__super__ = openfl__$internal_renderer_AbstractRenderer; openfl__$internal_renderer_canvas_CanvasRenderer.prototype = $extend(openfl__$internal_renderer_AbstractRenderer.prototype,{ context: null ,clear: function() { this.renderSession.blendModeManager.setBlendMode(10); this.context.setTransform(1,0,0,1,0,0); this.context.globalAlpha = 1; if(!this.stage.__transparent && this.stage.__clearBeforeRender) { this.context.fillStyle = this.stage.__colorString; this.context.fillRect(0,0,this.stage.stageWidth * this.stage.window.__scale,this.stage.stageHeight * this.stage.window.__scale); } else if(this.stage.__transparent && this.stage.__clearBeforeRender) { this.context.clearRect(0,0,this.stage.stageWidth * this.stage.window.__scale,this.stage.stageHeight * this.stage.window.__scale); } } ,render: function() { this.renderSession.allowSmoothing = this.stage.quality != 2; this.stage.__renderCanvas(this.renderSession); } ,renderStage3D: function() { var _g = 0; var _g1 = this.stage.stage3Ds; while(_g < _g1.data.get_length()) { var stage3D = _g1.data.get(_g); ++_g; stage3D.__renderCanvas(this.stage,this.renderSession); } } ,__class__: openfl__$internal_renderer_canvas_CanvasRenderer }); var openfl__$internal_renderer_canvas_CanvasShape = function() { }; $hxClasses["openfl._internal.renderer.canvas.CanvasShape"] = openfl__$internal_renderer_canvas_CanvasShape; openfl__$internal_renderer_canvas_CanvasShape.__name__ = ["openfl","_internal","renderer","canvas","CanvasShape"]; openfl__$internal_renderer_canvas_CanvasShape.render = function(shape,renderSession) { if(!shape.__renderable || shape.__worldAlpha <= 0) { return; } var graphics = shape.__graphics; if(graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,shape.__renderTransform); var bounds = graphics.__bounds; var width = graphics.__width; var height = graphics.__height; if(graphics.__canvas != null) { var context = renderSession.context; var scrollRect = shape.__scrollRect; if(width > 0 && height > 0 && (scrollRect == null || scrollRect.width > 0 && scrollRect.height > 0)) { renderSession.blendModeManager.setBlendMode(shape.__worldBlendMode); renderSession.maskManager.pushObject(shape); context.globalAlpha = shape.__worldAlpha; var transform = graphics.__worldTransform; if(renderSession.roundPixels) { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx | 0,transform.ty | 0); } else { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); } context.drawImage(graphics.__canvas,0,0); renderSession.maskManager.popObject(shape); } } } }; var openfl__$internal_renderer_canvas_CanvasTextField = function() { }; $hxClasses["openfl._internal.renderer.canvas.CanvasTextField"] = openfl__$internal_renderer_canvas_CanvasTextField; openfl__$internal_renderer_canvas_CanvasTextField.__name__ = ["openfl","_internal","renderer","canvas","CanvasTextField"]; openfl__$internal_renderer_canvas_CanvasTextField.disableInputMode = function(textEngine) { }; openfl__$internal_renderer_canvas_CanvasTextField.enableInputMode = function(textEngine) { if(textEngine.__hiddenInput == null) { textEngine.__hiddenInput = window.document.createElement("input"); var hiddenInput = textEngine.__hiddenInput; hiddenInput.type = "text"; hiddenInput.style.position = "absolute"; hiddenInput.style.opacity = "0"; hiddenInput.style.color = "transparent"; hiddenInput.style.left = "0px"; hiddenInput.style.top = "50%"; if(new EReg("(iPad|iPhone|iPod).*OS 8_","gi").match(window.navigator.userAgent)) { hiddenInput.style.fontSize = "0px"; hiddenInput.style.width = "0px"; hiddenInput.style.height = "0px"; } else { hiddenInput.style.width = "1px"; hiddenInput.style.height = "1px"; } hiddenInput.style.pointerEvents = "none"; hiddenInput.style.zIndex = "-10000000"; if(textEngine.maxChars > 0) { hiddenInput.maxLength = textEngine.maxChars; } window.document.body.appendChild(hiddenInput); hiddenInput.value = textEngine.text; } }; openfl__$internal_renderer_canvas_CanvasTextField.render = function(textField,renderSession,transform) { var textEngine = textField.__textEngine; var bounds = textEngine.bounds; var graphics = textField.__graphics; if(textField.__dirty) { textField.__updateLayout(); if(graphics.__bounds == null) { graphics.__bounds = new openfl_geom_Rectangle(); } graphics.__bounds.copyFrom(bounds); } graphics.__update(); if(textField.__dirty || graphics.__dirty) { var width = graphics.__width; var height = graphics.__height; if((textEngine.text == null || lime_text__$UTF8String_UTF8String_$Impl_$.equals(textEngine.text,"")) && !textEngine.background && !textEngine.border && !textEngine.__hasFocus && (textEngine.type != 1 || !textEngine.selectable) || (textEngine.width <= 0 || textEngine.height <= 0) && textEngine.autoSize != 2) { textField.__graphics.__canvas = null; textField.__graphics.__context = null; textField.__graphics.__bitmap = null; textField.__graphics.set___dirty(false); textField.__dirty = false; } else { if(textField.__graphics.__canvas == null) { textField.__graphics.__canvas = window.document.createElement("canvas"); textField.__graphics.__context = textField.__graphics.__canvas.getContext("2d"); } openfl__$internal_renderer_canvas_CanvasTextField.context = graphics.__context; var transform1 = graphics.__renderTransform; graphics.__canvas.width = width; graphics.__canvas.height = height; openfl__$internal_renderer_canvas_CanvasTextField.context.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx,transform1.ty); if(openfl__$internal_renderer_canvas_CanvasTextField.clearRect == null) { openfl__$internal_renderer_canvas_CanvasTextField.clearRect = (typeof navigator !== 'undefined' && typeof navigator['isCocoonJS'] !== 'undefined'); } if(openfl__$internal_renderer_canvas_CanvasTextField.clearRect) { openfl__$internal_renderer_canvas_CanvasTextField.context.clearRect(0,0,graphics.__canvas.width,graphics.__canvas.height); } if(textEngine.text != null && textEngine.text != "" || textEngine.__hasFocus) { var text = textEngine.text; if(!renderSession.allowSmoothing || textEngine.antiAliasType == 0 && textEngine.sharpness == 400) { graphics.__context.mozImageSmoothingEnabled = false; graphics.__context.msImageSmoothingEnabled = false; graphics.__context.imageSmoothingEnabled = false; } else { graphics.__context.mozImageSmoothingEnabled = true; graphics.__context.msImageSmoothingEnabled = true; graphics.__context.imageSmoothingEnabled = true; } if(textEngine.border || textEngine.background) { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0.5,0.5,bounds.width - 1,bounds.height - 1); if(textEngine.background) { var tmp = StringTools.hex(textEngine.backgroundColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp; openfl__$internal_renderer_canvas_CanvasTextField.context.fill(); } if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; var tmp1 = StringTools.hex(textEngine.borderColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp1; openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); } } openfl__$internal_renderer_canvas_CanvasTextField.context.textBaseline = "top"; openfl__$internal_renderer_canvas_CanvasTextField.context.textAlign = "start"; var scrollX = -textField.get_scrollH(); var scrollY = 0.0; var _g1 = 0; var _g = textField.get_scrollV() - 1; while(_g1 < _g) { var i = _g1++; scrollY -= textEngine.lineHeights.data.get(i); } var advance; var offsetY = 0.0; var applyHack = new EReg("(iPad|iPhone|iPod|Firefox)","g").match(window.navigator.userAgent); var _g2 = 0; var _g11 = textEngine.layoutGroups; while(_g2 < _g11.data.get_length()) { var group = _g11.data.get(_g2); ++_g2; if(group.lineIndex < textField.get_scrollV() - 1) { continue; } if(group.lineIndex > textField.get_scrollV() + textEngine.bottomScrollV - 2) { break; } openfl__$internal_renderer_canvas_CanvasTextField.context.font = openfl__$internal_text_TextEngine.getFont(group.format); var tmp2 = StringTools.hex(group.format.color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp2; if(applyHack) { offsetY = group.format.size * 0.185; } if(textField.__filters != null && textField.__filters.length > 0) { if(js_Boot.__instanceof(textField.__filters[0],openfl_filters_GlowFilter)) { var glowFilter = textField.__filters[0]; var cacheAlpha = openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha; openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha = cacheAlpha * glowFilter.alpha; var tmp3 = StringTools.hex(glowFilter.color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp3; openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = Math.max(glowFilter.blurX,glowFilter.blurY); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,group.startIndex,group.endIndex),group.offsetX + scrollX,group.offsetY + offsetY + scrollY); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = null; openfl__$internal_renderer_canvas_CanvasTextField.context.globalAlpha = cacheAlpha; } } openfl__$internal_renderer_canvas_CanvasTextField.context.fillText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,group.startIndex,group.endIndex),group.offsetX + scrollX,group.offsetY + offsetY + scrollY); if(textField.__caretIndex > -1 && textEngine.selectable) { if(textField.__selectionIndex == textField.__caretIndex) { if(textField.__showCursor && group.startIndex <= textField.__caretIndex && group.endIndex >= textField.__caretIndex) { advance = 0.0; var _g3 = 0; var _g21 = textField.__caretIndex - group.startIndex; while(_g3 < _g21) { var i1 = _g3++; if(group.positions.length <= i1) { break; } advance += group.positions[i1]; } openfl__$internal_renderer_canvas_CanvasTextField.context.fillRect(group.offsetX + advance,group.offsetY,1,group.height); } } else if(group.startIndex <= textField.__caretIndex && group.endIndex >= textField.__caretIndex || group.startIndex <= textField.__selectionIndex && group.endIndex >= textField.__selectionIndex || group.startIndex > textField.__caretIndex && group.endIndex < textField.__selectionIndex || group.startIndex > textField.__selectionIndex && group.endIndex < textField.__caretIndex) { var selectionStart = Math.min(textField.__selectionIndex,textField.__caretIndex) | 0; var selectionEnd = Math.max(textField.__selectionIndex,textField.__caretIndex) | 0; if(group.startIndex > selectionStart) { selectionStart = group.startIndex; } if(group.endIndex < selectionEnd) { selectionEnd = group.endIndex; } var start; var end; start = textField.getCharBoundaries(selectionStart); if(selectionEnd >= lime_text__$UTF8String_UTF8String_$Impl_$.get_length(textEngine.text)) { end = textField.getCharBoundaries(lime_text__$UTF8String_UTF8String_$Impl_$.get_length(textEngine.text) - 1); end.x += end.width + 2; } else { end = textField.getCharBoundaries(selectionEnd); } if(start != null && end != null) { openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#000000"; openfl__$internal_renderer_canvas_CanvasTextField.context.fillRect(start.x,start.y,end.x - start.x,group.height); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#FFFFFF"; openfl__$internal_renderer_canvas_CanvasTextField.context.fillText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text,selectionStart,selectionEnd),scrollX + start.x,group.offsetY + offsetY + scrollY); } } } } } else { if(textEngine.border || textEngine.background) { if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0.5,0.5,bounds.width - 1,bounds.height - 1); } else { openfl__$internal_renderer_canvas_CanvasTextField.context.rect(0,0,bounds.width,bounds.height); } if(textEngine.background) { var tmp4 = StringTools.hex(textEngine.backgroundColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.fillStyle = "#" + tmp4; openfl__$internal_renderer_canvas_CanvasTextField.context.fill(); } if(textEngine.border) { openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; openfl__$internal_renderer_canvas_CanvasTextField.context.lineCap = "square"; var tmp5 = StringTools.hex(textEngine.borderColor & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp5; openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); } } if(textField.__caretIndex > -1 && textEngine.selectable && textField.__showCursor) { var scrollX1 = -textField.get_scrollH(); var scrollY1 = 0.0; var _g12 = 0; var _g4 = textField.get_scrollV() - 1; while(_g12 < _g4) { var i2 = _g12++; scrollY1 -= textEngine.lineHeights.data.get(i2); } openfl__$internal_renderer_canvas_CanvasTextField.context.beginPath(); var tmp6 = StringTools.hex(textField.get_defaultTextFormat().color & 16777215,6); openfl__$internal_renderer_canvas_CanvasTextField.context.strokeStyle = "#" + tmp6; openfl__$internal_renderer_canvas_CanvasTextField.context.moveTo(scrollX1 + 2.5,scrollY1 + 2.5); openfl__$internal_renderer_canvas_CanvasTextField.context.lineWidth = 1; openfl__$internal_renderer_canvas_CanvasTextField.context.lineTo(scrollX1 + 2.5,scrollY1 + openfl__$internal_text_TextEngine.getFormatHeight(textField.get_defaultTextFormat()) - 1); openfl__$internal_renderer_canvas_CanvasTextField.context.stroke(); openfl__$internal_renderer_canvas_CanvasTextField.context.closePath(); } } graphics.__bitmap = openfl_display_BitmapData.fromCanvas(textField.__graphics.__canvas); graphics.__visible = true; textField.__dirty = false; graphics.set___dirty(false); } } }; var openfl__$internal_renderer_console_ConsoleRenderer = function(stage,ctx) { openfl__$internal_renderer_AbstractRenderer.call(this,stage); throw new js__$Boot_HaxeError("ConsoleRenderer not supported"); }; $hxClasses["openfl._internal.renderer.console.ConsoleRenderer"] = openfl__$internal_renderer_console_ConsoleRenderer; openfl__$internal_renderer_console_ConsoleRenderer.__name__ = ["openfl","_internal","renderer","console","ConsoleRenderer"]; openfl__$internal_renderer_console_ConsoleRenderer.__super__ = openfl__$internal_renderer_AbstractRenderer; openfl__$internal_renderer_console_ConsoleRenderer.prototype = $extend(openfl__$internal_renderer_AbstractRenderer.prototype,{ render: function() { } ,__class__: openfl__$internal_renderer_console_ConsoleRenderer }); var openfl__$internal_renderer_dom_DOMBitmap = function() { }; $hxClasses["openfl._internal.renderer.dom.DOMBitmap"] = openfl__$internal_renderer_dom_DOMBitmap; openfl__$internal_renderer_dom_DOMBitmap.__name__ = ["openfl","_internal","renderer","dom","DOMBitmap"]; openfl__$internal_renderer_dom_DOMBitmap.clear = function(bitmap,renderSession) { if(bitmap.__image != null) { renderSession.element.removeChild(bitmap.__image); bitmap.__image = null; bitmap.__style = null; } if(bitmap.__canvas != null) { renderSession.element.removeChild(bitmap.__canvas); bitmap.__canvas = null; bitmap.__style = null; } }; openfl__$internal_renderer_dom_DOMBitmap.render = function(bitmap,renderSession) { if(bitmap.stage != null && bitmap.__worldVisible && bitmap.__renderable && bitmap.bitmapData != null && bitmap.bitmapData.__isValid && bitmap.bitmapData.readable) { renderSession.maskManager.pushObject(bitmap); if(bitmap.bitmapData.image.buffer.__srcImage != null) { openfl__$internal_renderer_dom_DOMBitmap.renderImage(bitmap,renderSession); } else { openfl__$internal_renderer_dom_DOMBitmap.renderCanvas(bitmap,renderSession); } renderSession.maskManager.popObject(bitmap); } else { openfl__$internal_renderer_dom_DOMBitmap.clear(bitmap,renderSession); } }; openfl__$internal_renderer_dom_DOMBitmap.renderCanvas = function(bitmap,renderSession) { if(bitmap.__image != null) { renderSession.element.removeChild(bitmap.__image); bitmap.__image = null; } if(bitmap.__canvas == null) { bitmap.__canvas = window.document.createElement("canvas"); bitmap.__context = bitmap.__canvas.getContext("2d"); bitmap.__imageVersion = -1; if(!renderSession.allowSmoothing || !bitmap.smoothing) { bitmap.__context.mozImageSmoothingEnabled = false; bitmap.__context.msImageSmoothingEnabled = false; bitmap.__context.imageSmoothingEnabled = false; } openfl__$internal_renderer_dom_DOMRenderer.initializeElement(bitmap,bitmap.__canvas,renderSession); } if(bitmap.__imageVersion != bitmap.bitmapData.image.version) { lime_graphics_utils_ImageCanvasUtil.convertToCanvas(bitmap.bitmapData.image); bitmap.__canvas.width = bitmap.bitmapData.width + 1; bitmap.__canvas.width = bitmap.bitmapData.width; bitmap.__canvas.height = bitmap.bitmapData.height; bitmap.__context.drawImage(bitmap.bitmapData.image.buffer.__srcCanvas,0,0); bitmap.__imageVersion = bitmap.bitmapData.image.version; } openfl__$internal_renderer_dom_DOMRenderer.updateClip(bitmap,renderSession); openfl__$internal_renderer_dom_DOMRenderer.applyStyle(bitmap,renderSession,true,true,true); }; openfl__$internal_renderer_dom_DOMBitmap.renderImage = function(bitmap,renderSession) { if(bitmap.__canvas != null) { renderSession.element.removeChild(bitmap.__canvas); bitmap.__canvas = null; } if(bitmap.__image == null) { bitmap.__image = window.document.createElement("img"); bitmap.__image.crossOrigin = "Anonymous"; bitmap.__image.src = bitmap.bitmapData.image.buffer.__srcImage.src; openfl__$internal_renderer_dom_DOMRenderer.initializeElement(bitmap,bitmap.__image,renderSession); } openfl__$internal_renderer_dom_DOMRenderer.updateClip(bitmap,renderSession); openfl__$internal_renderer_dom_DOMRenderer.applyStyle(bitmap,renderSession,true,true,true); }; var openfl__$internal_renderer_dom_DOMDisplayObject = function() { }; $hxClasses["openfl._internal.renderer.dom.DOMDisplayObject"] = openfl__$internal_renderer_dom_DOMDisplayObject; openfl__$internal_renderer_dom_DOMDisplayObject.__name__ = ["openfl","_internal","renderer","dom","DOMDisplayObject"]; openfl__$internal_renderer_dom_DOMDisplayObject.clear = function(displayObject,renderSession) { openfl__$internal_renderer_dom_DOMShape.clear(displayObject,renderSession); }; openfl__$internal_renderer_dom_DOMDisplayObject.render = function(displayObject,renderSession) { var tmp = displayObject.opaqueBackground != null && !displayObject.__cacheBitmapRender && displayObject.get_width() > 0 && displayObject.get_height() > 0; var graphics = displayObject.__graphics; if(displayObject.stage != null && displayObject.__worldVisible && displayObject.__renderable && graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,displayObject.__renderTransform); if(graphics.__dirty || displayObject.__worldAlphaChanged || displayObject.__canvas != graphics.__canvas) { if(graphics.__canvas != null) { if(displayObject.__canvas != graphics.__canvas) { if(displayObject.__canvas != null) { renderSession.element.removeChild(displayObject.__canvas); } displayObject.__canvas = graphics.__canvas; displayObject.__context = graphics.__context; openfl__$internal_renderer_dom_DOMRenderer.initializeElement(displayObject,displayObject.__canvas,renderSession); } } else { openfl__$internal_renderer_dom_DOMShape.clear(displayObject,renderSession); } } if(displayObject.__canvas != null) { renderSession.maskManager.pushObject(displayObject); var cacheTransform = displayObject.__renderTransform; displayObject.__renderTransform = graphics.__worldTransform; if(graphics.__transformDirty) { graphics.__transformDirty = false; displayObject.__renderTransformChanged = true; } openfl__$internal_renderer_dom_DOMRenderer.updateClip(displayObject,renderSession); openfl__$internal_renderer_dom_DOMRenderer.applyStyle(displayObject,renderSession,true,true,true); displayObject.__renderTransform = cacheTransform; renderSession.maskManager.popObject(displayObject); } } else { openfl__$internal_renderer_dom_DOMShape.clear(displayObject,renderSession); } }; var openfl__$internal_renderer_dom_DOMMaskManager = function(renderSession) { openfl__$internal_renderer_AbstractMaskManager.call(this,renderSession); this.clipRects = []; this.numClipRects = 0; }; $hxClasses["openfl._internal.renderer.dom.DOMMaskManager"] = openfl__$internal_renderer_dom_DOMMaskManager; openfl__$internal_renderer_dom_DOMMaskManager.__name__ = ["openfl","_internal","renderer","dom","DOMMaskManager"]; openfl__$internal_renderer_dom_DOMMaskManager.__super__ = openfl__$internal_renderer_AbstractMaskManager; openfl__$internal_renderer_dom_DOMMaskManager.prototype = $extend(openfl__$internal_renderer_AbstractMaskManager.prototype,{ currentClipRect: null ,clipRects: null ,numClipRects: null ,pushMask: function(mask) { this.pushRect(mask.getBounds(mask),mask.__getRenderTransform()); } ,pushObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } if(handleScrollRect && object.__scrollRect != null) { this.pushRect(object.__scrollRect,object.__renderTransform); } if(object.__mask != null) { this.pushMask(object.__mask); } } ,pushRect: function(rect,transform) { if(this.numClipRects == this.clipRects.length) { this.clipRects[this.numClipRects] = new openfl_geom_Rectangle(); } var clipRect = this.clipRects[this.numClipRects]; rect.__transform(clipRect,transform); if(this.numClipRects > 0) { var parentClipRect = this.clipRects[this.numClipRects - 1]; clipRect.__contract(parentClipRect.x,parentClipRect.y,parentClipRect.width,parentClipRect.height); } if(clipRect.height < 0) { clipRect.height = 0; } if(clipRect.width < 0) { clipRect.width = 0; } this.currentClipRect = clipRect; this.numClipRects++; } ,popMask: function() { this.popRect(); } ,popObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } if(object.__mask != null) { this.popMask(); } if(handleScrollRect && object.__scrollRect != null) { this.popRect(); } } ,popRect: function() { if(this.numClipRects > 0) { this.numClipRects--; if(this.numClipRects > 0) { this.currentClipRect = this.clipRects[this.numClipRects - 1]; } else { this.currentClipRect = null; } } } ,updateClip: function(displayObject) { if(this.currentClipRect == null) { displayObject.__worldClipChanged = displayObject.__worldClip != null; displayObject.__worldClip = null; } else { if(displayObject.__worldClip == null) { displayObject.__worldClip = new openfl_geom_Rectangle(); } var clip = openfl_geom_Rectangle.__pool.get(); var matrix = openfl_geom_Matrix.__pool.get(); matrix.copyFrom(displayObject.__renderTransform); matrix.invert(); this.currentClipRect.__transform(clip,matrix); if(clip.equals(displayObject.__worldClip)) { displayObject.__worldClipChanged = false; } else { displayObject.__worldClip.copyFrom(clip); displayObject.__worldClipChanged = true; } openfl_geom_Rectangle.__pool.release(clip); openfl_geom_Matrix.__pool.release(matrix); } } ,__class__: openfl__$internal_renderer_dom_DOMMaskManager }); var openfl__$internal_renderer_dom_DOMRenderer = function(stage,element) { openfl__$internal_renderer_AbstractRenderer.call(this,stage); }; $hxClasses["openfl._internal.renderer.dom.DOMRenderer"] = openfl__$internal_renderer_dom_DOMRenderer; openfl__$internal_renderer_dom_DOMRenderer.__name__ = ["openfl","_internal","renderer","dom","DOMRenderer"]; openfl__$internal_renderer_dom_DOMRenderer.applyStyle = function(displayObject,renderSession,setTransform,setAlpha,setClip) { var style = displayObject.__style; if(setTransform && displayObject.__renderTransformChanged) { var _this = displayObject.__renderTransform; style.setProperty(renderSession.transformProperty,renderSession.roundPixels ? "matrix3d(" + _this.a + ", " + _this.b + ", 0, 0, " + _this.c + ", " + _this.d + ", 0, 0, 0, 0, 1, 0, " + (_this.tx | 0) + ", " + (_this.ty | 0) + ", 0, 1)" : "matrix3d(" + _this.a + ", " + _this.b + ", 0, 0, " + _this.c + ", " + _this.d + ", 0, 0, 0, 0, 1, 0, " + _this.tx + ", " + _this.ty + ", 0, 1)",null); } if(displayObject.__worldZ != ++renderSession.z) { displayObject.__worldZ = renderSession.z; style.setProperty("z-index",displayObject.__worldZ == null ? "null" : "" + displayObject.__worldZ,null); } if(setAlpha && displayObject.__worldAlphaChanged) { if(displayObject.__worldAlpha < 1) { style.setProperty("opacity",displayObject.__worldAlpha == null ? "null" : "" + displayObject.__worldAlpha,null); } else { style.removeProperty("opacity"); } } if(setClip && displayObject.__worldClipChanged) { if(displayObject.__worldClip == null) { style.removeProperty("clip"); } else { var clip = displayObject.__worldClip; style.setProperty("clip","rect(" + clip.y + "px, " + clip.get_right() + "px, " + clip.get_bottom() + "px, " + clip.x + "px)",null); } } }; openfl__$internal_renderer_dom_DOMRenderer.initializeElement = function(displayObject,element,renderSession) { var style = displayObject.__style = element.style; style.setProperty("position","absolute",null); style.setProperty("top","0",null); style.setProperty("left","0",null); style.setProperty(renderSession.transformOriginProperty,"0 0 0",null); renderSession.element.appendChild(element); displayObject.__worldAlphaChanged = true; displayObject.__renderTransformChanged = true; displayObject.__worldVisibleChanged = true; displayObject.__worldClipChanged = true; displayObject.__worldClip = null; displayObject.__worldZ = -1; }; openfl__$internal_renderer_dom_DOMRenderer.updateClip = function(displayObject,renderSession) { var maskManager = renderSession.maskManager; maskManager.updateClip(displayObject); }; openfl__$internal_renderer_dom_DOMRenderer.__super__ = openfl__$internal_renderer_AbstractRenderer; openfl__$internal_renderer_dom_DOMRenderer.prototype = $extend(openfl__$internal_renderer_AbstractRenderer.prototype,{ element: null ,render: function() { this.renderSession.allowSmoothing = this.stage.quality != 2; if(!this.stage.__transparent) { this.element.style.background = this.stage.__colorString; } else { this.element.style.background = "none"; } this.renderSession.z = 1; this.stage.__renderDOM(this.renderSession); } ,renderStage3D: function() { var _g = 0; var _g1 = this.stage.stage3Ds; while(_g < _g1.data.get_length()) { var stage3D = _g1.data.get(_g); ++_g; stage3D.__renderDOM(this.stage,this.renderSession); } } ,__class__: openfl__$internal_renderer_dom_DOMRenderer }); var openfl__$internal_renderer_dom_DOMShape = function() { }; $hxClasses["openfl._internal.renderer.dom.DOMShape"] = openfl__$internal_renderer_dom_DOMShape; openfl__$internal_renderer_dom_DOMShape.__name__ = ["openfl","_internal","renderer","dom","DOMShape"]; openfl__$internal_renderer_dom_DOMShape.clear = function(shape,renderSession) { if(shape.__canvas != null) { renderSession.element.removeChild(shape.__canvas); shape.__canvas = null; shape.__style = null; } }; openfl__$internal_renderer_dom_DOMShape.render = function(shape,renderSession) { var graphics = shape.__graphics; if(shape.stage != null && shape.__worldVisible && shape.__renderable && graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,shape.__renderTransform); if(graphics.__dirty || shape.__worldAlphaChanged || shape.__canvas != graphics.__canvas) { if(graphics.__canvas != null) { if(shape.__canvas != graphics.__canvas) { if(shape.__canvas != null) { renderSession.element.removeChild(shape.__canvas); } shape.__canvas = graphics.__canvas; shape.__context = graphics.__context; openfl__$internal_renderer_dom_DOMRenderer.initializeElement(shape,shape.__canvas,renderSession); } } else { openfl__$internal_renderer_dom_DOMShape.clear(shape,renderSession); } } if(shape.__canvas != null) { renderSession.maskManager.pushObject(shape); var cacheTransform = shape.__renderTransform; shape.__renderTransform = graphics.__worldTransform; if(graphics.__transformDirty) { graphics.__transformDirty = false; shape.__renderTransformChanged = true; } openfl__$internal_renderer_dom_DOMRenderer.updateClip(shape,renderSession); openfl__$internal_renderer_dom_DOMRenderer.applyStyle(shape,renderSession,true,true,true); shape.__renderTransform = cacheTransform; renderSession.maskManager.popObject(shape); } } else { openfl__$internal_renderer_dom_DOMShape.clear(shape,renderSession); } }; var openfl__$internal_renderer_dom_DOMTextField = function() { }; $hxClasses["openfl._internal.renderer.dom.DOMTextField"] = openfl__$internal_renderer_dom_DOMTextField; openfl__$internal_renderer_dom_DOMTextField.__name__ = ["openfl","_internal","renderer","dom","DOMTextField"]; openfl__$internal_renderer_dom_DOMTextField.clear = function(textField,renderSession) { if(textField.__div != null) { renderSession.element.removeChild(textField.__div); textField.__div = null; textField.__style = null; } }; openfl__$internal_renderer_dom_DOMTextField.measureText = function(textField) { var textEngine = textField.__textEngine; var div = textField.__div; if(div == null) { div = window.document.createElement("div"); var _this_r = new RegExp("\n","g".split("u").join("")); div.innerHTML = textEngine.text.replace(_this_r,"
"); div.style.setProperty("font",openfl__$internal_text_TextEngine.getFont(textField.__textFormat),null); div.style.setProperty("pointer-events","none",null); div.style.position = "absolute"; div.style.top = "110%"; window.document.body.appendChild(div); } textEngine.__measuredWidth = div.clientWidth; if(textField.__div == null) { div.style.width = Std.string(textEngine.width - 4) + "px"; } textEngine.__measuredHeight = div.clientHeight; if(textField.__div == null) { window.document.body.removeChild(div); } }; openfl__$internal_renderer_dom_DOMTextField.render = function(textField,renderSession) { var textEngine = textField.__textEngine; if(textField.stage != null && textField.__worldVisible && textField.__renderable) { if(textField.__dirty || textField.__renderTransformChanged || textField.__div == null) { if(textEngine.text != "" || textEngine.background || textEngine.border || textEngine.type == 1) { if(textField.__div == null) { textField.__div = window.document.createElement("div"); openfl__$internal_renderer_dom_DOMRenderer.initializeElement(textField,textField.__div,renderSession); textField.__style.setProperty("outline","none",null); textField.__div.addEventListener("input",function(event) { event.preventDefault(); if(textField.get_htmlText() != textField.__div.innerHTML) { textField.set_htmlText(textField.__div.innerHTML); var textField1 = textField.__displayAsPassword; textField.__dirty = false; } },true); } if(!textEngine.wordWrap) { textField.__style.setProperty("white-space","nowrap",null); } else { textField.__style.setProperty("word-wrap","break-word",null); } textField.__style.setProperty("overflow","hidden",null); if(textEngine.selectable) { textField.__style.setProperty("cursor","text",null); textField.__style.setProperty("-webkit-user-select","text",null); textField.__style.setProperty("-moz-user-select","text",null); textField.__style.setProperty("-ms-user-select","text",null); textField.__style.setProperty("-o-user-select","text",null); } else { textField.__style.setProperty("cursor","inherit",null); } textField.__div.contentEditable = textEngine.type == 1; var style = textField.__style; if(textEngine.background) { style.setProperty("background-color","#" + StringTools.hex(textEngine.backgroundColor & 16777215,6),null); } else { style.removeProperty("background-color"); } var w = textEngine.width; var h = textEngine.height; var scale = 1; var unscaledSize = textField.__textFormat.size; var scaledSize = unscaledSize; var t = textField.__renderTransform; if(t.a != 1.0 || t.d != 1.0) { if(t.a == t.d) { scale = t.a; t.a = t.d = 1.0; } else if(t.a > t.d) { scale = t.a; t.d /= t.a; t.a = 1.0; } else { scale = t.d; t.a /= t.d; t.d = 1.0; } scaledSize *= scale; w = Math.ceil(w * scale); h = Math.ceil(h * scale); } textField.__textFormat.size = scaledSize; var text = textEngine.text; var adjustment = 0; if(!textField.__isHTML) { text = StringTools.htmlEscape(text); } else { var matchText = text; while(openfl__$internal_renderer_dom_DOMTextField.__regexFont.match(matchText)) { var fontText = openfl__$internal_renderer_dom_DOMTextField.__regexFont.matched(0); var style1 = ""; if(openfl__$internal_renderer_dom_DOMTextField.__regexFace.match(fontText)) { style1 += "font-family:'" + openfl__$internal_renderer_dom_DOMTextField.__getAttributeMatch(openfl__$internal_renderer_dom_DOMTextField.__regexFace) + "';"; } if(openfl__$internal_renderer_dom_DOMTextField.__regexColor.match(fontText)) { style1 += "color:#" + openfl__$internal_renderer_dom_DOMTextField.__getAttributeMatch(openfl__$internal_renderer_dom_DOMTextField.__regexColor) + ";"; } if(openfl__$internal_renderer_dom_DOMTextField.__regexSize.match(fontText)) { var sizeAttr = openfl__$internal_renderer_dom_DOMTextField.__getAttributeMatch(openfl__$internal_renderer_dom_DOMTextField.__regexSize); var firstChar = HxOverrides.cca(sizeAttr,0); var size; adjustment = parseFloat(sizeAttr) * scale; if(firstChar == 43 || firstChar == 45) { size = scaledSize + adjustment; } else { size = adjustment; } style1 += "font-size:" + size + "px;"; } text = StringTools.replace(text,fontText,""); matchText = openfl__$internal_renderer_dom_DOMTextField.__regexFont.matchedRight(); } text = text.replace(openfl__$internal_renderer_dom_DOMTextField.__regexCloseFont.r,""); } text = StringTools.replace(text,"

"); textField.__div.innerHTML = tmp; var _this_r1 = new RegExp("\n","g".split("u").join("")); var tmp1 = textField.__div.innerHTML.replace(_this_r1,"
"); textField.__div.innerHTML = tmp1; var _this_r2 = new RegExp("\r","g".split("u").join("")); var tmp2 = textField.__div.innerHTML.replace(_this_r2,"
"); textField.__div.innerHTML = tmp2; style.setProperty("font",openfl__$internal_text_TextEngine.getFont(textField.__textFormat),null); textField.__textFormat.size = unscaledSize; textField.__textFormat.leading = unscaledLeading; style.setProperty("top","3px",null); if(textEngine.border) { style.setProperty("border","solid 1px #" + StringTools.hex(textEngine.borderColor & 16777215,6),null); textField.__renderTransform.translate(-1,-1); textField.__renderTransformChanged = true; textField.__transformDirty = true; } else if(style.border != "") { style.removeProperty("border"); textField.__renderTransformChanged = true; } style.setProperty("color","#" + StringTools.hex(textField.__textFormat.color & 16777215,6),null); style.setProperty("width",w + "px",null); style.setProperty("height",h + "px",null); var _g = textField.__textFormat.align; switch(_g) { case 0: style.setProperty("text-align","center",null); break; case 4: style.setProperty("text-align","right",null); break; default: style.setProperty("text-align","left",null); } textField.__dirty = false; } else if(textField.__div != null) { renderSession.element.removeChild(textField.__div); textField.__div = null; } } if(textField.__div != null) { var old = renderSession.roundPixels; renderSession.roundPixels = true; openfl__$internal_renderer_dom_DOMRenderer.updateClip(textField,renderSession); openfl__$internal_renderer_dom_DOMRenderer.applyStyle(textField,renderSession,true,true,true); renderSession.roundPixels = old; } } else { openfl__$internal_renderer_dom_DOMTextField.clear(textField,renderSession); } }; openfl__$internal_renderer_dom_DOMTextField.__getAttributeMatch = function(regex) { if(regex.matched(2) != null) { return regex.matched(2); } else { return regex.matched(3); } }; var openfl__$internal_renderer_opengl_GLBitmap = function() { }; $hxClasses["openfl._internal.renderer.opengl.GLBitmap"] = openfl__$internal_renderer_opengl_GLBitmap; openfl__$internal_renderer_opengl_GLBitmap.__name__ = ["openfl","_internal","renderer","opengl","GLBitmap"]; openfl__$internal_renderer_opengl_GLBitmap.render = function(bitmap,renderSession) { if(!bitmap.__renderable || bitmap.__worldAlpha <= 0) { return; } if(bitmap.bitmapData != null && bitmap.bitmapData.__isValid) { var renderer = renderSession.renderer; var gl = renderSession.gl; renderSession.blendModeManager.setBlendMode(bitmap.__worldBlendMode); renderSession.maskManager.pushObject(bitmap); renderSession.filterManager.pushObject(bitmap); var shader = renderSession.shaderManager.initShader(bitmap.shader); renderSession.shaderManager.setShader(shader); shader.get_data().uImage0.input = bitmap.bitmapData; var tmp = renderSession.allowSmoothing && (bitmap.smoothing || renderSession.upscaled); shader.get_data().uImage0.smoothing = tmp; shader.get_data().uMatrix.value = renderer.getMatrix(bitmap.__renderTransform); var useColorTransform = !bitmap.__worldColorTransform.__isDefault(); if(shader.get_data().uColorTransform.value == null) { shader.get_data().uColorTransform.value = []; } shader.get_data().uColorTransform.value[0] = useColorTransform; renderSession.shaderManager.updateShader(shader); var target = gl.ARRAY_BUFFER; var buffer = bitmap.bitmapData.getBuffer(gl,bitmap.__worldAlpha,bitmap.__worldColorTransform); gl.__context.bindBuffer(target,buffer); var index = shader.get_data().aPosition.index; var type = gl.FLOAT; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); gl.__context.vertexAttribPointer(index,3,type,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); var index1 = shader.get_data().aTexCoord.index; var type1 = gl.FLOAT; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(12); gl.__context.vertexAttribPointer(index1,2,type1,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); var index2 = shader.get_data().aAlpha.index; var type2 = gl.FLOAT; var offset2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(20); gl.__context.vertexAttribPointer(index2,1,type2,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset2)); var index3 = shader.get_data().aColorMultipliers.index; var type3 = gl.FLOAT; var offset3 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(24); gl.__context.vertexAttribPointer(index3,4,type3,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset3)); var index4 = shader.get_data().aColorMultipliers.index + 1; var type4 = gl.FLOAT; var offset4 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(40); gl.__context.vertexAttribPointer(index4,4,type4,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset4)); var index5 = shader.get_data().aColorMultipliers.index + 2; var type5 = gl.FLOAT; var offset5 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(56); gl.__context.vertexAttribPointer(index5,4,type5,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset5)); var index6 = shader.get_data().aColorMultipliers.index + 3; var type6 = gl.FLOAT; var offset6 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(72); gl.__context.vertexAttribPointer(index6,4,type6,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset6)); var index7 = shader.get_data().aColorOffsets.index; var type7 = gl.FLOAT; var offset7 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(88); gl.__context.vertexAttribPointer(index7,4,type7,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset7)); gl.__context.drawArrays(gl.TRIANGLE_STRIP,0,4); renderSession.filterManager.popObject(bitmap); renderSession.maskManager.popObject(bitmap); } }; var openfl__$internal_renderer_opengl_GLBlendModeManager = function(gl) { openfl__$internal_renderer_AbstractBlendModeManager.call(this); this.gl = gl; this.setBlendMode(10); gl.__context.enable(gl.BLEND); }; $hxClasses["openfl._internal.renderer.opengl.GLBlendModeManager"] = openfl__$internal_renderer_opengl_GLBlendModeManager; openfl__$internal_renderer_opengl_GLBlendModeManager.__name__ = ["openfl","_internal","renderer","opengl","GLBlendModeManager"]; openfl__$internal_renderer_opengl_GLBlendModeManager.__super__ = openfl__$internal_renderer_AbstractBlendModeManager; openfl__$internal_renderer_opengl_GLBlendModeManager.prototype = $extend(openfl__$internal_renderer_AbstractBlendModeManager.prototype,{ currentBlendMode: null ,gl: null ,setBlendMode: function(blendMode) { if(this.currentBlendMode == blendMode) { return; } this.currentBlendMode = blendMode; switch(blendMode) { case 0: this.gl.__context.blendEquation(this.gl.FUNC_ADD); this.gl.__context.blendFunc(this.gl.ONE,this.gl.ONE); break; case 9: this.gl.__context.blendEquation(this.gl.FUNC_ADD); this.gl.__context.blendFunc(this.gl.DST_COLOR,this.gl.ONE_MINUS_SRC_ALPHA); break; case 12: this.gl.__context.blendEquation(this.gl.FUNC_ADD); this.gl.__context.blendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_COLOR); break; case 14: this.gl.__context.blendEquation(this.gl.FUNC_REVERSE_SUBTRACT); this.gl.__context.blendFunc(this.gl.ONE,this.gl.ONE); break; default: this.gl.__context.blendEquation(this.gl.FUNC_ADD); this.gl.__context.blendFunc(this.gl.ONE,this.gl.ONE_MINUS_SRC_ALPHA); } } ,__class__: openfl__$internal_renderer_opengl_GLBlendModeManager }); var openfl__$internal_renderer_opengl_GLDisplayObject = function() { }; $hxClasses["openfl._internal.renderer.opengl.GLDisplayObject"] = openfl__$internal_renderer_opengl_GLDisplayObject; openfl__$internal_renderer_opengl_GLDisplayObject.__name__ = ["openfl","_internal","renderer","opengl","GLDisplayObject"]; openfl__$internal_renderer_opengl_GLDisplayObject.render = function(displayObject,renderSession) { if(displayObject.opaqueBackground == null && displayObject.__graphics == null) { return; } if(!displayObject.__renderable || displayObject.__worldAlpha <= 0) { return; } if(displayObject.opaqueBackground != null && !displayObject.__cacheBitmapRender && displayObject.get_width() > 0 && displayObject.get_height() > 0) { renderSession.blendModeManager.setBlendMode(displayObject.__worldBlendMode); renderSession.maskManager.pushObject(displayObject); var gl = renderSession.gl; var rect = openfl_geom_Rectangle.__pool.get(); rect.setTo(0,0,displayObject.get_width(),displayObject.get_height()); renderSession.maskManager.pushRect(rect,displayObject.__renderTransform); var color = displayObject.opaqueBackground; gl.__context.clearColor((color >>> 16 & 255) / 255,(color >>> 8 & 255) / 255,(color & 255) / 255,1); gl.__context.clear(gl.COLOR_BUFFER_BIT); renderSession.maskManager.popRect(); renderSession.maskManager.popObject(displayObject); openfl_geom_Rectangle.__pool.release(rect); } if(displayObject.__graphics != null) { if(!(!displayObject.__renderable || displayObject.__worldAlpha <= 0)) { var graphics = displayObject.__graphics; if(graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,displayObject.__renderTransform); var bounds = graphics.__bounds; if(graphics.__bitmap != null && graphics.__visible) { var renderer = renderSession.renderer; var gl1 = renderSession.gl; renderSession.blendModeManager.setBlendMode(displayObject.__worldBlendMode); renderSession.maskManager.pushObject(displayObject); var shader = renderSession.filterManager.pushObject(displayObject); renderSession.shaderManager.setShader(shader); shader.get_data().uImage0.input = graphics.__bitmap; shader.get_data().uImage0.smoothing = renderSession.allowSmoothing; shader.get_data().uMatrix.value = renderer.getMatrix(graphics.__worldTransform); var useColorTransform = !displayObject.__worldColorTransform.__isDefault(); if(shader.get_data().uColorTransform.value == null) { shader.get_data().uColorTransform.value = []; } shader.get_data().uColorTransform.value[0] = useColorTransform; renderSession.shaderManager.updateShader(shader); var target = gl1.ARRAY_BUFFER; var buffer = graphics.__bitmap.getBuffer(gl1,displayObject.__worldAlpha,displayObject.__worldColorTransform); gl1.__context.bindBuffer(target,buffer); var index = shader.get_data().aPosition.index; var type = gl1.FLOAT; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); gl1.__context.vertexAttribPointer(index,3,type,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); var index1 = shader.get_data().aTexCoord.index; var type1 = gl1.FLOAT; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(12); gl1.__context.vertexAttribPointer(index1,2,type1,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); var index2 = shader.get_data().aAlpha.index; var type2 = gl1.FLOAT; var offset2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(20); gl1.__context.vertexAttribPointer(index2,1,type2,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset2)); var index3 = shader.get_data().aColorMultipliers.index; var type3 = gl1.FLOAT; var offset3 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(24); gl1.__context.vertexAttribPointer(index3,4,type3,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset3)); var index4 = shader.get_data().aColorMultipliers.index + 1; var type4 = gl1.FLOAT; var offset4 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(40); gl1.__context.vertexAttribPointer(index4,4,type4,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset4)); var index5 = shader.get_data().aColorMultipliers.index + 2; var type5 = gl1.FLOAT; var offset5 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(56); gl1.__context.vertexAttribPointer(index5,4,type5,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset5)); var index6 = shader.get_data().aColorMultipliers.index + 3; var type6 = gl1.FLOAT; var offset6 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(72); gl1.__context.vertexAttribPointer(index6,4,type6,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset6)); var index7 = shader.get_data().aColorOffsets.index; var type7 = gl1.FLOAT; var offset7 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(88); gl1.__context.vertexAttribPointer(index7,4,type7,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset7)); gl1.__context.drawArrays(gl1.TRIANGLE_STRIP,0,4); renderSession.filterManager.popObject(displayObject); renderSession.maskManager.popObject(displayObject); } } } } }; var openfl__$internal_renderer_opengl_GLFilterManager = function(renderer,renderSession) { openfl__$internal_renderer_AbstractFilterManager.call(this,renderSession); this.renderer = renderer; this.gl = renderSession.gl; this.filterDepth = 0; this.matrix = new openfl_geom_Matrix(); }; $hxClasses["openfl._internal.renderer.opengl.GLFilterManager"] = openfl__$internal_renderer_opengl_GLFilterManager; openfl__$internal_renderer_opengl_GLFilterManager.__name__ = ["openfl","_internal","renderer","opengl","GLFilterManager"]; openfl__$internal_renderer_opengl_GLFilterManager.__super__ = openfl__$internal_renderer_AbstractFilterManager; openfl__$internal_renderer_opengl_GLFilterManager.prototype = $extend(openfl__$internal_renderer_AbstractFilterManager.prototype,{ filterDepth: null ,gl: null ,matrix: null ,renderer: null ,pushObject: function(object) { return this.renderSession.shaderManager.defaultShader; } ,popObject: function(object) { return; } ,renderPass: function(target,shader) { if(target == null || shader == null) { return; } shader.get_data().uImage0.input = target; var tmp = this.renderSession.allowSmoothing && this.renderSession.upscaled; shader.get_data().uImage0.smoothing = tmp; shader.get_data().uMatrix.value = this.renderer.getMatrix(this.matrix); if(shader.get_data().uColorTransform != null) { if(shader.get_data().uColorTransform.value == null) { shader.get_data().uColorTransform.value = []; } shader.get_data().uColorTransform.value[0] = false; } this.renderSession.shaderManager.setShader(shader); var _this = this.gl; var target1 = this.gl.ARRAY_BUFFER; var buffer = target.getBuffer(this.gl,1,null); _this.__context.bindBuffer(target1,buffer); var _this1 = this.gl; var index = shader.get_data().aPosition.index; var type = this.gl.FLOAT; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); _this1.__context.vertexAttribPointer(index,3,type,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); var _this2 = this.gl; var index1 = shader.get_data().aTexCoord.index; var type1 = this.gl.FLOAT; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(12); _this2.__context.vertexAttribPointer(index1,2,type1,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); var _this3 = this.gl; var index2 = shader.get_data().aAlpha.index; var type2 = this.gl.FLOAT; var offset2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(20); _this3.__context.vertexAttribPointer(index2,1,type2,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset2)); this.gl.__context.drawArrays(this.gl.TRIANGLE_STRIP,0,4); } ,__class__: openfl__$internal_renderer_opengl_GLFilterManager }); var openfl__$internal_renderer_opengl_GLMaskManager = function(renderSession) { openfl__$internal_renderer_AbstractMaskManager.call(this,renderSession); this.gl = renderSession.gl; this.clipRects = []; this.numClipRects = 0; this.tempRect = new openfl_geom_Rectangle(); }; $hxClasses["openfl._internal.renderer.opengl.GLMaskManager"] = openfl__$internal_renderer_opengl_GLMaskManager; openfl__$internal_renderer_opengl_GLMaskManager.__name__ = ["openfl","_internal","renderer","opengl","GLMaskManager"]; openfl__$internal_renderer_opengl_GLMaskManager.__super__ = openfl__$internal_renderer_AbstractMaskManager; openfl__$internal_renderer_opengl_GLMaskManager.prototype = $extend(openfl__$internal_renderer_AbstractMaskManager.prototype,{ clipRects: null ,gl: null ,numClipRects: null ,tempRect: null ,pushMask: function(mask) { this.pushRect(mask.getBounds(mask),mask.__getRenderTransform()); } ,pushObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } if(handleScrollRect && object.__scrollRect != null) { this.pushRect(object.__scrollRect,object.__renderTransform); } if(object.__mask != null) { this.pushMask(object.__mask); } } ,pushRect: function(rect,transform) { var stage = openfl_Lib.current.stage; if(this.numClipRects == this.clipRects.length) { this.clipRects[this.numClipRects] = new openfl_geom_Rectangle(); } var clipRect = this.clipRects[this.numClipRects]; rect.__transform(clipRect,transform); if(this.numClipRects > 0) { var parentClipRect = this.clipRects[this.numClipRects - 1]; clipRect.__contract(parentClipRect.x,parentClipRect.y,parentClipRect.width,parentClipRect.height); } if(clipRect.height < 0) { clipRect.height = 0; } if(clipRect.width < 0) { clipRect.width = 0; } this.scissorRect(clipRect); this.numClipRects++; } ,popMask: function() { this.popRect(); } ,popObject: function(object,handleScrollRect) { if(handleScrollRect == null) { handleScrollRect = true; } if(object.__mask != null) { this.popMask(); } if(handleScrollRect && object.__scrollRect != null) { this.popRect(); } } ,popRect: function() { if(this.numClipRects > 0) { this.numClipRects--; if(this.numClipRects > 0) { this.scissorRect(this.clipRects[this.numClipRects - 1]); } else { this.scissorRect(); } } } ,scissorRect: function(rect) { if(rect != null) { var renderer = this.renderSession.renderer; this.gl.__context.enable(this.gl.SCISSOR_TEST); var clipRect = this.tempRect; rect.__transform(clipRect,renderer.displayMatrix); var x = Math.floor(clipRect.x); var y = Math.floor(renderer.height - clipRect.y - clipRect.height); var width = Math.ceil(clipRect.width); var height = Math.ceil(clipRect.height); if(width < 0) { width = 0; } if(height < 0) { height = 0; } this.gl.__context.scissor(x,y,width,height); } else { this.gl.__context.disable(this.gl.SCISSOR_TEST); } } ,__class__: openfl__$internal_renderer_opengl_GLMaskManager }); var openfl__$internal_renderer_opengl_GLRenderer = function(stage,gl,defaultRenderTarget) { openfl__$internal_renderer_AbstractRenderer.call(this,stage); this.gl = gl; this.defaultRenderTarget = defaultRenderTarget; this.flipped = defaultRenderTarget == null; this.matrix = lime_math__$Matrix4_Matrix4_$Impl_$._new(); this.values = []; this.renderSession = new openfl__$internal_renderer_RenderSession(); this.renderSession.clearRenderDirty = true; this.renderSession.gl = gl; this.renderSession.renderer = this; this.renderSession.blendModeManager = new openfl__$internal_renderer_opengl_GLBlendModeManager(gl); this.renderSession.filterManager = new openfl__$internal_renderer_opengl_GLFilterManager(this,this.renderSession); this.renderSession.shaderManager = new openfl__$internal_renderer_opengl_GLShaderManager(gl); this.renderSession.maskManager = new openfl__$internal_renderer_opengl_GLMaskManager(this.renderSession); if(stage.window != null) { if(stage.stage3Ds.data.get(0).context3D == null) { stage.stage3Ds.data.get(0).__createContext(stage,this.renderSession); } var width = defaultRenderTarget != null ? defaultRenderTarget.width : Math.ceil(stage.window.__width * stage.window.__scale); var height = defaultRenderTarget != null ? defaultRenderTarget.height : Math.ceil(stage.window.__height * stage.window.__scale); this.resize(width,height); } }; $hxClasses["openfl._internal.renderer.opengl.GLRenderer"] = openfl__$internal_renderer_opengl_GLRenderer; openfl__$internal_renderer_opengl_GLRenderer.__name__ = ["openfl","_internal","renderer","opengl","GLRenderer"]; openfl__$internal_renderer_opengl_GLRenderer.__super__ = openfl__$internal_renderer_AbstractRenderer; openfl__$internal_renderer_opengl_GLRenderer.prototype = $extend(openfl__$internal_renderer_AbstractRenderer.prototype,{ projection: null ,projectionFlipped: null ,defaultRenderTarget: null ,currentRenderTarget: null ,displayHeight: null ,displayMatrix: null ,displayWidth: null ,flipped: null ,gl: null ,matrix: null ,renderTargetA: null ,renderTargetB: null ,offsetX: null ,offsetY: null ,values: null ,clear: function() { if(this.stage.__transparent) { this.gl.__context.clearColor(0,0,0,0); } else { this.gl.__context.clearColor(this.stage.__colorSplit[0],this.stage.__colorSplit[1],this.stage.__colorSplit[2],1); } this.gl.__context.clear(this.gl.COLOR_BUFFER_BIT); } ,getCacheObject: function() { } ,getMatrix: function(transform) { var _matrix = openfl_geom_Matrix.__pool.get(); _matrix.copyFrom(transform); _matrix.concat(this.displayMatrix); if(this.renderSession.roundPixels) { _matrix.tx = Math.round(_matrix.tx); _matrix.ty = Math.round(_matrix.ty); } lime_math__$Matrix4_Matrix4_$Impl_$.identity(this.matrix); lime_math__$Matrix4_Matrix4_$Impl_$.set(this.matrix,0,_matrix.a); lime_math__$Matrix4_Matrix4_$Impl_$.set(this.matrix,1,_matrix.b); lime_math__$Matrix4_Matrix4_$Impl_$.set(this.matrix,4,_matrix.c); lime_math__$Matrix4_Matrix4_$Impl_$.set(this.matrix,5,_matrix.d); lime_math__$Matrix4_Matrix4_$Impl_$.set(this.matrix,12,_matrix.tx); lime_math__$Matrix4_Matrix4_$Impl_$.set(this.matrix,13,_matrix.ty); lime_math__$Matrix4_Matrix4_$Impl_$.append(this.matrix,this.flipped ? this.projectionFlipped : this.projection); var _g = 0; while(_g < 16) { var i = _g++; this.values[i] = lime_math__$Matrix4_Matrix4_$Impl_$.get(this.matrix,i); } openfl_geom_Matrix.__pool.release(_matrix); return this.values; } ,getRenderTarget: function(framebuffer) { if(framebuffer) { if(this.renderTargetA == null) { this.renderTargetA = openfl_display_BitmapData.fromTexture(this.stage.stage3Ds.data.get(0).context3D.createRectangleTexture(this.width,this.height,1,true)); var _this = this.gl; var target = this.gl.TEXTURE_2D; var texture = this.renderTargetA.getTexture(this.gl); _this.__context.bindTexture(target,texture); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE); } if(this.renderTargetB == null) { this.renderTargetB = openfl_display_BitmapData.fromTexture(this.stage.stage3Ds.data.get(0).context3D.createRectangleTexture(this.width,this.height,1,true)); var _this1 = this.gl; var target1 = this.gl.TEXTURE_2D; var texture1 = this.renderTargetB.getTexture(this.gl); _this1.__context.bindTexture(target1,texture1); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE); } if(this.currentRenderTarget == this.renderTargetA) { this.currentRenderTarget = this.renderTargetB; } else { this.currentRenderTarget = this.renderTargetA; } var _this2 = this.gl; var target2 = this.gl.FRAMEBUFFER; var framebuffer1 = this.currentRenderTarget.__getFramebuffer(this.gl); _this2.__context.bindFramebuffer(target2,framebuffer1); this.gl.__context.viewport(0,0,this.width,this.height); this.gl.__context.clearColor(0,0,0,0); this.gl.__context.clear(this.gl.COLOR_BUFFER_BIT); this.flipped = false; } else { this.currentRenderTarget = this.defaultRenderTarget; var frameBuffer = this.currentRenderTarget != null ? this.currentRenderTarget.__getFramebuffer(this.gl) : null; this.gl.__context.bindFramebuffer(this.gl.FRAMEBUFFER,frameBuffer); this.flipped = this.currentRenderTarget == null; } } ,render: function() { this.gl.__context.viewport(this.offsetX,this.offsetY,this.displayWidth,this.displayHeight); this.renderSession.allowSmoothing = this.stage.quality != 2; this.renderSession.upscaled = this.displayMatrix.a != 1 || this.displayMatrix.d != 1; this.stage.__renderGL(this.renderSession); if(this.offsetX > 0 || this.offsetY > 0) { this.gl.__context.clearColor(0,0,0,1); this.gl.__context.enable(this.gl.SCISSOR_TEST); if(this.offsetX > 0) { this.gl.__context.scissor(0,0,this.offsetX,this.height); this.gl.__context.clear(this.gl.COLOR_BUFFER_BIT); this.gl.__context.scissor(this.offsetX + this.displayWidth,0,this.width,this.height); this.gl.__context.clear(this.gl.COLOR_BUFFER_BIT); } if(this.offsetY > 0) { this.gl.__context.scissor(0,0,this.width,this.offsetY); this.gl.__context.clear(this.gl.COLOR_BUFFER_BIT); this.gl.__context.scissor(0,this.offsetY + this.displayHeight,this.width,this.height); this.gl.__context.clear(this.gl.COLOR_BUFFER_BIT); } this.gl.__context.disable(this.gl.SCISSOR_TEST); } } ,renderStage3D: function() { var _g = 0; var _g1 = this.stage.stage3Ds; while(_g < _g1.data.get_length()) { var stage3D = _g1.data.get(_g); ++_g; stage3D.__renderGL(this.stage,this.renderSession); } } ,resize: function(width,height) { openfl__$internal_renderer_AbstractRenderer.prototype.resize.call(this,width,height); if(width > 0 && height > 0) { if(this.renderTargetA != null && (this.renderTargetA.width != width || this.renderTargetA.height != height)) { this.renderTargetA = openfl_display_BitmapData.fromTexture(this.stage.stage3Ds.data.get(0).context3D.createRectangleTexture(width,height,1,true)); var _this = this.gl; var target = this.gl.TEXTURE_2D; var texture = this.renderTargetA.getTexture(this.gl); _this.__context.bindTexture(target,texture); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE); } if(this.renderTargetB != null && (this.renderTargetB.width != width || this.renderTargetB.height != height)) { this.renderTargetB = openfl_display_BitmapData.fromTexture(this.stage.stage3Ds.data.get(0).context3D.createRectangleTexture(width,height,1,true)); var _this1 = this.gl; var target1 = this.gl.TEXTURE_2D; var texture1 = this.renderTargetB.getTexture(this.gl); _this1.__context.bindTexture(target1,texture1); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE); } } this.displayMatrix = this.defaultRenderTarget == null ? this.stage.__displayMatrix : new openfl_geom_Matrix(); var w = this.defaultRenderTarget == null ? this.stage.stageWidth : this.defaultRenderTarget.width; var h = this.defaultRenderTarget == null ? this.stage.stageHeight : this.defaultRenderTarget.height; var _this2 = this.displayMatrix; this.offsetX = Math.round(0 * _this2.a + 0 * _this2.c + _this2.tx); var _this3 = this.displayMatrix; this.offsetY = Math.round(0 * _this3.b + 0 * _this3.d + _this3.ty); var _this4 = this.displayMatrix; this.displayWidth = Math.round(w * _this4.a + 0 * _this4.c + _this4.tx - this.offsetX); var _this5 = this.displayMatrix; this.displayHeight = Math.round(0 * _this5.b + h * _this5.d + _this5.ty - this.offsetY); this.projection = lime_math__$Matrix4_Matrix4_$Impl_$.createOrtho(this.offsetX,this.displayWidth + this.offsetX,this.offsetY,this.displayHeight + this.offsetY,-1000,1000); this.projectionFlipped = lime_math__$Matrix4_Matrix4_$Impl_$.createOrtho(this.offsetX,this.displayWidth + this.offsetX,this.displayHeight + this.offsetY,this.offsetY,-1000,1000); } ,__class__: openfl__$internal_renderer_opengl_GLRenderer }); var openfl__$internal_renderer_opengl_GLShaderManager = function(gl) { openfl__$internal_renderer_AbstractShaderManager.call(this); this.gl = gl; this.defaultShader = new openfl_display_Shader(); this.initShader(this.defaultShader); }; $hxClasses["openfl._internal.renderer.opengl.GLShaderManager"] = openfl__$internal_renderer_opengl_GLShaderManager; openfl__$internal_renderer_opengl_GLShaderManager.__name__ = ["openfl","_internal","renderer","opengl","GLShaderManager"]; openfl__$internal_renderer_opengl_GLShaderManager.__super__ = openfl__$internal_renderer_AbstractShaderManager; openfl__$internal_renderer_opengl_GLShaderManager.prototype = $extend(openfl__$internal_renderer_AbstractShaderManager.prototype,{ gl: null ,initShader: function(shader) { if(shader != null) { if(shader.gl == null) { shader.gl = this.gl; shader.__init(); } return shader; } return this.defaultShader; } ,setShader: function(shader) { if(this.currentShader == shader) { return; } if(this.currentShader != null) { this.currentShader.__disable(); } if(shader == null) { this.currentShader = null; this.gl.__context.useProgram(null); return; } else { this.currentShader = shader; this.initShader(shader); this.gl.__context.useProgram(shader.glProgram); this.currentShader.__enable(); } } ,updateShader: function(shader) { if(this.currentShader != null) { this.currentShader.__update(); } } ,__class__: openfl__$internal_renderer_opengl_GLShaderManager }); var openfl__$internal_renderer_opengl_GLShape = function() { }; $hxClasses["openfl._internal.renderer.opengl.GLShape"] = openfl__$internal_renderer_opengl_GLShape; openfl__$internal_renderer_opengl_GLShape.__name__ = ["openfl","_internal","renderer","opengl","GLShape"]; openfl__$internal_renderer_opengl_GLShape.render = function(shape,renderSession) { if(!shape.__renderable || shape.__worldAlpha <= 0) { return; } var graphics = shape.__graphics; if(graphics != null) { openfl__$internal_renderer_canvas_CanvasGraphics.render(graphics,renderSession,shape.__renderTransform); var bounds = graphics.__bounds; if(graphics.__bitmap != null && graphics.__visible) { var renderer = renderSession.renderer; var gl = renderSession.gl; renderSession.blendModeManager.setBlendMode(shape.__worldBlendMode); renderSession.maskManager.pushObject(shape); var shader = renderSession.filterManager.pushObject(shape); renderSession.shaderManager.setShader(shader); shader.get_data().uImage0.input = graphics.__bitmap; shader.get_data().uImage0.smoothing = renderSession.allowSmoothing; shader.get_data().uMatrix.value = renderer.getMatrix(graphics.__worldTransform); var useColorTransform = !shape.__worldColorTransform.__isDefault(); if(shader.get_data().uColorTransform.value == null) { shader.get_data().uColorTransform.value = []; } shader.get_data().uColorTransform.value[0] = useColorTransform; renderSession.shaderManager.updateShader(shader); var target = gl.ARRAY_BUFFER; var buffer = graphics.__bitmap.getBuffer(gl,shape.__worldAlpha,shape.__worldColorTransform); gl.__context.bindBuffer(target,buffer); var index = shader.get_data().aPosition.index; var type = gl.FLOAT; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); gl.__context.vertexAttribPointer(index,3,type,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); var index1 = shader.get_data().aTexCoord.index; var type1 = gl.FLOAT; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(12); gl.__context.vertexAttribPointer(index1,2,type1,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); var index2 = shader.get_data().aAlpha.index; var type2 = gl.FLOAT; var offset2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(20); gl.__context.vertexAttribPointer(index2,1,type2,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset2)); var index3 = shader.get_data().aColorMultipliers.index; var type3 = gl.FLOAT; var offset3 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(24); gl.__context.vertexAttribPointer(index3,4,type3,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset3)); var index4 = shader.get_data().aColorMultipliers.index + 1; var type4 = gl.FLOAT; var offset4 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(40); gl.__context.vertexAttribPointer(index4,4,type4,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset4)); var index5 = shader.get_data().aColorMultipliers.index + 2; var type5 = gl.FLOAT; var offset5 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(56); gl.__context.vertexAttribPointer(index5,4,type5,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset5)); var index6 = shader.get_data().aColorMultipliers.index + 3; var type6 = gl.FLOAT; var offset6 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(72); gl.__context.vertexAttribPointer(index6,4,type6,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset6)); var index7 = shader.get_data().aColorOffsets.index; var type7 = gl.FLOAT; var offset7 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(88); gl.__context.vertexAttribPointer(index7,4,type7,false,104,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset7)); gl.__context.drawArrays(gl.TRIANGLE_STRIP,0,4); renderSession.filterManager.popObject(shape); renderSession.maskManager.popObject(shape); } } }; var openfl__$internal_stage3D_AGALConverter = function() { }; $hxClasses["openfl._internal.stage3D.AGALConverter"] = openfl__$internal_stage3D_AGALConverter; openfl__$internal_stage3D_AGALConverter.__name__ = ["openfl","_internal","stage3D","AGALConverter"]; openfl__$internal_stage3D_AGALConverter.prefixFromType = function(regType,programType) { switch(regType) { case 0: return "va"; case 1: if(programType == openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX) { return "vc"; } else { return "fc"; } break; case 2: if(programType == openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX) { return "vt"; } else { return "ft"; } break; case 3: return "output_"; case 4: return "v"; case 5: return "sampler"; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Invalid data!")); } }; openfl__$internal_stage3D_AGALConverter.readUInt64 = function(byteArray) { var low = byteArray.readInt(); var high = byteArray.readInt(); var this1 = new haxe__$Int64__$_$_$Int64(high,low); return this1; }; openfl__$internal_stage3D_AGALConverter.convertToGLSL = function(agal,samplerState) { agal.position = 0; agal.__endian = 1; var magic = agal.readByte() & 255; if(magic == 176) { return agal.readUTF(); } if(magic != 160) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Magic value must be 0xA0, may not be AGAL")); } var version = agal.readInt(); if(version != 1) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Version must be 1")); } var shaderTypeID = agal.readByte() & 255; if(shaderTypeID != 161) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Shader type ID must be 0xA1")); } var programType = (agal.readByte() & 255) == 0 ? openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX : openfl__$internal_stage3D__$AGALConverter_ProgramType.FRAGMENT; var map = new openfl__$internal_stage3D_RegisterMap(); var sb_b = ""; while(agal.position < openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(agal)) { var opcode = agal.readInt(); var dest = agal.readUnsignedInt(); var source1 = openfl__$internal_stage3D_AGALConverter.readUInt64(agal); var source2 = openfl__$internal_stage3D_AGALConverter.readUInt64(agal); var dr = openfl__$internal_stage3D__$AGALConverter_DestRegister.parse(dest,programType); var sr1 = openfl__$internal_stage3D__$AGALConverter_SourceRegister.parse(source1,programType,dr.mask); var sr2 = openfl__$internal_stage3D__$AGALConverter_SourceRegister.parse(source2,programType,dr.mask); sb_b += "\t"; switch(opcode) { case 0: sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + "; // mov"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 1: sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + " + " + sr2.toGLSL() + "; // add"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 2: sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + " - " + sr2.toGLSL() + "; // sub"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 3: sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + " * " + sr2.toGLSL() + "; // mul"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 4: sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + " / " + sr2.toGLSL() + "; // div"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 5: var sr = sr1.toGLSL(); if(sr.indexOf(".") > -1) { sb_b += Std.string(dr.toGLSL() + " = 1.0 / " + sr1.toGLSL() + "; // rcp"); } else { sb_b += Std.string(dr.toGLSL() + " = vec4(1) / " + sr1.toGLSL() + "; // rcp"); } map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 6: sb_b += Std.string(dr.toGLSL() + " = min(" + sr1.toGLSL() + ", " + sr2.toGLSL() + "); // min"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 7: sb_b += Std.string(dr.toGLSL() + " = max(" + sr1.toGLSL() + ", " + sr2.toGLSL() + "); // max"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 8: sb_b += Std.string(dr.toGLSL() + " = fract(" + sr1.toGLSL() + "); // frc"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 9: sb_b += Std.string(dr.toGLSL() + " = sqrt(" + sr1.toGLSL() + "); // sqrt"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 10: sb_b += Std.string(dr.toGLSL() + " = inversesqrt(" + sr1.toGLSL() + "); // rsq"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 11: sb_b += Std.string(dr.toGLSL() + " = pow(" + sr1.toGLSL() + ", " + sr2.toGLSL() + "); // pow"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 12: sb_b += Std.string(dr.toGLSL() + " = log2(" + sr1.toGLSL() + "); // log"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 13: sb_b += Std.string(dr.toGLSL() + " = exp2(" + sr1.toGLSL() + "); // exp"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 14: sb_b += Std.string(dr.toGLSL() + " = normalize(" + sr1.toGLSL() + "); // normalize"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 15: sb_b += Std.string(dr.toGLSL() + " = sin(" + sr1.toGLSL() + "); // sin"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 16: sb_b += Std.string(dr.toGLSL() + " = cos(" + sr1.toGLSL() + "); // cos"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 17: sr1.sourceMask = sr2.sourceMask = 7; sb_b += Std.string(dr.toGLSL() + " = cross(vec3(" + sr1.toGLSL() + "), vec3(" + sr2.toGLSL() + ")); // crs"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 18: sr1.sourceMask = sr2.sourceMask = 7; sb_b += Std.string(dr.toGLSL() + " = vec4(dot(vec3(" + sr1.toGLSL() + "), vec3(" + sr2.toGLSL() + ")))" + dr.getWriteMask() + "; // dp3"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 19: sr1.sourceMask = sr2.sourceMask = 15; sb_b += Std.string(dr.toGLSL() + " = vec4(dot(vec4(" + sr1.toGLSL() + "), vec4(" + sr2.toGLSL() + ")))" + dr.getWriteMask() + "; // dp4"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 20: sb_b += Std.string(dr.toGLSL() + " = abs(" + sr1.toGLSL() + "); // abs"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 21: sb_b += Std.string(dr.toGLSL() + " = -" + sr1.toGLSL() + "; // neg"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 22: sb_b += Std.string(dr.toGLSL() + " = clamp(" + sr1.toGLSL() + ", 0.0, 1.0); // saturate"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 23: var existingUsage = map.getRegisterUsage(sr2); if(existingUsage != openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4 && existingUsage != openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY) { sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + " * mat3(" + sr2.toGLSL(false) + "); // m33"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.MATRIX_4_4); } else { sr1.sourceMask = sr2.sourceMask = 7; sb_b += Std.string(dr.toGLSL() + " = vec3(" + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,0) + "), " + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,1) + ")," + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,2) + ")); // m33"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,0); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,1); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,2); } break; case 24: var existingUsage1 = map.getRegisterUsage(sr2); if(existingUsage1 != openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4 && existingUsage1 != openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY) { sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + " * " + sr2.toGLSL(false) + "; // m44"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.MATRIX_4_4); } else { sr1.sourceMask = sr2.sourceMask = 15; sb_b += Std.string(dr.toGLSL() + " = vec4(" + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,0) + "), " + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,1) + "), " + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,2) + "), " + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,3) + ")); // m44"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,0); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,1); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,2); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,3); } break; case 25: dr.mask &= 7; var existingUsage2 = map.getRegisterUsage(sr2); if(existingUsage2 != openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4 && existingUsage2 != openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY) { sb_b += Std.string(dr.toGLSL() + " = " + sr1.toGLSL() + " * " + sr2.toGLSL(false) + "; // m34"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.MATRIX_4_4); } else { sr1.sourceMask = sr2.sourceMask = 15; sb_b += Std.string(dr.toGLSL() + " = vec3(" + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,0) + "), " + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,1) + ")," + "dot(" + sr1.toGLSL(true) + "," + sr2.toGLSL(true,2) + ")); // m34"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,0); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,1); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,2); } break; case 39: sr1.sourceMask = 15; sb_b += Std.string("if (any(lessThan(" + sr1.toGLSL() + ", vec4(0)))) discard;"); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 40: var sampler = openfl__$internal_stage3D__$AGALConverter_SamplerRegister.parse(source2,programType); var _g = sampler.d; switch(_g) { case 0: sr1.sourceMask = 3; map.addSaR(sampler,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D); sb_b += Std.string(dr.toGLSL() + " = texture2D(" + sampler.toGLSL() + ", " + sr1.toGLSL() + "); // tex"); break; case 1: sr1.sourceMask = 7; sb_b += Std.string(dr.toGLSL() + " = textureCube(" + sampler.toGLSL() + ", " + sr1.toGLSL() + "); // tex"); map.addSaR(sampler,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_CUBE); break; } map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); if(samplerState != null) { samplerState[sampler.n] = sampler.toSamplerState(); } break; case 41: sr1.sourceMask = sr2.sourceMask = 15; sb_b += Std.string(dr.toGLSL() + " = vec4(greaterThanEqual(" + sr1.toGLSL() + ", " + sr2.toGLSL() + "))" + dr.getWriteMask() + "; // ste"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 42: sr1.sourceMask = sr2.sourceMask = 15; sb_b += Std.string(dr.toGLSL() + " = vec4(lessThan(" + sr1.toGLSL() + ", " + sr2.toGLSL() + "))" + dr.getWriteMask() + "; // slt"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 44: sr1.sourceMask = sr2.sourceMask = 15; sb_b += Std.string(dr.toGLSL() + " = vec4(equal(" + sr1.toGLSL() + ", " + sr2.toGLSL() + "))" + dr.getWriteMask() + "; // seq"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; case 45: sr1.sourceMask = sr2.sourceMask = 15; sb_b += Std.string(dr.toGLSL() + " = vec4(notEqual(" + sr1.toGLSL() + ", " + sr2.toGLSL() + "))" + dr.getWriteMask() + "; // sne"); map.addDR(dr,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr1,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); map.addSR(sr2,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Opcode " + opcode)); } sb_b += "\n"; } if(openfl__$internal_stage3D_AGALConverter.limitedProfile == null) { var version1 = lime_graphics_opengl_GL.context.__context.getParameter(7938); openfl__$internal_stage3D_AGALConverter.limitedProfile = version1.indexOf("OpenGL ES") > -1 || version1.indexOf("WebGL") > -1; } var glsl_b = ""; glsl_b += Std.string("// AGAL " + (programType == openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX ? "vertex" : "fragment") + " shader\n"); if(openfl__$internal_stage3D_AGALConverter.limitedProfile) { glsl_b += "#version 100\n"; glsl_b += "precision highp float;\n"; } else { glsl_b += "#version 120\n"; } glsl_b += Std.string(map.toGLSL(false)); if(programType == openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX) { glsl_b += "uniform vec4 vcPositionScale;\n"; } glsl_b += "void main() {\n"; glsl_b += Std.string(map.toGLSL(true)); glsl_b += Std.string(sb_b); if(programType == openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX) { glsl_b += "\tgl_Position *= vcPositionScale;\n"; } glsl_b += "}\n"; return glsl_b; }; var openfl__$internal_stage3D__$AGALConverter_DestRegister = function() { }; $hxClasses["openfl._internal.stage3D._AGALConverter.DestRegister"] = openfl__$internal_stage3D__$AGALConverter_DestRegister; openfl__$internal_stage3D__$AGALConverter_DestRegister.__name__ = ["openfl","_internal","stage3D","_AGALConverter","DestRegister"]; openfl__$internal_stage3D__$AGALConverter_DestRegister.parse = function(v,programType) { var dr = new openfl__$internal_stage3D__$AGALConverter_DestRegister(); dr.programType = programType; dr.type = v >>> 24 & 15; dr.mask = v >>> 16 & 15; dr.n = v & 65535; return dr; }; openfl__$internal_stage3D__$AGALConverter_DestRegister.prototype = { mask: null ,n: null ,programType: null ,type: null ,getWriteMask: function() { var str = "."; if((this.mask & 1) != 0) { str += "x"; } if((this.mask & 2) != 0) { str += "y"; } if((this.mask & 4) != 0) { str += "z"; } if((this.mask & 8) != 0) { str += "w"; } return str; } ,toGLSL: function(useMask) { if(useMask == null) { useMask = true; } var str; if(this.type == 3) { if(this.programType == openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX) { str = "gl_Position"; } else { str = "gl_FragColor"; } } else { str = openfl__$internal_stage3D_AGALConverter.prefixFromType(this.type,this.programType) + this.n; } if(useMask && this.mask != 15) { str += this.getWriteMask(); } return str; } ,__class__: openfl__$internal_stage3D__$AGALConverter_DestRegister }; var openfl__$internal_stage3D__$AGALConverter_ProgramType = $hxClasses["openfl._internal.stage3D._AGALConverter.ProgramType"] = { __ename__ : ["openfl","_internal","stage3D","_AGALConverter","ProgramType"], __constructs__ : ["VERTEX","FRAGMENT"] }; openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX = ["VERTEX",0]; openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX.toString = $estr; openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX.__enum__ = openfl__$internal_stage3D__$AGALConverter_ProgramType; openfl__$internal_stage3D__$AGALConverter_ProgramType.FRAGMENT = ["FRAGMENT",1]; openfl__$internal_stage3D__$AGALConverter_ProgramType.FRAGMENT.toString = $estr; openfl__$internal_stage3D__$AGALConverter_ProgramType.FRAGMENT.__enum__ = openfl__$internal_stage3D__$AGALConverter_ProgramType; openfl__$internal_stage3D__$AGALConverter_ProgramType.__empty_constructs__ = [openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX,openfl__$internal_stage3D__$AGALConverter_ProgramType.FRAGMENT]; var openfl__$internal_stage3D_RegisterMap = function() { this.mEntries = []; }; $hxClasses["openfl._internal.stage3D.RegisterMap"] = openfl__$internal_stage3D_RegisterMap; openfl__$internal_stage3D_RegisterMap.__name__ = ["openfl","_internal","stage3D","RegisterMap"]; openfl__$internal_stage3D_RegisterMap.prototype = { mEntries: null ,add: function(type,name,number,usage) { var _g = 0; var _g1 = this.mEntries; while(_g < _g1.length) { var entry = _g1[_g]; ++_g; if(entry.type == type && entry.name == name && entry.number == number) { if(entry.usage != usage) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Cannot use register in multiple ways yet (mat4/vec4)")); } return; } } var entry1 = new openfl__$internal_stage3D__$AGALConverter_RegisterMapEntry(); entry1.type = type; entry1.name = name; entry1.number = number; entry1.usage = usage; this.mEntries.push(entry1); } ,addDR: function(dr,usage) { this.add(dr.type,dr.toGLSL(false),dr.n,usage); } ,addSaR: function(sr,usage) { this.add(sr.type,sr.toGLSL(),sr.n,usage); } ,addSR: function(sr,usage,offset) { if(offset == null) { offset = 0; } if(sr.d != 0) { this.add(sr.itype,openfl__$internal_stage3D_AGALConverter.prefixFromType(sr.itype,sr.programType) + sr.n,sr.n,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4); this.add(sr.type,openfl__$internal_stage3D_AGALConverter.prefixFromType(sr.type,sr.programType) + sr.o,sr.o,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY); return; } this.add(sr.type,sr.toGLSL(false,offset),sr.n + offset,usage); } ,getRegisterUsage: function(sr) { if(sr.d != 0) { return openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY; } return this.getUsage(sr.type,sr.toGLSL(false),sr.n); } ,getUsage: function(type,name,number) { var _g = 0; var _g1 = this.mEntries; while(_g < _g1.length) { var entry = _g1[_g]; ++_g; if(entry.type == type && entry.name == name && entry.number == number) { return entry.usage; } } return openfl__$internal_stage3D__$AGALConverter_RegisterUsage.UNUSED; } ,toGLSL: function(tempRegistersOnly) { this.mEntries.sort(function(a,b) { return a.number - b.number; }); var arrayCount = new haxe_ds_ObjectMap(); var entry; var _g1 = 0; var _g = this.mEntries.length; while(_g1 < _g) { var i = _g1++; entry = this.mEntries[i]; if(entry.usage == openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY) { if(i < this.mEntries.length - 1) { var v = this.mEntries[i + 1].number - entry.number; arrayCount.set(entry,v); } else { arrayCount.set(entry,128); } } } this.mEntries.sort(function(a1,b1) { return js_Boot.__cast(a1.type , Int) - js_Boot.__cast(b1.type , Int); }); var sb_b = ""; var _g11 = 0; var _g2 = this.mEntries.length; while(_g11 < _g2) { var i1 = _g11++; entry = this.mEntries[i1]; if(tempRegistersOnly && entry.type != 2 || !tempRegistersOnly && entry.type == 2) { continue; } if(entry.type == 3) { continue; } var _g21 = entry.type; switch(_g21) { case 0: sb_b += "attribute "; break; case 1: sb_b += "uniform "; break; case 2: sb_b += "\t"; break; case 3: break; case 4: sb_b += "varying "; break; case 5: sb_b += "uniform "; break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } var _g3 = entry.usage; switch(_g3[1]) { case 0: haxe_Log.trace("Missing switch patten: RegisterUsage.UNUSED",{ fileName : "AGALConverter.hx", lineNumber : 811, className : "openfl._internal.stage3D.RegisterMap", methodName : "toGLSL"}); break; case 1: sb_b += "vec4 "; break; case 2: sb_b += "mat4 "; break; case 3: sb_b += "sampler2D "; break; case 4: haxe_Log.trace("Missing switch patten: RegisterUsage.SAMPLER_2D_ALPHA",{ fileName : "AGALConverter.hx", lineNumber : 815, className : "openfl._internal.stage3D.RegisterMap", methodName : "toGLSL"}); break; case 5: sb_b += "samplerCube "; break; case 6: sb_b += "vec4 "; break; } if(entry.usage == openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D_ALPHA) { sb_b += "sampler2D "; sb_b += Std.string(entry.name); sb_b += ";\n"; sb_b += "uniform "; sb_b += "sampler2D "; sb_b += Std.string(entry.name + "_alpha"); sb_b += ";\n"; } else if(entry.usage == openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY) { sb_b += Std.string(entry.name + "[" + arrayCount.h[entry.__id__] + "]"); sb_b += ";\n"; } else { sb_b += Std.string(entry.name); sb_b += ";\n"; } } return sb_b; } ,__class__: openfl__$internal_stage3D_RegisterMap }; var openfl__$internal_stage3D__$AGALConverter_RegisterMapEntry = function() { }; $hxClasses["openfl._internal.stage3D._AGALConverter.RegisterMapEntry"] = openfl__$internal_stage3D__$AGALConverter_RegisterMapEntry; openfl__$internal_stage3D__$AGALConverter_RegisterMapEntry.__name__ = ["openfl","_internal","stage3D","_AGALConverter","RegisterMapEntry"]; openfl__$internal_stage3D__$AGALConverter_RegisterMapEntry.prototype = { name: null ,number: null ,type: null ,usage: null ,__class__: openfl__$internal_stage3D__$AGALConverter_RegisterMapEntry }; var openfl__$internal_stage3D__$AGALConverter_RegisterUsage = $hxClasses["openfl._internal.stage3D._AGALConverter.RegisterUsage"] = { __ename__ : ["openfl","_internal","stage3D","_AGALConverter","RegisterUsage"], __constructs__ : ["UNUSED","VECTOR_4","MATRIX_4_4","SAMPLER_2D","SAMPLER_2D_ALPHA","SAMPLER_CUBE","VECTOR_4_ARRAY"] }; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.UNUSED = ["UNUSED",0]; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.UNUSED.toString = $estr; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.UNUSED.__enum__ = openfl__$internal_stage3D__$AGALConverter_RegisterUsage; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4 = ["VECTOR_4",1]; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4.toString = $estr; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4.__enum__ = openfl__$internal_stage3D__$AGALConverter_RegisterUsage; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.MATRIX_4_4 = ["MATRIX_4_4",2]; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.MATRIX_4_4.toString = $estr; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.MATRIX_4_4.__enum__ = openfl__$internal_stage3D__$AGALConverter_RegisterUsage; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D = ["SAMPLER_2D",3]; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D.toString = $estr; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D.__enum__ = openfl__$internal_stage3D__$AGALConverter_RegisterUsage; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D_ALPHA = ["SAMPLER_2D_ALPHA",4]; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D_ALPHA.toString = $estr; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D_ALPHA.__enum__ = openfl__$internal_stage3D__$AGALConverter_RegisterUsage; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_CUBE = ["SAMPLER_CUBE",5]; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_CUBE.toString = $estr; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_CUBE.__enum__ = openfl__$internal_stage3D__$AGALConverter_RegisterUsage; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY = ["VECTOR_4_ARRAY",6]; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY.toString = $estr; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY.__enum__ = openfl__$internal_stage3D__$AGALConverter_RegisterUsage; openfl__$internal_stage3D__$AGALConverter_RegisterUsage.__empty_constructs__ = [openfl__$internal_stage3D__$AGALConverter_RegisterUsage.UNUSED,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.MATRIX_4_4,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_2D_ALPHA,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.SAMPLER_CUBE,openfl__$internal_stage3D__$AGALConverter_RegisterUsage.VECTOR_4_ARRAY]; var openfl__$internal_stage3D__$AGALConverter_SamplerRegister = function() { }; $hxClasses["openfl._internal.stage3D._AGALConverter.SamplerRegister"] = openfl__$internal_stage3D__$AGALConverter_SamplerRegister; openfl__$internal_stage3D__$AGALConverter_SamplerRegister.__name__ = ["openfl","_internal","stage3D","_AGALConverter","SamplerRegister"]; openfl__$internal_stage3D__$AGALConverter_SamplerRegister.parse = function(v,programType) { var sr = new openfl__$internal_stage3D__$AGALConverter_SamplerRegister(); sr.programType = programType; var b = 60; b &= 63; var a; if(b == 0) { var this1 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a = this1; } else if(b < 32) { var this2 = new haxe__$Int64__$_$_$Int64(v.high >> b,v.high << 32 - b | v.low >>> b); a = this2; } else { var this3 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b - 32); a = this3; } var this4 = new haxe__$Int64__$_$_$Int64(0,15); var b1 = this4; var this5 = new haxe__$Int64__$_$_$Int64(a.high & b1.high,a.low & b1.low); sr.f = this5.low; var b2 = 56; b2 &= 63; var a1; if(b2 == 0) { var this6 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a1 = this6; } else if(b2 < 32) { var this7 = new haxe__$Int64__$_$_$Int64(v.high >> b2,v.high << 32 - b2 | v.low >>> b2); a1 = this7; } else { var this8 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b2 - 32); a1 = this8; } var this9 = new haxe__$Int64__$_$_$Int64(0,15); var b3 = this9; var this10 = new haxe__$Int64__$_$_$Int64(a1.high & b3.high,a1.low & b3.low); sr.m = this10.low; var b4 = 52; b4 &= 63; var a2; if(b4 == 0) { var this11 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a2 = this11; } else if(b4 < 32) { var this12 = new haxe__$Int64__$_$_$Int64(v.high >> b4,v.high << 32 - b4 | v.low >>> b4); a2 = this12; } else { var this13 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b4 - 32); a2 = this13; } var this14 = new haxe__$Int64__$_$_$Int64(0,15); var b5 = this14; var this15 = new haxe__$Int64__$_$_$Int64(a2.high & b5.high,a2.low & b5.low); sr.w = this15.low; var b6 = 48; b6 &= 63; var a3; if(b6 == 0) { var this16 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a3 = this16; } else if(b6 < 32) { var this17 = new haxe__$Int64__$_$_$Int64(v.high >> b6,v.high << 32 - b6 | v.low >>> b6); a3 = this17; } else { var this18 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b6 - 32); a3 = this18; } var this19 = new haxe__$Int64__$_$_$Int64(0,15); var b7 = this19; var this20 = new haxe__$Int64__$_$_$Int64(a3.high & b7.high,a3.low & b7.low); sr.s = this20.low; var b8 = 44; b8 &= 63; var a4; if(b8 == 0) { var this21 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a4 = this21; } else if(b8 < 32) { var this22 = new haxe__$Int64__$_$_$Int64(v.high >> b8,v.high << 32 - b8 | v.low >>> b8); a4 = this22; } else { var this23 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b8 - 32); a4 = this23; } var this24 = new haxe__$Int64__$_$_$Int64(0,15); var b9 = this24; var this25 = new haxe__$Int64__$_$_$Int64(a4.high & b9.high,a4.low & b9.low); sr.d = this25.low; var b10 = 40; b10 &= 63; var a5; if(b10 == 0) { var this26 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a5 = this26; } else if(b10 < 32) { var this27 = new haxe__$Int64__$_$_$Int64(v.high >> b10,v.high << 32 - b10 | v.low >>> b10); a5 = this27; } else { var this28 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b10 - 32); a5 = this28; } var this29 = new haxe__$Int64__$_$_$Int64(0,15); var b11 = this29; var this30 = new haxe__$Int64__$_$_$Int64(a5.high & b11.high,a5.low & b11.low); sr.t = this30.low; var b12 = 32; b12 &= 63; var a6; if(b12 == 0) { var this31 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a6 = this31; } else if(b12 < 32) { var this32 = new haxe__$Int64__$_$_$Int64(v.high >> b12,v.high << 32 - b12 | v.low >>> b12); a6 = this32; } else { var this33 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b12 - 32); a6 = this33; } var this34 = new haxe__$Int64__$_$_$Int64(0,15); var b13 = this34; var this35 = new haxe__$Int64__$_$_$Int64(a6.high & b13.high,a6.low & b13.low); sr.type = this35.low; var b14 = 16; b14 &= 63; var a7; if(b14 == 0) { var this36 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a7 = this36; } else if(b14 < 32) { var this37 = new haxe__$Int64__$_$_$Int64(v.high >> b14,v.high << 32 - b14 | v.low >>> b14); a7 = this37; } else { var this38 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b14 - 32); a7 = this38; } var this39 = new haxe__$Int64__$_$_$Int64(0,255); var b15 = this39; var this40 = new haxe__$Int64__$_$_$Int64(a7.high & b15.high,a7.low & b15.low); sr.b = this40.low; var this41 = new haxe__$Int64__$_$_$Int64(0,65535); var b16 = this41; var this42 = new haxe__$Int64__$_$_$Int64(v.high & b16.high,v.low & b16.low); sr.n = this42.low; return sr; }; openfl__$internal_stage3D__$AGALConverter_SamplerRegister.prototype = { b: null ,d: null ,f: null ,m: null ,n: null ,programType: null ,s: null ,t: null ,type: null ,w: null ,toGLSL: function() { var str = openfl__$internal_stage3D_AGALConverter.prefixFromType(this.type,this.programType) + this.n; return str; } ,toSamplerState: function() { var magFilter = 0; var minFilter = 0; var wrapModeS = 0; var wrapModeT = 0; var _g = this.f; switch(_g) { case 0: magFilter = 9728; break; case 1: magFilter = 9729; break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } var _g1 = this.m; switch(_g1) { case 0: if(this.f != 0) { minFilter = 9729; } else { minFilter = 9728; } break; case 1: if(this.f != 0) { minFilter = 9985; } else { minFilter = 9984; } break; case 2: if(this.f != 0) { minFilter = 9987; } else { minFilter = 9986; } break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } var _g2 = this.w; switch(_g2) { case 0: wrapModeS = 33071; wrapModeT = 33071; break; case 1: wrapModeS = 10497; wrapModeT = 10497; break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } var ignoreSampler = (this.s & 4) == 4; var centroid = (this.s & 1) == 1; var lodBias = (this.b << 24 >> 24) / 8.0; var maxAniso = 0.0; return new openfl__$internal_stage3D_SamplerState(minFilter,magFilter,wrapModeS,wrapModeT,lodBias,maxAniso,ignoreSampler,centroid); } ,__class__: openfl__$internal_stage3D__$AGALConverter_SamplerRegister }; var openfl__$internal_stage3D__$AGALConverter_SourceRegister = function() { }; $hxClasses["openfl._internal.stage3D._AGALConverter.SourceRegister"] = openfl__$internal_stage3D__$AGALConverter_SourceRegister; openfl__$internal_stage3D__$AGALConverter_SourceRegister.__name__ = ["openfl","_internal","stage3D","_AGALConverter","SourceRegister"]; openfl__$internal_stage3D__$AGALConverter_SourceRegister.parse = function(v,programType,sourceMask) { var sr = new openfl__$internal_stage3D__$AGALConverter_SourceRegister(); sr.programType = programType; var b = 63; b &= 63; var a; if(b == 0) { var this1 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a = this1; } else if(b < 32) { var this2 = new haxe__$Int64__$_$_$Int64(v.high >> b,v.high << 32 - b | v.low >>> b); a = this2; } else { var this3 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b - 32); a = this3; } var this4 = new haxe__$Int64__$_$_$Int64(0,1); var b1 = this4; var this5 = new haxe__$Int64__$_$_$Int64(a.high & b1.high,a.low & b1.low); sr.d = this5.low; var b2 = 48; b2 &= 63; var a1; if(b2 == 0) { var this6 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a1 = this6; } else if(b2 < 32) { var this7 = new haxe__$Int64__$_$_$Int64(v.high >> b2,v.high << 32 - b2 | v.low >>> b2); a1 = this7; } else { var this8 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b2 - 32); a1 = this8; } var this9 = new haxe__$Int64__$_$_$Int64(0,3); var b3 = this9; var this10 = new haxe__$Int64__$_$_$Int64(a1.high & b3.high,a1.low & b3.low); sr.q = this10.low; var b4 = 40; b4 &= 63; var a2; if(b4 == 0) { var this11 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a2 = this11; } else if(b4 < 32) { var this12 = new haxe__$Int64__$_$_$Int64(v.high >> b4,v.high << 32 - b4 | v.low >>> b4); a2 = this12; } else { var this13 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b4 - 32); a2 = this13; } var this14 = new haxe__$Int64__$_$_$Int64(0,15); var b5 = this14; var this15 = new haxe__$Int64__$_$_$Int64(a2.high & b5.high,a2.low & b5.low); sr.itype = this15.low; var b6 = 32; b6 &= 63; var a3; if(b6 == 0) { var this16 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a3 = this16; } else if(b6 < 32) { var this17 = new haxe__$Int64__$_$_$Int64(v.high >> b6,v.high << 32 - b6 | v.low >>> b6); a3 = this17; } else { var this18 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b6 - 32); a3 = this18; } var this19 = new haxe__$Int64__$_$_$Int64(0,15); var b7 = this19; var this20 = new haxe__$Int64__$_$_$Int64(a3.high & b7.high,a3.low & b7.low); sr.type = this20.low; var b8 = 24; b8 &= 63; var a4; if(b8 == 0) { var this21 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a4 = this21; } else if(b8 < 32) { var this22 = new haxe__$Int64__$_$_$Int64(v.high >> b8,v.high << 32 - b8 | v.low >>> b8); a4 = this22; } else { var this23 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b8 - 32); a4 = this23; } var this24 = new haxe__$Int64__$_$_$Int64(0,255); var b9 = this24; var this25 = new haxe__$Int64__$_$_$Int64(a4.high & b9.high,a4.low & b9.low); sr.s = this25.low; var b10 = 16; b10 &= 63; var a5; if(b10 == 0) { var this26 = new haxe__$Int64__$_$_$Int64(v.high,v.low); a5 = this26; } else if(b10 < 32) { var this27 = new haxe__$Int64__$_$_$Int64(v.high >> b10,v.high << 32 - b10 | v.low >>> b10); a5 = this27; } else { var this28 = new haxe__$Int64__$_$_$Int64(v.high >> 31,v.high >> b10 - 32); a5 = this28; } var this29 = new haxe__$Int64__$_$_$Int64(0,255); var b11 = this29; var this30 = new haxe__$Int64__$_$_$Int64(a5.high & b11.high,a5.low & b11.low); sr.o = this30.low; var this31 = new haxe__$Int64__$_$_$Int64(0,65535); var b12 = this31; var this32 = new haxe__$Int64__$_$_$Int64(v.high & b12.high,v.low & b12.low); sr.n = this32.low; sr.sourceMask = sourceMask; return sr; }; openfl__$internal_stage3D__$AGALConverter_SourceRegister.prototype = { d: null ,itype: null ,n: null ,o: null ,programType: null ,q: null ,s: null ,sourceMask: null ,type: null ,toGLSL: function(emitSwizzle,offset) { if(offset == null) { offset = 0; } if(emitSwizzle == null) { emitSwizzle = true; } if(this.type == 3) { if(this.programType == openfl__$internal_stage3D__$AGALConverter_ProgramType.VERTEX) { return "gl_Position"; } else { return "gl_FragColor"; } } var fullxyzw = this.s == 228 && this.sourceMask == 15; var swizzle = ""; if(this.type != 5 && !fullxyzw) { var _g = 0; while(_g < 4) { var i = _g++; if((this.sourceMask & 1 << i) != 0) { var _g1 = this.s >> i * 2 & 3; switch(_g1) { case 0: swizzle += "x"; break; case 1: swizzle += "y"; break; case 2: swizzle += "z"; break; case 3: swizzle += "w"; break; } } } } var str = openfl__$internal_stage3D_AGALConverter.prefixFromType(this.type,this.programType); if(this.d == 0) { str += this.n + offset; } else { str += this.o; var indexComponent = String.fromCharCode(HxOverrides.cca("x",0) + this.q); var indexRegister = openfl__$internal_stage3D_AGALConverter.prefixFromType(this.itype,this.programType) + this.n + "." + indexComponent; str += "[ int(" + indexRegister + ") +" + offset + "]"; } if(emitSwizzle && swizzle != "") { str += "." + swizzle; } return str; } ,__class__: openfl__$internal_stage3D__$AGALConverter_SourceRegister }; var openfl__$internal_stage3D_Context3DStateCache = function() { this._registers = openfl__$Vector_Vector_$Impl_$.toFloatVector(null,4096); this.clearSettings(); }; $hxClasses["openfl._internal.stage3D.Context3DStateCache"] = openfl__$internal_stage3D_Context3DStateCache; openfl__$internal_stage3D_Context3DStateCache.__name__ = ["openfl","_internal","stage3D","Context3DStateCache"]; openfl__$internal_stage3D_Context3DStateCache.prototype = { _activeTexture: null ,_activeVertexArray: null ,_cullingMode: null ,_depthTestCompareMode: null ,_depthTestEnabled: null ,_depthTestMask: null ,_destBlendFactor: null ,_program: null ,_registers: null ,_srcBlendFactor: null ,_viewportHeight: null ,_viewportOriginX: null ,_viewportOriginY: null ,_viewportWidth: null ,clearRegisters: function() { var numFloats = 4096; var _g1 = 0; var _g = numFloats; while(_g1 < _g) { var c = _g1++; this._registers.data.set(c,-999999999.0); } } ,clearSettings: function() { this._srcBlendFactor = null; this._destBlendFactor = null; this._depthTestEnabled = false; this._depthTestMask = false; this._depthTestCompareMode = null; this._program = null; this._cullingMode = null; this._activeTexture = -1; this._activeVertexArray = -1; this._viewportOriginX = -1; this._viewportOriginY = -1; this._viewportWidth = -1; this._viewportHeight = -1; this.clearRegisters(); } ,updateActiveTextureSample: function(texture) { this._activeTexture = texture; return true; } ,updateActiveVertexArray: function(vertexArray) { this._activeVertexArray = vertexArray; return true; } ,updateBlendDestFactor: function(factor) { this._destBlendFactor = factor; return true; } ,updateBlendSrcFactor: function(factor) { this._srcBlendFactor = factor; return true; } ,updateCullingMode: function(cullMode) { this._cullingMode = cullMode; return true; } ,updateDepthCompareMode: function(mode) { this._depthTestCompareMode = mode; return true; } ,updateDepthTestEnabled: function(test) { this._depthTestEnabled = test; return true; } ,updateDepthTestMask: function(mask) { this._depthTestMask = mask; return true; } ,updateProgram3D: function(program3d) { this._program = program3d; return true; } ,updateRegisters: function(mTemp,startRegister,numRegisters) { return true; } ,updateViewport: function(originX,originY,width,height) { this._viewportOriginX = originX; this._viewportOriginY = originY; this._viewportWidth = width; this._viewportHeight = height; return true; } ,__class__: openfl__$internal_stage3D_Context3DStateCache }; var openfl__$internal_stage3D_GLUtils = function() { }; $hxClasses["openfl._internal.stage3D.GLUtils"] = openfl__$internal_stage3D_GLUtils; openfl__$internal_stage3D_GLUtils.__name__ = ["openfl","_internal","stage3D","GLUtils"]; openfl__$internal_stage3D_GLUtils.CheckGLError = function() { if(!openfl__$internal_stage3D_GLUtils.debug) { return; } var error = lime_graphics_opengl_GL.context.__context.getError(); if(error != 0) { var errorText; switch(error) { case 0: errorText = "GL_NO_ERROR"; break; case 1280: errorText = "GL_INVALID_ENUM"; break; case 1281: errorText = "GL_INVALID_VALUE"; break; case 1282: errorText = "GL_INVALID_OPERATION"; break; case 1285: errorText = "GL_OUT_OF_MEMORY"; break; case 1286: errorText = "GL_INVALID_FRAMEBUFFER_OPERATION"; break; default: if(error == null) { errorText = "null"; } else { errorText = "" + error; } } throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Error calling openGL api. Error: " + errorText + "\n")); } }; var openfl__$internal_stage3D_SamplerState = function(minFilter,magFilter,wrapModeS,wrapModeT,lodBias,maxAniso,ignoreSampler,centroid,mipmapGenerated) { if(mipmapGenerated == null) { mipmapGenerated = false; } if(centroid == null) { centroid = false; } if(ignoreSampler == null) { ignoreSampler = false; } if(maxAniso == null) { maxAniso = 0.0; } if(lodBias == null) { lodBias = 0.0; } this.set_minFilter(minFilter); this.set_magFilter(magFilter); this.set_wrapModeS(wrapModeS); this.set_wrapModeT(wrapModeT); this.set_lodBias(lodBias); this.set_maxAniso(maxAniso); this.ignoreSampler = ignoreSampler; this.centroid = centroid; this.mipmapGenerated = mipmapGenerated; this.__samplerDirty = true; }; $hxClasses["openfl._internal.stage3D.SamplerState"] = openfl__$internal_stage3D_SamplerState; openfl__$internal_stage3D_SamplerState.__name__ = ["openfl","_internal","stage3D","SamplerState"]; openfl__$internal_stage3D_SamplerState.prototype = { lodBias: null ,magFilter: null ,maxAniso: null ,minFilter: null ,wrapModeS: null ,wrapModeT: null ,centroid: null ,ignoreSampler: null ,mipmapGenerated: null ,__samplerDirty: null ,copyFrom: function(other) { if(other == null || other.ignoreSampler) { return; } this.set_minFilter(other.minFilter); this.set_magFilter(other.magFilter); this.set_wrapModeS(other.wrapModeS); this.set_wrapModeT(other.wrapModeT); this.set_lodBias(other.lodBias); this.set_maxAniso(other.maxAniso); this.centroid = other.centroid; this.mipmapGenerated = other.mipmapGenerated; } ,equals: function(other) { if(this == other) { return !this.__samplerDirty; } if(other == null) { return false; } if(this.minFilter == other.minFilter && this.magFilter == other.magFilter && this.wrapModeS == other.wrapModeS && this.wrapModeT == other.wrapModeT && this.lodBias == other.lodBias && this.maxAniso == other.maxAniso) { return this.mipmapGenerated == other.mipmapGenerated; } else { return false; } } ,set_lodBias: function(value) { if(this.lodBias != value) { this.__samplerDirty = true; } return this.lodBias = value; } ,set_magFilter: function(value) { if(this.magFilter != value) { this.__samplerDirty = true; } return this.magFilter = value; } ,set_maxAniso: function(value) { if(this.maxAniso != value) { this.__samplerDirty = true; } return this.maxAniso = value; } ,set_minFilter: function(value) { if(this.minFilter != value) { this.__samplerDirty = true; } return this.minFilter = value; } ,set_wrapModeS: function(value) { if(this.wrapModeS != value) { this.__samplerDirty = true; } return this.wrapModeS = value; } ,set_wrapModeT: function(value) { if(this.wrapModeT != value) { this.__samplerDirty = true; } return this.wrapModeT = value; } ,__class__: openfl__$internal_stage3D_SamplerState ,__properties__: {set_wrapModeT:"set_wrapModeT",set_wrapModeS:"set_wrapModeS",set_minFilter:"set_minFilter",set_maxAniso:"set_maxAniso",set_magFilter:"set_magFilter",set_lodBias:"set_lodBias"} }; var openfl__$internal_stage3D_atf_ATFReader = function(data,byteArrayOffset) { this.version = 0; data.position = byteArrayOffset; var signature = data.readUTFBytes(3); data.position = byteArrayOffset; if(signature != "ATF") { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("ATF signature not found")); } var length = 0; if(data.b[byteArrayOffset + 6] == 255) { this.version = data.b[byteArrayOffset + 7]; data.position = byteArrayOffset + 8; length = this.__readUInt32(data); } else { this.version = 0; data.position = byteArrayOffset + 3; length = this.__readUInt24(data); } if(js_Boot.__cast(byteArrayOffset + length , Int) > openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(data)) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("ATF length exceeds byte array length")); } this.data = data; }; $hxClasses["openfl._internal.stage3D.atf.ATFReader"] = openfl__$internal_stage3D_atf_ATFReader; openfl__$internal_stage3D_atf_ATFReader.__name__ = ["openfl","_internal","stage3D","atf","ATFReader"]; openfl__$internal_stage3D_atf_ATFReader.prototype = { data: null ,version: null ,cubeMap: null ,width: null ,height: null ,mipCount: null ,readHeader: function(__width,__height,cubeMap) { var tdata = this.data.readUnsignedByte(); var type = tdata >> 7; if(!cubeMap && type != 0) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("ATF Cube map not expected")); } if(cubeMap && type != 1) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("ATF Cube map expected")); } this.cubeMap = cubeMap; var atfFormat = tdata & 127; this.width = 1 << this.data.readUnsignedByte(); this.height = 1 << this.data.readUnsignedByte(); if(this.width != __width || this.height != __height) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("ATF width and height dont match")); } this.mipCount = this.data.readUnsignedByte(); return atfFormat; } ,readTextures: function(uploadCallback) { var gpuFormats = this.version < 3 ? 3 : 4; var sideCount = this.cubeMap ? 6 : 1; var _g1 = 0; var _g = sideCount; while(_g1 < _g) { var side = _g1++; var _g3 = 0; var _g2 = this.mipCount; while(_g3 < _g2) { var level = _g3++; var _g5 = 0; var _g4 = gpuFormats; while(_g5 < _g4) { var gpuFormat = _g5++; var blockLength = this.version == 0 ? this.__readUInt24(this.data) : this.__readUInt32(this.data); if(_$UInt_UInt_$Impl_$.gt(this.data.position + blockLength,openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(this.data))) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Block length exceeds ATF file length")); } if(_$UInt_UInt_$Impl_$.gt(blockLength,0)) { if(gpuFormat == 0) { var bytes = new haxe_io_Bytes(new ArrayBuffer(blockLength)); this.data.readBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(bytes),0,blockLength); uploadCallback(side,level,this.width >> level,this.height >> level,blockLength,lime_utils__$DataPointer_DataPointer_$Impl_$.fromBytes(bytes)); } else { this.data.position = this.data.position + blockLength; } } } } } } ,__readUInt24: function(data) { var value = data.readUnsignedByte() << 16; value = value | data.readUnsignedByte() << 8; value = value | data.readUnsignedByte(); return value; } ,__readUInt32: function(data) { var value = data.readUnsignedByte() << 24; value = value | data.readUnsignedByte() << 16; value = value | data.readUnsignedByte() << 8; value = value | data.readUnsignedByte(); return value; } ,__class__: openfl__$internal_stage3D_atf_ATFReader }; var openfl__$internal_stage3D_opengl_GLContext3D = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLContext3D"] = openfl__$internal_stage3D_opengl_GLContext3D; openfl__$internal_stage3D_opengl_GLContext3D.__name__ = ["openfl","_internal","stage3D","opengl","GLContext3D"]; openfl__$internal_stage3D_opengl_GLContext3D.create = function(context) { var gl = context.__renderSession.gl; var this1 = new Float32Array(512); context.__vertexConstants = this1; var this2 = new Float32Array(512); context.__fragmentConstants = this2; var array = [1.0,1.0,1.0,1.0]; var this3; if(array != null) { this3 = new Float32Array(array); } else { this3 = null; } context.__positionScale = this3; context.__samplerDirty = 0; context.__samplerTextures = openfl__$Vector_Vector_$Impl_$.toObjectVector(null,8); context.__samplerStates = []; var _g = 0; while(_g < 8) { var i = _g++; context.__samplerStates[i] = new openfl__$internal_stage3D_SamplerState(gl.LINEAR,gl.LINEAR,gl.CLAMP_TO_EDGE,gl.CLAMP_TO_EDGE); } context.maxBackBufferHeight = context.maxBackBufferWidth = gl.__context.getParameter(gl.MAX_VIEWPORT_DIMS); context.__backBufferAntiAlias = 0; context.__backBufferEnableDepthAndStencil = true; context.__backBufferWantsBestResolution = false; context.__frameCount = 0; context.__rttDepthAndStencil = false; context.__samplerDirty = 0; context.__stencilCompareMode = 0; context.__stencilRef = 0; context.__stencilReadMask = 255; var anisoExtension = gl.__context.getExtension("EXT_texture_filter_anisotropic"); if(anisoExtension == null || !Object.prototype.hasOwnProperty.call(anisoExtension,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")) { anisoExtension = gl.__context.getExtension("MOZ_EXT_texture_filter_anisotropic"); } if(anisoExtension == null || !Object.prototype.hasOwnProperty.call(anisoExtension,"MAX_TEXTURE_MAX_ANISOTROPY_EXT")) { anisoExtension = gl.__context.getExtension("WEBKIT_EXT_texture_filter_anisotropic"); } context.__supportsPackedDepthStencil = true; openfl_display3D_Context3D.DEPTH_STENCIL = gl.DEPTH_STENCIL; context.__supportsAnisotropicFiltering = anisoExtension != null; if(context.__supportsAnisotropicFiltering) { openfl_display3D_Context3D.TEXTURE_MAX_ANISOTROPY_EXT = anisoExtension.TEXTURE_MAX_ANISOTROPY_EXT; var maxAnisotropy = gl.__context.getParameter(anisoExtension.MAX_TEXTURE_MAX_ANISOTROPY_EXT); context.__maxAnisotropyTexture2D = maxAnisotropy; context.__maxAnisotropyTexture2D = maxAnisotropy; } openfl__$internal_stage3D_GLUtils.CheckGLError(); var vendor = gl.__context.getParameter(gl.VENDOR); openfl__$internal_stage3D_GLUtils.CheckGLError(); var version = gl.__context.getParameter(gl.VERSION); openfl__$internal_stage3D_GLUtils.CheckGLError(); var renderer = gl.__context.getParameter(gl.RENDERER); openfl__$internal_stage3D_GLUtils.CheckGLError(); var glslVersion = gl.__context.getParameter(gl.SHADING_LANGUAGE_VERSION); openfl__$internal_stage3D_GLUtils.CheckGLError(); context.driverInfo = "OpenGL" + " Vendor=" + vendor + " Version=" + version + " Renderer=" + renderer + " GLSL=" + glslVersion; }; openfl__$internal_stage3D_opengl_GLContext3D.clear = function(context,red,green,blue,alpha,depth,stencil,mask) { if(mask == null) { mask = 7; } if(stencil == null) { stencil = 0; } if(depth == null) { depth = 1; } if(alpha == null) { alpha = 1; } if(blue == null) { blue = 0; } if(green == null) { green = 0; } if(red == null) { red = 0; } var gl = context.__renderSession.gl; var clearMask = 0; if((mask & 1) != 0) { clearMask |= gl.COLOR_BUFFER_BIT; gl.__context.clearColor(red,green,blue,alpha); openfl__$internal_stage3D_GLUtils.CheckGLError(); } if((mask & 2) != 0) { clearMask |= gl.DEPTH_BUFFER_BIT; gl.__context.depthMask(true); gl.__context.clearDepth(depth); openfl__$internal_stage3D_GLUtils.CheckGLError(); } if((mask & 4) != 0) { clearMask |= gl.STENCIL_BUFFER_BIT; gl.__context.clearStencil(stencil); openfl__$internal_stage3D_GLUtils.CheckGLError(); } gl.__context.clear(clearMask); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLContext3D.configureBackBuffer = function(context,width,height,antiAlias,enableDepthAndStencil,wantsBestResolution,wantsBestResolutionOnBrowserZoom) { if(wantsBestResolutionOnBrowserZoom == null) { wantsBestResolutionOnBrowserZoom = false; } if(wantsBestResolution == null) { wantsBestResolution = false; } if(enableDepthAndStencil == null) { enableDepthAndStencil = true; } openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; openfl__$internal_stage3D_opengl_GLContext3D.__updateBackbufferViewport(); context.backBufferWidth = width; context.backBufferHeight = height; context.__backBufferAntiAlias = antiAlias; context.__backBufferEnableDepthAndStencil = enableDepthAndStencil; context.__backBufferWantsBestResolution = wantsBestResolution; openfl_display3D_Context3D.__stateCache.clearSettings(); }; openfl__$internal_stage3D_opengl_GLContext3D.dispose = function(context,recreate) { if(recreate == null) { recreate = true; } }; openfl__$internal_stage3D_opengl_GLContext3D.drawToBitmapData = function(context,destination) { var $window = context.__stage3D.__stage.window; if($window != null) { var image = $window.renderer.readPixels(); destination.image.copyPixels(image,image.get_rect(),new lime_math_Vector2()); } }; openfl__$internal_stage3D_opengl_GLContext3D.drawTriangles = function(context,indexBuffer,firstIndex,numTriangles) { if(numTriangles == null) { numTriangles = -1; } if(firstIndex == null) { firstIndex = 0; } if(context.__program == null) { return; } openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; openfl__$internal_stage3D_opengl_GLContext3D.__flushSamplerState(); context.__program.__flush(); var count = numTriangles == -1 ? indexBuffer.__numIndices : numTriangles * 3; openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.bindBuffer(openfl__$internal_stage3D_opengl_GLContext3D.gl.ELEMENT_ARRAY_BUFFER,indexBuffer.__id); openfl__$internal_stage3D_GLUtils.CheckGLError(); var _this = openfl__$internal_stage3D_opengl_GLContext3D.gl; var mode = openfl__$internal_stage3D_opengl_GLContext3D.gl.TRIANGLES; var type = indexBuffer.__elementType; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(firstIndex); _this.__context.drawElements(mode,count,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLContext3D.present = function(context) { }; openfl__$internal_stage3D_opengl_GLContext3D.setBlendFactors = function(context,sourceFactor,destinationFactor) { var updateSrc = openfl_display3D_Context3D.__stateCache.updateBlendSrcFactor(sourceFactor); var updateDest = openfl_display3D_Context3D.__stateCache.updateBlendDestFactor(destinationFactor); if(updateSrc || updateDest) { openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; openfl__$internal_stage3D_opengl_GLContext3D.__updateBlendFactors(); } }; openfl__$internal_stage3D_opengl_GLContext3D.setColorMask = function(context,red,green,blue,alpha) { var gl = context.__renderSession.gl; gl.__context.colorMask(red,green,blue,alpha); }; openfl__$internal_stage3D_opengl_GLContext3D.setCulling = function(context,triangleFaceToCull) { var gl = context.__renderSession.gl; if(openfl_display3D_Context3D.__stateCache.updateCullingMode(triangleFaceToCull)) { switch(triangleFaceToCull) { case 0: gl.__context.enable(gl.CULL_FACE); gl.__context.cullFace(gl.FRONT); break; case 1: gl.__context.enable(gl.CULL_FACE); gl.__context.cullFace(gl.BACK); break; case 2: gl.__context.enable(gl.CULL_FACE); gl.__context.cullFace(gl.FRONT_AND_BACK); break; case 3: gl.__context.disable(gl.CULL_FACE); break; default: return new openfl_errors_IllegalOperationError(); } } return null; }; openfl__$internal_stage3D_opengl_GLContext3D.setDepthTest = function(context,depthMask,passCompareMode) { var gl = context.__renderSession.gl; var depthTestEnabled = context.__backBufferEnableDepthAndStencil; if(openfl_display3D_Context3D.__stateCache.updateDepthTestEnabled(depthTestEnabled)) { if(depthTestEnabled) { gl.__context.enable(gl.DEPTH_TEST); } else { gl.__context.disable(gl.DEPTH_TEST); } } if(openfl_display3D_Context3D.__stateCache.updateDepthTestMask(depthMask)) { gl.__context.depthMask(depthMask); } if(openfl_display3D_Context3D.__stateCache.updateDepthCompareMode(passCompareMode)) { switch(passCompareMode) { case 0: gl.__context.depthFunc(gl.ALWAYS); break; case 1: gl.__context.depthFunc(gl.EQUAL); break; case 2: gl.__context.depthFunc(gl.GREATER); break; case 3: gl.__context.depthFunc(gl.GEQUAL); break; case 4: gl.__context.depthFunc(gl.LESS); break; case 5: gl.__context.depthFunc(gl.LEQUAL); break; case 6: gl.__context.depthFunc(gl.NEVER); break; case 7: gl.__context.depthFunc(gl.NOTEQUAL); break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } } }; openfl__$internal_stage3D_opengl_GLContext3D.setEnableErrorChecking = function(value) { openfl__$internal_stage3D_GLUtils.debug = value; }; openfl__$internal_stage3D_opengl_GLContext3D.setProgram = function(context,program) { if(openfl_display3D_Context3D.__stateCache.updateProgram3D(program)) { program.__use(); program.__setPositionScale(context.__positionScale); context.__program = program; context.__samplerDirty |= context.__program.__samplerUsageMask; var _g = 0; while(_g < 8) { var i = _g++; context.__samplerStates[i].copyFrom(context.__program.__getSamplerState(i)); } } }; openfl__$internal_stage3D_opengl_GLContext3D.setProgramConstantsFromByteArray = function(context,programType,firstRegister,numRegisters,data,byteArrayOffset) { var gl = context.__renderSession.gl; if(numRegisters == -1) { numRegisters = (openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(data) >> 2) - byteArrayOffset; } var isVertex = programType == 1; var dest = isVertex ? context.__vertexConstants : context.__fragmentConstants; var bytes = openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(data); var len = openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(data); var floatData = len == null ? new Float32Array(bytes.b.bufferValue,0) : new Float32Array(bytes.b.bufferValue,0,len); var outOffset = firstRegister * 4; var inOffset = _$UInt_UInt_$Impl_$.toFloat(byteArrayOffset) / _$UInt_UInt_$Impl_$.toFloat(4) | 0; var _g1 = 0; var _g = numRegisters * 4; while(_g1 < _g) { var i = _g1++; dest[outOffset + i] = floatData[inOffset + i]; } if(context.__program != null) { context.__program.__markDirty(isVertex,firstRegister,numRegisters); } }; openfl__$internal_stage3D_opengl_GLContext3D.setProgramConstantsFromMatrix = function(context,programType,firstRegister,matrix,transposedMatrix) { if(transposedMatrix == null) { transposedMatrix = false; } var isVertex = programType == 1; var dest = isVertex ? context.__vertexConstants : context.__fragmentConstants; var source = matrix.rawData; var i = firstRegister * 4; if(transposedMatrix) { dest[i++] = source.data.get(0); dest[i++] = source.data.get(4); dest[i++] = source.data.get(8); dest[i++] = source.data.get(12); dest[i++] = source.data.get(1); dest[i++] = source.data.get(5); dest[i++] = source.data.get(9); dest[i++] = source.data.get(13); dest[i++] = source.data.get(2); dest[i++] = source.data.get(6); dest[i++] = source.data.get(10); dest[i++] = source.data.get(14); dest[i++] = source.data.get(3); dest[i++] = source.data.get(7); dest[i++] = source.data.get(11); dest[i++] = source.data.get(15); } else { dest[i++] = source.data.get(0); dest[i++] = source.data.get(1); dest[i++] = source.data.get(2); dest[i++] = source.data.get(3); dest[i++] = source.data.get(4); dest[i++] = source.data.get(5); dest[i++] = source.data.get(6); dest[i++] = source.data.get(7); dest[i++] = source.data.get(8); dest[i++] = source.data.get(9); dest[i++] = source.data.get(10); dest[i++] = source.data.get(11); dest[i++] = source.data.get(12); dest[i++] = source.data.get(13); dest[i++] = source.data.get(14); dest[i++] = source.data.get(15); } if(context.__program != null) { context.__program.__markDirty(isVertex,firstRegister,4); } }; openfl__$internal_stage3D_opengl_GLContext3D.setProgramConstantsFromVector = function(context,programType,firstRegister,data,numRegisters) { if(numRegisters == null) { numRegisters = -1; } if(numRegisters == -1) { numRegisters = data.data.get_length() >> 2; } var isVertex = programType == 1; var dest = isVertex ? context.__vertexConstants : context.__fragmentConstants; var source = data; var sourceIndex = 0; var destIndex = firstRegister * 4; var _g1 = 0; var _g = numRegisters; while(_g1 < _g) { var i = _g1++; dest[destIndex++] = source.data.get(sourceIndex++); dest[destIndex++] = source.data.get(sourceIndex++); dest[destIndex++] = source.data.get(sourceIndex++); dest[destIndex++] = source.data.get(sourceIndex++); } if(context.__program != null) { context.__program.__markDirty(isVertex,firstRegister,numRegisters); } }; openfl__$internal_stage3D_opengl_GLContext3D.setRenderToBackBuffer = function(context) { var gl = context.__renderSession.gl; gl.__context.bindFramebuffer(gl.FRAMEBUFFER,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.frontFace(gl.CCW); openfl__$internal_stage3D_GLUtils.CheckGLError(); context.__renderToTexture = null; context.__scissorRectangle = null; openfl__$internal_stage3D_opengl_GLContext3D.__updateBackbufferViewport(); openfl__$internal_stage3D_opengl_GLContext3D.__updateScissorRectangle(); openfl__$internal_stage3D_opengl_GLContext3D.__updateDepthAndStencilState(); context.__positionScale[1] = 1.0; if(context.__program != null) { context.__program.__setPositionScale(context.__positionScale); } }; openfl__$internal_stage3D_opengl_GLContext3D.setRenderToTexture = function(context,texture,enableDepthAndStencil,antiAlias,surfaceSelector) { if(surfaceSelector == null) { surfaceSelector = 0; } if(antiAlias == null) { antiAlias = 0; } if(enableDepthAndStencil == null) { enableDepthAndStencil = false; } var gl = context.__renderSession.gl; var width = 0; var height = 0; if(context.__framebuffer == null) { context.__framebuffer = gl.__context.createFramebuffer(); openfl__$internal_stage3D_GLUtils.CheckGLError(); } gl.__context.bindFramebuffer(gl.FRAMEBUFFER,context.__framebuffer); openfl__$internal_stage3D_GLUtils.CheckGLError(); if(js_Boot.__instanceof(texture,openfl_display3D_textures_Texture)) { var texture2D = texture; width = texture2D.__width; height = texture2D.__height; gl.__context.framebufferTexture2D(gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0,gl.TEXTURE_2D,texture.__textureID,0); openfl__$internal_stage3D_GLUtils.CheckGLError(); } else if(js_Boot.__instanceof(texture,openfl_display3D_textures_RectangleTexture)) { var rectTexture = texture; width = rectTexture.__width; height = rectTexture.__height; gl.__context.framebufferTexture2D(gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0,gl.TEXTURE_2D,texture.__textureID,0); openfl__$internal_stage3D_GLUtils.CheckGLError(); } else if(js_Boot.__instanceof(texture,openfl_display3D_textures_CubeTexture)) { var cubeTexture = texture; width = cubeTexture.__size; height = cubeTexture.__size; var _g = 0; while(_g < 6) { var i = _g++; gl.__context.framebufferTexture2D(gl.FRAMEBUFFER,gl.COLOR_ATTACHMENT0,gl.TEXTURE_CUBE_MAP_POSITIVE_X + i,texture.__textureID,0); openfl__$internal_stage3D_GLUtils.CheckGLError(); } } else { throw new js__$Boot_HaxeError(new openfl_errors_Error("Invalid texture")); } if(enableDepthAndStencil) { if(context.__supportsPackedDepthStencil) { if(context.__depthStencilRenderBuffer == null) { context.__depthStencilRenderBuffer = gl.__context.createRenderbuffer(); openfl__$internal_stage3D_GLUtils.CheckGLError(); } gl.__context.bindRenderbuffer(gl.RENDERBUFFER,context.__depthStencilRenderBuffer); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.renderbufferStorage(gl.RENDERBUFFER,openfl_display3D_Context3D.DEPTH_STENCIL,width,height); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.framebufferRenderbuffer(gl.FRAMEBUFFER,gl.DEPTH_STENCIL_ATTACHMENT,gl.RENDERBUFFER,context.__depthStencilRenderBuffer); openfl__$internal_stage3D_GLUtils.CheckGLError(); } else { if(context.__depthRenderBuffer == null) { context.__depthRenderBuffer = gl.__context.createRenderbuffer(); openfl__$internal_stage3D_GLUtils.CheckGLError(); } if(context.__stencilRenderBuffer == null) { context.__stencilRenderBuffer = gl.__context.createRenderbuffer(); openfl__$internal_stage3D_GLUtils.CheckGLError(); } gl.__context.bindRenderbuffer(gl.RENDERBUFFER,context.__depthRenderBuffer); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.renderbufferStorage(gl.RENDERBUFFER,gl.DEPTH_COMPONENT16,width,height); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.bindRenderbuffer(gl.RENDERBUFFER,context.__stencilRenderBuffer); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.renderbufferStorage(gl.RENDERBUFFER,gl.STENCIL_INDEX8,width,height); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.framebufferRenderbuffer(gl.FRAMEBUFFER,gl.DEPTH_ATTACHMENT,gl.RENDERBUFFER,context.__depthRenderBuffer); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.framebufferRenderbuffer(gl.FRAMEBUFFER,gl.STENCIL_ATTACHMENT,gl.RENDERBUFFER,context.__stencilRenderBuffer); openfl__$internal_stage3D_GLUtils.CheckGLError(); } gl.__context.bindRenderbuffer(gl.RENDERBUFFER,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); } openfl__$internal_stage3D_opengl_GLContext3D.__setViewport(0,0,width,height); if(context.enableErrorChecking) { var code = gl.__context.checkFramebufferStatus(gl.FRAMEBUFFER); if(code != gl.FRAMEBUFFER_COMPLETE) { haxe_Log.trace("Error: Context3D.setRenderToTexture status:${code} width:${texture2D.__width} height:${texture2D.__height}",{ fileName : "GLContext3D.hx", lineNumber : 735, className : "openfl._internal.stage3D.opengl.GLContext3D", methodName : "setRenderToTexture"}); } } context.__positionScale[1] = -1.0; if(context.__program != null) { context.__program.__setPositionScale(context.__positionScale); } gl.__context.frontFace(gl.CW); openfl__$internal_stage3D_GLUtils.CheckGLError(); context.__renderToTexture = texture; context.__scissorRectangle = null; context.__rttDepthAndStencil = enableDepthAndStencil; openfl__$internal_stage3D_opengl_GLContext3D.__updateScissorRectangle(); openfl__$internal_stage3D_opengl_GLContext3D.__updateDepthAndStencilState(); }; openfl__$internal_stage3D_opengl_GLContext3D.setSamplerStateAt = function(context,sampler,wrap,filter,mipfilter) { if(sampler < 0 || sampler > 8) { throw new js__$Boot_HaxeError(new openfl_errors_Error("sampler out of range")); } var gl = context.__renderSession.gl; var state = context.__samplerStates[sampler]; switch(wrap) { case 0: state.set_wrapModeS(gl.CLAMP_TO_EDGE); state.set_wrapModeT(gl.CLAMP_TO_EDGE); break; case 1: state.set_wrapModeS(gl.CLAMP_TO_EDGE); state.set_wrapModeT(gl.REPEAT); break; case 2: state.set_wrapModeS(gl.REPEAT); state.set_wrapModeT(gl.REPEAT); break; case 3: state.set_wrapModeS(gl.REPEAT); state.set_wrapModeT(gl.CLAMP_TO_EDGE); break; default: throw new js__$Boot_HaxeError(new openfl_errors_Error("wrap bad enum")); } switch(filter) { case 0: if(context.__supportsAnisotropicFiltering) { state.set_maxAniso(context.__maxAnisotropyTexture2D < 16 ? context.__maxAnisotropyTexture2D : 16); } break; case 1: if(context.__supportsAnisotropicFiltering) { state.set_maxAniso(context.__maxAnisotropyTexture2D < 2 ? context.__maxAnisotropyTexture2D : 2); } break; case 2: if(context.__supportsAnisotropicFiltering) { state.set_maxAniso(context.__maxAnisotropyTexture2D < 4 ? context.__maxAnisotropyTexture2D : 4); } break; case 3: if(context.__supportsAnisotropicFiltering) { state.set_maxAniso(context.__maxAnisotropyTexture2D < 8 ? context.__maxAnisotropyTexture2D : 8); } break; case 4: state.set_magFilter(gl.LINEAR); if(context.__supportsAnisotropicFiltering) { state.set_maxAniso(1); } break; case 5: state.set_magFilter(gl.NEAREST); if(context.__supportsAnisotropicFiltering) { state.set_maxAniso(1); } break; default: throw new js__$Boot_HaxeError(new openfl_errors_Error("filter bad enum")); } switch(mipfilter) { case 0: state.set_minFilter(filter == 5 ? gl.NEAREST_MIPMAP_LINEAR : gl.LINEAR_MIPMAP_LINEAR); break; case 1: state.set_minFilter(filter == 5 ? gl.NEAREST_MIPMAP_NEAREST : gl.LINEAR_MIPMAP_NEAREST); break; case 2: state.set_minFilter(filter == 5 ? gl.NEAREST : gl.LINEAR); break; default: throw new js__$Boot_HaxeError(new openfl_errors_Error("mipfiter bad enum")); } }; openfl__$internal_stage3D_opengl_GLContext3D.setScissorRectangle = function(context,rectangle) { openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; context.__scissorRectangle = rectangle != null ? rectangle.clone() : null; openfl__$internal_stage3D_opengl_GLContext3D.__updateScissorRectangle(); }; openfl__$internal_stage3D_opengl_GLContext3D.setStencilActions = function(context,triangleFace,compareMode,actionOnBothPass,actionOnDepthFail,actionOnDepthPassStencilFail) { if(actionOnDepthPassStencilFail == null) { actionOnDepthPassStencilFail = 5; } if(actionOnDepthFail == null) { actionOnDepthFail = 5; } if(actionOnBothPass == null) { actionOnBothPass = 5; } if(compareMode == null) { compareMode = 0; } if(triangleFace == null) { triangleFace = 2; } openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; context.__stencilCompareMode = compareMode; var _this = openfl__$internal_stage3D_opengl_GLContext3D.gl; var face = openfl__$internal_stage3D_opengl_GLContext3D.__getGLTriangleFace(triangleFace); var fail = openfl__$internal_stage3D_opengl_GLContext3D.__getGLStencilAction(actionOnDepthPassStencilFail); var zfail = openfl__$internal_stage3D_opengl_GLContext3D.__getGLStencilAction(actionOnDepthFail); var zpass = openfl__$internal_stage3D_opengl_GLContext3D.__getGLStencilAction(actionOnBothPass); _this.__context.stencilOpSeparate(face,fail,zfail,zpass); var _this1 = openfl__$internal_stage3D_opengl_GLContext3D.gl; var func = openfl__$internal_stage3D_opengl_GLContext3D.__getGLCompareMode(context.__stencilCompareMode); _this1.__context.stencilFunc(func,context.__stencilRef,context.__stencilReadMask); }; openfl__$internal_stage3D_opengl_GLContext3D.setStencilReferenceValue = function(context,referenceValue,readMask,writeMask) { if(writeMask == null) { writeMask = 255; } if(readMask == null) { readMask = 255; } openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; context.__stencilReadMask = readMask; context.__stencilRef = referenceValue; var _this = openfl__$internal_stage3D_opengl_GLContext3D.gl; var func = openfl__$internal_stage3D_opengl_GLContext3D.__getGLCompareMode(context.__stencilCompareMode); _this.__context.stencilFunc(func,context.__stencilRef,context.__stencilReadMask); openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.stencilMask(writeMask); }; openfl__$internal_stage3D_opengl_GLContext3D.setTextureAt = function(context,sampler,texture) { if(context.__samplerTextures.data.get(sampler) != texture) { context.__samplerTextures.data.set(sampler,texture); context.__samplerDirty |= 1 << sampler; } }; openfl__$internal_stage3D_opengl_GLContext3D.setVertexBufferAt = function(context,index,buffer,bufferOffset,format) { if(format == null) { format = 4; } if(bufferOffset == null) { bufferOffset = 0; } var gl = context.__renderSession.gl; if(buffer == null) { gl.__context.disableVertexAttribArray(index); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.bindBuffer(gl.ARRAY_BUFFER,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); return; } gl.__context.enableVertexAttribArray(index); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.bindBuffer(gl.ARRAY_BUFFER,buffer.__id); openfl__$internal_stage3D_GLUtils.CheckGLError(); var byteOffset = bufferOffset * 4; switch(format) { case 0: var type = gl.UNSIGNED_BYTE; var stride = buffer.__stride; var offset = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(byteOffset); gl.__context.vertexAttribPointer(index,4,type,true,stride,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset)); openfl__$internal_stage3D_GLUtils.CheckGLError(); break; case 1: var type1 = gl.FLOAT; var stride1 = buffer.__stride; var offset1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(byteOffset); gl.__context.vertexAttribPointer(index,1,type1,false,stride1,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset1)); openfl__$internal_stage3D_GLUtils.CheckGLError(); break; case 2: var type2 = gl.FLOAT; var stride2 = buffer.__stride; var offset2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(byteOffset); gl.__context.vertexAttribPointer(index,2,type2,false,stride2,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset2)); openfl__$internal_stage3D_GLUtils.CheckGLError(); break; case 3: var type3 = gl.FLOAT; var stride3 = buffer.__stride; var offset3 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(byteOffset); gl.__context.vertexAttribPointer(index,3,type3,false,stride3,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset3)); openfl__$internal_stage3D_GLUtils.CheckGLError(); break; case 4: var type4 = gl.FLOAT; var stride4 = buffer.__stride; var offset4 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(byteOffset); gl.__context.vertexAttribPointer(index,4,type4,false,stride4,lime_utils__$DataPointer_DataPointer_$Impl_$.toValue(offset4)); openfl__$internal_stage3D_GLUtils.CheckGLError(); break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } }; openfl__$internal_stage3D_opengl_GLContext3D.__flushSamplerState = function() { var sampler = 0; while(openfl__$internal_stage3D_opengl_GLContext3D.context.__samplerDirty != 0) { if((openfl__$internal_stage3D_opengl_GLContext3D.context.__samplerDirty & 1 << sampler) != 0) { if(openfl_display3D_Context3D.__stateCache.updateActiveTextureSample(sampler)) { openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.activeTexture(openfl__$internal_stage3D_opengl_GLContext3D.gl.TEXTURE0 + sampler); openfl__$internal_stage3D_GLUtils.CheckGLError(); } var texture = openfl__$internal_stage3D_opengl_GLContext3D.context.__samplerTextures.data.get(sampler); if(texture != null) { var target = texture.__textureTarget; var _this = openfl__$internal_stage3D_opengl_GLContext3D.gl; var texture1 = texture.__getTexture(); _this.__context.bindTexture(target,texture1); openfl__$internal_stage3D_GLUtils.CheckGLError(); texture.__setSamplerState(openfl__$internal_stage3D_opengl_GLContext3D.context.__samplerStates[sampler]); } else { openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.bindTexture(openfl__$internal_stage3D_opengl_GLContext3D.gl.TEXTURE_2D,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); } openfl__$internal_stage3D_opengl_GLContext3D.context.__samplerDirty &= ~(1 << sampler); } ++sampler; } }; openfl__$internal_stage3D_opengl_GLContext3D.__getGLCompareMode = function(compareMode) { switch(compareMode) { case 0: return openfl__$internal_stage3D_opengl_GLContext3D.gl.ALWAYS; case 1: return openfl__$internal_stage3D_opengl_GLContext3D.gl.EQUAL; case 2: return openfl__$internal_stage3D_opengl_GLContext3D.gl.GREATER; case 3: return openfl__$internal_stage3D_opengl_GLContext3D.gl.GEQUAL; case 4: return openfl__$internal_stage3D_opengl_GLContext3D.gl.LESS; case 5: return openfl__$internal_stage3D_opengl_GLContext3D.gl.LEQUAL; case 6: return openfl__$internal_stage3D_opengl_GLContext3D.gl.NEVER; case 7: return openfl__$internal_stage3D_opengl_GLContext3D.gl.NOTEQUAL; default: return openfl__$internal_stage3D_opengl_GLContext3D.gl.EQUAL; } }; openfl__$internal_stage3D_opengl_GLContext3D.__getGLTriangleFace = function(triangleFace) { switch(triangleFace) { case 0: return openfl__$internal_stage3D_opengl_GLContext3D.gl.BACK; case 1: return openfl__$internal_stage3D_opengl_GLContext3D.gl.FRONT; case 2: return openfl__$internal_stage3D_opengl_GLContext3D.gl.FRONT_AND_BACK; case 3: return openfl__$internal_stage3D_opengl_GLContext3D.gl.NONE; default: return openfl__$internal_stage3D_opengl_GLContext3D.gl.FRONT_AND_BACK; } }; openfl__$internal_stage3D_opengl_GLContext3D.__getGLStencilAction = function(stencilAction) { switch(stencilAction) { case 0: return openfl__$internal_stage3D_opengl_GLContext3D.gl.DECR; case 1: return openfl__$internal_stage3D_opengl_GLContext3D.gl.DECR_WRAP; case 2: return openfl__$internal_stage3D_opengl_GLContext3D.gl.INCR; case 3: return openfl__$internal_stage3D_opengl_GLContext3D.gl.INCR_WRAP; case 4: return openfl__$internal_stage3D_opengl_GLContext3D.gl.INVERT; case 5: return openfl__$internal_stage3D_opengl_GLContext3D.gl.KEEP; case 6: return openfl__$internal_stage3D_opengl_GLContext3D.gl.REPLACE; case 7: return openfl__$internal_stage3D_opengl_GLContext3D.gl.ZERO; default: return openfl__$internal_stage3D_opengl_GLContext3D.gl.KEEP; } }; openfl__$internal_stage3D_opengl_GLContext3D.__hasGLExtension = function(name) { return openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.getSupportedExtensions().indexOf(name) != -1; }; openfl__$internal_stage3D_opengl_GLContext3D.__setViewport = function(originX,originY,width,height) { if(openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture != null) { originY *= -1; } if(openfl_display3D_Context3D.__stateCache.updateViewport(originX,originY,width,height)) { openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.viewport(originX,originY,width,height); openfl__$internal_stage3D_GLUtils.CheckGLError(); } }; openfl__$internal_stage3D_opengl_GLContext3D.__updateDepthAndStencilState = function() { var depthAndStencil = openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture != null ? openfl__$internal_stage3D_opengl_GLContext3D.context.__rttDepthAndStencil : openfl__$internal_stage3D_opengl_GLContext3D.context.__backBufferEnableDepthAndStencil; if(depthAndStencil) { openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.enable(openfl__$internal_stage3D_opengl_GLContext3D.gl.DEPTH_TEST); openfl__$internal_stage3D_GLUtils.CheckGLError(); openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.enable(openfl__$internal_stage3D_opengl_GLContext3D.gl.STENCIL_TEST); openfl__$internal_stage3D_GLUtils.CheckGLError(); } else { openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.disable(openfl__$internal_stage3D_opengl_GLContext3D.gl.DEPTH_TEST); openfl__$internal_stage3D_GLUtils.CheckGLError(); openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.disable(openfl__$internal_stage3D_opengl_GLContext3D.gl.STENCIL_TEST); openfl__$internal_stage3D_GLUtils.CheckGLError(); } }; openfl__$internal_stage3D_opengl_GLContext3D.__updateBlendFactorsTEMP = function(context) { openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; openfl__$internal_stage3D_opengl_GLContext3D.__updateBlendFactors(); }; openfl__$internal_stage3D_opengl_GLContext3D.__updateBlendFactors = function() { if(openfl_display3D_Context3D.__stateCache._srcBlendFactor == null || openfl_display3D_Context3D.__stateCache._destBlendFactor == null) { return; } var src = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE; var dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.ZERO; var _g = openfl_display3D_Context3D.__stateCache._srcBlendFactor; switch(_g) { case 0: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.DST_ALPHA; break; case 1: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.DST_COLOR; break; case 2: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE; break; case 3: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE_MINUS_DST_ALPHA; break; case 4: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE_MINUS_DST_COLOR; break; case 5: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE_MINUS_SRC_ALPHA; break; case 7: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.SRC_ALPHA; break; case 9: src = openfl__$internal_stage3D_opengl_GLContext3D.gl.ZERO; break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } var _g1 = openfl_display3D_Context3D.__stateCache._destBlendFactor; switch(_g1) { case 0: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.DST_ALPHA; break; case 2: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE; break; case 3: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE_MINUS_DST_ALPHA; break; case 5: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE_MINUS_SRC_ALPHA; break; case 6: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.ONE_MINUS_SRC_COLOR; break; case 7: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.SRC_ALPHA; break; case 8: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.SRC_COLOR; break; case 9: dest = openfl__$internal_stage3D_opengl_GLContext3D.gl.ZERO; break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.enable(openfl__$internal_stage3D_opengl_GLContext3D.gl.BLEND); openfl__$internal_stage3D_GLUtils.CheckGLError(); openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.blendFunc(src,dest); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLContext3D.__updateScissorRectangle = function() { if(openfl__$internal_stage3D_opengl_GLContext3D.context.__scissorRectangle == null) { openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.disable(openfl__$internal_stage3D_opengl_GLContext3D.gl.SCISSOR_TEST); openfl__$internal_stage3D_GLUtils.CheckGLError(); return; } openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.enable(openfl__$internal_stage3D_opengl_GLContext3D.gl.SCISSOR_TEST); openfl__$internal_stage3D_GLUtils.CheckGLError(); var height = 0; var offsetX = 0; var offsetY = 0; if(openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture != null) { if(js_Boot.__instanceof(openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture,openfl_display3D_textures_Texture)) { var texture2D = openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture; height = texture2D.__height; } else if(js_Boot.__instanceof(openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture,openfl_display3D_textures_RectangleTexture)) { var rectTexture = openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture; height = rectTexture.__height; } } else { height = openfl__$internal_stage3D_opengl_GLContext3D.context.backBufferHeight; offsetX = openfl__$internal_stage3D_opengl_GLContext3D.context.__stage3D.x | 0; offsetY = openfl__$internal_stage3D_opengl_GLContext3D.context.__stage3D.y | 0; } openfl__$internal_stage3D_opengl_GLContext3D.gl.__context.scissor((openfl__$internal_stage3D_opengl_GLContext3D.context.__scissorRectangle.x | 0) + offsetX,height - (openfl__$internal_stage3D_opengl_GLContext3D.context.__scissorRectangle.y | 0) - (openfl__$internal_stage3D_opengl_GLContext3D.context.__scissorRectangle.height | 0) + offsetY,openfl__$internal_stage3D_opengl_GLContext3D.context.__scissorRectangle.width | 0,openfl__$internal_stage3D_opengl_GLContext3D.context.__scissorRectangle.height | 0); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLContext3D.__updateBackbufferViewportTEMP = function(context) { openfl__$internal_stage3D_opengl_GLContext3D.context = context; openfl__$internal_stage3D_opengl_GLContext3D.gl = context.__renderSession.gl; openfl__$internal_stage3D_opengl_GLContext3D.__updateBackbufferViewport(); }; openfl__$internal_stage3D_opengl_GLContext3D.__updateBackbufferViewport = function() { if(!openfl_display_Stage3D.__active) { openfl_display_Stage3D.__active = true; openfl__$internal_stage3D_opengl_GLContext3D.context.__renderSession.renderer.clear(); } if(openfl__$internal_stage3D_opengl_GLContext3D.context.__renderToTexture == null && openfl__$internal_stage3D_opengl_GLContext3D.context.backBufferWidth > 0 && openfl__$internal_stage3D_opengl_GLContext3D.context.backBufferHeight > 0) { openfl__$internal_stage3D_opengl_GLContext3D.__setViewport(openfl__$internal_stage3D_opengl_GLContext3D.context.__stage3D.x | 0,openfl__$internal_stage3D_opengl_GLContext3D.context.__stage3D.y | 0,openfl__$internal_stage3D_opengl_GLContext3D.context.backBufferWidth,openfl__$internal_stage3D_opengl_GLContext3D.context.backBufferHeight); } }; var openfl__$internal_stage3D_opengl_GLCubeTexture = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLCubeTexture"] = openfl__$internal_stage3D_opengl_GLCubeTexture; openfl__$internal_stage3D_opengl_GLCubeTexture.__name__ = ["openfl","_internal","stage3D","opengl","GLCubeTexture"]; openfl__$internal_stage3D_opengl_GLCubeTexture.create = function(cubeTexture,renderSession) { var gl = renderSession.gl; cubeTexture.__textureTarget = gl.TEXTURE_CUBE_MAP; cubeTexture.__uploadedSides = 0; }; openfl__$internal_stage3D_opengl_GLCubeTexture.uploadCompressedTextureFromByteArray = function(cubeTexture,renderSession,data,byteArrayOffset) { var reader = new openfl__$internal_stage3D_atf_ATFReader(data,byteArrayOffset); var atfFormat = reader.readHeader(cubeTexture.__size,cubeTexture.__size,true); switch(atfFormat) { case 3: cubeTexture.__format = openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormatCompressed; break; case 5: cubeTexture.__format = openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormatCompressedAlpha; break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Only ATF block compressed textures without JPEG-XR+LZMA are supported")); } var gl = renderSession.gl; gl.__context.bindTexture(cubeTexture.__textureTarget,cubeTexture.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); reader.readTextures(function(side,level,width,height,blockLength,bytes) { var target = openfl__$internal_stage3D_opengl_GLCubeTexture.__sideToTarget(gl,side); gl.__context.compressedTexImage2D(target,level,cubeTexture.__format,width,height,0,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(bytes,blockLength)); openfl__$internal_stage3D_GLUtils.CheckGLError(); }); gl.__context.bindTexture(cubeTexture.__textureTarget,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromBitmapData = function(cubeTexture,renderSession,source,side,miplevel,generateMipmap) { if(generateMipmap == null) { generateMipmap = false; } if(miplevel == null) { miplevel = 0; } var size = cubeTexture.__size >> miplevel; if(size == 0) { return; } var image = cubeTexture.__getImage(source); openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromTypedArray(cubeTexture,renderSession,image.get_data(),side,miplevel); }; openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromByteArray = function(cubeTexture,renderSession,data,byteArrayOffset,side,miplevel) { if(byteArrayOffset == 0) { openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromTypedArray(cubeTexture,renderSession,data.b,side,miplevel); return; } var buffer = openfl_utils__$ByteArray_ByteArray_$Impl_$.toArrayBuffer(data); var this1; if(buffer != null) { this1 = new Uint8Array(buffer,byteArrayOffset); } else { this1 = null; } openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromTypedArray(cubeTexture,renderSession,this1,side,miplevel); }; openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromTypedArray = function(cubeTexture,renderSession,data,side,miplevel) { if(data == null) { return; } var gl = renderSession.gl; var size = cubeTexture.__size >> miplevel; if(size == 0) { return; } var target = openfl__$internal_stage3D_opengl_GLCubeTexture.__sideToTarget(gl,side); gl.__context.bindTexture(gl.TEXTURE_CUBE_MAP,cubeTexture.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); var internalformat = cubeTexture.__internalFormat; var format = cubeTexture.__format; var type = gl.UNSIGNED_BYTE; var data1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(data); gl.__context.texImage2D(target,miplevel,internalformat,size,size,0,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data1)); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.bindTexture(cubeTexture.__textureTarget,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); cubeTexture.__uploadedSides |= 1 << side; }; openfl__$internal_stage3D_opengl_GLCubeTexture.setSamplerState = function(cubeTexture,renderSession,state) { if(!state.equals(cubeTexture.__samplerState)) { var gl = renderSession.gl; if(state.minFilter != gl.NEAREST && state.minFilter != gl.LINEAR && !state.mipmapGenerated) { gl.__context.generateMipmap(gl.TEXTURE_CUBE_MAP); openfl__$internal_stage3D_GLUtils.CheckGLError(); state.mipmapGenerated = true; } if(state.maxAniso != 0.0) { gl.__context.texParameterf(gl.TEXTURE_CUBE_MAP,openfl_display3D_Context3D.TEXTURE_MAX_ANISOTROPY_EXT,state.maxAniso); openfl__$internal_stage3D_GLUtils.CheckGLError(); } } openfl__$internal_stage3D_opengl_GLTextureBase.setSamplerState(cubeTexture,renderSession,state); }; openfl__$internal_stage3D_opengl_GLCubeTexture.__sideToTarget = function(gl,side) { switch(side) { case 0: return gl.TEXTURE_CUBE_MAP_NEGATIVE_X; case 1: return gl.TEXTURE_CUBE_MAP_POSITIVE_X; case 2: return gl.TEXTURE_CUBE_MAP_NEGATIVE_Y; case 3: return gl.TEXTURE_CUBE_MAP_POSITIVE_Y; case 4: return gl.TEXTURE_CUBE_MAP_NEGATIVE_Z; case 5: return gl.TEXTURE_CUBE_MAP_POSITIVE_Z; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } }; var openfl__$internal_stage3D_opengl_GLIndexBuffer3D = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLIndexBuffer3D"] = openfl__$internal_stage3D_opengl_GLIndexBuffer3D; openfl__$internal_stage3D_opengl_GLIndexBuffer3D.__name__ = ["openfl","_internal","stage3D","opengl","GLIndexBuffer3D"]; openfl__$internal_stage3D_opengl_GLIndexBuffer3D.create = function(indexBuffer,renderSession,bufferUsage) { var gl = renderSession.gl; indexBuffer.__elementType = gl.UNSIGNED_SHORT; indexBuffer.__id = gl.__context.createBuffer(); openfl__$internal_stage3D_GLUtils.CheckGLError(); indexBuffer.__usage = bufferUsage == 0 ? gl.DYNAMIC_DRAW : gl.STATIC_DRAW; }; openfl__$internal_stage3D_opengl_GLIndexBuffer3D.dispose = function(indexBuffer,renderSession) { var gl = renderSession.gl; gl.__context.deleteBuffer(indexBuffer.__id); }; openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromByteArray = function(indexBuffer,renderSession,data,byteArrayOffset,startOffset,count) { var offset = byteArrayOffset + startOffset * 2; var buffer = openfl_utils__$ByteArray_ByteArray_$Impl_$.toArrayBuffer(data); var this1; if(buffer != null) { if(count == null) { this1 = new Int16Array(buffer,offset); } else { this1 = new Int16Array(buffer,offset,count); } } else { this1 = null; } openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromTypedArray(indexBuffer,renderSession,this1); }; openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromTypedArray = function(indexBuffer,renderSession,data) { if(data == null) { return; } var gl = renderSession.gl; gl.__context.bindBuffer(gl.ELEMENT_ARRAY_BUFFER,indexBuffer.__id); openfl__$internal_stage3D_GLUtils.CheckGLError(); lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.bufferData(gl,gl.ELEMENT_ARRAY_BUFFER,data,indexBuffer.__usage); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromVector = function(indexBuffer,renderSession,data,startOffset,count) { var length = startOffset + count; var this1; if(count != null) { this1 = new Int16Array(count); } else { this1 = null; } var buffer = this1; var _g1 = startOffset; var _g = length; while(_g1 < _g) { var i = _g1++; buffer[i - startOffset] = data.data.get(i); } openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromTypedArray(indexBuffer,renderSession,buffer); }; var openfl__$internal_stage3D_opengl_GLProgram3D = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLProgram3D"] = openfl__$internal_stage3D_opengl_GLProgram3D; openfl__$internal_stage3D_opengl_GLProgram3D.__name__ = ["openfl","_internal","stage3D","opengl","GLProgram3D"]; openfl__$internal_stage3D_opengl_GLProgram3D.dispose = function(program,renderSession) { openfl__$internal_stage3D_opengl_GLProgram3D.program = program; openfl__$internal_stage3D_opengl_GLProgram3D.renderSession = renderSession; openfl__$internal_stage3D_opengl_GLProgram3D.__deleteShaders(); }; openfl__$internal_stage3D_opengl_GLProgram3D.flushUniform = function(uniform,gl) { var index = uniform.regIndex * 4; var _g = uniform.type; switch(_g) { case 35664: var location = uniform.location; var count = uniform.regCount; var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(uniform.regData.subarray(index,index + uniform.regCount * 2)); gl.__context.uniform2fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,count * 4 * 2)); break; case 35665: var location1 = uniform.location; var count1 = uniform.regCount; var v1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(uniform.regData.subarray(index,index + uniform.regCount * 3)); gl.__context.uniform3fv(location1,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v1,count1 * 4 * 3)); break; case 35666: var location2 = uniform.location; var count2 = uniform.regCount; var v2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(uniform.regData.subarray(index,index + uniform.regCount * 4)); gl.__context.uniform4fv(location2,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v2,count2 * 4 * 4)); break; case 35674: var location3 = uniform.location; var count3 = uniform.size; var v3 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(uniform.regData.subarray(index,index + uniform.size * 2 * 2)); gl.__context.uniformMatrix2fv(location3,false,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v3,count3 * 4 * 4)); break; case 35675: var location4 = uniform.location; var count4 = uniform.size; var v4 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(uniform.regData.subarray(index,index + uniform.size * 3 * 3)); gl.__context.uniformMatrix3fv(location4,false,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v4,count4 * 4 * 9)); break; case 35676: var location5 = uniform.location; var count5 = uniform.size; var v5 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(uniform.regData.subarray(index,index + uniform.size * 4 * 4)); gl.__context.uniformMatrix4fv(location5,false,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v5,count5 * 4 * 16)); break; default: var location6 = uniform.location; var count6 = uniform.regCount; var v6 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(uniform.regData.subarray(index,index + uniform.regCount * 4)); gl.__context.uniform4fv(location6,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v6,count6 * 4 * 4)); } openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLProgram3D.setPositionScale = function(program,renderSession,positionScale) { var gl = renderSession.gl; var location = program.__positionScale.location; var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(positionScale); gl.__context.uniform4fv(location,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,16)); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLProgram3D.upload = function(program,renderSession,vertexProgram,fragmentProgram) { openfl__$internal_stage3D_opengl_GLProgram3D.program = program; openfl__$internal_stage3D_opengl_GLProgram3D.renderSession = renderSession; var samplerStates = []; var glslVertex = openfl__$internal_stage3D_AGALConverter.convertToGLSL(vertexProgram,null); var glslFragment = openfl__$internal_stage3D_AGALConverter.convertToGLSL(fragmentProgram,samplerStates); openfl__$internal_stage3D_opengl_GLProgram3D.__uploadFromGLSL(glslVertex,glslFragment); var _g1 = 0; var _g = samplerStates.length; while(_g1 < _g) { var i = _g1++; program.__samplerStates.data.set(i,samplerStates[i]); } }; openfl__$internal_stage3D_opengl_GLProgram3D["use"] = function(program,renderSession) { var gl = renderSession.gl; gl.__context.useProgram(program.__programID); openfl__$internal_stage3D_GLUtils.CheckGLError(); program.__vertexUniformMap.markAllDirty(); program.__fragmentUniformMap.markAllDirty(); var _g_head = program.__samplerUniforms.h; while(_g_head != null) { var val = _g_head.item; _g_head = _g_head.next; var sampler = val; if(sampler.regCount == 1) { gl.__context.uniform1i(sampler.location,sampler.regIndex); openfl__$internal_stage3D_GLUtils.CheckGLError(); } else { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("!!! TODO: uniform location on webgl")); } } var _g_head1 = program.__alphaSamplerUniforms.h; while(_g_head1 != null) { var val1 = _g_head1.item; _g_head1 = _g_head1.next; var sampler1 = val1; if(sampler1.regCount == 1) { gl.__context.uniform1i(sampler1.location,sampler1.regIndex); openfl__$internal_stage3D_GLUtils.CheckGLError(); } else { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("!!! TODO: uniform location on webgl")); } } }; openfl__$internal_stage3D_opengl_GLProgram3D.__buildUniformList = function() { var gl = openfl__$internal_stage3D_opengl_GLProgram3D.renderSession.gl; openfl__$internal_stage3D_opengl_GLProgram3D.program.__uniforms.clear(); openfl__$internal_stage3D_opengl_GLProgram3D.program.__samplerUniforms.clear(); openfl__$internal_stage3D_opengl_GLProgram3D.program.__alphaSamplerUniforms.clear(); openfl__$internal_stage3D_opengl_GLProgram3D.program.__samplerUsageMask = 0; var numActive = 0; numActive = gl.__context.getProgramParameter(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID,gl.ACTIVE_UNIFORMS); openfl__$internal_stage3D_GLUtils.CheckGLError(); var vertexUniforms = new List(); var fragmentUniforms = new List(); var _g1 = 0; var _g = numActive; while(_g1 < _g) { var i = _g1++; var info = gl.__context.getActiveUniform(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID,i); var name = info.name; var size = info.size; var uniformType = info.type; openfl__$internal_stage3D_GLUtils.CheckGLError(); var uniform = new openfl_display3D_Uniform(gl); uniform.name = name; uniform.size = size; uniform.type = uniformType; uniform.location = gl.__context.getUniformLocation(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID,uniform.name); openfl__$internal_stage3D_GLUtils.CheckGLError(); var indexBracket = uniform.name.indexOf("["); if(indexBracket >= 0) { uniform.name = uniform.name.substring(0,indexBracket); } var _g2 = uniform.type; switch(_g2) { case 35674: uniform.regCount = 2; break; case 35675: uniform.regCount = 3; break; case 35676: uniform.regCount = 4; break; default: uniform.regCount = 1; } uniform.regCount *= uniform.size; openfl__$internal_stage3D_opengl_GLProgram3D.program.__uniforms.add(uniform); if(uniform.name == "vcPositionScale") { openfl__$internal_stage3D_opengl_GLProgram3D.program.__positionScale = uniform; } else if(StringTools.startsWith(uniform.name,"vc")) { uniform.regIndex = Std.parseInt(uniform.name.substring(2)); uniform.regData = openfl__$internal_stage3D_opengl_GLProgram3D.program.__context.__vertexConstants; vertexUniforms.add(uniform); } else if(StringTools.startsWith(uniform.name,"fc")) { uniform.regIndex = Std.parseInt(uniform.name.substring(2)); uniform.regData = openfl__$internal_stage3D_opengl_GLProgram3D.program.__context.__fragmentConstants; fragmentUniforms.add(uniform); } else if(StringTools.startsWith(uniform.name,"sampler") && !StringTools.endsWith(uniform.name,"_alpha")) { uniform.regIndex = Std.parseInt(uniform.name.substring(7)); openfl__$internal_stage3D_opengl_GLProgram3D.program.__samplerUniforms.add(uniform); var _g4 = 0; var _g3 = uniform.regCount; while(_g4 < _g3) { var reg = _g4++; openfl__$internal_stage3D_opengl_GLProgram3D.program.__samplerUsageMask |= 1 << uniform.regIndex + reg; } } else if(StringTools.startsWith(uniform.name,"sampler") && StringTools.endsWith(uniform.name,"_alpha")) { var len = uniform.name.indexOf("_") - 7; uniform.regIndex = Std.parseInt(uniform.name.substring(7,7 + len)) + 4; openfl__$internal_stage3D_opengl_GLProgram3D.program.__alphaSamplerUniforms.add(uniform); } if(lime_utils_Log.level == 5) { haxe_Log.trace("" + i + " name:" + uniform.name + " type:" + uniform.type + " size:" + uniform.size + " location:" + Std.string(uniform.location),{ fileName : "GLProgram3D.hx", lineNumber : 247, className : "openfl._internal.stage3D.opengl.GLProgram3D", methodName : "__buildUniformList"}); } } var tmp = Lambda.array(vertexUniforms); openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexUniformMap = new openfl_display3D_UniformMap(tmp); var tmp1 = Lambda.array(fragmentUniforms); openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentUniformMap = new openfl_display3D_UniformMap(tmp1); }; openfl__$internal_stage3D_opengl_GLProgram3D.__deleteShaders = function() { var gl = openfl__$internal_stage3D_opengl_GLProgram3D.renderSession.gl; if(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID != null) { openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID = null; } if(openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID != null) { gl.__context.deleteShader(openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID); openfl__$internal_stage3D_GLUtils.CheckGLError(); openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID = null; } if(openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID != null) { gl.__context.deleteShader(openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID); openfl__$internal_stage3D_GLUtils.CheckGLError(); openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID = null; } }; openfl__$internal_stage3D_opengl_GLProgram3D.__getUniformRegisters = function(uniform,index,size) { return uniform.regData.subarray(index,index + size); }; openfl__$internal_stage3D_opengl_GLProgram3D.__uploadFromGLSL = function(vertexShaderSource,fragmentShaderSource) { var gl = openfl__$internal_stage3D_opengl_GLProgram3D.renderSession.gl; openfl__$internal_stage3D_opengl_GLProgram3D.__deleteShaders(); if(lime_utils_Log.level == 5) { lime_utils_Log.info(vertexShaderSource,{ fileName : "GLProgram3D.hx", lineNumber : 322, className : "openfl._internal.stage3D.opengl.GLProgram3D", methodName : "__uploadFromGLSL"}); lime_utils_Log.info(fragmentShaderSource,{ fileName : "GLProgram3D.hx", lineNumber : 323, className : "openfl._internal.stage3D.opengl.GLProgram3D", methodName : "__uploadFromGLSL"}); } openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexSource = vertexShaderSource; openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentSource = fragmentShaderSource; var tmp = gl.__context.createShader(gl.VERTEX_SHADER); openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID = tmp; gl.__context.shaderSource(openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID,vertexShaderSource); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.compileShader(openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID); openfl__$internal_stage3D_GLUtils.CheckGLError(); var shaderCompiled = gl.__context.getShaderParameter(openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID,gl.COMPILE_STATUS); openfl__$internal_stage3D_GLUtils.CheckGLError(); if(shaderCompiled == 0) { var vertexInfoLog = gl.__context.getShaderInfoLog(openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID); if(vertexInfoLog != null && vertexInfoLog.length != 0) { haxe_Log.trace("vertex: " + vertexInfoLog,{ fileName : "GLProgram3D.hx", lineNumber : 347, className : "openfl._internal.stage3D.opengl.GLProgram3D", methodName : "__uploadFromGLSL"}); } throw new js__$Boot_HaxeError(new openfl_errors_Error("Error compiling vertex shader: " + vertexInfoLog)); } var tmp1 = gl.__context.createShader(gl.FRAGMENT_SHADER); openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID = tmp1; gl.__context.shaderSource(openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID,fragmentShaderSource); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.compileShader(openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID); openfl__$internal_stage3D_GLUtils.CheckGLError(); var fragmentCompiled = gl.__context.getShaderParameter(openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID,gl.COMPILE_STATUS); if(fragmentCompiled == 0) { var fragmentInfoLog = gl.__context.getShaderInfoLog(openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID); if(fragmentInfoLog != null && fragmentInfoLog.length != 0) { haxe_Log.trace("fragment: " + fragmentInfoLog,{ fileName : "GLProgram3D.hx", lineNumber : 370, className : "openfl._internal.stage3D.opengl.GLProgram3D", methodName : "__uploadFromGLSL"}); } throw new js__$Boot_HaxeError(new openfl_errors_Error("Error compiling fragment shader: " + fragmentInfoLog)); } openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID = gl.__context.createProgram(); gl.__context.attachShader(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID,openfl__$internal_stage3D_opengl_GLProgram3D.program.__vertexShaderID); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.attachShader(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID,openfl__$internal_stage3D_opengl_GLProgram3D.program.__fragmentShaderID); openfl__$internal_stage3D_GLUtils.CheckGLError(); var _g = 0; while(_g < 16) { var i = _g++; var name = "va" + i; if(vertexShaderSource.indexOf(" " + name) != -1) { gl.__context.bindAttribLocation(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID,i,name); } } gl.__context.linkProgram(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID); var infoLog = gl.__context.getProgramInfoLog(openfl__$internal_stage3D_opengl_GLProgram3D.program.__programID); if(infoLog != null && infoLog.length != 0) { haxe_Log.trace("program: " + infoLog,{ fileName : "GLProgram3D.hx", lineNumber : 403, className : "openfl._internal.stage3D.opengl.GLProgram3D", methodName : "__uploadFromGLSL"}); } openfl__$internal_stage3D_opengl_GLProgram3D.__buildUniformList(); }; var openfl__$internal_stage3D_opengl_GLRectangleTexture = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLRectangleTexture"] = openfl__$internal_stage3D_opengl_GLRectangleTexture; openfl__$internal_stage3D_opengl_GLRectangleTexture.__name__ = ["openfl","_internal","stage3D","opengl","GLRectangleTexture"]; openfl__$internal_stage3D_opengl_GLRectangleTexture.create = function(rectangleTexture,renderSession) { var gl = renderSession.gl; rectangleTexture.__textureTarget = gl.TEXTURE_2D; openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromTypedArray(rectangleTexture,renderSession,null); }; openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromBitmapData = function(rectangleTexture,renderSession,source) { if(source == null) { return; } var image = rectangleTexture.__getImage(source); if(image == null) { return; } openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromTypedArray(rectangleTexture,renderSession,image.get_data()); }; openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromByteArray = function(rectangleTexture,renderSession,data,byteArrayOffset) { if(byteArrayOffset == 0) { openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromTypedArray(rectangleTexture,renderSession,data.b); return; } var buffer = openfl_utils__$ByteArray_ByteArray_$Impl_$.toArrayBuffer(data); var this1; if(buffer != null) { this1 = new Uint8Array(buffer,byteArrayOffset); } else { this1 = null; } openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromTypedArray(rectangleTexture,renderSession,this1); }; openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromTypedArray = function(rectangleTexture,renderSession,data) { var gl = renderSession.gl; gl.__context.bindTexture(rectangleTexture.__textureTarget,rectangleTexture.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); var target = rectangleTexture.__textureTarget; var internalformat = rectangleTexture.__internalFormat; var width = rectangleTexture.__width; var height = rectangleTexture.__height; var format = rectangleTexture.__format; var type = gl.UNSIGNED_BYTE; var data1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(data); gl.__context.texImage2D(target,0,internalformat,width,height,0,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data1)); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.bindTexture(rectangleTexture.__textureTarget,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLRectangleTexture.setSamplerState = function(rectangleTexture,renderSession,state) { if(!state.equals(rectangleTexture.__samplerState)) { var gl = renderSession.gl; if(state.maxAniso != 0.0) { gl.__context.texParameterf(gl.TEXTURE_2D,openfl_display3D_Context3D.TEXTURE_MAX_ANISOTROPY_EXT,state.maxAniso); openfl__$internal_stage3D_GLUtils.CheckGLError(); } } openfl__$internal_stage3D_opengl_GLTextureBase.setSamplerState(rectangleTexture,renderSession,state); }; var openfl__$internal_stage3D_opengl_GLStage3D = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLStage3D"] = openfl__$internal_stage3D_opengl_GLStage3D; openfl__$internal_stage3D_opengl_GLStage3D.__name__ = ["openfl","_internal","stage3D","opengl","GLStage3D"]; openfl__$internal_stage3D_opengl_GLStage3D.render = function(stage3D,renderSession) { if(stage3D.context3D != null) { renderSession.blendModeManager.setBlendMode(null); if(renderSession.shaderManager.currentShader != null) { renderSession.shaderManager.setShader(null); if(stage3D.context3D.__program != null) { stage3D.context3D.__program.__use(); } } } if(openfl__$internal_stage3D_GLUtils.debug) { renderSession.gl.__context.getError(); } }; var openfl__$internal_stage3D_opengl_GLTexture = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLTexture"] = openfl__$internal_stage3D_opengl_GLTexture; openfl__$internal_stage3D_opengl_GLTexture.__name__ = ["openfl","_internal","stage3D","opengl","GLTexture"]; openfl__$internal_stage3D_opengl_GLTexture.create = function(texture,renderSession) { var gl = renderSession.gl; texture.__textureTarget = gl.TEXTURE_2D; gl.__context.bindTexture(texture.__textureTarget,texture.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); var target = texture.__textureTarget; var internalformat = texture.__internalFormat; var width = texture.__width; var height = texture.__height; var format = texture.__format; var type = gl.UNSIGNED_BYTE; var data = lime_utils__$DataPointer_DataPointer_$Impl_$.fromInt(0); gl.__context.texImage2D(target,0,internalformat,width,height,0,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data)); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.bindTexture(texture.__textureTarget,null); openfl__$internal_stage3D_opengl_GLTexture.uploadFromTypedArray(texture,renderSession,null); }; openfl__$internal_stage3D_opengl_GLTexture.uploadCompressedTextureFromByteArray = function(texture,renderSession,data,byteArrayOffset) { var reader = new openfl__$internal_stage3D_atf_ATFReader(data,byteArrayOffset); var atfFormat = reader.readHeader(texture.__width,texture.__height,false); switch(atfFormat) { case 3: texture.__format = openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormatCompressed; break; case 5: texture.__format = openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormatCompressedAlpha; break; default: throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError("Only ATF block compressed textures without JPEG-XR+LZMA are supported")); } var gl = renderSession.gl; gl.__context.bindTexture(texture.__textureTarget,texture.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); reader.readTextures(function(target,level,width,height,blockLength,bytes) { gl.__context.compressedTexImage2D(texture.__textureTarget,level,texture.__format,width,height,0,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(bytes,blockLength)); openfl__$internal_stage3D_GLUtils.CheckGLError(); }); gl.__context.bindTexture(texture.__textureTarget,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLTexture.uploadFromBitmapData = function(texture,renderSession,source,miplevel,generateMipmap) { if(source == null) { return; } var width = texture.__width >> miplevel; var height = texture.__height >> miplevel; if(width == 0 && height == 0) { return; } if(width == 0) { width = 1; } if(height == 0) { height = 1; } if(source.width != width || source.height != height) { var copy = new openfl_display_BitmapData(width,height,true,0); copy.draw(source); source = copy; } var image = texture.__getImage(source); openfl__$internal_stage3D_opengl_GLTexture.uploadFromTypedArray(texture,renderSession,image.get_data(),miplevel); }; openfl__$internal_stage3D_opengl_GLTexture.uploadFromByteArray = function(texture,renderSession,data,byteArrayOffset,miplevel) { if(miplevel == null) { miplevel = 0; } if(byteArrayOffset == 0) { openfl__$internal_stage3D_opengl_GLTexture.uploadFromTypedArray(texture,renderSession,data.b,miplevel); return; } var buffer = openfl_utils__$ByteArray_ByteArray_$Impl_$.toArrayBuffer(data); var this1; if(buffer != null) { this1 = new Uint8Array(buffer,byteArrayOffset); } else { this1 = null; } openfl__$internal_stage3D_opengl_GLTexture.uploadFromTypedArray(texture,renderSession,this1,miplevel); }; openfl__$internal_stage3D_opengl_GLTexture.uploadFromTypedArray = function(texture,renderSession,data,miplevel) { if(miplevel == null) { miplevel = 0; } if(data == null) { return; } var gl = renderSession.gl; var width = texture.__width >> miplevel; var height = texture.__height >> miplevel; if(width == 0 && height == 0) { return; } if(width == 0) { width = 1; } if(height == 0) { height = 1; } gl.__context.bindTexture(texture.__textureTarget,texture.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); var target = texture.__textureTarget; var internalformat = texture.__internalFormat; var format = texture.__format; var type = gl.UNSIGNED_BYTE; var data1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(data); gl.__context.texImage2D(target,miplevel,internalformat,width,height,0,format,type,lime_utils__$DataPointer_DataPointer_$Impl_$.toBufferView(data1)); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.bindTexture(texture.__textureTarget,null); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLTexture.setSamplerState = function(texture,renderSession,state) { if(!state.equals(texture.__samplerState)) { var gl = renderSession.gl; if(state.minFilter != gl.NEAREST && state.minFilter != gl.LINEAR && !state.mipmapGenerated) { gl.__context.generateMipmap(gl.TEXTURE_2D); openfl__$internal_stage3D_GLUtils.CheckGLError(); state.mipmapGenerated = true; } if(state.maxAniso != 0.0) { gl.__context.texParameterf(gl.TEXTURE_2D,openfl_display3D_Context3D.TEXTURE_MAX_ANISOTROPY_EXT,state.maxAniso); openfl__$internal_stage3D_GLUtils.CheckGLError(); } } openfl__$internal_stage3D_opengl_GLTextureBase.setSamplerState(texture,renderSession,state); }; var openfl__$internal_stage3D_opengl_GLTextureBase = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLTextureBase"] = openfl__$internal_stage3D_opengl_GLTextureBase; openfl__$internal_stage3D_opengl_GLTextureBase.__name__ = ["openfl","_internal","stage3D","opengl","GLTextureBase"]; openfl__$internal_stage3D_opengl_GLTextureBase.create = function(textureBase,renderSession) { var gl = renderSession.gl; textureBase.__textureID = gl.__context.createTexture(); textureBase.__textureContext = gl; if(openfl__$internal_stage3D_opengl_GLTextureBase.__supportsBGRA == null) { openfl__$internal_stage3D_opengl_GLTextureBase.__textureInternalFormat = gl.RGBA; var bgraExtension = null; if(bgraExtension != null) { openfl__$internal_stage3D_opengl_GLTextureBase.__supportsBGRA = true; openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormat = bgraExtension.BGRA_EXT; if(gl.type == lime_graphics_opengl_GLContextType.GLES) { openfl__$internal_stage3D_opengl_GLTextureBase.__textureInternalFormat = bgraExtension.BGRA_EXT; } } else { openfl__$internal_stage3D_opengl_GLTextureBase.__supportsBGRA = false; openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormat = gl.RGBA; } } if(openfl__$internal_stage3D_opengl_GLTextureBase.__supportsCompressed == null) { var compressedExtension = gl.__context.getExtension("WEBGL_compressed_texture_s3tc"); if(compressedExtension != null) { openfl__$internal_stage3D_opengl_GLTextureBase.__supportsCompressed = true; openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormatCompressed = compressedExtension.COMPRESSED_RGBA_S3TC_DXT1_EXT; openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormatCompressedAlpha = compressedExtension.COMPRESSED_RGBA_S3TC_DXT5_EXT; } else { openfl__$internal_stage3D_opengl_GLTextureBase.__supportsCompressed = false; } } textureBase.__internalFormat = openfl__$internal_stage3D_opengl_GLTextureBase.__textureInternalFormat; textureBase.__format = openfl__$internal_stage3D_opengl_GLTextureBase.__textureFormat; }; openfl__$internal_stage3D_opengl_GLTextureBase.dispose = function(textureBase,renderSession) { var gl = renderSession.gl; if(textureBase.__alphaTexture != null) { textureBase.__alphaTexture.dispose(); } gl.__context.deleteTexture(textureBase.__textureID); }; openfl__$internal_stage3D_opengl_GLTextureBase.getImage = function(textureBase,renderSession,bitmapData) { var image = bitmapData.image; if(!bitmapData.__isValid || image == null) { return null; } lime_graphics_utils_ImageCanvasUtil.sync(image,false); var gl = renderSession.gl; if(image.type != lime_graphics_ImageType.DATA && !image.get_premultiplied()) { gl.__context.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,1); } else if(!image.get_premultiplied() && image.get_transparent()) { gl.__context.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0); image = image.clone(); image.set_premultiplied(true); } if(image.get_format() != 0) { image = image.clone(); image.set_format(0); image.buffer.premultiplied = true; } return image; }; openfl__$internal_stage3D_opengl_GLTextureBase.setSamplerState = function(textureBase,renderSession,state) { if(!state.equals(textureBase.__samplerState)) { var gl = renderSession.gl; gl.__context.bindTexture(textureBase.__textureTarget,textureBase.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.texParameteri(textureBase.__textureTarget,gl.TEXTURE_MIN_FILTER,state.minFilter); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.texParameteri(textureBase.__textureTarget,gl.TEXTURE_MAG_FILTER,state.magFilter); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.texParameteri(textureBase.__textureTarget,gl.TEXTURE_WRAP_S,state.wrapModeS); openfl__$internal_stage3D_GLUtils.CheckGLError(); gl.__context.texParameteri(textureBase.__textureTarget,gl.TEXTURE_WRAP_T,state.wrapModeT); openfl__$internal_stage3D_GLUtils.CheckGLError(); var tmp = state.lodBias != 0.0; textureBase.__samplerState = state; textureBase.__samplerState.__samplerDirty = false; } }; var openfl__$internal_stage3D_opengl_GLVertexBuffer3D = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLVertexBuffer3D"] = openfl__$internal_stage3D_opengl_GLVertexBuffer3D; openfl__$internal_stage3D_opengl_GLVertexBuffer3D.__name__ = ["openfl","_internal","stage3D","opengl","GLVertexBuffer3D"]; openfl__$internal_stage3D_opengl_GLVertexBuffer3D.create = function(vertexBuffer,renderSession,bufferUsage) { var gl = renderSession.gl; vertexBuffer.__id = gl.__context.createBuffer(); openfl__$internal_stage3D_GLUtils.CheckGLError(); vertexBuffer.__stride = vertexBuffer.__vertexSize * 4; vertexBuffer.__usage = bufferUsage == 0 ? gl.DYNAMIC_DRAW : gl.STATIC_DRAW; }; openfl__$internal_stage3D_opengl_GLVertexBuffer3D.dispose = function(vertexBuffer,renderSession) { var gl = renderSession.gl; gl.__context.deleteBuffer(vertexBuffer.__id); }; openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromByteArray = function(vertexBuffer,renderSession,data,byteArrayOffset,startVertex,numVertices) { var offset = byteArrayOffset + startVertex * vertexBuffer.__stride; var length = numVertices * vertexBuffer.__vertexSize; var buffer = openfl_utils__$ByteArray_ByteArray_$Impl_$.toArrayBuffer(data); var this1; if(buffer != null) { if(length == null) { this1 = new Float32Array(buffer,offset); } else { this1 = new Float32Array(buffer,offset,length); } } else { this1 = null; } openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromTypedArray(vertexBuffer,renderSession,this1); }; openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromTypedArray = function(vertexBuffer,renderSession,data) { if(data == null) { return; } var gl = renderSession.gl; gl.__context.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.__id); openfl__$internal_stage3D_GLUtils.CheckGLError(); lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.bufferData(gl,gl.ARRAY_BUFFER,data,vertexBuffer.__usage); openfl__$internal_stage3D_GLUtils.CheckGLError(); }; openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromVector = function(vertexBuffer,renderSession,data,startVertex,numVertices) { if(data == null) { return; } var gl = renderSession.gl; var start = startVertex * vertexBuffer.__vertexSize; var count = numVertices * vertexBuffer.__vertexSize; var length = start + count; var this1; if(count != null) { this1 = new Float32Array(count); } else { this1 = null; } var buffer = this1; var _g1 = start; var _g = length; while(_g1 < _g) { var i = _g1++; buffer[i - start] = data.data.get(i); } openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromTypedArray(vertexBuffer,renderSession,buffer); }; var openfl__$internal_stage3D_opengl_GLVideoTexture = function() { }; $hxClasses["openfl._internal.stage3D.opengl.GLVideoTexture"] = openfl__$internal_stage3D_opengl_GLVideoTexture; openfl__$internal_stage3D_opengl_GLVideoTexture.__name__ = ["openfl","_internal","stage3D","opengl","GLVideoTexture"]; openfl__$internal_stage3D_opengl_GLVideoTexture.create = function(videoTexture,renderSession) { var gl = renderSession.gl; videoTexture.__textureTarget = gl.TEXTURE_2D; }; openfl__$internal_stage3D_opengl_GLVideoTexture.getTexture = function(videoTexture,renderSession) { if(!videoTexture.__netStream.__video.paused) { var gl = renderSession.gl; gl.__context.bindTexture(videoTexture.__textureTarget,videoTexture.__textureID); openfl__$internal_stage3D_GLUtils.CheckGLError(); lime_graphics_opengl__$WebGLContext_WebGLContext_$Impl_$.texImage2D(gl,gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,videoTexture.__netStream.__video); openfl__$internal_stage3D_GLUtils.CheckGLError(); } return videoTexture.__textureID; }; var openfl__$internal_swf_FilterType = $hxClasses["openfl._internal.swf.FilterType"] = { __ename__ : ["openfl","_internal","swf","FilterType"], __constructs__ : ["BlurFilter","ColorMatrixFilter","DropShadowFilter","GlowFilter"] }; openfl__$internal_swf_FilterType.BlurFilter = function(blurX,blurY,quality) { var $x = ["BlurFilter",0,blurX,blurY,quality]; $x.__enum__ = openfl__$internal_swf_FilterType; $x.toString = $estr; return $x; }; openfl__$internal_swf_FilterType.ColorMatrixFilter = function(matrix) { var $x = ["ColorMatrixFilter",1,matrix]; $x.__enum__ = openfl__$internal_swf_FilterType; $x.toString = $estr; return $x; }; openfl__$internal_swf_FilterType.DropShadowFilter = function(distance,angle,color,alpha,blurX,blurY,strength,quality,inner,knockout,hideObject) { var $x = ["DropShadowFilter",2,distance,angle,color,alpha,blurX,blurY,strength,quality,inner,knockout,hideObject]; $x.__enum__ = openfl__$internal_swf_FilterType; $x.toString = $estr; return $x; }; openfl__$internal_swf_FilterType.GlowFilter = function(color,alpha,blurX,blurY,strength,quality,inner,knockout) { var $x = ["GlowFilter",3,color,alpha,blurX,blurY,strength,quality,inner,knockout]; $x.__enum__ = openfl__$internal_swf_FilterType; $x.toString = $estr; return $x; }; openfl__$internal_swf_FilterType.__empty_constructs__ = []; var openfl__$internal_swf_SWFLite = function() { this.symbols = new haxe_ds_IntMap(); }; $hxClasses["openfl._internal.swf.SWFLite"] = openfl__$internal_swf_SWFLite; openfl__$internal_swf_SWFLite.__name__ = ["openfl","_internal","swf","SWFLite"]; openfl__$internal_swf_SWFLite.resolveClass = function(name) { var value = Type.resolveClass(name); if(value == null) { value = Type.resolveClass(StringTools.replace(name,"openfl._legacy","openfl")); } if(value == null) { value = Type.resolveClass(StringTools.replace(name,"openfl._v2","openfl")); } return value; }; openfl__$internal_swf_SWFLite.resolveEnum = function(name) { var value = Type.resolveEnum(name); if(value == null) { value = Type.resolveEnum(StringTools.replace(name,"openfl._legacy","openfl")); } if(value == null) { value = Type.resolveEnum(StringTools.replace(name,"openfl._v2","openfl")); } return value; }; openfl__$internal_swf_SWFLite.unserialize = function(data) { if(data == null) { return null; } var unserializer = new haxe_Unserializer(data); unserializer.setResolver({ resolveClass : openfl__$internal_swf_SWFLite.resolveClass, resolveEnum : openfl__$internal_swf_SWFLite.resolveEnum}); return unserializer.unserialize(); }; openfl__$internal_swf_SWFLite.prototype = { frameRate: null ,library: null ,root: null ,symbols: null ,createButton: function(className) { return null; } ,createMovieClip: function(className) { if(className == null) { className = ""; } if(className == "") { return this.root.__createObject(this); } else { var symbol = this.symbols.iterator(); while(symbol.hasNext()) { var symbol1 = symbol.next(); if(symbol1.className == className) { if(js_Boot.__instanceof(symbol1,openfl__$internal_symbols_SpriteSymbol)) { return (js_Boot.__cast(symbol1 , openfl__$internal_symbols_SpriteSymbol)).__createObject(this); } } } } return null; } ,getBitmapData: function(className) { var symbol = this.symbols.iterator(); while(symbol.hasNext()) { var symbol1 = symbol.next(); if(symbol1.className == className) { if(js_Boot.__instanceof(symbol1,openfl__$internal_symbols_BitmapSymbol)) { var bitmap = symbol1; return openfl_utils_Assets.getBitmapData(bitmap.path); } } } return null; } ,hasSymbol: function(className) { var symbol = this.symbols.iterator(); while(symbol.hasNext()) { var symbol1 = symbol.next(); if(symbol1.className == className) { return true; } } return false; } ,serialize: function() { var serializer = new haxe_Serializer(); serializer.serialize(this); return serializer.toString(); } ,__class__: openfl__$internal_swf_SWFLite }; var openfl_utils_AssetLibrary = function() { lime_utils_AssetLibrary.call(this); }; $hxClasses["openfl.utils.AssetLibrary"] = openfl_utils_AssetLibrary; openfl_utils_AssetLibrary.__name__ = ["openfl","utils","AssetLibrary"]; openfl_utils_AssetLibrary.fromBytes = function(bytes,rootPath) { return openfl_utils_AssetLibrary.fromManifest(lime_utils_AssetManifest.fromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes),rootPath)); }; openfl_utils_AssetLibrary.fromFile = function(path,rootPath) { return openfl_utils_AssetLibrary.fromManifest(lime_utils_AssetManifest.fromFile(path,rootPath)); }; openfl_utils_AssetLibrary.fromManifest = function(manifest) { var library = lime_utils_AssetLibrary.fromManifest(manifest); if(library != null && js_Boot.__instanceof(library,openfl_utils_AssetLibrary)) { return library; } else { return null; } }; openfl_utils_AssetLibrary.loadFromBytes = function(bytes,rootPath) { return lime_utils_AssetManifest.loadFromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes),rootPath).then(function(manifest) { return openfl_utils_AssetLibrary.loadFromManifest(manifest); }); }; openfl_utils_AssetLibrary.loadFromFile = function(path,rootPath) { return lime_utils_AssetManifest.loadFromFile(path,rootPath).then(function(manifest) { return openfl_utils_AssetLibrary.loadFromManifest(manifest); }); }; openfl_utils_AssetLibrary.loadFromManifest = function(manifest) { var library = openfl_utils_AssetLibrary.fromManifest(manifest); if(library != null && js_Boot.__instanceof(library,openfl_utils_AssetLibrary)) { return library.load().then(function(library1) { return lime_app_Future.withValue(library1); }); } else { return lime_app_Future.withError("Could not load asset manifest"); } }; openfl_utils_AssetLibrary.__super__ = lime_utils_AssetLibrary; openfl_utils_AssetLibrary.prototype = $extend(lime_utils_AssetLibrary.prototype,{ getMovieClip: function(id) { return null; } ,loadMovieClip: function(id) { var _gthis = this; return new lime_app_Future(function() { return _gthis.getMovieClip(id); }); } ,__class__: openfl_utils_AssetLibrary }); var openfl__$internal_swf_SWFLiteLibrary = function(id) { openfl_utils_AssetLibrary.call(this); this.id = id; this.alphaCheck = new haxe_ds_StringMap(); this.imageClassNames = new haxe_ds_StringMap(); this.rootPath = ""; }; $hxClasses["openfl._internal.swf.SWFLiteLibrary"] = openfl__$internal_swf_SWFLiteLibrary; openfl__$internal_swf_SWFLiteLibrary.__name__ = ["openfl","_internal","swf","SWFLiteLibrary"]; openfl__$internal_swf_SWFLiteLibrary.__super__ = openfl_utils_AssetLibrary; openfl__$internal_swf_SWFLiteLibrary.prototype = $extend(openfl_utils_AssetLibrary.prototype,{ alphaCheck: null ,id: null ,imageClassNames: null ,preloading: null ,rootPath: null ,swf: null ,exists: function(id,type) { if(this.swf == null) { return false; } if(id == "" && type == "MOVIE_CLIP") { return true; } if(type == "IMAGE" || type == "MOVIE_CLIP") { if(this.swf != null) { return this.swf.hasSymbol(id); } else { return false; } } return false; } ,getImage: function(id) { var _this = this.imageClassNames; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.imageClassNames; if(__map_reserved[id] != null) { id = _this1.getReserved(id); } else { id = _this1.h[id]; } } var _this2 = this.alphaCheck; if(!(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id))) { var symbol = this.swf.symbols.iterator(); while(symbol.hasNext()) { var symbol1 = symbol.next(); if(js_Boot.__instanceof(symbol1,openfl__$internal_symbols_BitmapSymbol) && (js_Boot.__cast(symbol1 , openfl__$internal_symbols_BitmapSymbol)).path == id) { var bitmapSymbol = symbol1; if(bitmapSymbol.alpha != null) { var image = openfl_utils_AssetLibrary.prototype.getImage.call(this,id); var alpha = openfl_utils_AssetLibrary.prototype.getImage.call(this,bitmapSymbol.alpha); this.__copyChannel(image,alpha); var _this3 = this.cachedImages; if(__map_reserved[id] != null) { _this3.setReserved(id,image); } else { _this3.h[id] = image; } this.cachedImages.remove(bitmapSymbol.alpha); var _this4 = this.alphaCheck; if(__map_reserved[id] != null) { _this4.setReserved(id,true); } else { _this4.h[id] = true; } return image; } } } } return openfl_utils_AssetLibrary.prototype.getImage.call(this,id); } ,getMovieClip: function(id) { if(this.swf != null) { return this.swf.createMovieClip(id); } else { return null; } } ,isLocal: function(id,type) { return true; } ,load: function() { var _gthis = this; if(this.id != null) { var key = this.id; var _this = this.preload; if(__map_reserved[key] != null) { _this.setReserved(key,true); } else { _this.h[key] = true; } } var promise = new lime_app_Promise(); this.preloading = true; var onComplete = function(data) { var key1 = _gthis.id; var _this1 = _gthis.cachedText; if(__map_reserved[key1] != null) { _this1.setReserved(key1,data); } else { _this1.h[key1] = data; } _gthis.swf = openfl__$internal_swf_SWFLite.unserialize(data); _gthis.swf.library = _gthis; var bitmapSymbol; var symbol = _gthis.swf.symbols.iterator(); while(symbol.hasNext()) { var symbol1 = symbol.next(); if(js_Boot.__instanceof(symbol1,openfl__$internal_symbols_BitmapSymbol)) { bitmapSymbol = symbol1; if(bitmapSymbol.className != null) { var key2 = bitmapSymbol.className; var value = bitmapSymbol.path; var _this2 = _gthis.imageClassNames; if(__map_reserved[key2] != null) { _this2.setReserved(key2,value); } else { _this2.h[key2] = value; } } } } var key3 = _gthis.id; var value1 = _gthis.swf; var _this3 = openfl__$internal_swf_SWFLite.instances; if(__map_reserved[key3] != null) { _this3.setReserved(key3,value1); } else { _this3.h[key3] = value1; } _gthis.__load().onProgress($bind(promise,promise.progress)).onError($bind(promise,promise.error)).onComplete(function(_) { _gthis.preloading = false; promise.complete(_gthis); }); }; if(openfl_utils_Assets.exists(this.id)) { var id = this.paths.keys(); while(id.hasNext()) { var id1 = id.next(); var _this4 = this.preload; if(__map_reserved[id1] != null) { _this4.setReserved(id1,true); } else { _this4.h[id1] = true; } } this.loadText(this.id).onError($bind(promise,promise.error)).onComplete(onComplete); } else { var id2 = this.paths.keys(); while(id2.hasNext()) { var id3 = id2.next(); var _this5 = this.preload; if(__map_reserved[id3] != null) { _this5.setReserved(id3,true); } else { _this5.h[id3] = true; } } var path = this.rootPath != null && this.rootPath != "" ? this.rootPath + "/" + this.id : this.id; var loader = new openfl_net_URLLoader(); loader.addEventListener("complete",function(_1) { onComplete(loader.data); }); loader.addEventListener("ioError",function(e) { promise.error(e); }); loader.load(new openfl_net_URLRequest(path)); } return promise.future; } ,loadImage: function(id) { var _gthis = this; var _this = this.imageClassNames; if(__map_reserved[id] != null ? _this.existsReserved(id) : _this.h.hasOwnProperty(id)) { var _this1 = this.imageClassNames; if(__map_reserved[id] != null) { id = _this1.getReserved(id); } else { id = _this1.h[id]; } } var tmp; if(!this.preloading) { var _this2 = this.alphaCheck; tmp = !(__map_reserved[id] != null ? _this2.existsReserved(id) : _this2.h.hasOwnProperty(id)); } else { tmp = false; } if(tmp) { var symbol = this.swf.symbols.iterator(); while(symbol.hasNext()) { var symbol1 = symbol.next(); if(js_Boot.__instanceof(symbol1,openfl__$internal_symbols_BitmapSymbol) && (js_Boot.__cast(symbol1 , openfl__$internal_symbols_BitmapSymbol)).path == id) { var bitmapSymbol = [symbol1]; if(bitmapSymbol[0].alpha != null) { var promise = [new lime_app_Promise()]; this.__loadImage(id).onError(($_=promise[0],$bind($_,$_.error))).onComplete((function(promise1,bitmapSymbol1) { return function(image) { _gthis.__loadImage(bitmapSymbol1[0].alpha).onError(($_=promise1[0],$bind($_,$_.error))).onComplete((function(promise2,bitmapSymbol2) { return function(alpha) { _gthis.__copyChannel(image,alpha); var _this3 = _gthis.cachedImages; if(__map_reserved[id] != null) { _this3.setReserved(id,image); } else { _this3.h[id] = image; } _gthis.cachedImages.remove(bitmapSymbol2[0].alpha); var _this4 = _gthis.alphaCheck; if(__map_reserved[id] != null) { _this4.setReserved(id,true); } else { _this4.h[id] = true; } promise2[0].complete(image); }; })(promise1,bitmapSymbol1)); }; })(promise,bitmapSymbol)); return promise[0].future; } } } } return openfl_utils_AssetLibrary.prototype.loadImage.call(this,id); } ,unload: function() { var bitmap; var symbol = this.swf.symbols.iterator(); while(symbol.hasNext()) { var symbol1 = symbol.next(); if(js_Boot.__instanceof(symbol1,openfl__$internal_symbols_BitmapSymbol)) { bitmap = symbol1; openfl_utils_Assets.cache.removeBitmapData(bitmap.path); } } } ,__copyChannel: function(image,alpha) { if(alpha != null) { image.copyChannel(alpha,alpha.get_rect(),new lime_math_Vector2(),lime_graphics_ImageChannel.RED,lime_graphics_ImageChannel.ALPHA); } image.buffer.premultiplied = true; image.set_premultiplied(false); } ,__fromManifest: function(manifest) { this.rootPath = manifest.rootPath; openfl_utils_AssetLibrary.prototype.__fromManifest.call(this,manifest); } ,__load: function() { return openfl_utils_AssetLibrary.prototype.load.call(this); } ,__loadImage: function(id) { return openfl_utils_AssetLibrary.prototype.loadImage.call(this,id); } ,__class__: openfl__$internal_swf_SWFLiteLibrary }); var openfl__$internal_swf_ShapeCommand = $hxClasses["openfl._internal.swf.ShapeCommand"] = { __ename__ : ["openfl","_internal","swf","ShapeCommand"], __constructs__ : ["BeginBitmapFill","BeginFill","BeginGradientFill","CurveTo","EndFill","LineStyle","LineTo","MoveTo"] }; openfl__$internal_swf_ShapeCommand.BeginBitmapFill = function(bitmap,matrix,repeat,smooth) { var $x = ["BeginBitmapFill",0,bitmap,matrix,repeat,smooth]; $x.__enum__ = openfl__$internal_swf_ShapeCommand; $x.toString = $estr; return $x; }; openfl__$internal_swf_ShapeCommand.BeginFill = function(color,alpha) { var $x = ["BeginFill",1,color,alpha]; $x.__enum__ = openfl__$internal_swf_ShapeCommand; $x.toString = $estr; return $x; }; openfl__$internal_swf_ShapeCommand.BeginGradientFill = function(fillType,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { var $x = ["BeginGradientFill",2,fillType,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio]; $x.__enum__ = openfl__$internal_swf_ShapeCommand; $x.toString = $estr; return $x; }; openfl__$internal_swf_ShapeCommand.CurveTo = function(controlX,controlY,anchorX,anchorY) { var $x = ["CurveTo",3,controlX,controlY,anchorX,anchorY]; $x.__enum__ = openfl__$internal_swf_ShapeCommand; $x.toString = $estr; return $x; }; openfl__$internal_swf_ShapeCommand.EndFill = ["EndFill",4]; openfl__$internal_swf_ShapeCommand.EndFill.toString = $estr; openfl__$internal_swf_ShapeCommand.EndFill.__enum__ = openfl__$internal_swf_ShapeCommand; openfl__$internal_swf_ShapeCommand.LineStyle = function(thickness,color,alpha,pixelHinting,scaleMode,caps,joints,miterLimit) { var $x = ["LineStyle",5,thickness,color,alpha,pixelHinting,scaleMode,caps,joints,miterLimit]; $x.__enum__ = openfl__$internal_swf_ShapeCommand; $x.toString = $estr; return $x; }; openfl__$internal_swf_ShapeCommand.LineTo = function(x,y) { var $x = ["LineTo",6,x,y]; $x.__enum__ = openfl__$internal_swf_ShapeCommand; $x.toString = $estr; return $x; }; openfl__$internal_swf_ShapeCommand.MoveTo = function(x,y) { var $x = ["MoveTo",7,x,y]; $x.__enum__ = openfl__$internal_swf_ShapeCommand; $x.toString = $estr; return $x; }; openfl__$internal_swf_ShapeCommand.__empty_constructs__ = [openfl__$internal_swf_ShapeCommand.EndFill]; var openfl__$internal_symbols_SWFSymbol = function() { }; $hxClasses["openfl._internal.symbols.SWFSymbol"] = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_SWFSymbol.__name__ = ["openfl","_internal","symbols","SWFSymbol"]; openfl__$internal_symbols_SWFSymbol.prototype = { className: null ,id: null ,__createObject: function(swf) { return null; } ,__class__: openfl__$internal_symbols_SWFSymbol }; var openfl__$internal_symbols_BitmapSymbol = function() { openfl__$internal_symbols_SWFSymbol.call(this); }; $hxClasses["openfl._internal.symbols.BitmapSymbol"] = openfl__$internal_symbols_BitmapSymbol; openfl__$internal_symbols_BitmapSymbol.__name__ = ["openfl","_internal","symbols","BitmapSymbol"]; openfl__$internal_symbols_BitmapSymbol.__super__ = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_BitmapSymbol.prototype = $extend(openfl__$internal_symbols_SWFSymbol.prototype,{ alpha: null ,path: null ,smooth: null ,__createObject: function(swf) { return new openfl_display_Bitmap(openfl_display_BitmapData.fromImage(swf.library.getImage(this.path)),1,this.smooth != false); } ,__class__: openfl__$internal_symbols_BitmapSymbol }); var openfl__$internal_symbols_ButtonSymbol = function() { openfl__$internal_symbols_SWFSymbol.call(this); }; $hxClasses["openfl._internal.symbols.ButtonSymbol"] = openfl__$internal_symbols_ButtonSymbol; openfl__$internal_symbols_ButtonSymbol.__name__ = ["openfl","_internal","symbols","ButtonSymbol"]; openfl__$internal_symbols_ButtonSymbol.__super__ = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_ButtonSymbol.prototype = $extend(openfl__$internal_symbols_SWFSymbol.prototype,{ downState: null ,hitState: null ,overState: null ,upState: null ,__createObject: function(swf) { var simpleButton = null; openfl_display_SimpleButton.__initSWF = swf; openfl_display_SimpleButton.__initSymbol = this; if(this.className != null) { var symbolType = Type.resolveClass(this.className); if(symbolType != null) { simpleButton = Type.createInstance(symbolType,[]); } } if(simpleButton == null) { simpleButton = new openfl_display_SimpleButton(); } return simpleButton; } ,__class__: openfl__$internal_symbols_ButtonSymbol }); var openfl__$internal_symbols_DynamicTextSymbol = function() { openfl__$internal_symbols_SWFSymbol.call(this); }; $hxClasses["openfl._internal.symbols.DynamicTextSymbol"] = openfl__$internal_symbols_DynamicTextSymbol; openfl__$internal_symbols_DynamicTextSymbol.__name__ = ["openfl","_internal","symbols","DynamicTextSymbol"]; openfl__$internal_symbols_DynamicTextSymbol.__super__ = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_DynamicTextSymbol.prototype = $extend(openfl__$internal_symbols_SWFSymbol.prototype,{ align: null ,border: null ,color: null ,fontHeight: null ,fontID: null ,fontName: null ,height: null ,html: null ,indent: null ,input: null ,leading: null ,leftMargin: null ,multiline: null ,password: null ,rightMargin: null ,selectable: null ,text: null ,width: null ,wordWrap: null ,x: null ,y: null ,__createObject: function(swf) { var textField = new openfl_text_TextField(); textField.__fromSymbol(swf,this); return textField; } ,__class__: openfl__$internal_symbols_DynamicTextSymbol }); var openfl__$internal_symbols_FontSymbol = function() { openfl__$internal_symbols_SWFSymbol.call(this); }; $hxClasses["openfl._internal.symbols.FontSymbol"] = openfl__$internal_symbols_FontSymbol; openfl__$internal_symbols_FontSymbol.__name__ = ["openfl","_internal","symbols","FontSymbol"]; openfl__$internal_symbols_FontSymbol.__super__ = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_FontSymbol.prototype = $extend(openfl__$internal_symbols_SWFSymbol.prototype,{ advances: null ,ascent: null ,bold: null ,codes: null ,descent: null ,glyphs: null ,italic: null ,leading: null ,name: null ,__class__: openfl__$internal_symbols_FontSymbol }); var openfl__$internal_symbols_ShapeSymbol = function() { openfl__$internal_symbols_SWFSymbol.call(this); }; $hxClasses["openfl._internal.symbols.ShapeSymbol"] = openfl__$internal_symbols_ShapeSymbol; openfl__$internal_symbols_ShapeSymbol.__name__ = ["openfl","_internal","symbols","ShapeSymbol"]; openfl__$internal_symbols_ShapeSymbol.__super__ = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_ShapeSymbol.prototype = $extend(openfl__$internal_symbols_SWFSymbol.prototype,{ commands: null ,rendered: null ,__createObject: function(swf) { var shape = new openfl_display_Shape(); var graphics = shape.get_graphics(); if(this.rendered != null) { graphics.copyFrom(this.rendered.get_graphics()); return shape; } var _g = 0; var _g1 = this.commands; while(_g < _g1.length) { var command = _g1[_g]; ++_g; switch(command[1]) { case 0: var smooth = command[5]; var repeat = command[4]; var matrix = command[3]; var bitmapID = command[2]; var bitmapSymbol = swf.symbols.get(bitmapID); var bitmap = swf.library.getImage(bitmapSymbol.path); if(bitmap != null) { graphics.beginBitmapFill(openfl_display_BitmapData.fromImage(bitmap),matrix,repeat,smooth); } break; case 1: var alpha = command[3]; var color = command[2]; graphics.beginFill(color,alpha); break; case 2: var focalPointRatio = command[9]; var interpolationMethod = command[8]; var spreadMethod = command[7]; var matrix1 = command[6]; var ratios = command[5]; var alphas = command[4]; var colors = command[3]; var fillType = command[2]; graphics.beginGradientFill(fillType,colors,alphas,ratios,matrix1,spreadMethod,interpolationMethod,focalPointRatio); break; case 3: var anchorY = command[5]; var anchorX = command[4]; var controlY = command[3]; var controlX = command[2]; graphics.curveTo(controlX,controlY,anchorX,anchorY); break; case 4: graphics.endFill(); break; case 5: var miterLimit = command[9]; var joints = command[8]; var caps = command[7]; var scaleMode = command[6]; var pixelHinting = command[5]; var alpha1 = command[4]; var color1 = command[3]; var thickness = command[2]; if(thickness != null) { graphics.lineStyle(thickness,color1,alpha1,pixelHinting,scaleMode,caps,joints,miterLimit); } else { graphics.lineStyle(); } break; case 6: var y = command[3]; var x = command[2]; graphics.lineTo(x,y); break; case 7: var y1 = command[3]; var x1 = command[2]; graphics.moveTo(x1,y1); break; } } this.commands = null; this.rendered = new openfl_display_Shape(); this.rendered.get_graphics().copyFrom(shape.get_graphics()); return shape; } ,__class__: openfl__$internal_symbols_ShapeSymbol }); var openfl__$internal_symbols_SpriteSymbol = function() { openfl__$internal_symbols_SWFSymbol.call(this); this.frames = []; }; $hxClasses["openfl._internal.symbols.SpriteSymbol"] = openfl__$internal_symbols_SpriteSymbol; openfl__$internal_symbols_SpriteSymbol.__name__ = ["openfl","_internal","symbols","SpriteSymbol"]; openfl__$internal_symbols_SpriteSymbol.__super__ = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_SpriteSymbol.prototype = $extend(openfl__$internal_symbols_SWFSymbol.prototype,{ baseClassName: null ,frames: null ,__createObject: function(swf) { openfl_display_MovieClip.__initSWF = swf; openfl_display_MovieClip.__initSymbol = this; var symbolType = null; if(this.className != null) { symbolType = Type.resolveClass(this.className); var tmp = symbolType == null; } if(symbolType == null && this.baseClassName != null) { symbolType = Type.resolveClass(this.baseClassName); var tmp1 = symbolType == null; } var movieClip = null; if(symbolType != null) { movieClip = Type.createInstance(symbolType,[]); } else { movieClip = new openfl_display_MovieClip(); } return movieClip; } ,__class__: openfl__$internal_symbols_SpriteSymbol }); var openfl__$internal_symbols_StaticTextSymbol = function() { openfl__$internal_symbols_SWFSymbol.call(this); }; $hxClasses["openfl._internal.symbols.StaticTextSymbol"] = openfl__$internal_symbols_StaticTextSymbol; openfl__$internal_symbols_StaticTextSymbol.__name__ = ["openfl","_internal","symbols","StaticTextSymbol"]; openfl__$internal_symbols_StaticTextSymbol.__super__ = openfl__$internal_symbols_SWFSymbol; openfl__$internal_symbols_StaticTextSymbol.prototype = $extend(openfl__$internal_symbols_SWFSymbol.prototype,{ matrix: null ,records: null ,rendered: null ,__createObject: function(swf) { var staticText = new openfl_text_StaticText(); var graphics = staticText.__graphics; if(this.rendered != null) { staticText.text = this.rendered.text; graphics.copyFrom(this.rendered.__graphics); return staticText; } var text = ""; if(this.records != null) { var font = null; var color = 16777215; var offsetX = this.matrix.tx; var offsetY = this.matrix.ty; var scale; var index; var code; var _g = 0; var _g1 = this.records; while(_g < _g1.length) { var record = _g1[_g]; ++_g; if(record.fontID != null) { font = swf.symbols.h[record.fontID]; } if(record.offsetX != null) { offsetX = this.matrix.tx + record.offsetX * 0.05; } if(record.offsetY != null) { offsetY = this.matrix.ty + record.offsetY * 0.05; } if(record.color != null) { color = record.color; } if(font != null) { scale = record.fontHeight / 1024 * 0.05; var _g3 = 0; var _g2 = record.glyphs.length; while(_g3 < _g2) { var i = _g3++; index = record.glyphs[i]; text += String.fromCharCode(font.codes[index]); var _g4 = 0; var _g5 = font.glyphs[index]; while(_g4 < _g5.length) { var command = _g5[_g4]; ++_g4; switch(command[1]) { case 1: var alpha = command[3]; graphics.beginFill(color & 16777215,(color >> 24 & 255) / 255); break; case 3: var anchorY = command[5]; var anchorX = command[4]; var controlY = command[3]; var controlX = command[2]; graphics.curveTo(controlX * scale + offsetX,controlY * scale + offsetY,anchorX * scale + offsetX,anchorY * scale + offsetY); break; case 4: graphics.endFill(); break; case 5: var miterLimit = command[9]; var joints = command[8]; var caps = command[7]; var scaleMode = command[6]; var pixelHinting = command[5]; var alpha1 = command[4]; var color1 = command[3]; var thickness = command[2]; if(thickness != null) { graphics.lineStyle(thickness,color1,alpha1,pixelHinting,scaleMode,caps,joints,miterLimit); } else { graphics.lineStyle(); } break; case 6: var y = command[3]; var x = command[2]; graphics.lineTo(x * scale + offsetX,y * scale + offsetY); break; case 7: var y1 = command[3]; var x1 = command[2]; graphics.moveTo(x1 * scale + offsetX,y1 * scale + offsetY); break; default: } } offsetX += record.advances[i] * 0.05; } } } } staticText.text = text; this.records = null; this.rendered = new openfl_text_StaticText(); this.rendered.text = text; this.rendered.__graphics.copyFrom(staticText.__graphics); return staticText; } ,__class__: openfl__$internal_symbols_StaticTextSymbol }); var openfl__$internal_symbols_StaticTextRecord = function() { }; $hxClasses["openfl._internal.symbols.StaticTextRecord"] = openfl__$internal_symbols_StaticTextRecord; openfl__$internal_symbols_StaticTextRecord.__name__ = ["openfl","_internal","symbols","StaticTextRecord"]; openfl__$internal_symbols_StaticTextRecord.prototype = { advances: null ,color: null ,fontHeight: null ,fontID: null ,glyphs: null ,offsetX: null ,offsetY: null ,__class__: openfl__$internal_symbols_StaticTextRecord }; var openfl__$internal_text_HTMLParser = function() { }; $hxClasses["openfl._internal.text.HTMLParser"] = openfl__$internal_text_HTMLParser; openfl__$internal_text_HTMLParser.__name__ = ["openfl","_internal","text","HTMLParser"]; openfl__$internal_text_HTMLParser.parse = function(value,textFormat,textFormatRanges) { value = value.replace(openfl__$internal_text_HTMLParser.__regexBreakTag.r,"\n"); value = value.replace(openfl__$internal_text_HTMLParser.__regexEntities[0].r,"\""); value = value.replace(openfl__$internal_text_HTMLParser.__regexEntities[1].r,"'"); value = value.replace(openfl__$internal_text_HTMLParser.__regexEntities[2].r,"&"); value = value.replace(openfl__$internal_text_HTMLParser.__regexEntities[5].r," "); var segments = value.split("<"); if(segments.length == 1) { value = value.replace(openfl__$internal_text_HTMLParser.__regexHTMLTag.r,""); if(textFormatRanges.data.get_length() > 1) { var len = textFormatRanges.data.get_length() - 1; new openfl__$Vector_AbstractVector(textFormatRanges.data.splice(1,len)); } value = value.replace(openfl__$internal_text_HTMLParser.__regexEntities[3].r,"<"); value = value.replace(openfl__$internal_text_HTMLParser.__regexEntities[4].r,">"); var range = textFormatRanges.data.get(0); range.format = textFormat; range.start = 0; range.end = value.length; return value; } else { var len1 = textFormatRanges.data.get_length(); new openfl__$Vector_AbstractVector(textFormatRanges.data.splice(0,len1)); value = ""; var segment; var _g1 = 0; var _g = segments.length; while(_g1 < _g) { var i = _g1++; segment = segments[i]; segment = segment.replace(openfl__$internal_text_HTMLParser.__regexEntities[3].r,"<"); segment = segment.replace(openfl__$internal_text_HTMLParser.__regexEntities[4].r,">"); segments[i] = segment; } var formatStack = [textFormat.clone()]; var sub; var noLineBreak = false; var _g2 = 0; while(_g2 < segments.length) { var segment1 = segments[_g2]; ++_g2; if(segment1 == "") { continue; } var isClosingTag = HxOverrides.substr(segment1,0,1) == "/"; var tagEndIndex = segment1.indexOf(">"); var start = tagEndIndex + 1; var spaceIndex = segment1.indexOf(" "); var tagName = segment1.substring(isClosingTag ? 1 : 0,spaceIndex > -1 && spaceIndex < tagEndIndex ? spaceIndex : tagEndIndex); var format; if(isClosingTag) { formatStack.pop(); format = formatStack[formatStack.length - 1].clone(); if(tagName.toLowerCase() == "p" && textFormatRanges.data.get_length() > 0) { value += "\n"; noLineBreak = true; } if(start < segment1.length) { sub = HxOverrides.substr(segment1,start,null); var x = new openfl__$internal_text_TextFormatRange(format,value.length,value.length + sub.length); textFormatRanges.data.push(x); value += sub; noLineBreak = false; } } else { format = formatStack[formatStack.length - 1].clone(); if(tagEndIndex > -1) { var _g11 = tagName.toLowerCase(); switch(_g11) { case "a": if(openfl__$internal_text_HTMLParser.__regexHref.match(segment1)) { format.url = openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexHref); } break; case "b": format.bold = true; break; case "em":case "i": format.italic = true; break; case "font": if(openfl__$internal_text_HTMLParser.__regexFace.match(segment1)) { format.font = openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexFace); } if(openfl__$internal_text_HTMLParser.__regexColor.match(segment1)) { format.color = Std.parseInt("0x" + openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexColor)); } if(openfl__$internal_text_HTMLParser.__regexSize.match(segment1)) { var sizeAttr = openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexSize); var firstChar = HxOverrides.cca(sizeAttr,0); if(firstChar == 43 || firstChar == 45) { var parentFormat = formatStack.length >= 2 ? formatStack[formatStack.length - 2] : textFormat; format.size = parentFormat.size + Std.parseInt(sizeAttr); } else { format.size = Std.parseInt(sizeAttr); } } break; case "p": if(textFormatRanges.data.get_length() > 0 && !noLineBreak) { value += "\n"; } if(openfl__$internal_text_HTMLParser.__regexAlign.match(segment1)) { format.align = openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.fromString(openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexAlign).toLowerCase()); } break; case "textformat": if(openfl__$internal_text_HTMLParser.__regexBlockIndent.match(segment1)) { format.blockIndent = Std.parseInt(openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexBlockIndent)); } if(openfl__$internal_text_HTMLParser.__regexIndent.match(segment1)) { format.indent = Std.parseInt(openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexIndent)); } if(openfl__$internal_text_HTMLParser.__regexLeading.match(segment1)) { format.leading = Std.parseInt(openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexLeading)); } if(openfl__$internal_text_HTMLParser.__regexLeftMargin.match(segment1)) { format.leftMargin = Std.parseInt(openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexLeftMargin)); } if(openfl__$internal_text_HTMLParser.__regexRightMargin.match(segment1)) { format.rightMargin = Std.parseInt(openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexRightMargin)); } if(openfl__$internal_text_HTMLParser.__regexTabStops.match(segment1)) { var values = openfl__$internal_text_HTMLParser.__getAttributeMatch(openfl__$internal_text_HTMLParser.__regexTabStops).split(" "); var tabStops = []; var _g12 = 0; while(_g12 < values.length) { var stop = values[_g12]; ++_g12; tabStops.push(Std.parseInt(stop)); } format.tabStops = tabStops; } break; case "u": format.underline = true; break; } formatStack.push(format); if(start < segment1.length) { sub = segment1.substring(start); var x1 = new openfl__$internal_text_TextFormatRange(format,value.length,value.length + sub.length); textFormatRanges.data.push(x1); value += sub; noLineBreak = false; } } else { var x2 = new openfl__$internal_text_TextFormatRange(format,value.length,value.length + segment1.length); textFormatRanges.data.push(x2); value += segment1; noLineBreak = false; } } } if(textFormatRanges.data.get_length() == 0) { var x3 = new openfl__$internal_text_TextFormatRange(formatStack[0],0,0); textFormatRanges.data.push(x3); } } return value; }; openfl__$internal_text_HTMLParser.__getAttributeMatch = function(regex) { if(regex.matched(2) != null) { return regex.matched(2); } else { return regex.matched(3); } }; var openfl__$internal_text_TextEngine = function(textField) { this.textField = textField; this.width = 100; this.height = 100; this.set_text(""); this.bounds = new openfl_geom_Rectangle(0,0,0,0); this.type = 0; this.autoSize = 2; this.embedFonts = false; this.selectable = true; this.borderColor = 0; this.border = false; this.backgroundColor = 16777215; this.background = false; this.gridFitType = 1; this.maxChars = 0; this.multiline = false; this.sharpness = 0; this.scrollH = 0; this.scrollV = 1; this.wordWrap = false; this.lineAscents = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); this.lineBreaks = openfl__$Vector_Vector_$Impl_$.toIntVector(null); this.lineDescents = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); this.lineLeadings = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); this.lineHeights = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); this.lineWidths = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); this.layoutGroups = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); this.textFormatRanges = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); openfl__$internal_text_TextEngine.__canvas = window.document.createElement("canvas"); openfl__$internal_text_TextEngine.__context = openfl__$internal_text_TextEngine.__canvas.getContext("2d"); }; $hxClasses["openfl._internal.text.TextEngine"] = openfl__$internal_text_TextEngine; openfl__$internal_text_TextEngine.__name__ = ["openfl","_internal","text","TextEngine"]; openfl__$internal_text_TextEngine.findFont = function(name) { return null; }; openfl__$internal_text_TextEngine.getFormatHeight = function(format) { var ascent; var descent; var leading; openfl__$internal_text_TextEngine.__context.font = openfl__$internal_text_TextEngine.getFont(format); if(format.__ascent != null) { ascent = format.size * format.__ascent; descent = format.size * format.__descent; } else { ascent = format.size; descent = format.size * 0.185; } leading = format.leading; return ascent + descent + leading; }; openfl__$internal_text_TextEngine.getFont = function(format) { var font = format.italic ? "italic " : "normal "; font += "normal "; font += format.bold ? "bold " : "normal "; font += format.size + "px"; font += "/" + (format.leading + format.size + 3) + "px "; var _g1 = format.font; var font1; switch(_g1) { case "_sans": font1 = "sans-serif"; break; case "_serif": font1 = "serif"; break; case "_typewriter": font1 = "monospace"; break; default: var _this_r = new RegExp("^[\\s'\"]+(.*)[\\s'\"]+$","".split("u").join("")); font1 = "'" + format.font.replace(_this_r,"$1") + "'"; } font += "" + font1; return font; }; openfl__$internal_text_TextEngine.getFontInstance = function(format) { return null; }; openfl__$internal_text_TextEngine.prototype = { antiAliasType: null ,autoSize: null ,background: null ,backgroundColor: null ,border: null ,borderColor: null ,bottomScrollV: null ,bounds: null ,caretIndex: null ,embedFonts: null ,gridFitType: null ,height: null ,layoutGroups: null ,lineAscents: null ,lineBreaks: null ,lineDescents: null ,lineLeadings: null ,lineHeights: null ,lineWidths: null ,maxChars: null ,maxScrollH: null ,maxScrollV: null ,multiline: null ,numLines: null ,restrict: null ,scrollH: null ,scrollV: null ,selectable: null ,sharpness: null ,text: null ,textHeight: null ,textFormatRanges: null ,textWidth: null ,type: null ,width: null ,wordWrap: null ,textField: null ,__cursorTimer: null ,__hasFocus: null ,__isKeyDown: null ,__measuredHeight: null ,__measuredWidth: null ,__restrictRegexp: null ,__selectionStart: null ,__showCursor: null ,__textFormat: null ,__textLayout: null ,__texture: null ,__useIntAdvances: null ,__cairoFont: null ,__font: null ,__hiddenInput: null ,createRestrictRegexp: function(restrict) { var declinedRange = new EReg("\\^(.-.|.)","gu"); var declined = ""; var accepted = declinedRange.map(restrict,function(ereg) { declined += ereg.matched(1); return ""; }); var testRegexpParts = []; if(accepted.length > 0) { testRegexpParts.push("[^" + restrict + "]"); } if(declined.length > 0) { testRegexpParts.push("[" + declined + "]"); } return new EReg("(" + testRegexpParts.join("|") + ")","g"); } ,getBounds: function() { var padding = this.border ? 1 : 0; this.bounds.width = this.width + padding; this.bounds.height = this.height + padding; } ,getLine: function(index) { if(index < 0 || index > this.lineBreaks.data.get_length() + 1) { return null; } if(this.lineBreaks.data.get_length() == 0) { return this.text; } else { return lime_text__$UTF8String_UTF8String_$Impl_$.substring(this.text,index > 0 ? this.lineBreaks.data.get(index - 1) : 0,this.lineBreaks.data.get(index)); } } ,getLineBreakIndex: function(startIndex) { if(startIndex == null) { startIndex = 0; } var br = lime_text__$UTF8String_UTF8String_$Impl_$.indexOf(this.text,"
",startIndex); var cr = lime_text__$UTF8String_UTF8String_$Impl_$.indexOf(this.text,"\n",startIndex); var lf = lime_text__$UTF8String_UTF8String_$Impl_$.indexOf(this.text,"\r",startIndex); if(cr == -1 && br == -1) { return lf; } if(lf == -1 && br == -1) { return cr; } if(lf == -1 && cr == -1) { return br; } if(cr == -1) { return Math.min(br,lf) | 0; } if(lf == -1) { return Math.min(br,cr) | 0; } if(br == -1) { return Math.min(cr,lf) | 0; } return Math.min(Math.min(cr,lf),br) | 0; } ,getLineMeasurements: function() { this.lineAscents.data.set_length(0); this.lineDescents.data.set_length(0); this.lineLeadings.data.set_length(0); this.lineHeights.data.set_length(0); this.lineWidths.data.set_length(0); var currentLineAscent = 0.0; var currentLineDescent = 0.0; var currentLineLeading = null; var currentLineHeight = 0.0; var currentLineWidth = 0.0; var currentTextHeight = 0.0; this.textWidth = 0; this.textHeight = 0; this.numLines = 1; this.bottomScrollV = 0; this.maxScrollH = 0; var _g = 0; var _g1 = this.layoutGroups; while(_g < _g1.data.get_length()) { var group = _g1.data.get(_g); ++_g; while(group.lineIndex > this.numLines - 1) { this.lineAscents.data.push(currentLineAscent); this.lineDescents.data.push(currentLineDescent); this.lineLeadings.data.push(currentLineLeading != null ? currentLineLeading : 0); this.lineHeights.data.push(currentLineHeight); this.lineWidths.data.push(currentLineWidth); currentLineAscent = 0; currentLineDescent = 0; currentLineLeading = null; currentLineHeight = 0; currentLineWidth = 0; this.numLines++; if(this.textHeight <= this.height - 2) { this.bottomScrollV++; } } currentLineAscent = Math.max(currentLineAscent,group.ascent); currentLineDescent = Math.max(currentLineDescent,group.descent); if(currentLineLeading == null) { currentLineLeading = group.leading; } else { currentLineLeading = Math.max(currentLineLeading,group.leading) | 0; } currentLineHeight = Math.max(currentLineHeight,group.height); currentLineWidth = group.offsetX - 2 + group.width; if(currentLineWidth > this.textWidth) { this.textWidth = currentLineWidth; } currentTextHeight = group.offsetY - 2 + group.ascent + group.descent; if(currentTextHeight > this.textHeight) { this.textHeight = currentTextHeight; } } this.lineAscents.data.push(currentLineAscent); this.lineDescents.data.push(currentLineDescent); this.lineLeadings.data.push(currentLineLeading != null ? currentLineLeading : 0); this.lineHeights.data.push(currentLineHeight); this.lineWidths.data.push(currentLineWidth); if(this.numLines == 1) { this.bottomScrollV = 1; if(currentLineLeading > 0) { this.textHeight += currentLineLeading; } } else if(this.textHeight <= this.height - 2) { this.bottomScrollV++; } if(this.autoSize != 2) { var _g2 = this.autoSize; switch(_g2) { case 0:case 1:case 3: if(!this.wordWrap) { this.width = this.textWidth + 4; } this.height = this.textHeight + 4; this.bottomScrollV = this.numLines; break; default: } } if(this.textWidth > this.width - 4) { this.maxScrollH = this.textWidth - this.width + 4 | 0; } else { this.maxScrollH = 0; } this.maxScrollV = this.numLines - this.bottomScrollV + 1; } ,getLayoutGroups: function() { var _gthis = this; this.layoutGroups.data.set_length(0); var rangeIndex = -1; var formatRange = null; var font = null; var currentFormat = openfl_text_TextField.__defaultTextFormat.clone(); var leading = 0; var ascent = 0.0; var maxAscent = 0.0; var descent = 0.0; var layoutGroup = null; var positions = null; var widthValue = 0.0; var heightValue = 0.0; var maxHeightValue = 0.0; var previousSpaceIndex = -2; var spaceIndex = lime_text__$UTF8String_UTF8String_$Impl_$.indexOf(this.text," "); var breakIndex = this.getLineBreakIndex(); var offsetX = 2.0; var offsetY = 2.0; var textIndex = 0; var lineIndex = 0; var lineFormat = null; if(rangeIndex < _gthis.textFormatRanges.data.get_length() - 1) { ++rangeIndex; formatRange = _gthis.textFormatRanges.data.get(rangeIndex); currentFormat.__merge(formatRange.format); openfl__$internal_text_TextEngine.__context.font = openfl__$internal_text_TextEngine.getFont(currentFormat); if(currentFormat.__ascent != null) { ascent = currentFormat.size * currentFormat.__ascent; descent = currentFormat.size * currentFormat.__descent; } else { ascent = currentFormat.size; descent = currentFormat.size * 0.185; } leading = currentFormat.leading; heightValue = ascent + descent + leading; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } if(ascent > maxAscent) { maxAscent = ascent; } lineFormat = formatRange.format; var wrap; var maxLoops = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.text) + 1; while(textIndex < maxLoops) if(breakIndex > -1 && (spaceIndex == -1 || breakIndex < spaceIndex) && formatRange.end >= breakIndex) { if(textIndex <= breakIndex) { if(this.wordWrap && previousSpaceIndex <= textIndex && this.width >= 4) { var text = lime_text__$UTF8String_UTF8String_$Impl_$.substring(_gthis.text,textIndex,breakIndex); var tempWidth = openfl__$internal_text_TextEngine.__context.measureText(text).width; while(offsetX + tempWidth > _gthis.width - 2) { var i = 1; while(textIndex + i < breakIndex + 1) { var text1 = lime_text__$UTF8String_UTF8String_$Impl_$.substr(_gthis.text,textIndex,i); tempWidth = openfl__$internal_text_TextEngine.__context.measureText(text1).width; if(offsetX + tempWidth > _gthis.width - 2) { --i; break; } ++i; } if(i == 0 && tempWidth > _gthis.width - 4) { i = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(_gthis.text); } if(i == 0) { offsetX = 2; offsetY += layoutGroup.height; ++lineIndex; break; } else { var endIndex = textIndex + i; if(layoutGroup == null || layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = new openfl__$internal_text_TextLayoutGroup(formatRange.format,textIndex,endIndex); _gthis.layoutGroups.data.push(layoutGroup); } else { layoutGroup.format = formatRange.format; layoutGroup.startIndex = textIndex; layoutGroup.endIndex = endIndex; } var text2 = _gthis.text; var endIndex1 = textIndex + i; var positions1 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth = 0.0; var width; var _g1 = textIndex; var _g = endIndex1; while(_g1 < _g) { var i1 = _g1++; width = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text2,textIndex,i1 + 1)).width; positions1.push(width - previousWidth); previousWidth = width; } } else { var _g11 = textIndex; var _g2 = endIndex1; while(_g11 < _g2) { var i2 = _g11++; var advance; if(i2 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text2) - 1) { var nextWidth = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text2,i2 + 1)).width; var twoWidths = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text2,i2,2)).width; advance = twoWidths - nextWidth; } else { advance = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text2,i2)).width; } positions1.push(advance); } } layoutGroup.positions = positions1; layoutGroup.offsetX = offsetX; layoutGroup.ascent = ascent; layoutGroup.descent = descent; layoutGroup.leading = leading; layoutGroup.lineIndex = lineIndex; layoutGroup.offsetY = offsetY; var positions2 = layoutGroup.positions; var width1 = 0.0; var _g3 = 0; while(_g3 < positions2.length) { var position = positions2[_g3]; ++_g3; width1 += position; } layoutGroup.width = width1; layoutGroup.height = heightValue; layoutGroup = null; if(ascent > maxAscent) { maxAscent = ascent; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } var _g4 = 0; var _g12 = _gthis.layoutGroups; while(_g4 < _g12.data.get_length()) { var lg = _g12.data.get(_g4); ++_g4; if(lg.lineIndex < lineIndex) { continue; } if(lg.lineIndex > lineIndex) { break; } lg.ascent = maxAscent; lg.height = maxHeightValue; } offsetY += maxHeightValue; maxAscent = 0.0; maxHeightValue = 0.0; ++lineIndex; offsetX = 2; textIndex += i; var text3 = _gthis.text; var positions3 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth1 = 0.0; var width2; var _g13 = textIndex; var _g5 = breakIndex; while(_g13 < _g5) { var i3 = _g13++; width2 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text3,textIndex,i3 + 1)).width; positions3.push(width2 - previousWidth1); previousWidth1 = width2; } } else { var _g14 = textIndex; var _g6 = breakIndex; while(_g14 < _g6) { var i4 = _g14++; var advance1; if(i4 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text3) - 1) { var nextWidth1 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text3,i4 + 1)).width; var twoWidths1 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text3,i4,2)).width; advance1 = twoWidths1 - nextWidth1; } else { advance1 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text3,i4)).width; } positions3.push(advance1); } } positions = positions3; var width3 = 0.0; var _g7 = 0; while(_g7 < positions.length) { var position1 = positions[_g7]; ++_g7; width3 += position1; } widthValue = width3; tempWidth = widthValue; } } } if(layoutGroup == null || layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = new openfl__$internal_text_TextLayoutGroup(formatRange.format,textIndex,breakIndex); _gthis.layoutGroups.data.push(layoutGroup); } else { layoutGroup.format = formatRange.format; layoutGroup.startIndex = textIndex; layoutGroup.endIndex = breakIndex; } var text4 = this.text; var positions4 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth2 = 0.0; var width4; var _g15 = textIndex; var _g8 = breakIndex; while(_g15 < _g8) { var i5 = _g15++; width4 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text4,textIndex,i5 + 1)).width; positions4.push(width4 - previousWidth2); previousWidth2 = width4; } } else { var _g16 = textIndex; var _g9 = breakIndex; while(_g16 < _g9) { var i6 = _g16++; var advance2; if(i6 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text4) - 1) { var nextWidth2 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text4,i6 + 1)).width; var twoWidths2 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text4,i6,2)).width; advance2 = twoWidths2 - nextWidth2; } else { advance2 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text4,i6)).width; } positions4.push(advance2); } } layoutGroup.positions = positions4; layoutGroup.offsetX = offsetX; layoutGroup.ascent = ascent; layoutGroup.descent = descent; layoutGroup.leading = leading; layoutGroup.lineIndex = lineIndex; layoutGroup.offsetY = offsetY; var positions5 = layoutGroup.positions; var width5 = 0.0; var _g10 = 0; while(_g10 < positions5.length) { var position2 = positions5[_g10]; ++_g10; width5 += position2; } layoutGroup.width = width5; layoutGroup.height = heightValue; layoutGroup = null; } else if(layoutGroup != null && layoutGroup.startIndex != layoutGroup.endIndex) { if(layoutGroup.endIndex == spaceIndex) { layoutGroup.width -= layoutGroup.positions[layoutGroup.positions.length - 1]; } layoutGroup = null; } if(formatRange.end == breakIndex) { if(rangeIndex < _gthis.textFormatRanges.data.get_length() - 1) { ++rangeIndex; formatRange = _gthis.textFormatRanges.data.get(rangeIndex); currentFormat.__merge(formatRange.format); openfl__$internal_text_TextEngine.__context.font = openfl__$internal_text_TextEngine.getFont(currentFormat); if(currentFormat.__ascent != null) { ascent = currentFormat.size * currentFormat.__ascent; descent = currentFormat.size * currentFormat.__descent; } else { ascent = currentFormat.size; descent = currentFormat.size * 0.185; } leading = currentFormat.leading; heightValue = ascent + descent + leading; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } if(ascent > maxAscent) { maxAscent = ascent; } lineFormat = formatRange.format; } if(breakIndex >= lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.text) - 1) { offsetY -= maxHeightValue; } if(ascent > maxAscent) { maxAscent = ascent; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } var _g17 = 0; var _g18 = _gthis.layoutGroups; while(_g17 < _g18.data.get_length()) { var lg1 = _g18.data.get(_g17); ++_g17; if(lg1.lineIndex < lineIndex) { continue; } if(lg1.lineIndex > lineIndex) { break; } lg1.ascent = maxAscent; lg1.height = maxHeightValue; } offsetY += maxHeightValue; maxAscent = 0.0; maxHeightValue = 0.0; ++lineIndex; offsetX = 2; textIndex = breakIndex + 1; breakIndex = this.getLineBreakIndex(textIndex); } else if(formatRange.end >= spaceIndex && spaceIndex > -1 && textIndex < formatRange.end) { if(layoutGroup != null && layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = null; } wrap = false; while(textIndex != formatRange.end) { var endIndex2 = -1; if(spaceIndex == -1) { endIndex2 = breakIndex; } else { endIndex2 = spaceIndex + 1; if(breakIndex > -1 && breakIndex < endIndex2) { endIndex2 = breakIndex; } } if(endIndex2 == -1 || endIndex2 > formatRange.end) { endIndex2 = formatRange.end; } var text5 = this.text; var positions6 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth3 = 0.0; var width6; var _g19 = textIndex; var _g20 = endIndex2; while(_g19 < _g20) { var i7 = _g19++; width6 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text5,textIndex,i7 + 1)).width; positions6.push(width6 - previousWidth3); previousWidth3 = width6; } } else { var _g110 = textIndex; var _g21 = endIndex2; while(_g110 < _g21) { var i8 = _g110++; var advance3; if(i8 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text5) - 1) { var nextWidth3 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text5,i8 + 1)).width; var twoWidths3 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text5,i8,2)).width; advance3 = twoWidths3 - nextWidth3; } else { advance3 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text5,i8)).width; } positions6.push(advance3); } } positions = positions6; var width7 = 0.0; var _g22 = 0; while(_g22 < positions.length) { var position3 = positions[_g22]; ++_g22; width7 += position3; } widthValue = width7; if(lineFormat.align == 2) { if(positions.length > 0 && textIndex == previousSpaceIndex) { ++textIndex; var spaceWidth = positions.shift(); widthValue -= spaceWidth; offsetX += spaceWidth; } if(positions.length > 0 && endIndex2 == spaceIndex + 1) { --endIndex2; var spaceWidth1 = positions.pop(); widthValue -= spaceWidth1; } } if(this.wordWrap) { if(offsetX + widthValue > this.width - 2) { wrap = true; if(positions.length > 0 && endIndex2 == spaceIndex + 1) { var lastPosition = positions[positions.length - 1]; var spaceWidth2 = lastPosition; if(offsetX + widthValue - spaceWidth2 <= this.width - 2) { wrap = false; } } } } if(wrap) { if(lineFormat.align != 2 && (layoutGroup != null || this.layoutGroups.data.get_length() > 0)) { var previous = layoutGroup; if(previous == null) { var this1 = this.layoutGroups; var index = this.layoutGroups.data.get_length() - 1; previous = this1.data.get(index); } previous.width -= previous.positions[previous.positions.length - 1]; previous.endIndex--; } var i9 = this.layoutGroups.data.get_length() - 1; var offsetCount = 0; while(true) { layoutGroup = this.layoutGroups.data.get(i9); if(i9 > 0 && layoutGroup.startIndex > previousSpaceIndex) { ++offsetCount; } else { break; } --i9; } if(textIndex == previousSpaceIndex + 1) { if(ascent > maxAscent) { maxAscent = ascent; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } var _g23 = 0; var _g111 = _gthis.layoutGroups; while(_g23 < _g111.data.get_length()) { var lg2 = _g111.data.get(_g23); ++_g23; if(lg2.lineIndex < lineIndex) { continue; } if(lg2.lineIndex > lineIndex) { break; } lg2.ascent = maxAscent; lg2.height = maxHeightValue; } offsetY += maxHeightValue; maxAscent = 0.0; maxHeightValue = 0.0; ++lineIndex; offsetX = 2; } offsetX = 2; if(offsetCount > 0) { var this2 = this.layoutGroups; var index1 = this.layoutGroups.data.get_length() - offsetCount; var bumpX = this2.data.get(index1).offsetX; var _g112 = this.layoutGroups.data.get_length() - offsetCount; var _g24 = this.layoutGroups.data.get_length(); while(_g112 < _g24) { var i10 = _g112++; layoutGroup = this.layoutGroups.data.get(i10); layoutGroup.offsetX -= bumpX; layoutGroup.offsetY = offsetY; layoutGroup.lineIndex = lineIndex; offsetX += layoutGroup.width; } } if(this.width >= 4) { var text6 = lime_text__$UTF8String_UTF8String_$Impl_$.substring(_gthis.text,textIndex,endIndex2); var tempWidth1 = openfl__$internal_text_TextEngine.__context.measureText(text6).width; while(offsetX + tempWidth1 > _gthis.width - 2) { var i11 = 1; while(textIndex + i11 < endIndex2 + 1) { var text7 = lime_text__$UTF8String_UTF8String_$Impl_$.substr(_gthis.text,textIndex,i11); tempWidth1 = openfl__$internal_text_TextEngine.__context.measureText(text7).width; if(offsetX + tempWidth1 > _gthis.width - 2) { --i11; break; } ++i11; } if(i11 == 0 && tempWidth1 > _gthis.width - 4) { i11 = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(_gthis.text); } if(i11 == 0) { offsetX = 2; offsetY += layoutGroup.height; ++lineIndex; break; } else { var endIndex3 = textIndex + i11; if(layoutGroup == null || layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = new openfl__$internal_text_TextLayoutGroup(formatRange.format,textIndex,endIndex3); _gthis.layoutGroups.data.push(layoutGroup); } else { layoutGroup.format = formatRange.format; layoutGroup.startIndex = textIndex; layoutGroup.endIndex = endIndex3; } var text8 = _gthis.text; var endIndex4 = textIndex + i11; var positions7 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth4 = 0.0; var width8; var _g113 = textIndex; var _g25 = endIndex4; while(_g113 < _g25) { var i12 = _g113++; width8 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text8,textIndex,i12 + 1)).width; positions7.push(width8 - previousWidth4); previousWidth4 = width8; } } else { var _g114 = textIndex; var _g26 = endIndex4; while(_g114 < _g26) { var i13 = _g114++; var advance4; if(i13 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text8) - 1) { var nextWidth4 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text8,i13 + 1)).width; var twoWidths4 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text8,i13,2)).width; advance4 = twoWidths4 - nextWidth4; } else { advance4 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text8,i13)).width; } positions7.push(advance4); } } layoutGroup.positions = positions7; layoutGroup.offsetX = offsetX; layoutGroup.ascent = ascent; layoutGroup.descent = descent; layoutGroup.leading = leading; layoutGroup.lineIndex = lineIndex; layoutGroup.offsetY = offsetY; var positions8 = layoutGroup.positions; var width9 = 0.0; var _g27 = 0; while(_g27 < positions8.length) { var position4 = positions8[_g27]; ++_g27; width9 += position4; } layoutGroup.width = width9; layoutGroup.height = heightValue; layoutGroup = null; if(ascent > maxAscent) { maxAscent = ascent; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } var _g28 = 0; var _g115 = _gthis.layoutGroups; while(_g28 < _g115.data.get_length()) { var lg3 = _g115.data.get(_g28); ++_g28; if(lg3.lineIndex < lineIndex) { continue; } if(lg3.lineIndex > lineIndex) { break; } lg3.ascent = maxAscent; lg3.height = maxHeightValue; } offsetY += maxHeightValue; maxAscent = 0.0; maxHeightValue = 0.0; ++lineIndex; offsetX = 2; textIndex += i11; var text9 = _gthis.text; var positions9 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth5 = 0.0; var width10; var _g116 = textIndex; var _g29 = endIndex2; while(_g116 < _g29) { var i14 = _g116++; width10 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text9,textIndex,i14 + 1)).width; positions9.push(width10 - previousWidth5); previousWidth5 = width10; } } else { var _g117 = textIndex; var _g30 = endIndex2; while(_g117 < _g30) { var i15 = _g117++; var advance5; if(i15 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text9) - 1) { var nextWidth5 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text9,i15 + 1)).width; var twoWidths5 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text9,i15,2)).width; advance5 = twoWidths5 - nextWidth5; } else { advance5 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text9,i15)).width; } positions9.push(advance5); } } positions = positions9; var width11 = 0.0; var _g31 = 0; while(_g31 < positions.length) { var position5 = positions[_g31]; ++_g31; width11 += position5; } widthValue = width11; tempWidth1 = widthValue; } } } if(layoutGroup == null || layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = new openfl__$internal_text_TextLayoutGroup(formatRange.format,textIndex,endIndex2); _gthis.layoutGroups.data.push(layoutGroup); } else { layoutGroup.format = formatRange.format; layoutGroup.startIndex = textIndex; layoutGroup.endIndex = endIndex2; } layoutGroup.positions = positions; layoutGroup.offsetX = offsetX; layoutGroup.ascent = ascent; layoutGroup.descent = descent; layoutGroup.leading = leading; layoutGroup.lineIndex = lineIndex; layoutGroup.offsetY = offsetY; layoutGroup.width = widthValue; layoutGroup.height = heightValue; offsetX += widthValue; textIndex = endIndex2; wrap = false; } else { if(layoutGroup != null && textIndex == spaceIndex) { if(lineFormat.align != 2) { layoutGroup.endIndex = spaceIndex; layoutGroup.positions = layoutGroup.positions.concat(positions); layoutGroup.width += widthValue; } } else if(layoutGroup == null || lineFormat.align == 2) { if(layoutGroup == null || layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = new openfl__$internal_text_TextLayoutGroup(formatRange.format,textIndex,endIndex2); _gthis.layoutGroups.data.push(layoutGroup); } else { layoutGroup.format = formatRange.format; layoutGroup.startIndex = textIndex; layoutGroup.endIndex = endIndex2; } layoutGroup.positions = positions; layoutGroup.offsetX = offsetX; layoutGroup.ascent = ascent; layoutGroup.descent = descent; layoutGroup.leading = leading; layoutGroup.lineIndex = lineIndex; layoutGroup.offsetY = offsetY; layoutGroup.width = widthValue; layoutGroup.height = heightValue; } else { layoutGroup.endIndex = endIndex2; layoutGroup.positions = layoutGroup.positions.concat(positions); layoutGroup.width += widthValue; if(breakIndex == endIndex2) { ++endIndex2; } } offsetX += widthValue; textIndex = endIndex2; } var nextSpaceIndex = lime_text__$UTF8String_UTF8String_$Impl_$.indexOf(this.text," ",textIndex); if(formatRange.end <= previousSpaceIndex) { layoutGroup = null; textIndex = formatRange.end; if(rangeIndex < _gthis.textFormatRanges.data.get_length() - 1) { ++rangeIndex; formatRange = _gthis.textFormatRanges.data.get(rangeIndex); currentFormat.__merge(formatRange.format); openfl__$internal_text_TextEngine.__context.font = openfl__$internal_text_TextEngine.getFont(currentFormat); if(currentFormat.__ascent != null) { ascent = currentFormat.size * currentFormat.__ascent; descent = currentFormat.size * currentFormat.__descent; } else { ascent = currentFormat.size; descent = currentFormat.size * 0.185; } leading = currentFormat.leading; heightValue = ascent + descent + leading; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } if(ascent > maxAscent) { maxAscent = ascent; } } else { if(breakIndex == previousSpaceIndex) { layoutGroup.endIndex = breakIndex; if(breakIndex - layoutGroup.startIndex - layoutGroup.positions.length < 0) { layoutGroup.positions.push(0.0); } textIndex = breakIndex + 1; } previousSpaceIndex = spaceIndex; spaceIndex = nextSpaceIndex; } if(breakIndex > -1 && breakIndex <= textIndex && (spaceIndex > breakIndex || spaceIndex == -1) || textIndex > lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.text) || spaceIndex > formatRange.end) { break; } } } else { if(textIndex > formatRange.end) { break; } else if(textIndex < formatRange.end || textIndex == lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.text)) { if(this.wordWrap && this.width >= 4) { var endIndex5 = formatRange.end; var text10 = lime_text__$UTF8String_UTF8String_$Impl_$.substring(_gthis.text,textIndex,endIndex5); var tempWidth2 = openfl__$internal_text_TextEngine.__context.measureText(text10).width; while(offsetX + tempWidth2 > _gthis.width - 2) { var i16 = 1; while(textIndex + i16 < endIndex5 + 1) { var text11 = lime_text__$UTF8String_UTF8String_$Impl_$.substr(_gthis.text,textIndex,i16); tempWidth2 = openfl__$internal_text_TextEngine.__context.measureText(text11).width; if(offsetX + tempWidth2 > _gthis.width - 2) { --i16; break; } ++i16; } if(i16 == 0 && tempWidth2 > _gthis.width - 4) { i16 = lime_text__$UTF8String_UTF8String_$Impl_$.get_length(_gthis.text); } if(i16 == 0) { offsetX = 2; offsetY += layoutGroup.height; ++lineIndex; break; } else { var endIndex6 = textIndex + i16; if(layoutGroup == null || layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = new openfl__$internal_text_TextLayoutGroup(formatRange.format,textIndex,endIndex6); _gthis.layoutGroups.data.push(layoutGroup); } else { layoutGroup.format = formatRange.format; layoutGroup.startIndex = textIndex; layoutGroup.endIndex = endIndex6; } var text12 = _gthis.text; var endIndex7 = textIndex + i16; var positions10 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth6 = 0.0; var width12; var _g118 = textIndex; var _g32 = endIndex7; while(_g118 < _g32) { var i17 = _g118++; width12 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text12,textIndex,i17 + 1)).width; positions10.push(width12 - previousWidth6); previousWidth6 = width12; } } else { var _g119 = textIndex; var _g33 = endIndex7; while(_g119 < _g33) { var i18 = _g119++; var advance6; if(i18 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text12) - 1) { var nextWidth6 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text12,i18 + 1)).width; var twoWidths6 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text12,i18,2)).width; advance6 = twoWidths6 - nextWidth6; } else { advance6 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text12,i18)).width; } positions10.push(advance6); } } layoutGroup.positions = positions10; layoutGroup.offsetX = offsetX; layoutGroup.ascent = ascent; layoutGroup.descent = descent; layoutGroup.leading = leading; layoutGroup.lineIndex = lineIndex; layoutGroup.offsetY = offsetY; var positions11 = layoutGroup.positions; var width13 = 0.0; var _g34 = 0; while(_g34 < positions11.length) { var position6 = positions11[_g34]; ++_g34; width13 += position6; } layoutGroup.width = width13; layoutGroup.height = heightValue; layoutGroup = null; if(ascent > maxAscent) { maxAscent = ascent; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } var _g35 = 0; var _g120 = _gthis.layoutGroups; while(_g35 < _g120.data.get_length()) { var lg4 = _g120.data.get(_g35); ++_g35; if(lg4.lineIndex < lineIndex) { continue; } if(lg4.lineIndex > lineIndex) { break; } lg4.ascent = maxAscent; lg4.height = maxHeightValue; } offsetY += maxHeightValue; maxAscent = 0.0; maxHeightValue = 0.0; ++lineIndex; offsetX = 2; textIndex += i16; var text13 = _gthis.text; var positions12 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth7 = 0.0; var width14; var _g121 = textIndex; var _g36 = endIndex5; while(_g121 < _g36) { var i19 = _g121++; width14 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text13,textIndex,i19 + 1)).width; positions12.push(width14 - previousWidth7); previousWidth7 = width14; } } else { var _g122 = textIndex; var _g37 = endIndex5; while(_g122 < _g37) { var i20 = _g122++; var advance7; if(i20 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text13) - 1) { var nextWidth7 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text13,i20 + 1)).width; var twoWidths7 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text13,i20,2)).width; advance7 = twoWidths7 - nextWidth7; } else { advance7 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text13,i20)).width; } positions12.push(advance7); } } positions = positions12; var width15 = 0.0; var _g38 = 0; while(_g38 < positions.length) { var position7 = positions[_g38]; ++_g38; width15 += position7; } widthValue = width15; tempWidth2 = widthValue; } } } var text14 = this.text; var endIndex8 = formatRange.end; var positions13 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth8 = 0.0; var width16; var _g123 = textIndex; var _g39 = endIndex8; while(_g123 < _g39) { var i21 = _g123++; width16 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text14,textIndex,i21 + 1)).width; positions13.push(width16 - previousWidth8); previousWidth8 = width16; } } else { var _g124 = textIndex; var _g40 = endIndex8; while(_g124 < _g40) { var i22 = _g124++; var advance8; if(i22 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text14) - 1) { var nextWidth8 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text14,i22 + 1)).width; var twoWidths8 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text14,i22,2)).width; advance8 = twoWidths8 - nextWidth8; } else { advance8 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text14,i22)).width; } positions13.push(advance8); } } positions = positions13; var width17 = 0.0; var _g41 = 0; while(_g41 < positions.length) { var position8 = positions[_g41]; ++_g41; width17 += position8; } widthValue = width17; var endIndex9 = formatRange.end; if(layoutGroup == null || layoutGroup.startIndex != layoutGroup.endIndex) { layoutGroup = new openfl__$internal_text_TextLayoutGroup(formatRange.format,textIndex,endIndex9); _gthis.layoutGroups.data.push(layoutGroup); } else { layoutGroup.format = formatRange.format; layoutGroup.startIndex = textIndex; layoutGroup.endIndex = endIndex9; } var text15 = this.text; var endIndex10 = formatRange.end; var positions14 = []; if(_gthis.__useIntAdvances == null) { _gthis.__useIntAdvances = new EReg("Trident/7.0","").match(window.navigator.userAgent); } if(_gthis.__useIntAdvances) { var previousWidth9 = 0.0; var width18; var _g125 = textIndex; var _g42 = endIndex10; while(_g125 < _g42) { var i23 = _g125++; width18 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substring(text15,textIndex,i23 + 1)).width; positions14.push(width18 - previousWidth9); previousWidth9 = width18; } } else { var _g126 = textIndex; var _g43 = endIndex10; while(_g126 < _g43) { var i24 = _g126++; var advance9; if(i24 < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(text15) - 1) { var nextWidth9 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text15,i24 + 1)).width; var twoWidths9 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.substr(text15,i24,2)).width; advance9 = twoWidths9 - nextWidth9; } else { advance9 = openfl__$internal_text_TextEngine.__context.measureText(lime_text__$UTF8String_UTF8String_$Impl_$.charAt(text15,i24)).width; } positions14.push(advance9); } } layoutGroup.positions = positions14; layoutGroup.offsetX = offsetX; layoutGroup.ascent = ascent; layoutGroup.descent = descent; layoutGroup.leading = leading; layoutGroup.lineIndex = lineIndex; layoutGroup.offsetY = offsetY; var positions15 = layoutGroup.positions; var width19 = 0.0; var _g44 = 0; while(_g44 < positions15.length) { var position9 = positions15[_g44]; ++_g44; width19 += position9; } layoutGroup.width = width19; layoutGroup.height = heightValue; offsetX += widthValue; textIndex = formatRange.end; } if(rangeIndex < _gthis.textFormatRanges.data.get_length() - 1) { ++rangeIndex; formatRange = _gthis.textFormatRanges.data.get(rangeIndex); currentFormat.__merge(formatRange.format); openfl__$internal_text_TextEngine.__context.font = openfl__$internal_text_TextEngine.getFont(currentFormat); if(currentFormat.__ascent != null) { ascent = currentFormat.size * currentFormat.__ascent; descent = currentFormat.size * currentFormat.__descent; } else { ascent = currentFormat.size; descent = currentFormat.size * 0.185; } leading = currentFormat.leading; heightValue = ascent + descent + leading; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } if(ascent > maxAscent) { maxAscent = ascent; } if(textIndex == formatRange.end) { if(ascent > maxAscent) { maxAscent = ascent; } if(heightValue > maxHeightValue) { maxHeightValue = heightValue; } var _g45 = 0; var _g127 = _gthis.layoutGroups; while(_g45 < _g127.data.get_length()) { var lg5 = _g127.data.get(_g45); ++_g45; if(lg5.lineIndex < lineIndex) { continue; } if(lg5.lineIndex > lineIndex) { break; } lg5.ascent = maxAscent; lg5.height = maxHeightValue; } offsetY += maxHeightValue; maxAscent = 0.0; maxHeightValue = 0.0; ++lineIndex; offsetX = 2; ++textIndex; break; } } } ,setTextAlignment: function() { var lineIndex = -1; var offsetX = 0.0; var totalWidth = this.width - 4; var group; var lineLength; var _g1 = 0; var _g = this.layoutGroups.data.get_length(); while(_g1 < _g) { var i = _g1++; group = this.layoutGroups.data.get(i); if(group.lineIndex != lineIndex) { lineIndex = group.lineIndex; var _g2 = group.format.align; switch(_g2) { case 0: if(this.lineWidths.data.get(lineIndex) < totalWidth) { offsetX = Math.round((totalWidth - this.lineWidths.data.get(lineIndex)) / 2); } else { offsetX = 0; } break; case 2: if(this.lineWidths.data.get(lineIndex) < totalWidth) { lineLength = 1; var _g3 = i + 1; var _g21 = this.layoutGroups.data.get_length(); while(_g3 < _g21) { var j = _g3++; if(this.layoutGroups.data.get(j).lineIndex == lineIndex) { if(j == 0 || lime_text__$UTF8String_UTF8String_$Impl_$.charCodeAt(this.text,this.layoutGroups.data.get(j).startIndex - 1) == 32) { ++lineLength; } } else { break; } } if(lineLength > 1) { group = this.layoutGroups.data.get(i + lineLength - 1); var endChar = lime_text__$UTF8String_UTF8String_$Impl_$.charCodeAt(this.text,group.endIndex); if(group.endIndex < lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.text) && endChar != 10 && endChar != 13) { offsetX = (totalWidth - this.lineWidths.data.get(lineIndex)) / (lineLength - 1); var j1 = 0; while(true) { if(j1 > 1 && lime_text__$UTF8String_UTF8String_$Impl_$.charCodeAt(this.text,this.layoutGroups.data.get(j1).startIndex - 1) != 32) { this.layoutGroups.data.get(i + j1).offsetX += offsetX * (j1 - 1); ++j1; } this.layoutGroups.data.get(i + j1).offsetX += offsetX * j1; if(!(++j1 < lineLength)) { break; } } } } } offsetX = 0; break; case 4: if(this.lineWidths.data.get(lineIndex) < totalWidth) { offsetX = Math.round(totalWidth - this.lineWidths.data.get(lineIndex)); } else { offsetX = 0; } break; default: offsetX = 0; } } if(offsetX > 0) { group.offsetX += offsetX; } } } ,update: function() { if(this.text == null || lime_text__$UTF8String_UTF8String_$Impl_$.equals(this.text,"") || this.textFormatRanges.data.get_length() == 0) { this.lineAscents.data.set_length(0); this.lineBreaks.data.set_length(0); this.lineDescents.data.set_length(0); this.lineLeadings.data.set_length(0); this.lineHeights.data.set_length(0); this.lineWidths.data.set_length(0); this.layoutGroups.data.set_length(0); this.textWidth = 0; this.textHeight = 0; this.numLines = 1; this.maxScrollH = 0; this.maxScrollV = 1; this.bottomScrollV = 1; } else { this.getLayoutGroups(); this.getLineMeasurements(); this.setTextAlignment(); } this.getBounds(); } ,set_restrict: function(value) { if(lime_text__$UTF8String_UTF8String_$Impl_$.equals(this.restrict,value)) { return this.restrict; } this.restrict = value; if(this.restrict == null || lime_text__$UTF8String_UTF8String_$Impl_$.get_length(this.restrict) == 0) { this.__restrictRegexp = null; } else { this.__restrictRegexp = this.createRestrictRegexp(value); } return this.restrict; } ,set_text: function(value) { if(value == null) { return this.text = value; } if(this.__restrictRegexp != null) { value = this.__restrictRegexp.split(value).join(""); } if(this.maxChars > 0 && value.length > this.maxChars) { value = HxOverrides.substr(value,0,this.maxChars); } this.text = value; return this.text; } ,__class__: openfl__$internal_text_TextEngine ,__properties__: {set_text:"set_text",set_restrict:"set_restrict"} }; var openfl__$internal_text_TextFormatRange = function(format,start,end) { this.format = format; this.start = start; this.end = end; }; $hxClasses["openfl._internal.text.TextFormatRange"] = openfl__$internal_text_TextFormatRange; openfl__$internal_text_TextFormatRange.__name__ = ["openfl","_internal","text","TextFormatRange"]; openfl__$internal_text_TextFormatRange.prototype = { end: null ,format: null ,start: null ,__class__: openfl__$internal_text_TextFormatRange }; var openfl__$internal_text_TextLayoutGroup = function(format,startIndex,endIndex) { this.format = format; this.startIndex = startIndex; this.endIndex = endIndex; }; $hxClasses["openfl._internal.text.TextLayoutGroup"] = openfl__$internal_text_TextLayoutGroup; openfl__$internal_text_TextLayoutGroup.__name__ = ["openfl","_internal","text","TextLayoutGroup"]; openfl__$internal_text_TextLayoutGroup.prototype = { ascent: null ,descent: null ,endIndex: null ,format: null ,height: null ,leading: null ,lineIndex: null ,offsetX: null ,offsetY: null ,positions: null ,startIndex: null ,width: null ,getAdvance: function(index) { return this.positions[index]; } ,__class__: openfl__$internal_text_TextLayoutGroup }; var openfl__$internal_timeline_Frame = function() { }; $hxClasses["openfl._internal.timeline.Frame"] = openfl__$internal_timeline_Frame; openfl__$internal_timeline_Frame.__name__ = ["openfl","_internal","timeline","Frame"]; openfl__$internal_timeline_Frame.prototype = { label: null ,objects: null ,script: null ,scriptSource: null ,__class__: openfl__$internal_timeline_Frame }; var openfl__$internal_timeline_FrameObject = function() { }; $hxClasses["openfl._internal.timeline.FrameObject"] = openfl__$internal_timeline_FrameObject; openfl__$internal_timeline_FrameObject.__name__ = ["openfl","_internal","timeline","FrameObject"]; openfl__$internal_timeline_FrameObject.prototype = { blendMode: null ,cacheAsBitmap: null ,clipDepth: null ,colorTransform: null ,depth: null ,filters: null ,id: null ,matrix: null ,name: null ,symbol: null ,type: null ,visible: null ,__class__: openfl__$internal_timeline_FrameObject }; var openfl__$internal_timeline_FrameObjectType = $hxClasses["openfl._internal.timeline.FrameObjectType"] = { __ename__ : ["openfl","_internal","timeline","FrameObjectType"], __constructs__ : ["CREATE","UPDATE","DESTROY"] }; openfl__$internal_timeline_FrameObjectType.CREATE = ["CREATE",0]; openfl__$internal_timeline_FrameObjectType.CREATE.toString = $estr; openfl__$internal_timeline_FrameObjectType.CREATE.__enum__ = openfl__$internal_timeline_FrameObjectType; openfl__$internal_timeline_FrameObjectType.UPDATE = ["UPDATE",1]; openfl__$internal_timeline_FrameObjectType.UPDATE.toString = $estr; openfl__$internal_timeline_FrameObjectType.UPDATE.__enum__ = openfl__$internal_timeline_FrameObjectType; openfl__$internal_timeline_FrameObjectType.DESTROY = ["DESTROY",2]; openfl__$internal_timeline_FrameObjectType.DESTROY.toString = $estr; openfl__$internal_timeline_FrameObjectType.DESTROY.__enum__ = openfl__$internal_timeline_FrameObjectType; openfl__$internal_timeline_FrameObjectType.__empty_constructs__ = [openfl__$internal_timeline_FrameObjectType.CREATE,openfl__$internal_timeline_FrameObjectType.UPDATE,openfl__$internal_timeline_FrameObjectType.DESTROY]; var openfl__$internal_utils_NullUtils = function() { }; $hxClasses["openfl._internal.utils.NullUtils"] = openfl__$internal_utils_NullUtils; openfl__$internal_utils_NullUtils.__name__ = ["openfl","_internal","utils","NullUtils"]; var openfl__$internal_utils_PerlinNoise = function(seed,octaves,falloff) { if(seed == null) { seed = 123; } if(falloff == null) { falloff = .5; } this.octaves = octaves == null ? 4 : octaves; this.baseFactor = 0.015625; this.seedOffset(seed); this.octFreqPers(falloff); }; $hxClasses["openfl._internal.utils.PerlinNoise"] = openfl__$internal_utils_PerlinNoise; openfl__$internal_utils_PerlinNoise.__name__ = ["openfl","_internal","utils","PerlinNoise"]; openfl__$internal_utils_PerlinNoise.prototype = { octaves: null ,aOctFreq: null ,aOctPers: null ,fPersMax: null ,iXoffset: null ,iYoffset: null ,iZoffset: null ,baseFactor: null ,fill: function(bitmap,_x,_y,_z,_) { var baseX = _x * this.baseFactor + this.iXoffset; _y = _y * this.baseFactor + this.iYoffset; _z = _z * this.baseFactor + this.iZoffset; var width = bitmap.width; var height = bitmap.height; var p = openfl__$internal_utils_PerlinNoise.P; var octaves = this.octaves; var aOctFreq = this.aOctFreq; var aOctPers = this.aOctPers; var _g1 = 0; var _g = height; while(_g1 < _g) { var py = _g1++; _x = baseX; var _g3 = 0; var _g2 = width; while(_g3 < _g2) { var px = _g3++; var s = 0.; var _g5 = 0; var _g4 = octaves; while(_g5 < _g4) { var i = _g5++; var fFreq = aOctFreq[i]; var fPers = aOctPers[i]; var x = _x * fFreq; var y = _y * fFreq; var z = _z * fFreq; var xf = x - x % 1; var yf = y - y % 1; var zf = z - z % 1; var X = (xf | 0) & 255; var Y = (yf | 0) & 255; var Z = (zf | 0) & 255; x -= xf; y -= yf; z -= zf; var u = x * x * x * (x * (x * 6 - 15) + 10); var v = y * y * y * (y * (y * 6 - 15) + 10); var w = z * z * z * (z * (z * 6 - 15) + 10); var A = p[X] + Y; var AA = p[A] + Z; var AB = p[A + 1] + Z; var B = p[X + 1] + Y; var BA = p[B] + Z; var BB = p[B + 1] + Z; var x1 = x - 1; var y1 = y - 1; var z1 = z - 1; var hash = p[BB + 1] & 15; var g1 = ((hash & 1) == 0 ? hash < 8 ? x1 : y1 : hash < 8 ? -x1 : -y1) + ((hash & 2) == 0 ? hash < 4 ? y1 : hash == 12 ? x1 : z1 : hash < 4 ? -y1 : hash == 14 ? -x1 : -z1); hash = p[AB + 1] & 15; var g2 = ((hash & 1) == 0 ? hash < 8 ? x : y1 : hash < 8 ? -x : -y1) + ((hash & 2) == 0 ? hash < 4 ? y1 : hash == 12 ? x : z1 : hash < 4 ? -y1 : hash == 14 ? -x : -z1); hash = p[BA + 1] & 15; var g3 = ((hash & 1) == 0 ? hash < 8 ? x1 : y : hash < 8 ? -x1 : -y) + ((hash & 2) == 0 ? hash < 4 ? y : hash == 12 ? x1 : z1 : hash < 4 ? -y : hash == 14 ? -x1 : -z1); hash = p[AA + 1] & 15; var g4 = ((hash & 1) == 0 ? hash < 8 ? x : y : hash < 8 ? -x : -y) + ((hash & 2) == 0 ? hash < 4 ? y : hash == 12 ? x : z1 : hash < 4 ? -y : hash == 14 ? -x : -z1); hash = p[BB] & 15; var g5 = ((hash & 1) == 0 ? hash < 8 ? x1 : y1 : hash < 8 ? -x1 : -y1) + ((hash & 2) == 0 ? hash < 4 ? y1 : hash == 12 ? x1 : z : hash < 4 ? -y1 : hash == 14 ? -x1 : -z); hash = p[AB] & 15; var g6 = ((hash & 1) == 0 ? hash < 8 ? x : y1 : hash < 8 ? -x : -y1) + ((hash & 2) == 0 ? hash < 4 ? y1 : hash == 12 ? x : z : hash < 4 ? -y1 : hash == 14 ? -x : -z); hash = p[BA] & 15; var g7 = ((hash & 1) == 0 ? hash < 8 ? x1 : y : hash < 8 ? -x1 : -y) + ((hash & 2) == 0 ? hash < 4 ? y : hash == 12 ? x1 : z : hash < 4 ? -y : hash == 14 ? -x1 : -z); hash = p[AA] & 15; var g8 = ((hash & 1) == 0 ? hash < 8 ? x : y : hash < 8 ? -x : -y) + ((hash & 2) == 0 ? hash < 4 ? y : hash == 12 ? x : z : hash < 4 ? -y : hash == 14 ? -x : -z); g2 += u * (g1 - g2); g4 += u * (g3 - g4); g6 += u * (g5 - g6); g8 += u * (g7 - g8); g4 += v * (g2 - g4); g8 += v * (g6 - g8); s += (g8 + w * (g4 - g8)) * fPers; } var color = (s * this.fPersMax + 1) * 128 | 0; bitmap.setPixel32(px,py,-16777216 | color << 16 | color << 8 | color); _x += this.baseFactor; } _y += this.baseFactor; } } ,octFreqPers: function(fPersistence) { var fFreq; var fPers; this.aOctFreq = []; this.aOctPers = []; this.fPersMax = 0; var _g1 = 0; var _g = this.octaves; while(_g1 < _g) { var i = _g1++; fFreq = Math.pow(2,i); fPers = Math.pow(fPersistence,i); this.fPersMax += fPers; this.aOctFreq.push(fFreq); this.aOctPers.push(fPers); } this.fPersMax = 1 / this.fPersMax; } ,seedOffset: function(iSeed) { iSeed = iSeed * 16807. % 2147483647 | 0; this.iXoffset = iSeed; iSeed = iSeed * 16807. % 2147483647 | 0; this.iYoffset = iSeed; iSeed = iSeed * 16807. % 2147483647 | 0; this.iZoffset = iSeed; } ,__class__: openfl__$internal_utils_PerlinNoise }; var openfl_display_Application = function() { lime_app_Application.call(this); if(openfl_Lib.application == null) { openfl_Lib.application = this; } }; $hxClasses["openfl.display.Application"] = openfl_display_Application; openfl_display_Application.__name__ = ["openfl","display","Application"]; openfl_display_Application.__super__ = lime_app_Application; openfl_display_Application.prototype = $extend(lime_app_Application.prototype,{ create: function(config) { this.config = config; this.backend.create(config); openfl_Lib.current.__loaderInfo = openfl_display_LoaderInfo.create(null); openfl_Lib.current.__loaderInfo.content = openfl_Lib.current; if(config != null) { if(Object.prototype.hasOwnProperty.call(config,"fps")) { this.backend.setFrameRate(config.fps); } if(Object.prototype.hasOwnProperty.call(config,"windows")) { var _g = 0; var _g1 = config.windows; while(_g < _g1.length) { var windowConfig = _g1[_g]; ++_g; var $window = new openfl_display_Window(windowConfig); this.createWindow($window); break; } } if(this.__preloader == null || this.__preloader.complete) { this.onPreloadComplete(); } } } ,__class__: openfl_display_Application }); var openfl_display_Bitmap = function(bitmapData,pixelSnapping,smoothing) { if(smoothing == null) { smoothing = false; } openfl_display_DisplayObject.call(this); this.set_bitmapData(bitmapData); this.pixelSnapping = pixelSnapping; this.smoothing = smoothing; if(pixelSnapping == null) { this.pixelSnapping = 1; } }; $hxClasses["openfl.display.Bitmap"] = openfl_display_Bitmap; openfl_display_Bitmap.__name__ = ["openfl","display","Bitmap"]; openfl_display_Bitmap.__interfaces__ = [openfl_display_IShaderDrawable]; openfl_display_Bitmap.__super__ = openfl_display_DisplayObject; openfl_display_Bitmap.prototype = $extend(openfl_display_DisplayObject.prototype,{ bitmapData: null ,pixelSnapping: null ,shader: null ,smoothing: null ,__image: null ,__imageVersion: null ,__enterFrame: function(deltaTime) { if(this.bitmapData != null && this.bitmapData.image != null) { var image = this.bitmapData.image; if(this.bitmapData.image.version != this.__imageVersion) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.__imageVersion = image.version; } } } ,__getBounds: function(rect,matrix) { if(this.bitmapData != null) { var bounds = openfl_geom_Rectangle.__pool.get(); bounds.setTo(0,0,this.bitmapData.width,this.bitmapData.height); bounds.__transform(bounds,matrix); rect.__expand(bounds.x,bounds.y,bounds.width,bounds.height); openfl_geom_Rectangle.__pool.release(bounds); } } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { if(!hitObject.get_visible() || this.__isMask || this.bitmapData == null) { return false; } if(this.get_mask() != null && !this.get_mask().__hitTestMask(x,y)) { return false; } this.__getRenderTransform(); var _this = this.__renderTransform; var norm = _this.a * _this.d - _this.b * _this.c; var px = norm == 0 ? -_this.tx : 1.0 / norm * (_this.c * (_this.ty - y) + _this.d * (x - _this.tx)); var _this1 = this.__renderTransform; var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; var py = norm1 == 0 ? -_this1.ty : 1.0 / norm1 * (_this1.a * (y - _this1.ty) + _this1.b * (_this1.tx - x)); if(px > 0 && py > 0 && px <= this.bitmapData.width && py <= this.bitmapData.height) { if(this.__scrollRect != null && !this.__scrollRect.contains(px,py)) { return false; } if(stack != null && !interactiveOnly) { stack.push(hitObject); } return true; } return false; } ,__hitTestMask: function(x,y) { if(this.bitmapData == null) { return false; } this.__getRenderTransform(); var _this = this.__renderTransform; var norm = _this.a * _this.d - _this.b * _this.c; var px = norm == 0 ? -_this.tx : 1.0 / norm * (_this.c * (_this.ty - y) + _this.d * (x - _this.tx)); var _this1 = this.__renderTransform; var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; var py = norm1 == 0 ? -_this1.ty : 1.0 / norm1 * (_this1.a * (y - _this1.ty) + _this1.b * (_this1.tx - x)); if(px > 0 && py > 0 && px <= this.bitmapData.width && py <= this.bitmapData.height) { return true; } return false; } ,__renderCairo: function(renderSession) { } ,__renderCairoMask: function(renderSession) { renderSession.cairo.rectangle(0,0,this.get_width(),this.get_height()); } ,__renderCanvas: function(renderSession) { this.__updateCacheBitmap(renderSession,!this.__worldColorTransform.__isDefault()); if(this.__cacheBitmap != null && !this.__cacheBitmapRender) { var bitmap = this.__cacheBitmap; if(!(!bitmap.__renderable || bitmap.__worldAlpha <= 0)) { var context = renderSession.context; if(bitmap.bitmapData != null && bitmap.bitmapData.__isValid && bitmap.bitmapData.readable) { renderSession.blendModeManager.setBlendMode(bitmap.__worldBlendMode); renderSession.maskManager.pushObject(bitmap,false); lime_graphics_utils_ImageCanvasUtil.convertToCanvas(bitmap.bitmapData.image); context.globalAlpha = bitmap.__worldAlpha; var transform = bitmap.__renderTransform; var scrollRect = bitmap.__scrollRect; if(renderSession.roundPixels) { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx | 0,transform.ty | 0); } else { context.setTransform(transform.a,transform.b,transform.c,transform.d,transform.tx,transform.ty); } if(!renderSession.allowSmoothing || !bitmap.smoothing) { context.mozImageSmoothingEnabled = false; context.msImageSmoothingEnabled = false; context.imageSmoothingEnabled = false; } if(scrollRect == null) { context.drawImage(bitmap.bitmapData.image.get_src(),0,0); } else { context.drawImage(bitmap.bitmapData.image.get_src(),scrollRect.x,scrollRect.y,scrollRect.width,scrollRect.height,scrollRect.x,scrollRect.y,scrollRect.width,scrollRect.height); } if(!renderSession.allowSmoothing || !bitmap.smoothing) { context.mozImageSmoothingEnabled = true; context.msImageSmoothingEnabled = true; context.imageSmoothingEnabled = true; } renderSession.maskManager.popObject(bitmap,false); } } } else if(!(!this.__renderable || this.__worldAlpha <= 0)) { var context1 = renderSession.context; if(this.bitmapData != null && this.bitmapData.__isValid && this.bitmapData.readable) { renderSession.blendModeManager.setBlendMode(this.__worldBlendMode); renderSession.maskManager.pushObject(this,false); lime_graphics_utils_ImageCanvasUtil.convertToCanvas(this.bitmapData.image); context1.globalAlpha = this.__worldAlpha; var transform1 = this.__renderTransform; var scrollRect1 = this.__scrollRect; if(renderSession.roundPixels) { context1.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx | 0,transform1.ty | 0); } else { context1.setTransform(transform1.a,transform1.b,transform1.c,transform1.d,transform1.tx,transform1.ty); } if(!renderSession.allowSmoothing || !this.smoothing) { context1.mozImageSmoothingEnabled = false; context1.msImageSmoothingEnabled = false; context1.imageSmoothingEnabled = false; } if(scrollRect1 == null) { context1.drawImage(this.bitmapData.image.get_src(),0,0); } else { context1.drawImage(this.bitmapData.image.get_src(),scrollRect1.x,scrollRect1.y,scrollRect1.width,scrollRect1.height,scrollRect1.x,scrollRect1.y,scrollRect1.width,scrollRect1.height); } if(!renderSession.allowSmoothing || !this.smoothing) { context1.mozImageSmoothingEnabled = true; context1.msImageSmoothingEnabled = true; context1.imageSmoothingEnabled = true; } renderSession.maskManager.popObject(this,false); } } } ,__renderCanvasMask: function(renderSession) { renderSession.context.rect(0,0,this.get_width(),this.get_height()); } ,__renderDOM: function(renderSession) { } ,__renderDOMClear: function(renderSession) { } ,__renderGL: function(renderSession) { this.__updateCacheBitmap(renderSession,false); if(this.__cacheBitmap != null && !this.__cacheBitmapRender) { openfl__$internal_renderer_opengl_GLBitmap.render(this.__cacheBitmap,renderSession); } else { openfl__$internal_renderer_opengl_GLBitmap.render(this,renderSession); } } ,__updateCacheBitmap: function(renderSession,force) { if(this.get_filters() == null) { return; } openfl_display_DisplayObject.prototype.__updateCacheBitmap.call(this,renderSession,force); } ,__updateMask: function(maskGraphics) { if(this.bitmapData == null) { return; } maskGraphics.__commands.overrideMatrix(this.__worldTransform); maskGraphics.beginFill(0); maskGraphics.drawRect(0,0,this.bitmapData.width,this.bitmapData.height); if(maskGraphics.__bounds == null) { maskGraphics.__bounds = new openfl_geom_Rectangle(); } this.__getBounds(maskGraphics.__bounds,openfl_geom_Matrix.__identity); openfl_display_DisplayObject.prototype.__updateMask.call(this,maskGraphics); } ,set_bitmapData: function(value) { this.bitmapData = value; this.smoothing = false; if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } var tmp = this.__filters != null && this.__filters.length > 0; this.__imageVersion = -1; return this.bitmapData; } ,get_height: function() { if(this.bitmapData != null) { return this.bitmapData.height * Math.abs(this.get_scaleY()); } return 0; } ,set_height: function(value) { if(this.bitmapData != null) { if(value != this.bitmapData.height) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.set_scaleY(value / this.bitmapData.height); } return value; } return 0; } ,get_width: function() { if(this.bitmapData != null) { return this.bitmapData.width * Math.abs(this.__scaleX); } return 0; } ,set_width: function(value) { if(this.bitmapData != null) { if(value != this.bitmapData.width) { if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } this.set_scaleX(value / this.bitmapData.width); } return value; } return 0; } ,__class__: openfl_display_Bitmap ,__properties__: $extend(openfl_display_DisplayObject.prototype.__properties__,{set_bitmapData:"set_bitmapData"}) }); var openfl_display__$BlendMode_BlendMode_$Impl_$ = {}; $hxClasses["openfl.display._BlendMode.BlendMode_Impl_"] = openfl_display__$BlendMode_BlendMode_$Impl_$; openfl_display__$BlendMode_BlendMode_$Impl_$.__name__ = ["openfl","display","_BlendMode","BlendMode_Impl_"]; openfl_display__$BlendMode_BlendMode_$Impl_$.fromString = function(value) { switch(value) { case "add": return 0; case "alpha": return 1; case "darken": return 2; case "difference": return 3; case "erase": return 4; case "hardlight": return 5; case "invert": return 6; case "layer": return 7; case "lighten": return 8; case "multiply": return 9; case "normal": return 10; case "overlay": return 11; case "screen": return 12; case "shader": return 13; case "subtract": return 14; default: return null; } }; openfl_display__$BlendMode_BlendMode_$Impl_$.toString = function(value) { switch(value) { case 0: return "add"; case 1: return "alpha"; case 2: return "darken"; case 3: return "difference"; case 4: return "erase"; case 5: return "hardlight"; case 6: return "invert"; case 7: return "layer"; case 8: return "lighten"; case 9: return "multiply"; case 10: return "normal"; case 11: return "overlay"; case 12: return "screen"; case 13: return "shader"; case 14: return "subtract"; default: return null; } }; var openfl_display__$CapsStyle_CapsStyle_$Impl_$ = {}; $hxClasses["openfl.display._CapsStyle.CapsStyle_Impl_"] = openfl_display__$CapsStyle_CapsStyle_$Impl_$; openfl_display__$CapsStyle_CapsStyle_$Impl_$.__name__ = ["openfl","display","_CapsStyle","CapsStyle_Impl_"]; openfl_display__$CapsStyle_CapsStyle_$Impl_$.fromString = function(value) { switch(value) { case "none": return 0; case "round": return 1; case "square": return 2; default: return null; } }; openfl_display__$CapsStyle_CapsStyle_$Impl_$.toString = function(value) { switch(value) { case 0: return "none"; case 1: return "round"; case 2: return "square"; default: return null; } }; var openfl_display_FrameLabel = function(name,frame) { openfl_events_EventDispatcher.call(this); this.__name = name; this.__frame = frame; }; $hxClasses["openfl.display.FrameLabel"] = openfl_display_FrameLabel; openfl_display_FrameLabel.__name__ = ["openfl","display","FrameLabel"]; openfl_display_FrameLabel.__super__ = openfl_events_EventDispatcher; openfl_display_FrameLabel.prototype = $extend(openfl_events_EventDispatcher.prototype,{ __frame: null ,__name: null ,get_frame: function() { return this.__frame; } ,get_name: function() { return this.__name; } ,__class__: openfl_display_FrameLabel ,__properties__: {get_name:"get_name",get_frame:"get_frame"} }); var openfl_display__$GradientType_GradientType_$Impl_$ = {}; $hxClasses["openfl.display._GradientType.GradientType_Impl_"] = openfl_display__$GradientType_GradientType_$Impl_$; openfl_display__$GradientType_GradientType_$Impl_$.__name__ = ["openfl","display","_GradientType","GradientType_Impl_"]; openfl_display__$GradientType_GradientType_$Impl_$.fromString = function(value) { switch(value) { case "linear": return 0; case "radial": return 1; default: return null; } }; openfl_display__$GradientType_GradientType_$Impl_$.toString = function(value) { switch(value) { case 0: return "linear"; case 1: return "radial"; default: return null; } }; var openfl_display_Graphics = function(owner) { this.__dirty = true; this.__owner = owner; this.__commands = new openfl__$internal_renderer_DrawCommandBuffer(); this.__strokePadding = 0; this.__positionX = 0; this.__positionY = 0; this.__renderTransform = new openfl_geom_Matrix(); this.__worldTransform = new openfl_geom_Matrix(); this.__width = 0; this.__height = 0; this.moveTo(0,0); }; $hxClasses["openfl.display.Graphics"] = openfl_display_Graphics; openfl_display_Graphics.__name__ = ["openfl","display","Graphics"]; openfl_display_Graphics.prototype = { __bounds: null ,__commands: null ,__dirty: null ,__height: null ,__managed: null ,__positionX: null ,__positionY: null ,__renderTransform: null ,__strokePadding: null ,__transformDirty: null ,__visible: null ,__owner: null ,__width: null ,__worldTransform: null ,__canvas: null ,__context: null ,__bitmap: null ,beginBitmapFill: function(bitmap,matrix,repeat,smooth) { if(smooth == null) { smooth = false; } if(repeat == null) { repeat = true; } this.__commands.beginBitmapFill(bitmap,matrix != null ? matrix.clone() : null,repeat,smooth); this.__visible = true; } ,beginFill: function(color,alpha) { if(alpha == null) { alpha = 1; } if(color == null) { color = 0; } this.__commands.beginFill(color & 16777215,alpha); if(alpha > 0) { this.__visible = true; } } ,beginGradientFill: function(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { if(focalPointRatio == null) { focalPointRatio = 0; } if(interpolationMethod == null) { interpolationMethod = 1; } if(spreadMethod == null) { spreadMethod = 0; } this.__commands.beginGradientFill(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio); var _g = 0; while(_g < alphas.length) { var alpha = alphas[_g]; ++_g; if(alpha > 0) { this.__visible = true; break; } } } ,clear: function() { this.__commands.clear(); this.__strokePadding = 0; if(this.__bounds != null) { this.set___dirty(true); this.__transformDirty = true; this.__bounds = null; } this.__visible = false; this.moveTo(0,0); } ,copyFrom: function(sourceGraphics) { this.__bounds = sourceGraphics.__bounds != null ? sourceGraphics.__bounds.clone() : null; this.__commands = sourceGraphics.__commands.copy(); this.set___dirty(true); this.__strokePadding = sourceGraphics.__strokePadding; this.__positionX = sourceGraphics.__positionX; this.__positionY = sourceGraphics.__positionY; this.__transformDirty = true; this.__visible = sourceGraphics.__visible; } ,cubicCurveTo: function(controlX1,controlY1,controlX2,controlY2,anchorX,anchorY) { this.__inflateBounds(this.__positionX - this.__strokePadding,this.__positionY - this.__strokePadding); this.__inflateBounds(this.__positionX + this.__strokePadding,this.__positionY + this.__strokePadding); var ix1; var iy1; var ix2; var iy2; ix1 = anchorX; ix2 = anchorX; if(!((controlX1 < anchorX && controlX1 > this.__positionX || controlX1 > anchorX && controlX1 < this.__positionX) && (controlX2 < anchorX && controlX2 > this.__positionX || controlX2 > anchorX && controlX2 < this.__positionX))) { var u = 2 * this.__positionX - 4 * controlX1 + 2 * controlX2; var v = controlX1 - this.__positionX; var w = -this.__positionX + 3 * controlX1 + anchorX - 3 * controlX2; var t1 = (-u + Math.sqrt(u * u - 4 * v * w)) / (2 * w); var t2 = (-u - Math.sqrt(u * u - 4 * v * w)) / (2 * w); if(t1 > 0 && t1 < 1) { ix1 = this.__calculateBezierCubicPoint(t1,this.__positionX,controlX1,controlX2,anchorX); } if(t2 > 0 && t2 < 1) { ix2 = this.__calculateBezierCubicPoint(t2,this.__positionX,controlX1,controlX2,anchorX); } } iy1 = anchorY; iy2 = anchorY; if(!((controlY1 < anchorY && controlY1 > this.__positionX || controlY1 > anchorY && controlY1 < this.__positionX) && (controlY2 < anchorY && controlY2 > this.__positionX || controlY2 > anchorY && controlY2 < this.__positionX))) { var u1 = 2 * this.__positionX - 4 * controlY1 + 2 * controlY2; var v1 = controlY1 - this.__positionX; var w1 = -this.__positionX + 3 * controlY1 + anchorY - 3 * controlY2; var t11 = (-u1 + Math.sqrt(u1 * u1 - 4 * v1 * w1)) / (2 * w1); var t21 = (-u1 - Math.sqrt(u1 * u1 - 4 * v1 * w1)) / (2 * w1); if(t11 > 0 && t11 < 1) { iy1 = this.__calculateBezierCubicPoint(t11,this.__positionX,controlY1,controlY2,anchorY); } if(t21 > 0 && t21 < 1) { iy2 = this.__calculateBezierCubicPoint(t21,this.__positionX,controlY1,controlY2,anchorY); } } this.__inflateBounds(ix1 - this.__strokePadding,iy1 - this.__strokePadding); this.__inflateBounds(ix1 + this.__strokePadding,iy1 + this.__strokePadding); this.__inflateBounds(ix2 - this.__strokePadding,iy2 - this.__strokePadding); this.__inflateBounds(ix2 + this.__strokePadding,iy2 + this.__strokePadding); this.__positionX = anchorX; this.__positionY = anchorY; this.__inflateBounds(this.__positionX - this.__strokePadding,this.__positionY - this.__strokePadding); this.__inflateBounds(this.__positionX + this.__strokePadding,this.__positionY + this.__strokePadding); this.__commands.cubicCurveTo(controlX1,controlY1,controlX2,controlY2,anchorX,anchorY); this.set___dirty(true); } ,curveTo: function(controlX,controlY,anchorX,anchorY) { this.__inflateBounds(this.__positionX - this.__strokePadding,this.__positionY - this.__strokePadding); this.__inflateBounds(this.__positionX + this.__strokePadding,this.__positionY + this.__strokePadding); var ix; var iy; if(controlX < anchorX && controlX > this.__positionX || controlX > anchorX && controlX < this.__positionX) { ix = anchorX; } else { var tx = (this.__positionX - controlX) / (this.__positionX - 2 * controlX + anchorX); ix = this.__calculateBezierQuadPoint(tx,this.__positionX,controlX,anchorX); } if(controlY < anchorY && controlY > this.__positionY || controlY > anchorY && controlY < this.__positionY) { iy = anchorY; } else { var ty = (this.__positionY - controlY) / (this.__positionY - 2 * controlY + anchorY); iy = this.__calculateBezierQuadPoint(ty,this.__positionY,controlY,anchorY); } this.__inflateBounds(ix - this.__strokePadding,iy - this.__strokePadding); this.__inflateBounds(ix + this.__strokePadding,iy + this.__strokePadding); this.__positionX = anchorX; this.__positionY = anchorY; this.__commands.curveTo(controlX,controlY,anchorX,anchorY); this.set___dirty(true); } ,drawCircle: function(x,y,radius) { if(radius <= 0) { return; } this.__inflateBounds(x - radius - this.__strokePadding,y - radius - this.__strokePadding); this.__inflateBounds(x + radius + this.__strokePadding,y + radius + this.__strokePadding); this.__commands.drawCircle(x,y,radius); this.set___dirty(true); } ,drawEllipse: function(x,y,width,height) { if(width <= 0 || height <= 0) { return; } this.__inflateBounds(x - this.__strokePadding,y - this.__strokePadding); this.__inflateBounds(x + width + this.__strokePadding,y + height + this.__strokePadding); this.__commands.drawEllipse(x,y,width,height); this.set___dirty(true); } ,drawGraphicsData: function(graphicsData) { var fill; var bitmapFill; var gradientFill; var stroke; var path; var trianglePath; var _g = 0; while(_g < graphicsData.data.get_length()) { var graphics = graphicsData.data.get(_g); ++_g; var _g1 = graphics.__graphicsDataType; switch(_g1) { case openfl_display_GraphicsDataType.STROKE: stroke = graphics; if(stroke.fill != null) { var thickness = stroke.thickness; if(isNaN(thickness)) { thickness = null; } var _g11 = stroke.fill.__graphicsFillType; switch(_g11) { case openfl_display_GraphicsFillType.SOLID_FILL: fill = stroke.fill; this.lineStyle(thickness,fill.color,fill.alpha,stroke.pixelHinting,stroke.scaleMode,stroke.caps,stroke.joints,stroke.miterLimit); break; case openfl_display_GraphicsFillType.GRADIENT_FILL: gradientFill = stroke.fill; this.lineStyle(thickness,0,1,stroke.pixelHinting,stroke.scaleMode,stroke.caps,stroke.joints,stroke.miterLimit); this.lineGradientStyle(gradientFill.type,gradientFill.colors,gradientFill.alphas,gradientFill.ratios,gradientFill.matrix,gradientFill.spreadMethod,gradientFill.interpolationMethod,gradientFill.focalPointRatio); break; case openfl_display_GraphicsFillType.BITMAP_FILL: bitmapFill = stroke.fill; this.lineStyle(thickness,0,1,stroke.pixelHinting,stroke.scaleMode,stroke.caps,stroke.joints,stroke.miterLimit); this.lineBitmapStyle(bitmapFill.bitmapData,bitmapFill.matrix,bitmapFill.repeat,bitmapFill.smooth); break; default: } } else { this.lineStyle(); } break; case openfl_display_GraphicsDataType.SOLID: fill = graphics; this.beginFill(fill.color,fill.alpha); break; case openfl_display_GraphicsDataType.GRADIENT: gradientFill = graphics; this.beginGradientFill(gradientFill.type,gradientFill.colors,gradientFill.alphas,gradientFill.ratios,gradientFill.matrix,gradientFill.spreadMethod,gradientFill.interpolationMethod,gradientFill.focalPointRatio); break; case openfl_display_GraphicsDataType.PATH: path = graphics; this.drawPath(path.commands,path.data,path.winding); break; case openfl_display_GraphicsDataType.BITMAP: bitmapFill = graphics; this.beginBitmapFill(bitmapFill.bitmapData,bitmapFill.matrix,bitmapFill.repeat,bitmapFill.smooth); break; case openfl_display_GraphicsDataType.END: this.endFill(); break; case openfl_display_GraphicsDataType.TRIANGLE_PATH: trianglePath = graphics; this.drawTriangles(trianglePath.vertices,trianglePath.indices,trianglePath.uvtData,trianglePath.culling); break; } } } ,drawPath: function(commands,data,winding) { if(winding == null) { winding = 0; } var dataIndex = 0; if(winding == 1) { this.__commands.windingNonZero(); } var _g = 0; try { while(_g < commands.data.get_length()) { var command = commands.data.get(_g); ++_g; switch(command) { case 1: this.moveTo(data.data.get(dataIndex),data.data.get(dataIndex + 1)); dataIndex += 2; break; case 2: this.lineTo(data.data.get(dataIndex),data.data.get(dataIndex + 1)); dataIndex += 2; break; case 3: this.curveTo(data.data.get(dataIndex),data.data.get(dataIndex + 1),data.data.get(dataIndex + 2),data.data.get(dataIndex + 3)); dataIndex += 4; break; case 4: this.moveTo(data.data.get(dataIndex + 2),data.data.get(dataIndex + 3)); throw "__break__"; break; case 5: this.lineTo(data.data.get(dataIndex + 2),data.data.get(dataIndex + 3)); throw "__break__"; break; case 6: this.cubicCurveTo(data.data.get(dataIndex),data.data.get(dataIndex + 1),data.data.get(dataIndex + 2),data.data.get(dataIndex + 3),data.data.get(dataIndex + 4),data.data.get(dataIndex + 5)); dataIndex += 6; break; default: } } } catch( e ) { if( e != "__break__" ) throw e; } } ,drawRect: function(x,y,width,height) { if(width <= 0 || height <= 0) { return; } this.__inflateBounds(x - this.__strokePadding,y - this.__strokePadding); this.__inflateBounds(x + width + this.__strokePadding,y + height + this.__strokePadding); this.__commands.drawRect(x,y,width,height); this.set___dirty(true); } ,drawRoundRect: function(x,y,width,height,ellipseWidth,ellipseHeight) { if(width <= 0 || height <= 0) { return; } this.__inflateBounds(x - this.__strokePadding,y - this.__strokePadding); this.__inflateBounds(x + width + this.__strokePadding,y + height + this.__strokePadding); this.__commands.drawRoundRect(x,y,width,height,ellipseWidth,ellipseHeight); this.set___dirty(true); } ,drawRoundRectComplex: function(x,y,width,height,topLeftRadius,topRightRadius,bottomLeftRadius,bottomRightRadius) { if(width <= 0 || height <= 0) { return; } this.__inflateBounds(x - this.__strokePadding,y - this.__strokePadding); this.__inflateBounds(x + width + this.__strokePadding,y + height + this.__strokePadding); var xw = x + width; var yh = y + height; var minSize = width < height ? width * 2 : height * 2; if(topLeftRadius < minSize) { topLeftRadius = topLeftRadius; } else { topLeftRadius = minSize; } if(topRightRadius < minSize) { topRightRadius = topRightRadius; } else { topRightRadius = minSize; } if(bottomLeftRadius < minSize) { bottomLeftRadius = bottomLeftRadius; } else { bottomLeftRadius = minSize; } if(bottomRightRadius < minSize) { bottomRightRadius = bottomRightRadius; } else { bottomRightRadius = minSize; } var anchor = 1 - Math.sin(45 * (Math.PI / 180)); var control = 1 - Math.tan(22.5 * (Math.PI / 180)); var a = bottomRightRadius * anchor; var s = bottomRightRadius * control; this.moveTo(xw,yh - bottomRightRadius); this.curveTo(xw,yh - s,xw - a,yh - a); this.curveTo(xw - s,yh,xw - bottomRightRadius,yh); a = bottomLeftRadius * anchor; s = bottomLeftRadius * control; this.lineTo(x + bottomLeftRadius,yh); this.curveTo(x + s,yh,x + a,yh - a); this.curveTo(x,yh - s,x,yh - bottomLeftRadius); a = topLeftRadius * anchor; s = topLeftRadius * control; this.lineTo(x,y + topLeftRadius); this.curveTo(x,y + s,x + a,y + a); this.curveTo(x + s,y,x + topLeftRadius,y); a = topRightRadius * anchor; s = topRightRadius * control; this.lineTo(xw - topRightRadius,y); this.curveTo(xw - s,y,xw - a,y + a); this.curveTo(xw,y + s,xw,y + topRightRadius); this.lineTo(xw,yh - bottomRightRadius); this.set___dirty(true); } ,drawTriangles: function(vertices,indices,uvtData,culling) { if(culling == null) { culling = 1; } if(vertices == null) { return; } var vlen = vertices.data.get_length() / 2 | 0; if(culling == null) { culling = 1; } if(indices == null) { if(vlen % 3 != 0) { throw new js__$Boot_HaxeError(new openfl_errors_ArgumentError("Not enough vertices to close a triangle.")); } indices = openfl__$Vector_Vector_$Impl_$.toIntVector(null); var _g1 = 0; var _g = vlen; while(_g1 < _g) { var i = _g1++; indices.data.push(i); } } this.__inflateBounds(0,0); var tmpx = -Infinity; var tmpy = -Infinity; var maxX = -Infinity; var maxY = -Infinity; var _g11 = 0; var _g2 = vlen; while(_g11 < _g2) { var i1 = _g11++; tmpx = vertices.data.get(i1 * 2); tmpy = vertices.data.get(i1 * 2 + 1); if(maxX < tmpx) { maxX = tmpx; } if(maxY < tmpy) { maxY = tmpy; } } this.__inflateBounds(maxX,maxY); this.__commands.drawTriangles(vertices,indices,uvtData,culling); this.set___dirty(true); this.__visible = true; } ,endFill: function() { this.__commands.endFill(); } ,lineBitmapStyle: function(bitmap,matrix,repeat,smooth) { if(smooth == null) { smooth = false; } if(repeat == null) { repeat = true; } this.__commands.lineBitmapStyle(bitmap,matrix != null ? matrix.clone() : null,repeat,smooth); } ,lineGradientStyle: function(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { if(focalPointRatio == null) { focalPointRatio = 0; } if(interpolationMethod == null) { interpolationMethod = 1; } if(spreadMethod == null) { spreadMethod = 0; } this.__commands.lineGradientStyle(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio); } ,lineStyle: function(thickness,color,alpha,pixelHinting,scaleMode,caps,joints,miterLimit) { if(miterLimit == null) { miterLimit = 3; } if(scaleMode == null) { scaleMode = 2; } if(pixelHinting == null) { pixelHinting = false; } if(alpha == null) { alpha = 1; } if(color == null) { color = 0; } if(thickness != null) { if(joints == 1) { if(thickness > this.__strokePadding) { this.__strokePadding = thickness; } } else if(thickness / 2 > this.__strokePadding) { this.__strokePadding = thickness / 2; } } this.__commands.lineStyle(thickness,color,alpha,pixelHinting,scaleMode,caps,joints,miterLimit); if(thickness != null) { this.__visible = true; } } ,lineTo: function(x,y) { if(!isFinite(x) || !isFinite(y)) { return; } this.__inflateBounds(this.__positionX - this.__strokePadding,this.__positionY - this.__strokePadding); this.__inflateBounds(this.__positionX + this.__strokePadding,this.__positionY + this.__strokePadding); this.__positionX = x; this.__positionY = y; this.__inflateBounds(this.__positionX - this.__strokePadding,this.__positionY - this.__strokePadding); this.__inflateBounds(this.__positionX + this.__strokePadding * 2,this.__positionY + this.__strokePadding); this.__commands.lineTo(x,y); this.set___dirty(true); } ,moveTo: function(x,y) { this.__positionX = x; this.__positionY = y; this.__commands.moveTo(x,y); } ,readGraphicsData: function(recurse) { if(recurse == null) { recurse = true; } var graphicsData = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); this.__owner.__readGraphicsData(graphicsData,recurse); return graphicsData; } ,__calculateBezierCubicPoint: function(t,p1,p2,p3,p4) { var iT = 1 - t; return p1 * (iT * iT * iT) + 3 * p2 * t * (iT * iT) + 3 * p3 * iT * (t * t) + p4 * (t * t * t); } ,__calculateBezierQuadPoint: function(t,p1,p2,p3) { var iT = 1 - t; return iT * iT * p1 + 2 * iT * t * p2 + t * t * p3; } ,__cleanup: function() { if(this.__bounds != null) { this.set___dirty(true); this.__transformDirty = true; } this.__bitmap = null; this.__canvas = null; this.__context = null; } ,__getBounds: function(rect,matrix) { if(this.__bounds == null) { return; } var bounds = openfl_geom_Rectangle.__pool.get(); this.__bounds.__transform(bounds,matrix); rect.__expand(bounds.x,bounds.y,bounds.width,bounds.height); openfl_geom_Rectangle.__pool.release(bounds); } ,__hitTest: function(x,y,shapeFlag,matrix) { if(this.__bounds == null) { return false; } var norm = matrix.a * matrix.d - matrix.b * matrix.c; var px = norm == 0 ? -matrix.tx : 1.0 / norm * (matrix.c * (matrix.ty - y) + matrix.d * (x - matrix.tx)); var norm1 = matrix.a * matrix.d - matrix.b * matrix.c; var py = norm1 == 0 ? -matrix.ty : 1.0 / norm1 * (matrix.a * (y - matrix.ty) + matrix.b * (matrix.tx - x)); if(px > this.__bounds.x && py > this.__bounds.y && this.__bounds.contains(px,py)) { if(shapeFlag) { return openfl__$internal_renderer_canvas_CanvasGraphics.hitTest(this,px,py); } return true; } return false; } ,__inflateBounds: function(x,y) { if(this.__bounds == null) { this.__bounds = new openfl_geom_Rectangle(x,y,0,0); this.__transformDirty = true; return; } if(x < this.__bounds.x) { this.__bounds.width += this.__bounds.x - x; this.__bounds.x = x; this.__transformDirty = true; } if(y < this.__bounds.y) { this.__bounds.height += this.__bounds.y - y; this.__bounds.y = y; this.__transformDirty = true; } if(x > this.__bounds.x + this.__bounds.width) { this.__bounds.width = x - this.__bounds.x; } if(y > this.__bounds.y + this.__bounds.height) { this.__bounds.height = y - this.__bounds.y; } } ,__readGraphicsData: function(graphicsData) { var data = new openfl__$internal_renderer_DrawCommandReader(this.__commands); var path = null; var stroke; var _g = 0; var _g1 = this.__commands.types; while(_g < _g1.length) { var type = _g1[_g]; ++_g; switch(type[1]) { case 3:case 4:case 5:case 6:case 7:case 8:case 15:case 16: if(path == null) { path = new openfl_display_GraphicsPath(); } break; default: if(path != null) { graphicsData.data.push(path); path = null; } } switch(type[1]) { case 0: var _g2 = data.prev; switch(_g2[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_BITMAP_FILL; var this1 = data; var c = this1; var x = new openfl_display_GraphicsBitmapFill(c.buffer.o[c.oPos],c.buffer.o[c.oPos + 1],c.buffer.b[c.bPos],c.buffer.b[c.bPos + 1]); graphicsData.data.push(x); break; case 1: var _g3 = data.prev; switch(_g3[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_FILL; var this2 = data; var c1 = this2; var x1 = new openfl_display_GraphicsSolidFill(c1.buffer.i[c1.iPos],1); graphicsData.data.push(x1); break; case 2: var _g4 = data.prev; switch(_g4[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.BEGIN_GRADIENT_FILL; var this3 = data; var c2 = this3; var x2 = new openfl_display_GraphicsGradientFill(c2.buffer.o[c2.oPos],c2.buffer.ii[c2.iiPos],c2.buffer.ff[c2.ffPos],c2.buffer.ii[c2.iiPos + 1],c2.buffer.o[c2.oPos + 1],c2.buffer.o[c2.oPos + 2],c2.buffer.o[c2.oPos + 3],c2.buffer.f[c2.fPos]); graphicsData.data.push(x2); break; case 3: var _g5 = data.prev; switch(_g5[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CUBIC_CURVE_TO; var this4 = data; var c3 = this4; path.cubicCurveTo(c3.buffer.f[c3.fPos],c3.buffer.f[c3.fPos + 1],c3.buffer.f[c3.fPos + 2],c3.buffer.f[c3.fPos + 3],c3.buffer.f[c3.fPos + 4],c3.buffer.f[c3.fPos + 5]); break; case 4: var _g6 = data.prev; switch(_g6[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.CURVE_TO; var this5 = data; var c4 = this5; path.curveTo(c4.buffer.f[c4.fPos],c4.buffer.f[c4.fPos + 1],c4.buffer.f[c4.fPos + 2],c4.buffer.f[c4.fPos + 3]); break; case 5: var _g7 = data.prev; switch(_g7[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_CIRCLE; var this6 = data; var c5 = this6; path.__drawCircle(c5.buffer.f[c5.fPos],c5.buffer.f[c5.fPos + 1],c5.buffer.f[c5.fPos + 2]); break; case 6: var _g8 = data.prev; switch(_g8[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ELLIPSE; var this7 = data; var c6 = this7; path.__drawEllipse(c6.buffer.f[c6.fPos],c6.buffer.f[c6.fPos + 1],c6.buffer.f[c6.fPos + 2],c6.buffer.f[c6.fPos + 3]); break; case 7: var _g9 = data.prev; switch(_g9[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_RECT; var this8 = data; var c7 = this8; path.__drawRect(c7.buffer.f[c7.fPos],c7.buffer.f[c7.fPos + 1],c7.buffer.f[c7.fPos + 2],c7.buffer.f[c7.fPos + 3]); break; case 8: var _g10 = data.prev; switch(_g10[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.DRAW_ROUND_RECT; var this9 = data; var c8 = this9; path.__drawRoundRect(c8.buffer.f[c8.fPos],c8.buffer.f[c8.fPos + 1],c8.buffer.f[c8.fPos + 2],c8.buffer.f[c8.fPos + 3],c8.buffer.f[c8.fPos + 4],c8.buffer.o[c8.oPos] != null ? c8.buffer.o[c8.oPos] : c8.buffer.f[c8.fPos + 4]); break; case 11: var _g11 = data.prev; switch(_g11[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.END_FILL; var this10 = data; var x3 = new openfl_display_GraphicsEndFill(); graphicsData.data.push(x3); break; case 12: var _g12 = data.prev; switch(_g12[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_BITMAP_STYLE; var this11 = data; var c9 = this11; path = null; break; case 13: var _g13 = data.prev; switch(_g13[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_GRADIENT_STYLE; var this12 = data; var c10 = this12; break; case 14: var _g14 = data.prev; switch(_g14[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_STYLE; var this13 = data; var c11 = this13; stroke = new openfl_display_GraphicsStroke(c11.buffer.o[c11.oPos],c11.buffer.b[c11.bPos],c11.buffer.o[c11.oPos + 1],c11.buffer.o[c11.oPos + 2],c11.buffer.o[c11.oPos + 3],c11.buffer.f[c11.fPos + 1]); stroke.fill = new openfl_display_GraphicsSolidFill(c11.buffer.i[c11.iPos],c11.buffer.f[c11.fPos]); graphicsData.data.push(stroke); break; case 15: var _g15 = data.prev; switch(_g15[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.LINE_TO; var this14 = data; var c12 = this14; path.lineTo(c12.buffer.f[c12.fPos],c12.buffer.f[c12.fPos + 1]); break; case 16: var _g16 = data.prev; switch(_g16[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = openfl__$internal_renderer_DrawCommandType.MOVE_TO; var this15 = data; var c13 = this15; path.moveTo(c13.buffer.f[c13.fPos],c13.buffer.f[c13.fPos + 1]); break; default: var _g17 = data.prev; switch(_g17[1]) { case 0: data.oPos += 2; data.bPos += 2; break; case 1: data.iPos += 1; data.fPos += 1; break; case 2: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 3: data.fPos += 6; break; case 4: data.fPos += 4; break; case 5: data.fPos += 3; break; case 6: data.fPos += 4; break; case 7: data.fPos += 4; break; case 8: data.fPos += 5; data.oPos += 1; break; case 10: data.oPos += 4; break; case 11: break; case 12: data.oPos += 2; data.bPos += 2; break; case 13: data.oPos += 4; data.iiPos += 2; data.ffPos += 1; data.fPos += 1; break; case 14: data.oPos += 4; data.iPos += 1; data.fPos += 2; data.bPos += 1; break; case 15: data.fPos += 2; break; case 16: data.fPos += 2; break; case 17: data.oPos += 1; break; case 18:case 19: break; default: } data.prev = type; } } if(path != null) { graphicsData.data.push(path); } } ,__update: function() { if(this.__bounds == null || this.__bounds.width <= 0 || this.__bounds.height <= 0) { return; } var parentTransform = this.__owner.__renderTransform; var scaleX = 1.0; var scaleY = 1.0; if(parentTransform != null) { if(parentTransform.b == 0) { scaleX = Math.abs(parentTransform.a); } else { scaleX = Math.sqrt(parentTransform.a * parentTransform.a + parentTransform.b * parentTransform.b); } if(parentTransform.c == 0) { scaleY = Math.abs(parentTransform.d); } else { scaleY = Math.sqrt(parentTransform.c * parentTransform.c + parentTransform.d * parentTransform.d); } } else { return; } var width = this.__bounds.width * scaleX; var height = this.__bounds.height * scaleY; if(width < 1 || height < 1) { if(this.__width >= 1 || this.__height >= 1) { this.set___dirty(true); } this.__width = 0; this.__height = 0; return; } this.__renderTransform.a = width / this.__bounds.width; this.__renderTransform.d = height / this.__bounds.height; var inverseA = 1 / this.__renderTransform.a; var inverseD = 1 / this.__renderTransform.d; this.__worldTransform.a = inverseA * parentTransform.a; this.__worldTransform.b = inverseA * parentTransform.b; this.__worldTransform.c = inverseD * parentTransform.c; this.__worldTransform.d = inverseD * parentTransform.d; var x = this.__bounds.x; var y = this.__bounds.y; var tx = x * parentTransform.a + y * parentTransform.c + parentTransform.tx; var ty = x * parentTransform.b + y * parentTransform.d + parentTransform.ty; this.__worldTransform.tx = Math.floor(tx); this.__worldTransform.ty = Math.floor(ty); var _this = this.__worldTransform; var norm = _this.a * _this.d - _this.b * _this.c; this.__renderTransform.tx = norm == 0 ? -_this.tx : 1.0 / norm * (_this.c * (_this.ty - ty) + _this.d * (tx - _this.tx)); var _this1 = this.__worldTransform; var norm1 = _this1.a * _this1.d - _this1.b * _this1.c; this.__renderTransform.ty = norm1 == 0 ? -_this1.ty : 1.0 / norm1 * (_this1.a * (ty - _this1.ty) + _this1.b * (_this1.tx - tx)); var newWidth = Math.ceil(width + this.__renderTransform.tx); var newHeight = Math.ceil(height + this.__renderTransform.ty); if(newWidth != this.__width || newHeight != this.__height) { this.set___dirty(true); } this.__width = newWidth; this.__height = newHeight; } ,set___dirty: function(value) { if(value && this.__owner != null) { var _this = this.__owner; if(!_this.__renderDirty) { _this.__renderDirty = true; _this.__setParentRenderDirty(); } } return this.__dirty = value; } ,__class__: openfl_display_Graphics ,__properties__: {set___dirty:"set___dirty"} }; var openfl_display_IGraphicsFill = function() { }; $hxClasses["openfl.display.IGraphicsFill"] = openfl_display_IGraphicsFill; openfl_display_IGraphicsFill.__name__ = ["openfl","display","IGraphicsFill"]; openfl_display_IGraphicsFill.prototype = { __graphicsFillType: null ,__class__: openfl_display_IGraphicsFill }; var openfl_display_IGraphicsData = function() { }; $hxClasses["openfl.display.IGraphicsData"] = openfl_display_IGraphicsData; openfl_display_IGraphicsData.__name__ = ["openfl","display","IGraphicsData"]; openfl_display_IGraphicsData.prototype = { __graphicsDataType: null ,__class__: openfl_display_IGraphicsData }; var openfl_display_GraphicsBitmapFill = function(bitmapData,matrix,repeat,smooth) { if(smooth == null) { smooth = false; } if(repeat == null) { repeat = true; } this.bitmapData = bitmapData; this.matrix = matrix; this.repeat = repeat; this.smooth = smooth; this.__graphicsDataType = openfl_display_GraphicsDataType.BITMAP; this.__graphicsFillType = openfl_display_GraphicsFillType.BITMAP_FILL; }; $hxClasses["openfl.display.GraphicsBitmapFill"] = openfl_display_GraphicsBitmapFill; openfl_display_GraphicsBitmapFill.__name__ = ["openfl","display","GraphicsBitmapFill"]; openfl_display_GraphicsBitmapFill.__interfaces__ = [openfl_display_IGraphicsFill,openfl_display_IGraphicsData]; openfl_display_GraphicsBitmapFill.prototype = { bitmapData: null ,matrix: null ,repeat: null ,smooth: null ,__graphicsDataType: null ,__graphicsFillType: null ,__class__: openfl_display_GraphicsBitmapFill }; var openfl_display_GraphicsEndFill = function() { this.__graphicsDataType = openfl_display_GraphicsDataType.END; this.__graphicsFillType = openfl_display_GraphicsFillType.END_FILL; }; $hxClasses["openfl.display.GraphicsEndFill"] = openfl_display_GraphicsEndFill; openfl_display_GraphicsEndFill.__name__ = ["openfl","display","GraphicsEndFill"]; openfl_display_GraphicsEndFill.__interfaces__ = [openfl_display_IGraphicsFill,openfl_display_IGraphicsData]; openfl_display_GraphicsEndFill.prototype = { __graphicsDataType: null ,__graphicsFillType: null ,__class__: openfl_display_GraphicsEndFill }; var openfl_display_GraphicsGradientFill = function(type,colors,alphas,ratios,matrix,spreadMethod,interpolationMethod,focalPointRatio) { if(focalPointRatio == null) { focalPointRatio = 0; } if(type == null) { type = 0; } if(spreadMethod == null) { spreadMethod = 0; } if(interpolationMethod == null) { interpolationMethod = 1; } this.type = type; this.colors = colors; this.alphas = alphas; this.ratios = ratios; this.matrix = matrix; this.spreadMethod = spreadMethod; this.interpolationMethod = interpolationMethod; this.focalPointRatio = focalPointRatio; this.__graphicsDataType = openfl_display_GraphicsDataType.GRADIENT; this.__graphicsFillType = openfl_display_GraphicsFillType.GRADIENT_FILL; }; $hxClasses["openfl.display.GraphicsGradientFill"] = openfl_display_GraphicsGradientFill; openfl_display_GraphicsGradientFill.__name__ = ["openfl","display","GraphicsGradientFill"]; openfl_display_GraphicsGradientFill.__interfaces__ = [openfl_display_IGraphicsFill,openfl_display_IGraphicsData]; openfl_display_GraphicsGradientFill.prototype = { alphas: null ,colors: null ,focalPointRatio: null ,interpolationMethod: null ,matrix: null ,ratios: null ,spreadMethod: null ,type: null ,__graphicsDataType: null ,__graphicsFillType: null ,__class__: openfl_display_GraphicsGradientFill }; var openfl_display_IGraphicsPath = function() { }; $hxClasses["openfl.display.IGraphicsPath"] = openfl_display_IGraphicsPath; openfl_display_IGraphicsPath.__name__ = ["openfl","display","IGraphicsPath"]; var openfl_display_GraphicsPath = function(commands,data,winding) { if(winding == null) { winding = 0; } this.commands = commands; this.data = data; this.winding = winding; this.__graphicsDataType = openfl_display_GraphicsDataType.PATH; }; $hxClasses["openfl.display.GraphicsPath"] = openfl_display_GraphicsPath; openfl_display_GraphicsPath.__name__ = ["openfl","display","GraphicsPath"]; openfl_display_GraphicsPath.__interfaces__ = [openfl_display_IGraphicsPath,openfl_display_IGraphicsData]; openfl_display_GraphicsPath.prototype = { commands: null ,data: null ,winding: null ,__graphicsDataType: null ,cubicCurveTo: function(controlX1,controlY1,controlX2,controlY2,anchorX,anchorY) { if(this.commands == null) { this.commands = openfl__$Vector_Vector_$Impl_$.toIntVector(null); } if(this.data == null) { this.data = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); } this.commands.data.push(6); this.data.data.push(controlX1); this.data.data.push(controlY1); this.data.data.push(controlX2); this.data.data.push(controlY2); this.data.data.push(anchorX); this.data.data.push(anchorY); } ,curveTo: function(controlX,controlY,anchorX,anchorY) { if(this.commands == null) { this.commands = openfl__$Vector_Vector_$Impl_$.toIntVector(null); } if(this.data == null) { this.data = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); } this.commands.data.push(3); this.data.data.push(controlX); this.data.data.push(controlY); this.data.data.push(anchorX); this.data.data.push(anchorY); } ,lineTo: function(x,y) { if(this.commands == null) { this.commands = openfl__$Vector_Vector_$Impl_$.toIntVector(null); } if(this.data == null) { this.data = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); } this.commands.data.push(2); this.data.data.push(x); this.data.data.push(y); } ,moveTo: function(x,y) { if(this.commands == null) { this.commands = openfl__$Vector_Vector_$Impl_$.toIntVector(null); } if(this.data == null) { this.data = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); } this.commands.data.push(1); this.data.data.push(x); this.data.data.push(y); } ,wideLineTo: function(x,y) { if(this.commands == null) { this.commands = openfl__$Vector_Vector_$Impl_$.toIntVector(null); } if(this.data == null) { this.data = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); } this.commands.data.push(2); this.data.data.push(x); this.data.data.push(y); } ,wideMoveTo: function(x,y) { if(this.commands == null) { this.commands = openfl__$Vector_Vector_$Impl_$.toIntVector(null); } if(this.data == null) { this.data = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); } this.commands.data.push(1); this.data.data.push(x); this.data.data.push(y); } ,__drawCircle: function(x,y,radius) { this.__drawRoundRect(x - radius,y - radius,radius * 2,radius * 2,radius * 2,radius * 2); } ,__drawEllipse: function(x,y,width,height) { this.__drawRoundRect(x,y,width,height,width,height); } ,__drawRect: function(x,y,width,height) { this.moveTo(x,y); this.lineTo(x + width,y); this.lineTo(x + width,y + height); this.lineTo(x,y + height); this.lineTo(x,y); } ,__drawRoundRect: function(x,y,width,height,ellipseWidth,ellipseHeight) { ellipseWidth *= 0.5; ellipseHeight *= 0.5; if(ellipseWidth > width / 2) { ellipseWidth = width / 2; } if(ellipseHeight > height / 2) { ellipseHeight = height / 2; } var xe = x + width; var ye = y + height; var cx1 = -ellipseWidth + ellipseWidth * openfl_display_GraphicsPath.SIN45; var cx2 = -ellipseWidth + ellipseWidth * openfl_display_GraphicsPath.TAN22; var cy1 = -ellipseHeight + ellipseHeight * openfl_display_GraphicsPath.SIN45; var cy2 = -ellipseHeight + ellipseHeight * openfl_display_GraphicsPath.TAN22; this.moveTo(xe,ye - ellipseHeight); this.curveTo(xe,ye + cy2,xe + cx1,ye + cy1); this.curveTo(xe + cx2,ye,xe - ellipseWidth,ye); this.lineTo(x + ellipseWidth,ye); this.curveTo(x - cx2,ye,x - cx1,ye + cy1); this.curveTo(x,ye + cy2,x,ye - ellipseHeight); this.lineTo(x,y + ellipseHeight); this.curveTo(x,y - cy2,x - cx1,y - cy1); this.curveTo(x - cx2,y,x + ellipseWidth,y); this.lineTo(xe - ellipseWidth,y); this.curveTo(xe + cx2,y,xe + cx1,y - cy1); this.curveTo(xe,y - cy2,xe,y + ellipseHeight); this.lineTo(xe,ye - ellipseHeight); } ,__class__: openfl_display_GraphicsPath }; var openfl_display__$GraphicsPathWinding_GraphicsPathWinding_$Impl_$ = {}; $hxClasses["openfl.display._GraphicsPathWinding.GraphicsPathWinding_Impl_"] = openfl_display__$GraphicsPathWinding_GraphicsPathWinding_$Impl_$; openfl_display__$GraphicsPathWinding_GraphicsPathWinding_$Impl_$.__name__ = ["openfl","display","_GraphicsPathWinding","GraphicsPathWinding_Impl_"]; openfl_display__$GraphicsPathWinding_GraphicsPathWinding_$Impl_$.fromString = function(value) { switch(value) { case "evenOdd": return 0; case "nonZero": return 1; default: return null; } }; openfl_display__$GraphicsPathWinding_GraphicsPathWinding_$Impl_$.toString = function(value) { switch(value) { case 0: return "evenOdd"; case 1: return "nonZero"; default: return null; } }; var openfl_display_GraphicsSolidFill = function(color,alpha) { if(alpha == null) { alpha = 1; } if(color == null) { color = 0; } this.alpha = alpha; this.color = color; this.__graphicsDataType = openfl_display_GraphicsDataType.SOLID; this.__graphicsFillType = openfl_display_GraphicsFillType.SOLID_FILL; }; $hxClasses["openfl.display.GraphicsSolidFill"] = openfl_display_GraphicsSolidFill; openfl_display_GraphicsSolidFill.__name__ = ["openfl","display","GraphicsSolidFill"]; openfl_display_GraphicsSolidFill.__interfaces__ = [openfl_display_IGraphicsFill,openfl_display_IGraphicsData]; openfl_display_GraphicsSolidFill.prototype = { alpha: null ,color: null ,__graphicsDataType: null ,__graphicsFillType: null ,__class__: openfl_display_GraphicsSolidFill }; var openfl_display_IGraphicsStroke = function() { }; $hxClasses["openfl.display.IGraphicsStroke"] = openfl_display_IGraphicsStroke; openfl_display_IGraphicsStroke.__name__ = ["openfl","display","IGraphicsStroke"]; var openfl_display_GraphicsStroke = function(thickness,pixelHinting,scaleMode,caps,joints,miterLimit,fill) { if(miterLimit == null) { miterLimit = 3; } if(joints == null) { joints = 2; } if(caps == null) { caps = 0; } if(scaleMode == null) { scaleMode = 2; } if(pixelHinting == null) { pixelHinting = false; } if(thickness == null) { thickness = NaN; } this.caps = caps; this.fill = fill; this.joints = joints; this.miterLimit = miterLimit; this.pixelHinting = pixelHinting; this.scaleMode = scaleMode; this.thickness = thickness; this.__graphicsDataType = openfl_display_GraphicsDataType.STROKE; }; $hxClasses["openfl.display.GraphicsStroke"] = openfl_display_GraphicsStroke; openfl_display_GraphicsStroke.__name__ = ["openfl","display","GraphicsStroke"]; openfl_display_GraphicsStroke.__interfaces__ = [openfl_display_IGraphicsStroke,openfl_display_IGraphicsData]; openfl_display_GraphicsStroke.prototype = { caps: null ,fill: null ,joints: null ,miterLimit: null ,pixelHinting: null ,scaleMode: null ,thickness: null ,__graphicsDataType: null ,__class__: openfl_display_GraphicsStroke }; var openfl_display_GraphicsTrianglePath = function(vertices,indices,uvtData,culling) { if(culling == null) { culling = 1; } this.vertices = vertices; this.indices = indices; this.uvtData = uvtData; this.culling = culling; this.__graphicsDataType = openfl_display_GraphicsDataType.TRIANGLE_PATH; }; $hxClasses["openfl.display.GraphicsTrianglePath"] = openfl_display_GraphicsTrianglePath; openfl_display_GraphicsTrianglePath.__name__ = ["openfl","display","GraphicsTrianglePath"]; openfl_display_GraphicsTrianglePath.__interfaces__ = [openfl_display_IGraphicsPath,openfl_display_IGraphicsData]; openfl_display_GraphicsTrianglePath.prototype = { culling: null ,indices: null ,uvtData: null ,vertices: null ,__graphicsDataType: null ,__class__: openfl_display_GraphicsTrianglePath }; var openfl_display_GraphicsDataType = $hxClasses["openfl.display.GraphicsDataType"] = { __ename__ : ["openfl","display","GraphicsDataType"], __constructs__ : ["STROKE","SOLID","GRADIENT","PATH","BITMAP","END","TRIANGLE_PATH"] }; openfl_display_GraphicsDataType.STROKE = ["STROKE",0]; openfl_display_GraphicsDataType.STROKE.toString = $estr; openfl_display_GraphicsDataType.STROKE.__enum__ = openfl_display_GraphicsDataType; openfl_display_GraphicsDataType.SOLID = ["SOLID",1]; openfl_display_GraphicsDataType.SOLID.toString = $estr; openfl_display_GraphicsDataType.SOLID.__enum__ = openfl_display_GraphicsDataType; openfl_display_GraphicsDataType.GRADIENT = ["GRADIENT",2]; openfl_display_GraphicsDataType.GRADIENT.toString = $estr; openfl_display_GraphicsDataType.GRADIENT.__enum__ = openfl_display_GraphicsDataType; openfl_display_GraphicsDataType.PATH = ["PATH",3]; openfl_display_GraphicsDataType.PATH.toString = $estr; openfl_display_GraphicsDataType.PATH.__enum__ = openfl_display_GraphicsDataType; openfl_display_GraphicsDataType.BITMAP = ["BITMAP",4]; openfl_display_GraphicsDataType.BITMAP.toString = $estr; openfl_display_GraphicsDataType.BITMAP.__enum__ = openfl_display_GraphicsDataType; openfl_display_GraphicsDataType.END = ["END",5]; openfl_display_GraphicsDataType.END.toString = $estr; openfl_display_GraphicsDataType.END.__enum__ = openfl_display_GraphicsDataType; openfl_display_GraphicsDataType.TRIANGLE_PATH = ["TRIANGLE_PATH",6]; openfl_display_GraphicsDataType.TRIANGLE_PATH.toString = $estr; openfl_display_GraphicsDataType.TRIANGLE_PATH.__enum__ = openfl_display_GraphicsDataType; openfl_display_GraphicsDataType.__empty_constructs__ = [openfl_display_GraphicsDataType.STROKE,openfl_display_GraphicsDataType.SOLID,openfl_display_GraphicsDataType.GRADIENT,openfl_display_GraphicsDataType.PATH,openfl_display_GraphicsDataType.BITMAP,openfl_display_GraphicsDataType.END,openfl_display_GraphicsDataType.TRIANGLE_PATH]; var openfl_display_GraphicsFillType = $hxClasses["openfl.display.GraphicsFillType"] = { __ename__ : ["openfl","display","GraphicsFillType"], __constructs__ : ["SOLID_FILL","GRADIENT_FILL","BITMAP_FILL","END_FILL"] }; openfl_display_GraphicsFillType.SOLID_FILL = ["SOLID_FILL",0]; openfl_display_GraphicsFillType.SOLID_FILL.toString = $estr; openfl_display_GraphicsFillType.SOLID_FILL.__enum__ = openfl_display_GraphicsFillType; openfl_display_GraphicsFillType.GRADIENT_FILL = ["GRADIENT_FILL",1]; openfl_display_GraphicsFillType.GRADIENT_FILL.toString = $estr; openfl_display_GraphicsFillType.GRADIENT_FILL.__enum__ = openfl_display_GraphicsFillType; openfl_display_GraphicsFillType.BITMAP_FILL = ["BITMAP_FILL",2]; openfl_display_GraphicsFillType.BITMAP_FILL.toString = $estr; openfl_display_GraphicsFillType.BITMAP_FILL.__enum__ = openfl_display_GraphicsFillType; openfl_display_GraphicsFillType.END_FILL = ["END_FILL",3]; openfl_display_GraphicsFillType.END_FILL.toString = $estr; openfl_display_GraphicsFillType.END_FILL.__enum__ = openfl_display_GraphicsFillType; openfl_display_GraphicsFillType.__empty_constructs__ = [openfl_display_GraphicsFillType.SOLID_FILL,openfl_display_GraphicsFillType.GRADIENT_FILL,openfl_display_GraphicsFillType.BITMAP_FILL,openfl_display_GraphicsFillType.END_FILL]; var openfl_display__$InterpolationMethod_InterpolationMethod_$Impl_$ = {}; $hxClasses["openfl.display._InterpolationMethod.InterpolationMethod_Impl_"] = openfl_display__$InterpolationMethod_InterpolationMethod_$Impl_$; openfl_display__$InterpolationMethod_InterpolationMethod_$Impl_$.__name__ = ["openfl","display","_InterpolationMethod","InterpolationMethod_Impl_"]; openfl_display__$InterpolationMethod_InterpolationMethod_$Impl_$.fromString = function(value) { switch(value) { case "linearRGB": return 0; case "rgb": return 1; default: return null; } }; openfl_display__$InterpolationMethod_InterpolationMethod_$Impl_$.toString = function(value) { switch(value) { case 0: return "linearRGB"; case 1: return "rgb"; default: return null; } }; var openfl_display_JPEGEncoderOptions = function(quality) { if(quality == null) { quality = 80; } this.quality = quality; }; $hxClasses["openfl.display.JPEGEncoderOptions"] = openfl_display_JPEGEncoderOptions; openfl_display_JPEGEncoderOptions.__name__ = ["openfl","display","JPEGEncoderOptions"]; openfl_display_JPEGEncoderOptions.prototype = { quality: null ,__class__: openfl_display_JPEGEncoderOptions }; var openfl_display__$JointStyle_JointStyle_$Impl_$ = {}; $hxClasses["openfl.display._JointStyle.JointStyle_Impl_"] = openfl_display__$JointStyle_JointStyle_$Impl_$; openfl_display__$JointStyle_JointStyle_$Impl_$.__name__ = ["openfl","display","_JointStyle","JointStyle_Impl_"]; openfl_display__$JointStyle_JointStyle_$Impl_$.fromString = function(value) { switch(value) { case "bevel": return 0; case "miter": return 1; case "round": return 2; default: return null; } }; openfl_display__$JointStyle_JointStyle_$Impl_$.toString = function(value) { switch(value) { case 0: return "bevel"; case 1: return "miter"; case 2: return "round"; default: return null; } }; var openfl_display__$LineScaleMode_LineScaleMode_$Impl_$ = {}; $hxClasses["openfl.display._LineScaleMode.LineScaleMode_Impl_"] = openfl_display__$LineScaleMode_LineScaleMode_$Impl_$; openfl_display__$LineScaleMode_LineScaleMode_$Impl_$.__name__ = ["openfl","display","_LineScaleMode","LineScaleMode_Impl_"]; openfl_display__$LineScaleMode_LineScaleMode_$Impl_$.fromString = function(value) { switch(value) { case "horizontal": return 0; case "none": return 1; case "normal": return 2; case "vertical": return 3; default: return null; } }; openfl_display__$LineScaleMode_LineScaleMode_$Impl_$.toString = function(value) { switch(value) { case 0: return "horizontal"; case 1: return "none"; case 2: return "normal"; case 3: return "vertical"; default: return null; } }; var openfl_display_Loader = function() { openfl_display_DisplayObjectContainer.call(this); this.contentLoaderInfo = openfl_display_LoaderInfo.create(this); this.uncaughtErrorEvents = this.contentLoaderInfo.uncaughtErrorEvents; }; $hxClasses["openfl.display.Loader"] = openfl_display_Loader; openfl_display_Loader.__name__ = ["openfl","display","Loader"]; openfl_display_Loader.__super__ = openfl_display_DisplayObjectContainer; openfl_display_Loader.prototype = $extend(openfl_display_DisplayObjectContainer.prototype,{ content: null ,contentLoaderInfo: null ,uncaughtErrorEvents: null ,__library: null ,__path: null ,__unloaded: null ,close: function() { openfl_Lib.notImplemented({ fileName : "Loader.hx", lineNumber : 59, className : "openfl.display.Loader", methodName : "close"}); } ,load: function(request,context) { this.contentLoaderInfo.loaderURL = openfl_Lib.current.get_loaderInfo().url; this.contentLoaderInfo.url = request.url; this.__unloaded = false; if(request.contentType == null || request.contentType == "") { var extension = ""; this.__path = request.url; var queryIndex = this.__path.indexOf("?"); if(queryIndex > -1) { this.__path = this.__path.substring(0,queryIndex); } while(StringTools.endsWith(this.__path,"/")) this.__path = this.__path.substring(0,this.__path.length - 1); if(StringTools.endsWith(this.__path,".bundle")) { this.__path += "/library.json"; if(queryIndex > -1) { request.url = this.__path + request.url.substring(queryIndex); } else { request.url = this.__path; } } var extIndex = this.__path.lastIndexOf("."); if(extIndex > -1) { extension = this.__path.substring(extIndex + 1); } var tmp; switch(extension) { case "gif": tmp = "image/gif"; break; case "jpeg":case "jpg": tmp = "image/jpeg"; break; case "js": tmp = "application/javascript"; break; case "json": tmp = "application/json"; break; case "png": tmp = "image/png"; break; case "swf": tmp = "application/x-shockwave-flash"; break; default: tmp = "application/x-www-form-urlencoded"; } this.contentLoaderInfo.contentType = tmp; } else { this.contentLoaderInfo.contentType = request.contentType; } if(this.contentLoaderInfo.contentType.indexOf("image/") > -1 && request.method == "GET" && (request.requestHeaders == null || request.requestHeaders.length == 0) && request.userAgent == null) { openfl_display_BitmapData.loadFromFile(request.url).onComplete($bind(this,this.BitmapData_onLoad)).onError($bind(this,this.BitmapData_onError)).onProgress($bind(this,this.BitmapData_onProgress)); return; } var loader = new openfl_net_URLLoader(); loader.dataFormat = 0; if(this.contentLoaderInfo.contentType.indexOf("/json") > -1 || this.contentLoaderInfo.contentType.indexOf("/javascript") > -1 || this.contentLoaderInfo.contentType.indexOf("/ecmascript") > -1) { loader.dataFormat = 1; } loader.addEventListener("complete",$bind(this,this.loader_onComplete)); loader.addEventListener("ioError",$bind(this,this.loader_onError)); loader.addEventListener("progress",$bind(this,this.loader_onProgress)); loader.load(request); } ,loadBytes: function(buffer,context) { openfl_display_BitmapData.loadFromBytes(buffer).onComplete($bind(this,this.BitmapData_onLoad)).onError($bind(this,this.BitmapData_onError)); } ,unload: function() { if(!this.__unloaded) { while(this.get_numChildren() > 0) this.removeChildAt(0); if(this.__library != null) { openfl_utils_Assets.unloadLibrary(this.contentLoaderInfo.url); this.__library = null; } this.content = null; this.contentLoaderInfo.url = null; this.contentLoaderInfo.contentType = null; this.contentLoaderInfo.content = null; this.contentLoaderInfo.bytesLoaded = 0; this.contentLoaderInfo.bytesTotal = 0; this.contentLoaderInfo.width = 0; this.contentLoaderInfo.height = 0; this.__unloaded = true; this.contentLoaderInfo.dispatchEvent(new openfl_events_Event("unload")); } } ,unloadAndStop: function(gc) { if(gc == null) { gc = true; } if(this.content != null) { this.content.__stopAllMovieClips(); } var _g1 = 0; var _g = this.get_numChildren(); while(_g1 < _g) { var i = _g1++; this.getChildAt(i).__stopAllMovieClips(); } this.unload(); var gc1 = gc; } ,__dispatchError: function(text) { var event = new openfl_events_IOErrorEvent("ioError"); event.text = text; this.contentLoaderInfo.dispatchEvent(event); } ,BitmapData_onError: function(error) { this.__dispatchError(Std.string(error)); } ,BitmapData_onLoad: function(bitmapData) { this.content = new openfl_display_Bitmap(bitmapData); this.contentLoaderInfo.content = this.content; this.addChild(this.content); this.contentLoaderInfo.dispatchEvent(new openfl_events_Event("complete")); } ,BitmapData_onProgress: function(bytesLoaded,bytesTotal) { var event = new openfl_events_ProgressEvent("progress"); event.bytesLoaded = bytesLoaded; event.bytesTotal = bytesTotal; this.contentLoaderInfo.dispatchEvent(event); } ,loader_onComplete: function(event) { var _gthis = this; var loader = event.target; if(this.contentLoaderInfo.contentType.indexOf("/json") > -1) { var manifest = lime_utils_AssetManifest.parse(loader.data,haxe_io_Path.directory(this.__path)); if(manifest == null) { this.__dispatchError("Cannot parse asset manifest"); return; } var library = lime_utils_AssetLibrary.fromManifest(manifest); if(library == null) { this.__dispatchError("Cannot open library"); return; } if(js_Boot.__instanceof(library,openfl_utils_AssetLibrary)) { library.load().onComplete(function(_) { _gthis.__library = library; openfl_utils_Assets.registerLibrary(_gthis.contentLoaderInfo.url,_gthis.__library); if(manifest.name != null && !openfl_utils_Assets.hasLibrary(manifest.name)) { openfl_utils_Assets.registerLibrary(manifest.name,_gthis.__library); } _gthis.content = _gthis.__library.getMovieClip(""); _gthis.contentLoaderInfo.content = _gthis.content; _gthis.addChild(_gthis.content); _gthis.contentLoaderInfo.dispatchEvent(new openfl_events_Event("complete")); }).onError(function(e) { _gthis.__dispatchError(e); }); } } else if(this.contentLoaderInfo.contentType.indexOf("/javascript") > -1 || this.contentLoaderInfo.contentType.indexOf("/ecmascript") > -1) { this.content = new openfl_display_Sprite(); this.contentLoaderInfo.content = this.content; this.addChild(this.content); eval("(function () {" + Std.string(loader.data) + "})()"); this.contentLoaderInfo.dispatchEvent(new openfl_events_Event("complete")); } else { openfl_display_BitmapData.loadFromBytes(loader.data).onComplete($bind(this,this.BitmapData_onLoad)).onError($bind(this,this.BitmapData_onError)); } } ,loader_onError: function(event) { event.target = this.contentLoaderInfo; this.contentLoaderInfo.dispatchEvent(event); } ,loader_onProgress: function(event) { event.target = this.contentLoaderInfo; this.contentLoaderInfo.dispatchEvent(event); } ,__class__: openfl_display_Loader }); var openfl_display_LoaderInfo = function() { openfl_events_EventDispatcher.call(this); this.applicationDomain = openfl_system_ApplicationDomain.currentDomain; this.bytesLoaded = 0; this.bytesTotal = 0; this.childAllowsParent = true; this.parameters = { }; }; $hxClasses["openfl.display.LoaderInfo"] = openfl_display_LoaderInfo; openfl_display_LoaderInfo.__name__ = ["openfl","display","LoaderInfo"]; openfl_display_LoaderInfo.create = function(loader) { var loaderInfo = new openfl_display_LoaderInfo(); loaderInfo.uncaughtErrorEvents = new openfl_events_UncaughtErrorEvents(); if(loader != null) { loaderInfo.loader = loader; } else { loaderInfo.url = openfl_display_LoaderInfo.__rootURL; } return loaderInfo; }; openfl_display_LoaderInfo.__super__ = openfl_events_EventDispatcher; openfl_display_LoaderInfo.prototype = $extend(openfl_events_EventDispatcher.prototype,{ applicationDomain: null ,bytes: null ,bytesLoaded: null ,bytesTotal: null ,childAllowsParent: null ,content: null ,contentType: null ,frameRate: null ,height: null ,loader: null ,loaderURL: null ,parameters: null ,parentAllowsChild: null ,sameDomain: null ,sharedEvents: null ,uncaughtErrorEvents: null ,url: null ,width: null ,__completed: null ,__complete: function() { if(!this.__completed) { if(this.bytesLoaded < this.bytesTotal) { this.bytesLoaded = this.bytesTotal; } this.__update(this.bytesLoaded,this.bytesTotal); this.__completed = true; this.dispatchEvent(new openfl_events_Event("complete")); } } ,__update: function(bytesLoaded,bytesTotal) { this.bytesLoaded = bytesLoaded; this.bytesTotal = bytesTotal; this.dispatchEvent(new openfl_events_ProgressEvent("progress",false,false,bytesLoaded,bytesTotal)); } ,__class__: openfl_display_LoaderInfo }); var openfl_display__$MovieClip_FrameSymbolInstance = function(initFrame,initFrameObjectID,characterID,depth,displayObject,clipDepth) { this.initFrame = initFrame; this.initFrameObjectID = initFrameObjectID; this.characterID = characterID; this.depth = depth; this.displayObject = displayObject; this.clipDepth = clipDepth; }; $hxClasses["openfl.display._MovieClip.FrameSymbolInstance"] = openfl_display__$MovieClip_FrameSymbolInstance; openfl_display__$MovieClip_FrameSymbolInstance.__name__ = ["openfl","display","_MovieClip","FrameSymbolInstance"]; openfl_display__$MovieClip_FrameSymbolInstance.prototype = { characterID: null ,clipDepth: null ,depth: null ,displayObject: null ,initFrame: null ,initFrameObjectID: null ,__class__: openfl_display__$MovieClip_FrameSymbolInstance }; var openfl_display_PNGEncoderOptions = function(fastCompression) { if(fastCompression == null) { fastCompression = false; } this.fastCompression = fastCompression; }; $hxClasses["openfl.display.PNGEncoderOptions"] = openfl_display_PNGEncoderOptions; openfl_display_PNGEncoderOptions.__name__ = ["openfl","display","PNGEncoderOptions"]; openfl_display_PNGEncoderOptions.prototype = { fastCompression: null ,__class__: openfl_display_PNGEncoderOptions }; var openfl_display__$PixelSnapping_PixelSnapping_$Impl_$ = {}; $hxClasses["openfl.display._PixelSnapping.PixelSnapping_Impl_"] = openfl_display__$PixelSnapping_PixelSnapping_$Impl_$; openfl_display__$PixelSnapping_PixelSnapping_$Impl_$.__name__ = ["openfl","display","_PixelSnapping","PixelSnapping_Impl_"]; openfl_display__$PixelSnapping_PixelSnapping_$Impl_$.fromString = function(value) { switch(value) { case "always": return 0; case "auto": return 1; case "never": return 2; default: return null; } }; openfl_display__$PixelSnapping_PixelSnapping_$Impl_$.toString = function(value) { switch(value) { case 0: return "always"; case 1: return "auto"; case 2: return "never"; default: return null; } }; var openfl_display_Preloader = function(display) { lime_app_Preloader.call(this); this.display = display; if(display != null) { display.addEventListener("unload",$bind(this,this.display_onUnload)); openfl_Lib.current.addChild(display); } }; $hxClasses["openfl.display.Preloader"] = openfl_display_Preloader; openfl_display_Preloader.__name__ = ["openfl","display","Preloader"]; openfl_display_Preloader.__super__ = lime_app_Preloader; openfl_display_Preloader.prototype = $extend(lime_app_Preloader.prototype,{ display: null ,ready: null ,start: function() { if(this.simulateProgress) { return; } this.ready = true; openfl_Lib.current.get_loaderInfo().__complete(); if(this.display != null) { var complete = new openfl_events_Event("complete",true,true); this.display.dispatchEvent(complete); if(!complete.isDefaultPrevented()) { this.display.dispatchEvent(new openfl_events_Event("unload")); } } else { lime_app_Preloader.prototype.start.call(this); } } ,update: function(loaded,total) { openfl_Lib.current.get_loaderInfo().__update(loaded,total); if(this.display != null) { this.display.dispatchEvent(new openfl_events_ProgressEvent("progress",true,true,loaded,total)); } } ,display_onUnload: function(event) { if(this.display != null) { this.display.removeEventListener("unload",$bind(this,this.display_onUnload)); if(this.display.parent == openfl_Lib.current) { openfl_Lib.current.removeChild(this.display); } openfl_Lib.current.stage.set_focus(null); this.display = null; } if(this.ready && !this.simulateProgress) { lime_app_Preloader.prototype.start.call(this); } } ,__class__: openfl_display_Preloader }); var openfl_display_DefaultPreloader = function() { openfl_display_Sprite.call(this); var backgroundColor = this.getBackgroundColor(); var r = backgroundColor >> 16 & 255; var g = backgroundColor >> 8 & 255; var b = backgroundColor & 255; var perceivedLuminosity = 0.299 * r + 0.587 * g + 0.114 * b; var color = 0; if(perceivedLuminosity < 70) { color = 16777215; } var x = 30; var height = 7; var y = this.getHeight() / 2 - height / 2; var width = this.getWidth() - x * 2; var padding = 2; this.outline = new openfl_display_Sprite(); this.outline.get_graphics().beginFill(color,0.07); this.outline.get_graphics().drawRect(0,0,width,height); this.outline.set_x(x); this.outline.set_y(y); this.outline.set_alpha(0); this.addChild(this.outline); this.progress = new openfl_display_Sprite(); this.progress.get_graphics().beginFill(color,0.35); this.progress.get_graphics().drawRect(0,0,width - padding * 2,height - padding * 2); this.progress.set_x(x + padding); this.progress.set_y(y + padding); this.progress.set_scaleX(0); this.progress.set_alpha(0); this.addChild(this.progress); this.startAnimation = openfl_Lib.getTimer() + 100; this.endAnimation = this.startAnimation + 1000; this.addEventListener("addedToStage",$bind(this,this.this_onAddedToStage)); }; $hxClasses["openfl.display.DefaultPreloader"] = openfl_display_DefaultPreloader; openfl_display_DefaultPreloader.__name__ = ["openfl","display","DefaultPreloader"]; openfl_display_DefaultPreloader.__super__ = openfl_display_Sprite; openfl_display_DefaultPreloader.prototype = $extend(openfl_display_Sprite.prototype,{ endAnimation: null ,outline: null ,progress: null ,startAnimation: null ,getBackgroundColor: function() { return openfl_Lib.current.stage.window.config.background; } ,getHeight: function() { var height = openfl_Lib.current.stage.window.config.height; if(height > 0) { return height; } else { return openfl_Lib.current.stage.stageHeight; } } ,getWidth: function() { var width = openfl_Lib.current.stage.window.config.width; if(width > 0) { return width; } else { return openfl_Lib.current.stage.stageWidth; } } ,onInit: function() { this.addEventListener("enterFrame",$bind(this,this.this_onEnterFrame)); } ,onLoaded: function() { this.removeEventListener("enterFrame",$bind(this,this.this_onEnterFrame)); this.dispatchEvent(new openfl_events_Event("unload")); } ,onUpdate: function(bytesLoaded,bytesTotal) { var percentLoaded = 0.0; if(bytesTotal > 0) { percentLoaded = bytesLoaded / bytesTotal; if(percentLoaded > 1) { percentLoaded = 1; } } this.progress.set_scaleX(percentLoaded); } ,this_onAddedToStage: function(event) { this.removeEventListener("addedToStage",$bind(this,this.this_onAddedToStage)); this.onInit(); this.onUpdate(this.get_loaderInfo().bytesLoaded,this.get_loaderInfo().bytesTotal); this.addEventListener("progress",$bind(this,this.this_onProgress)); this.addEventListener("complete",$bind(this,this.this_onComplete)); } ,this_onComplete: function(event) { event.preventDefault(); this.removeEventListener("progress",$bind(this,this.this_onProgress)); this.removeEventListener("complete",$bind(this,this.this_onComplete)); this.onLoaded(); } ,this_onEnterFrame: function(event) { var elapsed = openfl_Lib.getTimer() - this.startAnimation; var total = this.endAnimation - this.startAnimation; var percent = elapsed / total; if(percent < 0) { percent = 0; } if(percent > 1) { percent = 1; } this.outline.set_alpha(percent); this.progress.set_alpha(percent); } ,this_onProgress: function(event) { this.onUpdate(event.bytesLoaded | 0,event.bytesTotal | 0); } ,__class__: openfl_display_DefaultPreloader }); var openfl_display_Shader = function(code) { this.__data = new openfl_display_ShaderData(null); if(this.__glFragmentSource == null) { this.__glFragmentSource = "varying float vAlpha;\n\t\tvarying mat4 vColorMultipliers;\n\t\tvarying vec4 vColorOffsets;\n\t\tvarying vec2 vTexCoord;\n\t\t\n\t\tuniform bool uColorTransform;\n\t\tuniform sampler2D uImage0;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (uImage0, vTexCoord);\n\t\t\t\n\t\t\tif (color.a == 0.0) {\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\t\n\t\t\t} else if (uColorTransform) {\n\t\t\t\t\n\t\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\tcolor = vColorOffsets + (color * vColorMultipliers);\n\t\t\t\t\n\t\t\t\tif(color.a > 0.0){\n\t\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * vAlpha, color.a * vAlpha);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tgl_FragColor = color * vAlpha;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}"; } if(this.__glVertexSource == null) { this.__glVertexSource = "attribute float aAlpha;\n\t\tattribute mat4 aColorMultipliers;\n\t\tattribute vec4 aColorOffsets;\n\t\tattribute vec4 aPosition;\n\t\tattribute vec2 aTexCoord;\n\t\tvarying float vAlpha;\n\t\tvarying mat4 vColorMultipliers;\n\t\tvarying vec4 vColorOffsets;\n\t\tvarying vec2 vTexCoord;\n\t\t\n\t\tuniform mat4 uMatrix;\n\t\tuniform bool uColorTransform;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvAlpha = aAlpha;\n\t\t\tvTexCoord = aTexCoord;\n\t\t\t\n\t\t\tif (uColorTransform) {\n\t\t\t\t\n\t\t\t\tvColorMultipliers = aColorMultipliers;\n\t\t\t\tvColorOffsets = aColorOffsets;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tgl_Position = uMatrix * aPosition;\n\t\t\t\n\t\t}"; } this.byteCode = code; this.precisionHint = 1; this.__glSourceDirty = true; this.__numPasses = 1; }; $hxClasses["openfl.display.Shader"] = openfl_display_Shader; openfl_display_Shader.__name__ = ["openfl","display","Shader"]; openfl_display_Shader.prototype = { byteCode: null ,glProgram: null ,precisionHint: null ,gl: null ,__data: null ,__glFragmentSource: null ,__glSourceDirty: null ,__glVertexSource: null ,__isUniform: null ,__inputBitmapData: null ,__numPasses: null ,__paramBool: null ,__paramFloat: null ,__paramInt: null ,__uniformMatrix2: null ,__uniformMatrix3: null ,__uniformMatrix4: null ,__disable: function() { if(this.glProgram != null) { this.__disableGL(); } } ,__disableGL: function() { if(this.get_data().uImage0 != null) { this.get_data().uImage0.input = null; } var _g = 0; var _g1 = this.__paramBool; while(_g < _g1.length) { var parameter = _g1[_g]; ++_g; this.gl.__context.disableVertexAttribArray(parameter.index); } var _g2 = 0; var _g11 = this.__paramFloat; while(_g2 < _g11.length) { var parameter1 = _g11[_g2]; ++_g2; this.gl.__context.disableVertexAttribArray(parameter1.index); } var _g3 = 0; var _g12 = this.__paramInt; while(_g3 < _g12.length) { var parameter2 = _g12[_g3]; ++_g3; this.gl.__context.disableVertexAttribArray(parameter2.index); } this.gl.__context.bindBuffer(this.gl.ARRAY_BUFFER,null); this.gl.__context.bindTexture(this.gl.TEXTURE_2D,null); if(this.gl.type == lime_graphics_opengl_GLContextType.OPENGL) { this.gl.__context.disable(this.gl.TEXTURE_2D); } } ,__enable: function() { this.__init(); if(this.glProgram != null) { this.__enableGL(); } } ,__enableGL: function() { var textureCount = 0; var _g = 0; var _g1 = this.__inputBitmapData; while(_g < _g1.length) { var input = _g1[_g]; ++_g; this.gl.__context.uniform1i(input.index,textureCount); ++textureCount; } if(this.gl.type == lime_graphics_opengl_GLContextType.OPENGL && textureCount > 0) { this.gl.__context.enable(this.gl.TEXTURE_2D); } } ,__init: function() { if(this.__data == null) { this.__data = new openfl_display_ShaderData(null); } if(this.__glFragmentSource != null && this.__glVertexSource != null && (this.glProgram == null || this.__glSourceDirty)) { this.__initGL(); } } ,__initGL: function() { if(this.__glSourceDirty || this.__isUniform == null) { this.__glSourceDirty = false; this.glProgram = null; this.__isUniform = new haxe_ds_StringMap(); this.__inputBitmapData = []; this.__paramBool = []; this.__paramFloat = []; this.__paramInt = []; var this1 = new Float32Array(4); this.__uniformMatrix2 = this1; var this2 = new Float32Array(9); this.__uniformMatrix3 = this2; var this3 = new Float32Array(16); this.__uniformMatrix4 = this3; this.__processGLData(this.get_glVertexSource(),"attribute"); this.__processGLData(this.get_glVertexSource(),"uniform"); this.__processGLData(this.get_glFragmentSource(),"uniform"); } if(this.gl != null && this.glProgram == null) { var fragment = "#ifdef GL_ES\n\t\t\t\tprecision " + (this.precisionHint == 1 ? "mediump" : "lowp") + " float;\n\t\t\t\t#endif\n\t\t\t\t" + this.get_glFragmentSource(); this.glProgram = lime_utils_GLUtils.createProgram(this.get_glVertexSource(),fragment); if(this.glProgram != null) { var _g = 0; var _g1 = this.__inputBitmapData; while(_g < _g1.length) { var input = _g1[_g]; ++_g; var key = input.name; var _this = this.__isUniform; if(__map_reserved[key] != null ? _this.getReserved(key) : _this.h[key]) { input.index = this.gl.__context.getUniformLocation(this.glProgram,input.name); } else { input.index = this.gl.__context.getAttribLocation(this.glProgram,input.name); } } var _g2 = 0; var _g11 = this.__paramBool; while(_g2 < _g11.length) { var parameter = _g11[_g2]; ++_g2; var key1 = parameter.name; var _this1 = this.__isUniform; if(__map_reserved[key1] != null ? _this1.getReserved(key1) : _this1.h[key1]) { parameter.index = this.gl.__context.getUniformLocation(this.glProgram,parameter.name); } else { parameter.index = this.gl.__context.getAttribLocation(this.glProgram,parameter.name); } } var _g3 = 0; var _g12 = this.__paramFloat; while(_g3 < _g12.length) { var parameter1 = _g12[_g3]; ++_g3; var key2 = parameter1.name; var _this2 = this.__isUniform; if(__map_reserved[key2] != null ? _this2.getReserved(key2) : _this2.h[key2]) { parameter1.index = this.gl.__context.getUniformLocation(this.glProgram,parameter1.name); } else { parameter1.index = this.gl.__context.getAttribLocation(this.glProgram,parameter1.name); } } var _g4 = 0; var _g13 = this.__paramInt; while(_g4 < _g13.length) { var parameter2 = _g13[_g4]; ++_g4; var key3 = parameter2.name; var _this3 = this.__isUniform; if(__map_reserved[key3] != null ? _this3.getReserved(key3) : _this3.h[key3]) { parameter2.index = this.gl.__context.getUniformLocation(this.glProgram,parameter2.name); } else { parameter2.index = this.gl.__context.getAttribLocation(this.glProgram,parameter2.name); } } } } } ,__processGLData: function(source,storageType) { var lastMatch = 0; var position; var regex; var name; var type; if(storageType == "uniform") { regex = new EReg("uniform ([A-Za-z0-9]+) ([A-Za-z0-9]+)",""); } else { regex = new EReg("attribute ([A-Za-z0-9]+) ([A-Za-z0-9]+)",""); } while(regex.matchSub(source,lastMatch)) { type = regex.matched(1); name = regex.matched(2); if(StringTools.startsWith(type,"sampler")) { var input = new openfl_display_ShaderInput(); input.name = name; this.__inputBitmapData.push(input); this.get_data()[name] = input; } else { var parameterType; switch(type) { case "bool": parameterType = 0; break; case "bvec2": parameterType = 1; break; case "bvec3": parameterType = 2; break; case "bvec4": parameterType = 3; break; case "dvec2":case "vec2": parameterType = 5; break; case "dvec3":case "vec3": parameterType = 6; break; case "double":case "float": parameterType = 4; break; case "ivec3":case "uvec3": parameterType = 10; break; case "ivec4":case "uvec4": parameterType = 11; break; case "mat2":case "mat2x2": parameterType = 12; break; case "mat2x3": parameterType = 13; break; case "mat2x4": parameterType = 14; break; case "mat3x2": parameterType = 15; break; case "mat3":case "mat3x3": parameterType = 16; break; case "mat3x4": parameterType = 17; break; case "mat4":case "mat4x4": parameterType = 20; break; case "mat4x2": parameterType = 18; break; case "mat4x3": parameterType = 19; break; case "int":case "uint": parameterType = 8; break; case "ivec2":case "uvec2": parameterType = 9; break; case "dvec4":case "vec4": parameterType = 7; break; default: parameterType = null; } switch(parameterType) { case 0:case 1:case 2:case 3: var parameter = new openfl_display_ShaderParameter(); parameter.name = name; parameter.type = parameterType; this.__paramBool.push(parameter); this.get_data()[name] = parameter; break; case 8:case 9:case 10:case 11: var parameter1 = new openfl_display_ShaderParameter(); parameter1.name = name; parameter1.type = parameterType; this.__paramInt.push(parameter1); this.get_data()[name] = parameter1; break; default: var parameter2 = new openfl_display_ShaderParameter(); parameter2.name = name; parameter2.type = parameterType; this.__paramFloat.push(parameter2); this.get_data()[name] = parameter2; } } var _this = this.__isUniform; var value = storageType == "uniform"; if(__map_reserved[name] != null) { _this.setReserved(name,value); } else { _this.h[name] = value; } position = regex.matchedPos(); lastMatch = position.pos + position.len; } } ,__update: function() { if(this.glProgram != null) { this.__updateGL(); } } ,__updateGL: function() { var textureCount = 0; var _g = 0; var _g1 = this.__inputBitmapData; while(_g < _g1.length) { var input = _g1[_g]; ++_g; if(input.input != null) { this.gl.__context.activeTexture(this.gl.TEXTURE0 + textureCount); var _this = this.gl; var target = this.gl.TEXTURE_2D; var texture = input.input.getTexture(this.gl); _this.__context.bindTexture(target,texture); if(input.smoothing) { this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR); } else { this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.NEAREST); this.gl.__context.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST); } } ++textureCount; } var value; var index; var _g2 = 0; var _g11 = this.__paramBool; while(_g2 < _g11.length) { var parameter = _g11[_g2]; ++_g2; value = parameter.value; index = parameter.index; if(value != null) { var _g21 = parameter.type; switch(_g21) { case 0: this.gl.__context.uniform1i(index,value[0] ? 1 : 0); break; case 1: this.gl.__context.uniform2i(index,value[0] ? 1 : 0,value[1] ? 1 : 0); break; case 2: this.gl.__context.uniform3i(index,value[0] ? 1 : 0,value[1] ? 1 : 0,value[2] ? 1 : 0); break; case 3: this.gl.__context.uniform4i(index,value[0] ? 1 : 0,value[1] ? 1 : 0,value[2] ? 1 : 0,value[3] ? 1 : 0); break; default: } } else { var key = parameter.name; var _this1 = this.__isUniform; if(!(__map_reserved[key] != null ? _this1.getReserved(key) : _this1.h[key])) { this.gl.__context.enableVertexAttribArray(parameter.index); } } } var value1; var index1; var _g3 = 0; var _g12 = this.__paramFloat; while(_g3 < _g12.length) { var parameter1 = _g12[_g3]; ++_g3; value1 = parameter1.value; index1 = parameter1.index; if(value1 != null) { var _g22 = parameter1.type; switch(_g22) { case 4: this.gl.__context.uniform1f(index1,value1[0]); break; case 5: this.gl.__context.uniform2f(index1,value1[0],value1[1]); break; case 6: this.gl.__context.uniform3f(index1,value1[0],value1[1],value1[2]); break; case 7: this.gl.__context.uniform4f(index1,value1[0],value1[1],value1[2],value1[3]); break; case 12: var _g23 = 0; while(_g23 < 4) { var i = _g23++; this.__uniformMatrix2[i] = value1[i]; } var _this2 = this.gl; var v = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(this.__uniformMatrix2); _this2.__context.uniformMatrix2fv(index1,false,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v,16)); break; case 16: var _g24 = 0; while(_g24 < 9) { var i1 = _g24++; this.__uniformMatrix3[i1] = value1[i1]; } var _this3 = this.gl; var v1 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(this.__uniformMatrix3); _this3.__context.uniformMatrix3fv(index1,false,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v1,36)); break; case 20: var _g25 = 0; while(_g25 < 16) { var i2 = _g25++; this.__uniformMatrix4[i2] = value1[i2]; } var _this4 = this.gl; var v2 = lime_utils__$DataPointer_DataPointer_$Impl_$.fromArrayBufferView(this.__uniformMatrix4); _this4.__context.uniformMatrix4fv(index1,false,lime_utils__$DataPointer_DataPointer_$Impl_$.toFloat32Array(v2,64)); break; default: } } else { var key1 = parameter1.name; var _this5 = this.__isUniform; if(!(__map_reserved[key1] != null ? _this5.getReserved(key1) : _this5.h[key1])) { this.gl.__context.enableVertexAttribArray(parameter1.index); var _g26 = parameter1.type; switch(_g26) { case 12: this.gl.__context.enableVertexAttribArray(parameter1.index + 1); break; case 16: this.gl.__context.enableVertexAttribArray(parameter1.index + 1); this.gl.__context.enableVertexAttribArray(parameter1.index + 2); break; case 20: this.gl.__context.enableVertexAttribArray(parameter1.index + 1); this.gl.__context.enableVertexAttribArray(parameter1.index + 2); this.gl.__context.enableVertexAttribArray(parameter1.index + 3); break; default: } } } } var value2; var index2; var _g4 = 0; var _g13 = this.__paramInt; while(_g4 < _g13.length) { var parameter2 = _g13[_g4]; ++_g4; value2 = parameter2.value; index2 = parameter2.index; if(value2 != null) { var _g27 = parameter2.type; switch(_g27) { case 8: this.gl.__context.uniform1i(index2,value2[0]); break; case 9: this.gl.__context.uniform2i(index2,value2[0],value2[1]); break; case 10: this.gl.__context.uniform3i(index2,value2[0],value2[1],value2[2]); break; case 11: this.gl.__context.uniform4i(index2,value2[0],value2[1],value2[2],value2[3]); break; default: } } else { var key2 = parameter2.name; var _this6 = this.__isUniform; if(!(__map_reserved[key2] != null ? _this6.getReserved(key2) : _this6.h[key2])) { this.gl.__context.enableVertexAttribArray(parameter2.index); } } } } ,get_data: function() { if(this.__glSourceDirty || this.__data == null) { this.__init(); } return this.__data; } ,set_data: function(value) { return this.__data = value; } ,get_glFragmentSource: function() { return this.__glFragmentSource; } ,set_glFragmentSource: function(value) { if(value != this.__glFragmentSource) { this.__glSourceDirty = true; } return this.__glFragmentSource = value; } ,get_glVertexSource: function() { return this.__glVertexSource; } ,set_glVertexSource: function(value) { if(value != this.__glVertexSource) { this.__glSourceDirty = true; } return this.__glVertexSource = value; } ,__class__: openfl_display_Shader ,__properties__: {set_glVertexSource:"set_glVertexSource",get_glVertexSource:"get_glVertexSource",set_glFragmentSource:"set_glFragmentSource",get_glFragmentSource:"get_glFragmentSource",set_data:"set_data",get_data:"get_data"} }; var openfl_display_ShaderData = function(byteArray) { }; $hxClasses["openfl.display.ShaderData"] = openfl_display_ShaderData; openfl_display_ShaderData.__name__ = ["openfl","display","ShaderData"]; openfl_display_ShaderData.prototype = { aAlpha: null ,aPosition: null ,aTexCoord: null ,uImage0: null ,uMatrix: null ,__class__: openfl_display_ShaderData }; var openfl_display_ShaderInput = function() { this.channels = 0; this.height = 0; this.index = 0; this.width = 0; }; $hxClasses["openfl.display.ShaderInput"] = openfl_display_ShaderInput; openfl_display_ShaderInput.__name__ = ["openfl","display","ShaderInput"]; openfl_display_ShaderInput.prototype = { channels: null ,height: null ,index: null ,input: null ,name: null ,smoothing: null ,width: null ,__class__: openfl_display_ShaderInput }; var openfl_display_ShaderParameter = function() { this.index = 0; }; $hxClasses["openfl.display.ShaderParameter"] = openfl_display_ShaderParameter; openfl_display_ShaderParameter.__name__ = ["openfl","display","ShaderParameter"]; openfl_display_ShaderParameter.prototype = { index: null ,name: null ,type: null ,value: null ,__class__: openfl_display_ShaderParameter }; var openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$ = {}; $hxClasses["openfl.display._ShaderParameterType.ShaderParameterType_Impl_"] = openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.__name__ = ["openfl","display","_ShaderParameterType","ShaderParameterType_Impl_"]; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.fromString = function(value) { switch(value) { case "bool": return 0; case "bool2": return 1; case "bool3": return 1; case "bool4": return 1; case "float": return 4; case "float2": return 5; case "float3": return 6; case "float4": return 7; case "int": return 8; case "int2": return 9; case "int3": return 10; case "int4": return 11; case "matrix2x2": return 12; case "matrix2x3": return 13; case "matrix2x4": return 14; case "matrix3x2": return 15; case "matrix3x3": return 16; case "matrix3x4": return 17; case "matrix4x2": return 18; case "matrix4x3": return 19; case "matrix4x4": return 20; default: return null; } }; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.toString = function(value) { switch(value) { case 0: return "bool"; case 1: return "bool2"; case 2: return "bool3"; case 3: return "bool4"; case 4: return "float"; case 5: return "float2"; case 6: return "float3"; case 7: return "float4"; case 8: return "int"; case 9: return "int2"; case 10: return "int3"; case 11: return "int4"; case 12: return "matrix2x2"; case 13: return "matrix2x3"; case 14: return "matrix2x4"; case 15: return "matrix3x2"; case 16: return "matrix3x3"; case 17: return "matrix3x4"; case 18: return "matrix4x2"; case 19: return "matrix4x3"; case 20: return "matrix4x4"; default: return null; } }; var openfl_display__$ShaderPrecision_ShaderPrecision_$Impl_$ = {}; $hxClasses["openfl.display._ShaderPrecision.ShaderPrecision_Impl_"] = openfl_display__$ShaderPrecision_ShaderPrecision_$Impl_$; openfl_display__$ShaderPrecision_ShaderPrecision_$Impl_$.__name__ = ["openfl","display","_ShaderPrecision","ShaderPrecision_Impl_"]; openfl_display__$ShaderPrecision_ShaderPrecision_$Impl_$.fromString = function(value) { switch(value) { case "fast": return 0; case "full": return 1; default: return null; } }; openfl_display__$ShaderPrecision_ShaderPrecision_$Impl_$.toString = function(value) { switch(value) { case 0: return "fast"; case 1: return "full"; default: return null; } }; var openfl_display_Shape = function() { openfl_display_DisplayObject.call(this); }; $hxClasses["openfl.display.Shape"] = openfl_display_Shape; openfl_display_Shape.__name__ = ["openfl","display","Shape"]; openfl_display_Shape.__interfaces__ = [openfl_display_IShaderDrawable]; openfl_display_Shape.__super__ = openfl_display_DisplayObject; openfl_display_Shape.prototype = $extend(openfl_display_DisplayObject.prototype,{ shader: null ,get_graphics: function() { if(this.__graphics == null) { this.__graphics = new openfl_display_Graphics(this); } return this.__graphics; } ,__class__: openfl_display_Shape ,__properties__: $extend(openfl_display_DisplayObject.prototype.__properties__,{get_graphics:"get_graphics"}) }); var openfl_display_SimpleButton = function(upState,overState,downState,hitTestState) { openfl_display_InteractiveObject.call(this); this.enabled = true; this.trackAsMenu = false; this.useHandCursor = true; this.set_upState(upState != null ? upState : new openfl_display_DisplayObject()); this.set_overState(overState); this.set_downState(downState); this.set_hitTestState(hitTestState != null ? hitTestState : new openfl_display_DisplayObject()); this.addEventListener("mouseDown",$bind(this,this.__this_onMouseDown)); this.addEventListener("mouseOut",$bind(this,this.__this_onMouseOut)); this.addEventListener("mouseOver",$bind(this,this.__this_onMouseOver)); this.addEventListener("mouseUp",$bind(this,this.__this_onMouseUp)); this.set___currentState(this.upState); if(openfl_display_SimpleButton.__initSymbol != null) { var swf = openfl_display_SimpleButton.__initSWF; this.__symbol = openfl_display_SimpleButton.__initSymbol; openfl_display_SimpleButton.__initSWF = null; openfl_display_SimpleButton.__initSymbol = null; this.__fromSymbol(swf,this.__symbol); } }; $hxClasses["openfl.display.SimpleButton"] = openfl_display_SimpleButton; openfl_display_SimpleButton.__name__ = ["openfl","display","SimpleButton"]; openfl_display_SimpleButton.__super__ = openfl_display_InteractiveObject; openfl_display_SimpleButton.prototype = $extend(openfl_display_InteractiveObject.prototype,{ downState: null ,enabled: null ,hitTestState: null ,overState: null ,trackAsMenu: null ,upState: null ,useHandCursor: null ,__currentState: null ,__ignoreEvent: null ,__previousStates: null ,__soundTransform: null ,__symbol: null ,__fromSymbol: function(swf,symbol) { this.__symbol = symbol; if(symbol.downState != null) { this.set_downState(symbol.downState.__createObject(swf)); } if(symbol.hitState != null) { this.set_hitTestState(symbol.hitState.__createObject(swf)); } if(symbol.overState != null) { this.set_overState(symbol.overState.__createObject(swf)); } if(symbol.upState != null) { this.set_upState(symbol.upState.__createObject(swf)); } } ,__getBounds: function(rect,matrix) { openfl_display_InteractiveObject.prototype.__getBounds.call(this,rect,matrix); if(matrix != null) { this.__updateTransforms(matrix); this.__updateChildren(true); } this.__currentState.__getBounds(rect,this.__currentState.__worldTransform); if(matrix != null) { this.__updateTransforms(); this.__updateChildren(true); } } ,__getRenderBounds: function(rect,matrix) { if(this.__scrollRect != null) { openfl_display_InteractiveObject.prototype.__getRenderBounds.call(this,rect,matrix); return; } else { openfl_display_InteractiveObject.prototype.__getBounds.call(this,rect,matrix); } if(matrix != null) { this.__updateTransforms(matrix); this.__updateChildren(true); } this.__currentState.__getRenderBounds(rect,this.__currentState.__worldTransform); if(matrix != null) { this.__updateTransforms(); this.__updateChildren(true); } } ,__getCursor: function() { if(this.useHandCursor && !this.__ignoreEvent) { return lime_ui_MouseCursor.POINTER; } else { return null; } } ,__hitTest: function(x,y,shapeFlag,stack,interactiveOnly,hitObject) { var hitTest = false; if(this.hitTestState != null) { if(this.hitTestState.__hitTest(x,y,shapeFlag,stack,interactiveOnly,hitObject)) { if(stack != null) { if(stack.length == 0) { stack[0] = hitObject; } else { stack[stack.length - 1] = hitObject; } } hitTest = true; } } else if(this.__currentState != null) { if(!hitObject.get_visible() || this.__isMask || interactiveOnly && !this.mouseEnabled) { return false; } if(this.get_mask() != null && !this.get_mask().__hitTestMask(x,y)) { return false; } if(this.__currentState.__hitTest(x,y,shapeFlag,stack,interactiveOnly,hitObject)) { hitTest = interactiveOnly; } } if(stack != null) { while(stack.length > 1 && stack[stack.length - 1] == stack[stack.length - 2]) stack.pop(); } return hitTest; } ,__hitTestMask: function(x,y) { var hitTest = false; if(this.__currentState.__hitTestMask(x,y)) { hitTest = true; } return hitTest; } ,__renderCairo: function(renderSession) { if(!this.__renderable || this.__worldAlpha <= 0 || this.__currentState == null) { return; } renderSession.maskManager.pushObject(this); this.__currentState.__renderCairo(renderSession); renderSession.maskManager.popObject(this); } ,__renderCairoMask: function(renderSession) { this.__currentState.__renderCairoMask(renderSession); } ,__renderCanvas: function(renderSession) { if(!this.__renderable || this.__worldAlpha <= 0 || this.__currentState == null) { return; } renderSession.maskManager.pushObject(this); this.__currentState.__renderCanvas(renderSession); renderSession.maskManager.popObject(this); } ,__renderCanvasMask: function(renderSession) { var bounds = openfl_geom_Rectangle.__pool.get(); this.__getLocalBounds(bounds); renderSession.context.rect(0,0,bounds.width,bounds.height); openfl_geom_Rectangle.__pool.release(bounds); this.__currentState.__renderCanvasMask(renderSession); } ,__renderDOM: function(renderSession) { renderSession.maskManager.pushObject(this); var _g = 0; var _g1 = this.__previousStates; while(_g < _g1.data.get_length()) { var previousState = _g1.data.get(_g); ++_g; previousState.__renderDOM(renderSession); } this.__previousStates.data.set_length(0); if(this.__currentState != null) { if(this.__currentState.stage != this.stage) { this.__currentState.__setStageReference(this.stage); } this.__currentState.__renderDOM(renderSession); } renderSession.maskManager.popObject(this); } ,__renderGL: function(renderSession) { if(!this.__renderable || this.__worldAlpha <= 0 || this.__currentState == null) { return; } renderSession.maskManager.pushObject(this); this.__currentState.__renderGL(renderSession); renderSession.maskManager.popObject(this); } ,__setStageReference: function(stage) { openfl_display_InteractiveObject.prototype.__setStageReference.call(this,stage); if(this.__currentState != null) { this.__currentState.__setStageReference(stage); } if(this.hitTestState != null && this.hitTestState != this.__currentState) { this.hitTestState.__setStageReference(stage); } } ,__setTransformDirty: function() { openfl_display_InteractiveObject.prototype.__setTransformDirty.call(this); if(this.__currentState != null) { this.__currentState.__setTransformDirty(); } if(this.hitTestState != null && this.hitTestState != this.__currentState) { this.hitTestState.__setTransformDirty(); } } ,__update: function(transformOnly,updateChildren,maskGraphics) { openfl_display_InteractiveObject.prototype.__update.call(this,transformOnly,updateChildren,maskGraphics); if(updateChildren) { if(this.__currentState != null) { this.__currentState.__update(transformOnly,true,maskGraphics); } if(this.hitTestState != null && this.hitTestState != this.__currentState) { this.hitTestState.__update(transformOnly,true,maskGraphics); } } } ,__updateChildren: function(transformOnly) { openfl_display_InteractiveObject.prototype.__updateChildren.call(this,transformOnly); if(this.__currentState != null) { this.__currentState.__updateChildren(transformOnly); } if(this.hitTestState != null && this.hitTestState != this.__currentState) { this.hitTestState.__updateChildren(transformOnly); } } ,__updateTransforms: function(overrideTransform) { openfl_display_InteractiveObject.prototype.__updateTransforms.call(this,overrideTransform); if(this.__currentState != null) { this.__currentState.__updateTransforms(); } if(this.hitTestState != null && this.hitTestState != this.__currentState) { this.hitTestState.__updateTransforms(); } } ,set_downState: function(downState) { if(this.downState != null && this.__currentState == this.downState) { this.set___currentState(downState); } return this.downState = downState; } ,set_hitTestState: function(hitTestState) { if(this.hitTestState != null && this.hitTestState != hitTestState) { if(this.hitTestState != this.downState && this.hitTestState != this.upState && this.hitTestState != this.overState) { this.hitTestState.__renderParent = null; } } if(hitTestState != null) { hitTestState.__renderParent = this; if(!hitTestState.__renderDirty) { hitTestState.__renderDirty = true; hitTestState.__setParentRenderDirty(); } } return this.hitTestState = hitTestState; } ,set_overState: function(overState) { if(this.overState != null && this.__currentState == this.overState) { this.set___currentState(overState); } return this.overState = overState; } ,get_soundTransform: function() { if(this.__soundTransform == null) { this.__soundTransform = new openfl_media_SoundTransform(); } return new openfl_media_SoundTransform(this.__soundTransform.volume,this.__soundTransform.pan); } ,set_soundTransform: function(value) { this.__soundTransform = new openfl_media_SoundTransform(value.volume,value.pan); return value; } ,set_upState: function(upState) { if(this.upState != null && this.__currentState == this.upState) { this.set___currentState(upState); } return this.upState = upState; } ,set___currentState: function(value) { if(this.__currentState != null && this.__currentState != this.hitTestState) { this.__currentState.__renderParent = null; } if(value != null && value.parent != null) { value.parent.removeChild(value); } if(value != this.__currentState) { if(value != null) { value.__renderParent = this; if(!value.__renderDirty) { value.__renderDirty = true; value.__setParentRenderDirty(); } } if(!this.__renderDirty) { this.__renderDirty = true; this.__setParentRenderDirty(); } } this.__currentState = value; return value; } ,__this_onMouseDown: function(event) { this.set___currentState(this.downState); } ,__this_onMouseOut: function(event) { this.__ignoreEvent = false; if(this.upState != this.__currentState) { this.set___currentState(this.upState); } } ,__this_onMouseOver: function(event) { if(event.buttonDown) { this.__ignoreEvent = true; } if(this.overState != this.__currentState && this.overState != null && !this.__ignoreEvent) { this.set___currentState(this.overState); } } ,__this_onMouseUp: function(event) { this.__ignoreEvent = false; if(this.overState != null) { this.set___currentState(this.overState); } else { this.set___currentState(this.upState); } } ,__class__: openfl_display_SimpleButton ,__properties__: $extend(openfl_display_InteractiveObject.prototype.__properties__,{set___currentState:"set___currentState",set_upState:"set_upState",set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform",set_overState:"set_overState",set_hitTestState:"set_hitTestState",set_downState:"set_downState"}) }); var openfl_display__$SpreadMethod_SpreadMethod_$Impl_$ = {}; $hxClasses["openfl.display._SpreadMethod.SpreadMethod_Impl_"] = openfl_display__$SpreadMethod_SpreadMethod_$Impl_$; openfl_display__$SpreadMethod_SpreadMethod_$Impl_$.__name__ = ["openfl","display","_SpreadMethod","SpreadMethod_Impl_"]; openfl_display__$SpreadMethod_SpreadMethod_$Impl_$.fromString = function(value) { switch(value) { case "pad": return 0; case "reflect": return 1; case "repeat": return 2; default: return null; } }; openfl_display__$SpreadMethod_SpreadMethod_$Impl_$.toString = function(value) { switch(value) { case 0: return "pad"; case 1: return "reflect"; case 2: return "repeat"; default: return null; } }; var openfl_display_Stage = function(window,color) { openfl_display_DisplayObjectContainer.call(this); this.application = window.application; this.window = window; if(color == null) { this.__transparent = true; this.set_color(0); } else { this.set_color(color); } this.set_name(null); this.__contentsScaleFactor = window.__scale; this.__deltaTime = 0; this.__displayState = 2; this.__mouseX = 0; this.__mouseY = 0; this.__lastClickTime = 0; this.__logicalWidth = 0; this.__logicalHeight = 0; this.__displayMatrix = new openfl_geom_Matrix(); this.__renderDirty = true; this.stage3Ds = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); var this1 = this.stage3Ds; var x = new openfl_display_Stage3D(); this1.data.push(x); this.__resize(); this.stage = this; this.align = 6; this.allowsFullScreen = false; this.allowsFullScreenInteractive = false; this.quality = 1; this.scaleMode = 2; this.showDefaultContextMenu = true; this.softKeyboardRect = new openfl_geom_Rectangle(); this.stageFocusRect = true; this.__macKeyboard = /AppleWebKit/.test (navigator.userAgent) && /Mobile\/\w+/.test (navigator.userAgent) || /Mac/.test (navigator.platform); this.__clearBeforeRender = true; this.__stack = []; this.__rollOutStack = []; this.__touchData = new haxe_ds_IntMap(); if(openfl_Lib.current.stage == null) { this.stage.addChild(openfl_Lib.current); } }; $hxClasses["openfl.display.Stage"] = openfl_display_Stage; openfl_display_Stage.__name__ = ["openfl","display","Stage"]; openfl_display_Stage.__interfaces__ = [lime_app_IModule]; openfl_display_Stage.__super__ = openfl_display_DisplayObjectContainer; openfl_display_Stage.prototype = $extend(openfl_display_DisplayObjectContainer.prototype,{ align: null ,allowsFullScreen: null ,allowsFullScreenInteractive: null ,application: null ,quality: null ,scaleMode: null ,showDefaultContextMenu: null ,softKeyboardRect: null ,stage3Ds: null ,stageFocusRect: null ,stageHeight: null ,stageWidth: null ,window: null ,__cacheFocus: null ,__clearBeforeRender: null ,__color: null ,__colorSplit: null ,__colorString: null ,__contentsScaleFactor: null ,__deltaTime: null ,__dirty: null ,__displayMatrix: null ,__displayState: null ,__dragBounds: null ,__dragObject: null ,__dragOffsetX: null ,__dragOffsetY: null ,__focus: null ,__fullscreen: null ,__invalidated: null ,__lastClickTime: null ,__logicalWidth: null ,__logicalHeight: null ,__macKeyboard: null ,__mouseDownLeft: null ,__mouseDownMiddle: null ,__mouseDownRight: null ,__mouseOverTarget: null ,__mouseX: null ,__mouseY: null ,__primaryTouch: null ,__renderer: null ,__rendering: null ,__rollOutStack: null ,__stack: null ,__transparent: null ,__wasDirty: null ,__touchData: null ,addRenderer: function(renderer) { var f = $bind(this,this.render); var a1 = renderer; var tmp = function() { f(a1); }; renderer.onRender.add(tmp); var f1 = $bind(this,this.onRenderContextLost); var a11 = renderer; var tmp1 = function() { f1(a11); }; renderer.onContextLost.add(tmp1); var f2 = $bind(this,this.onRenderContextRestored); var a12 = renderer; var tmp2 = function(a2) { f2(a12,a2); }; renderer.onContextRestored.add(tmp2); } ,addWindow: function(window) { if(this.window != window) { return; } var f = $bind(this,this.onWindowActivate); var a1 = window; var tmp = function() { f(a1); }; window.onActivate.add(tmp); var f1 = $bind(this,this.onWindowClose); var a11 = window; var tmp1 = function() { f1(a11); }; window.onClose.add(tmp1,false,-9000); var f2 = $bind(this,this.onWindowCreate); var a12 = window; var tmp2 = function() { f2(a12); }; window.onCreate.add(tmp2); var f3 = $bind(this,this.onWindowDeactivate); var a13 = window; var tmp3 = function() { f3(a13); }; window.onDeactivate.add(tmp3); var f4 = $bind(this,this.onWindowDropFile); var a14 = window; var tmp4 = function(a2) { f4(a14,a2); }; window.onDropFile.add(tmp4); var f5 = $bind(this,this.onWindowEnter); var a15 = window; var tmp5 = function() { f5(a15); }; window.onEnter.add(tmp5); var f6 = $bind(this,this.onWindowFocusIn); var a16 = window; var tmp6 = function() { f6(a16); }; window.onFocusIn.add(tmp6); var f7 = $bind(this,this.onWindowFocusOut); var a17 = window; var tmp7 = function() { f7(a17); }; window.onFocusOut.add(tmp7); var f8 = $bind(this,this.onWindowFullscreen); var a18 = window; var tmp8 = function() { f8(a18); }; window.onFullscreen.add(tmp8); var f9 = $bind(this,this.onKeyDown); var a19 = window; var tmp9 = function(a21,a3) { f9(a19,a21,a3); }; window.onKeyDown.add(tmp9); var f10 = $bind(this,this.onKeyUp); var a110 = window; var tmp10 = function(a22,a31) { f10(a110,a22,a31); }; window.onKeyUp.add(tmp10); var f11 = $bind(this,this.onWindowLeave); var a111 = window; var tmp11 = function() { f11(a111); }; window.onLeave.add(tmp11); var f12 = $bind(this,this.onWindowMinimize); var a112 = window; var tmp12 = function() { f12(a112); }; window.onMinimize.add(tmp12); var f13 = $bind(this,this.onMouseDown); var a113 = window; var tmp13 = function(x,y,a23) { f13(a113,x,y,a23); }; window.onMouseDown.add(tmp13); var f14 = $bind(this,this.onMouseMove); var a114 = window; var tmp14 = function(x1,y1) { f14(a114,x1,y1); }; window.onMouseMove.add(tmp14); var f15 = $bind(this,this.onMouseMoveRelative); var a115 = window; var tmp15 = function(x2,y2) { f15(a115,x2,y2); }; window.onMouseMoveRelative.add(tmp15); var f16 = $bind(this,this.onMouseUp); var a116 = window; var tmp16 = function(x3,y3,a24) { f16(a116,x3,y3,a24); }; window.onMouseUp.add(tmp16); var f17 = $bind(this,this.onMouseWheel); var a117 = window; var tmp17 = function(a25,a32) { f17(a117,a25,a32); }; window.onMouseWheel.add(tmp17); var f18 = $bind(this,this.onWindowMove); var a118 = window; var tmp18 = function(x4,y4) { f18(a118,x4,y4); }; window.onMove.add(tmp18); var f19 = $bind(this,this.onWindowResize); var a119 = window; var tmp19 = function(a26,a33) { f19(a119,a26,a33); }; window.onResize.add(tmp19); var f20 = $bind(this,this.onWindowRestore); var a120 = window; var tmp20 = function() { f20(a120); }; window.onRestore.add(tmp20); var f21 = $bind(this,this.onTextEdit); var a121 = window; var tmp21 = function(a27,a34,a4) { f21(a121,a27,a34,a4); }; window.onTextEdit.add(tmp21); var f22 = $bind(this,this.onTextInput); var a122 = window; var tmp22 = function(a28) { f22(a122,a28); }; window.onTextInput.add(tmp22); if(window.id > -1) { this.onWindowCreate(window); } } ,registerModule: function(application) { application.onExit.add($bind(this,this.onModuleExit),false,0); application.onUpdate.add($bind(this,this.update)); var gamepad = lime_ui_Gamepad.devices.iterator(); while(gamepad.hasNext()) { var gamepad1 = gamepad.next(); this.__onGamepadConnect(gamepad1); } lime_ui_Gamepad.onConnect.add($bind(this,this.__onGamepadConnect)); lime_ui_Touch.onStart.add($bind(this,this.onTouchStart)); lime_ui_Touch.onMove.add($bind(this,this.onTouchMove)); lime_ui_Touch.onEnd.add($bind(this,this.onTouchEnd)); } ,removeRenderer: function(renderer) { } ,removeWindow: function(window) { } ,setPreloader: function(preloader) { } ,unregisterModule: function(application) { application.onExit.remove($bind(this,this.onModuleExit)); application.onUpdate.remove($bind(this,this.update)); lime_ui_Gamepad.onConnect.remove($bind(this,this.__onGamepadConnect)); lime_ui_Touch.onStart.remove($bind(this,this.onTouchStart)); lime_ui_Touch.onMove.remove($bind(this,this.onTouchMove)); lime_ui_Touch.onEnd.remove($bind(this,this.onTouchEnd)); } ,invalidate: function() { this.__invalidated = true; } ,localToGlobal: function(pos) { return pos.clone(); } ,onGamepadAxisMove: function(gamepad,axis,value) { try { openfl_ui_GameInput.__onGamepadAxisMove(gamepad,axis,value); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onGamepadButtonDown: function(gamepad,button) { try { openfl_ui_GameInput.__onGamepadButtonDown(gamepad,button); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onGamepadButtonUp: function(gamepad,button) { try { openfl_ui_GameInput.__onGamepadButtonUp(gamepad,button); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onGamepadConnect: function(gamepad) { try { openfl_ui_GameInput.__onGamepadConnect(gamepad); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onGamepadDisconnect: function(gamepad) { try { openfl_ui_GameInput.__onGamepadDisconnect(gamepad); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onJoystickAxisMove: function(joystick,axis,value) { } ,onJoystickButtonDown: function(joystick,button) { } ,onJoystickButtonUp: function(joystick,button) { } ,onJoystickConnect: function(joystick) { } ,onJoystickDisconnect: function(joystick) { } ,onJoystickHatMove: function(joystick,hat,position) { } ,onJoystickTrackballMove: function(joystick,trackball,value) { } ,onKeyDown: function(window,keyCode,modifier) { if(this.window == null || this.window != window) { return; } try { this.__onKey("keyDown",keyCode,modifier); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onKeyUp: function(window,keyCode,modifier) { if(this.window == null || this.window != window) { return; } try { this.__onKey("keyUp",keyCode,modifier); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onModuleExit: function(code) { if(this.window != null) { try { this.__broadcastEvent(new openfl_events_Event("deactivate")); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } } ,onMouseDown: function(window,x,y,button) { if(this.window == null || this.window != window) { return; } try { var type; switch(button) { case 1: type = "middleMouseDown"; break; case 2: type = "rightMouseDown"; break; default: type = "mouseDown"; } this.__onMouse(type,x * window.__scale | 0,y * window.__scale | 0,button); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onMouseMove: function(window,x,y) { if(this.window == null || this.window != window) { return; } try { this.__onMouse("mouseMove",x * window.__scale | 0,y * window.__scale | 0,0); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onMouseMoveRelative: function(window,x,y) { } ,onMouseUp: function(window,x,y,button) { if(this.window == null || this.window != window) { return; } try { var type; switch(button) { case 1: type = "middleMouseUp"; break; case 2: type = "rightMouseUp"; break; default: type = "mouseUp"; } this.__onMouse(type,x * window.__scale | 0,y * window.__scale | 0,button); if(!this.showDefaultContextMenu && button == 2) { window.onMouseUp.cancel(); } } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onMouseWheel: function(window,deltaX,deltaY) { if(this.window == null || this.window != window) { return; } try { this.__onMouseWheel(deltaX * window.__scale | 0,deltaY * window.__scale | 0); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onPreloadComplete: function() { } ,onPreloadProgress: function(loaded,total) { } ,onRenderContextLost: function(renderer) { this.__renderer = null; } ,onRenderContextRestored: function(renderer,context) { this.__createRenderer(); } ,onTextEdit: function(window,text,start,length) { } ,onTextInput: function(window,text) { if(this.window == null || this.window != window) { return; } try { var stack = []; if(this.__focus == null) { this.__getInteractive(stack); } else { this.__focus.__getInteractive(stack); } var event = new openfl_events_TextEvent("textInput",true,false,text); if(stack.length > 0) { stack.reverse(); this.__dispatchStack(event,stack); } else { this.__dispatchEvent(event); } } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onTouchMove: function(touch) { try { this.__onTouch("touchMove",touch); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onTouchEnd: function(touch) { try { if(this.__primaryTouch == touch) { this.__primaryTouch = null; } this.__onTouch("touchEnd",touch); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onTouchStart: function(touch) { try { if(this.__primaryTouch == null) { this.__primaryTouch = touch; } this.__onTouch("touchBegin",touch); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowActivate: function(window) { if(this.window == null || this.window != window) { return; } } ,onWindowClose: function(window) { if(this.window == window) { this.window = null; } try { this.__primaryTouch = null; this.__broadcastEvent(new openfl_events_Event("deactivate")); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowCreate: function(window) { if(this.window == null || this.window != window) { return; } try { if(window.renderer != null) { this.__createRenderer(); } } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowDeactivate: function(window) { if(this.window == null || this.window != window) { return; } } ,onWindowDropFile: function(window,file) { } ,onWindowEnter: function(window) { } ,onWindowFocusIn: function(window) { if(this.window == null || this.window != window) { return; } try { this.__renderDirty = true; this.__broadcastEvent(new openfl_events_Event("activate")); this.set_focus(this.__cacheFocus); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowFocusOut: function(window) { if(this.window == null || this.window != window) { return; } try { this.__primaryTouch = null; this.__broadcastEvent(new openfl_events_Event("deactivate")); var currentFocus = this.get_focus(); this.set_focus(null); this.__cacheFocus = currentFocus; } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowFullscreen: function(window) { if(this.window == null || this.window != window) { return; } try { this.__resize(); if(this.__displayState == 2) { this.__displayState = 1; this.__dispatchEvent(new openfl_events_FullScreenEvent("fullScreen",false,false,false,true)); } } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowLeave: function(window) { if(this.window == null || this.window != window) { return; } try { this.__dispatchEvent(new openfl_events_Event("mouseLeave")); } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowMinimize: function(window) { if(this.window == null || this.window != window) { return; } } ,onWindowMove: function(window,x,y) { } ,onWindowResize: function(window,width,height) { if(this.window == null || this.window != window) { return; } try { this.__renderDirty = true; this.__resize(); if(this.__displayState != 2 && !window.__fullscreen) { this.__displayState = 2; this.__dispatchEvent(new openfl_events_FullScreenEvent("fullScreen",false,false,true,true)); } } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,onWindowRestore: function(window) { if(this.window == null || this.window != window) { return; } } ,render: function(renderer) { if(renderer.window == null || renderer.window != this.window) { return; } try { if(this.__rendering) { return; } this.__rendering = true; if(this.__renderer != null && (openfl_display_Stage3D.__active || this.stage3Ds.data.get(0).__contextRequested)) { this.__renderer.clear(); this.__renderer.renderStage3D(); this.__renderDirty = true; } this.__broadcastEvent(new openfl_events_Event("enterFrame")); this.__broadcastEvent(new openfl_events_Event("frameConstructed")); this.__broadcastEvent(new openfl_events_Event("exitFrame")); if(this.__invalidated) { this.__invalidated = false; this.__broadcastEvent(new openfl_events_Event("render")); } this.__renderable = true; this.__enterFrame(this.__deltaTime); this.__deltaTime = 0; this.__update(false,true); if(this.__renderer != null && this.__renderDirty) { if(!openfl_display_Stage3D.__active) { this.__renderer.clear(); } if(renderer.type == lime_graphics_RendererType.CAIRO) { var _g = renderer.context; if(_g[1] == 4) { var cairo = _g[2]; } } this.__renderer.render(); } else { renderer.onRender.cancel(); } this.__rendering = false; } catch( e ) { haxe_CallStack.lastException = e; if (e instanceof js__$Boot_HaxeError) e = e.val; this.__handleError(e); } } ,update: function(deltaTime) { this.__deltaTime = deltaTime; } ,__broadcastEvent: function(event) { var key = event.type; var _this = openfl_display_DisplayObject.__broadcastEvents; if(__map_reserved[key] != null ? _this.existsReserved(key) : _this.h.hasOwnProperty(key)) { var key1 = event.type; var _this1 = openfl_display_DisplayObject.__broadcastEvents; var dispatchers = __map_reserved[key1] != null ? _this1.getReserved(key1) : _this1.h[key1]; var _g = 0; while(_g < dispatchers.length) { var dispatcher = dispatchers[_g]; ++_g; dispatcher.__dispatch(event); } } } ,__createRenderer: function() { var _g = this.window.renderer.context; switch(_g[1]) { case 0: var gl = _g[2]; this.__renderer = new openfl__$internal_renderer_opengl_GLRenderer(this,gl); break; case 1: var context = _g[2]; this.__renderer = new openfl__$internal_renderer_canvas_CanvasRenderer(this,context); break; case 2: var element = _g[2]; break; case 4: var cairo = _g[2]; break; case 5: var ctx = _g[2]; break; default: } } ,__drag: function(mouse) { var parent = this.__dragObject.parent; if(parent != null) { var _this = parent.__getWorldTransform(); var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { mouse.x = -_this.tx; mouse.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - mouse.y) + _this.d * (mouse.x - _this.tx)); mouse.y = 1.0 / norm * (_this.a * (mouse.y - _this.ty) + _this.b * (_this.tx - mouse.x)); mouse.x = px; } } var x = mouse.x + this.__dragOffsetX; var y = mouse.y + this.__dragOffsetY; if(this.__dragBounds != null) { if(x < this.__dragBounds.x) { x = this.__dragBounds.x; } else if(x > this.__dragBounds.get_right()) { x = this.__dragBounds.get_right(); } if(y < this.__dragBounds.y) { y = this.__dragBounds.y; } else if(y > this.__dragBounds.get_bottom()) { y = this.__dragBounds.get_bottom(); } } this.__dragObject.set_x(x); this.__dragObject.set_y(y); } ,__getInteractive: function(stack) { if(stack != null) { stack.push(this); } return true; } ,__globalToLocal: function(global,local) { if(global != local) { local.copyFrom(global); } return local; } ,__handleError: function(e) { var event = new openfl_events_UncaughtErrorEvent("uncaughtError",true,true,e); openfl_Lib.current.__loaderInfo.uncaughtErrorEvents.dispatchEvent(event); if(!event.__preventDefault) { var exc = haxe_CallStack.lastException; if(exc != null && exc.stack != null && exc.stack != "") { console.log(exc.stack); e.stack = exc.stack; } else { var msg = haxe_CallStack.toString(haxe_CallStack.callStack()); console.log(msg); } throw e; } } ,__onKey: function(type,keyCode,modifier) { openfl_events_MouseEvent.__altKey = lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_altKey(modifier); openfl_events_MouseEvent.__commandKey = lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier); openfl_events_MouseEvent.__ctrlKey = lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey(modifier); openfl_events_MouseEvent.__shiftKey = lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier); var stack = []; if(this.__focus == null) { this.__getInteractive(stack); } else { this.__focus.__getInteractive(stack); } if(stack.length > 0) { var keyLocation; switch(keyCode) { case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044: keyLocation = 3; break; case 1073742048:case 1073742049:case 1073742050:case 1073742051: keyLocation = 1; break; case 1073742052:case 1073742053:case 1073742054:case 1073742055: keyLocation = 2; break; default: keyLocation = 0; } var keyCode1; switch(keyCode) { case 8: keyCode1 = 8; break; case 9: keyCode1 = 9; break; case 13: keyCode1 = 13; break; case 27: keyCode1 = 27; break; case 32: keyCode1 = 32; break; case 33: keyCode1 = 49; break; case 34: keyCode1 = 222; break; case 35: keyCode1 = 51; break; case 36: keyCode1 = 52; break; case 37: keyCode1 = 53; break; case 38: keyCode1 = 55; break; case 39: keyCode1 = 222; break; case 40: keyCode1 = 57; break; case 41: keyCode1 = 48; break; case 42: keyCode1 = 56; break; case 44: keyCode1 = 188; break; case 45: keyCode1 = 189; break; case 46: keyCode1 = 190; break; case 47: keyCode1 = 191; break; case 48: keyCode1 = 48; break; case 49: keyCode1 = 49; break; case 50: keyCode1 = 50; break; case 51: keyCode1 = 51; break; case 52: keyCode1 = 52; break; case 53: keyCode1 = 53; break; case 54: keyCode1 = 54; break; case 55: keyCode1 = 55; break; case 56: keyCode1 = 56; break; case 57: keyCode1 = 57; break; case 58: keyCode1 = 186; break; case 59: keyCode1 = 186; break; case 60: keyCode1 = 60; break; case 61: keyCode1 = 187; break; case 62: keyCode1 = 190; break; case 63: keyCode1 = 191; break; case 64: keyCode1 = 50; break; case 91: keyCode1 = 219; break; case 92: keyCode1 = 220; break; case 93: keyCode1 = 221; break; case 94: keyCode1 = 54; break; case 95: keyCode1 = 189; break; case 96: keyCode1 = 192; break; case 97: keyCode1 = 65; break; case 98: keyCode1 = 66; break; case 99: keyCode1 = 67; break; case 100: keyCode1 = 68; break; case 101: keyCode1 = 69; break; case 102: keyCode1 = 70; break; case 103: keyCode1 = 71; break; case 104: keyCode1 = 72; break; case 105: keyCode1 = 73; break; case 106: keyCode1 = 74; break; case 107: keyCode1 = 75; break; case 108: keyCode1 = 76; break; case 109: keyCode1 = 77; break; case 110: keyCode1 = 78; break; case 111: keyCode1 = 79; break; case 112: keyCode1 = 80; break; case 113: keyCode1 = 81; break; case 114: keyCode1 = 82; break; case 115: keyCode1 = 83; break; case 116: keyCode1 = 84; break; case 117: keyCode1 = 85; break; case 118: keyCode1 = 86; break; case 119: keyCode1 = 87; break; case 120: keyCode1 = 88; break; case 121: keyCode1 = 89; break; case 122: keyCode1 = 90; break; case 127: keyCode1 = 46; break; case 1073741881: keyCode1 = 20; break; case 1073741882: keyCode1 = 112; break; case 1073741883: keyCode1 = 113; break; case 1073741884: keyCode1 = 114; break; case 1073741885: keyCode1 = 115; break; case 1073741886: keyCode1 = 116; break; case 1073741887: keyCode1 = 117; break; case 1073741888: keyCode1 = 118; break; case 1073741889: keyCode1 = 119; break; case 1073741890: keyCode1 = 120; break; case 1073741891: keyCode1 = 121; break; case 1073741892: keyCode1 = 122; break; case 1073741893: keyCode1 = 123; break; case 1073741894: keyCode1 = 301; break; case 1073741895: keyCode1 = 145; break; case 1073741896: keyCode1 = 19; break; case 1073741897: keyCode1 = 45; break; case 1073741898: keyCode1 = 36; break; case 1073741899: keyCode1 = 33; break; case 1073741901: keyCode1 = 35; break; case 1073741902: keyCode1 = 34; break; case 1073741903: keyCode1 = 39; break; case 1073741904: keyCode1 = 37; break; case 1073741905: keyCode1 = 40; break; case 1073741906: keyCode1 = 38; break; case 1073741907: keyCode1 = 144; break; case 1073741908: keyCode1 = 111; break; case 1073741909: keyCode1 = 106; break; case 1073741910: keyCode1 = 109; break; case 1073741911: keyCode1 = 107; break; case 1073741912: keyCode1 = 108; break; case 1073741913: keyCode1 = 97; break; case 1073741914: keyCode1 = 98; break; case 1073741915: keyCode1 = 99; break; case 1073741916: keyCode1 = 100; break; case 1073741917: keyCode1 = 101; break; case 1073741918: keyCode1 = 102; break; case 1073741919: keyCode1 = 103; break; case 1073741920: keyCode1 = 104; break; case 1073741921: keyCode1 = 105; break; case 1073741922: keyCode1 = 96; break; case 1073741923: keyCode1 = 110; break; case 1073741925: keyCode1 = 302; break; case 1073741928: keyCode1 = 124; break; case 1073741929: keyCode1 = 125; break; case 1073741930: keyCode1 = 126; break; case 1073741982: keyCode1 = 13; break; case 1073742044: keyCode1 = 110; break; case 1073742048: keyCode1 = 17; break; case 1073742049: keyCode1 = 16; break; case 1073742050: keyCode1 = 18; break; case 1073742051: keyCode1 = 15; break; case 1073742052: keyCode1 = 17; break; case 1073742053: keyCode1 = 16; break; case 1073742054: keyCode1 = 18; break; case 1073742055: keyCode1 = 15; break; default: keyCode1 = keyCode; } var charCode = openfl_ui_Keyboard.__getCharCode(keyCode1,lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier)); var event = new openfl_events_KeyboardEvent(type,true,true,charCode,keyCode1,keyLocation,this.__macKeyboard ? lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey(modifier) || lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier) : lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey(modifier),lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_altKey(modifier),lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_shiftKey(modifier),lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_ctrlKey(modifier),lime_ui__$KeyModifier_KeyModifier_$Impl_$.get_metaKey(modifier)); stack.reverse(); this.__dispatchStack(event,stack); if(event.__preventDefault) { if(type == "keyDown") { this.window.onKeyDown.cancel(); } else { this.window.onKeyUp.cancel(); } } } } ,__onGamepadConnect: function(gamepad) { this.onGamepadConnect(gamepad); var f = $bind(this,this.onGamepadAxisMove); var a1 = gamepad; var tmp = function(a2,a3) { f(a1,a2,a3); }; gamepad.onAxisMove.add(tmp); var f1 = $bind(this,this.onGamepadButtonDown); var a11 = gamepad; var tmp1 = function(a21) { f1(a11,a21); }; gamepad.onButtonDown.add(tmp1); var f2 = $bind(this,this.onGamepadButtonUp); var a12 = gamepad; var tmp2 = function(a22) { f2(a12,a22); }; gamepad.onButtonUp.add(tmp2); var f3 = $bind(this,this.onGamepadDisconnect); var a13 = gamepad; var tmp3 = function() { f3(a13); }; gamepad.onDisconnect.add(tmp3); } ,__onMouse: function(type,x,y,button) { if(button > 2) { return; } var targetPoint = openfl_geom_Point.__pool.get(); targetPoint.setTo(x,y); var _this = this.__displayMatrix; var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { targetPoint.x = -_this.tx; targetPoint.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - targetPoint.y) + _this.d * (targetPoint.x - _this.tx)); targetPoint.y = 1.0 / norm * (_this.a * (targetPoint.y - _this.ty) + _this.b * (_this.tx - targetPoint.x)); targetPoint.x = px; } this.__mouseX = targetPoint.x; this.__mouseY = targetPoint.y; var stack = []; var target = null; if(this.__hitTest(this.__mouseX,this.__mouseY,true,stack,true,this)) { target = stack[stack.length - 1]; } else { target = this; stack = [this]; } if(target == null) { target = this; } var clickType = null; switch(type) { case "middleMouseDown": this.__mouseDownMiddle = target; break; case "middleMouseUp": if(this.__mouseDownMiddle == target) { clickType = "middleClick"; } this.__mouseDownMiddle = null; break; case "mouseDown": if(target.get_tabEnabled()) { this.set_focus(target); } else { this.set_focus(null); } this.__mouseDownLeft = target; break; case "mouseUp": if(this.__mouseDownLeft != null) { if(this.__mouseX < 0 || this.__mouseY < 0) { this.__dispatchEvent(openfl_events_MouseEvent.__create("releaseOutside",1,this.__mouseX,this.__mouseY,new openfl_geom_Point(this.__mouseX,this.__mouseY),this)); } else if(this.__mouseDownLeft == target) { clickType = "click"; } this.__mouseDownLeft = null; } break; case "rightMouseDown": this.__mouseDownRight = target; break; case "rightMouseUp": if(this.__mouseDownRight == target) { clickType = "rightClick"; } this.__mouseDownRight = null; break; default: } var localPoint = openfl_geom_Point.__pool.get(); this.__dispatchStack(openfl_events_MouseEvent.__create(type,button,this.__mouseX,this.__mouseY,target.__globalToLocal(targetPoint,localPoint),target),stack); if(clickType != null) { this.__dispatchStack(openfl_events_MouseEvent.__create(clickType,button,this.__mouseX,this.__mouseY,target.__globalToLocal(targetPoint,localPoint),target),stack); if(type == "mouseUp" && (js_Boot.__cast(target , openfl_display_InteractiveObject)).doubleClickEnabled) { var currentTime = openfl_Lib.getTimer(); if(currentTime - this.__lastClickTime < 500) { this.__dispatchStack(openfl_events_MouseEvent.__create("doubleClick",button,this.__mouseX,this.__mouseY,target.__globalToLocal(targetPoint,localPoint),target),stack); this.__lastClickTime = 0; } else { this.__lastClickTime = currentTime; } } } if(openfl_ui_Mouse.__cursor == "auto") { var cursor = null; if(this.__mouseDownLeft != null) { cursor = this.__mouseDownLeft.__getCursor(); } else { var _g = 0; while(_g < stack.length) { var target1 = stack[_g]; ++_g; cursor = target1.__getCursor(); if(cursor != null) { lime_ui_Mouse.set_cursor(cursor); break; } } } if(cursor == null) { lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.ARROW); } } var event; if(target != this.__mouseOverTarget) { if(this.__mouseOverTarget != null) { event = openfl_events_MouseEvent.__create("mouseOut",button,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(targetPoint,localPoint),this.__mouseOverTarget); this.__mouseOverTarget.__dispatchEvent(event); } } var _g1 = 0; var _g11 = this.__rollOutStack; while(_g1 < _g11.length) { var target2 = _g11[_g1]; ++_g1; if(stack.indexOf(target2) == -1) { HxOverrides.remove(this.__rollOutStack,target2); event = openfl_events_MouseEvent.__create("rollOut",button,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(targetPoint,localPoint),this.__mouseOverTarget); event.bubbles = false; target2.__dispatchEvent(event); } } var _g2 = 0; while(_g2 < stack.length) { var target3 = stack[_g2]; ++_g2; if(this.__rollOutStack.indexOf(target3) == -1 && this.__mouseOverTarget != null) { if(target3.hasEventListener("rollOver")) { event = openfl_events_MouseEvent.__create("rollOver",button,this.__mouseX,this.__mouseY,this.__mouseOverTarget.__globalToLocal(targetPoint,localPoint),target3); event.bubbles = false; target3.__dispatchEvent(event); } if(target3.hasEventListener("rollOut")) { this.__rollOutStack.push(target3); } } } if(target != this.__mouseOverTarget) { if(target != null) { event = openfl_events_MouseEvent.__create("mouseOver",button,this.__mouseX,this.__mouseY,target.__globalToLocal(targetPoint,localPoint),target); event.bubbles = true; target.__dispatchEvent(event); } this.__mouseOverTarget = target; } if(this.__dragObject != null) { this.__drag(targetPoint); var dropTarget = null; if(this.__mouseOverTarget == this.__dragObject) { var cacheMouseEnabled = this.__dragObject.mouseEnabled; var cacheMouseChildren = this.__dragObject.mouseChildren; this.__dragObject.mouseEnabled = false; this.__dragObject.mouseChildren = false; var stack1 = []; if(this.__hitTest(this.__mouseX,this.__mouseY,true,stack1,true,this)) { dropTarget = stack1[stack1.length - 1]; } this.__dragObject.mouseEnabled = cacheMouseEnabled; this.__dragObject.mouseChildren = cacheMouseChildren; } else if(this.__mouseOverTarget != this) { dropTarget = this.__mouseOverTarget; } this.__dragObject.dropTarget = dropTarget; } openfl_geom_Point.__pool.release(targetPoint); openfl_geom_Point.__pool.release(localPoint); } ,__onMouseWheel: function(deltaX,deltaY) { var x = this.__mouseX; var y = this.__mouseY; var stack = []; var target = null; if(this.__hitTest(this.__mouseX,this.__mouseY,true,stack,true,this)) { target = stack[stack.length - 1]; } else { target = this; stack = [this]; } if(target == null) { target = this; } var targetPoint = openfl_geom_Point.__pool.get(); targetPoint.setTo(x,y); var _this = this.__displayMatrix; var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { targetPoint.x = -_this.tx; targetPoint.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - targetPoint.y) + _this.d * (targetPoint.x - _this.tx)); targetPoint.y = 1.0 / norm * (_this.a * (targetPoint.y - _this.ty) + _this.b * (_this.tx - targetPoint.x)); targetPoint.x = px; } var delta = deltaY | 0; this.__dispatchStack(openfl_events_MouseEvent.__create("mouseWheel",0,this.__mouseX,this.__mouseY,target.__globalToLocal(targetPoint,targetPoint),target,delta),stack); openfl_geom_Point.__pool.release(targetPoint); } ,__onTouch: function(type,touch) { var targetPoint = openfl_geom_Point.__pool.get(); targetPoint.setTo(Math.round(touch.x * this.window.__width * this.window.__scale),Math.round(touch.y * this.window.__height * this.window.__scale)); var _this = this.__displayMatrix; var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { targetPoint.x = -_this.tx; targetPoint.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - targetPoint.y) + _this.d * (targetPoint.x - _this.tx)); targetPoint.y = 1.0 / norm * (_this.a * (targetPoint.y - _this.ty) + _this.b * (_this.tx - targetPoint.x)); targetPoint.x = px; } var touchX = targetPoint.x; var touchY = targetPoint.y; var stack = []; var target = null; if(this.__hitTest(touchX,touchY,false,stack,true,this)) { target = stack[stack.length - 1]; } else { target = this; stack = [this]; } if(target == null) { target = this; } var touchId = touch.id; var touchData = null; if(this.__touchData.h.hasOwnProperty(touchId)) { touchData = this.__touchData.h[touchId]; } else { touchData = openfl_utils_TouchData.__pool.get(); touchData.reset(); touchData.touch = touch; this.__touchData.h[touchId] = touchData; } var touchType = null; var releaseTouchData = false; switch(type) { case "touchBegin": touchData.touchDownTarget = target; break; case "touchEnd": if(touchData.touchDownTarget == target) { touchType = "touchTap"; } touchData.touchDownTarget = null; releaseTouchData = true; break; default: } var localPoint = openfl_geom_Point.__pool.get(); var isPrimaryTouchPoint = this.__primaryTouch == touch; var touchEvent = openfl_events_TouchEvent.__create(type,null,touchX,touchY,target.__globalToLocal(targetPoint,localPoint),target); touchEvent.touchPointID = touchId; touchEvent.isPrimaryTouchPoint = isPrimaryTouchPoint; this.__dispatchStack(touchEvent,stack); if(touchType != null) { touchEvent = openfl_events_TouchEvent.__create(touchType,null,touchX,touchY,target.__globalToLocal(targetPoint,localPoint),target); touchEvent.touchPointID = touchId; touchEvent.isPrimaryTouchPoint = isPrimaryTouchPoint; this.__dispatchStack(touchEvent,stack); } var touchOverTarget = touchData.touchOverTarget; if(target != touchOverTarget && touchOverTarget != null) { touchEvent = openfl_events_TouchEvent.__create("touchOut",null,touchX,touchY,touchOverTarget.__globalToLocal(targetPoint,localPoint),touchOverTarget); touchEvent.touchPointID = touchId; touchEvent.isPrimaryTouchPoint = isPrimaryTouchPoint; touchOverTarget.__dispatchEvent(touchEvent); } var touchOutStack = touchData.rollOutStack; var _g = 0; while(_g < touchOutStack.length) { var target1 = touchOutStack[_g]; ++_g; if(stack.indexOf(target1) == -1) { HxOverrides.remove(touchOutStack,target1); touchEvent = openfl_events_TouchEvent.__create("touchRollOut",null,touchX,touchY,touchOverTarget.__globalToLocal(targetPoint,localPoint),touchOverTarget); touchEvent.touchPointID = touchId; touchEvent.isPrimaryTouchPoint = isPrimaryTouchPoint; touchEvent.bubbles = false; target1.__dispatchEvent(touchEvent); } } var _g1 = 0; while(_g1 < stack.length) { var target2 = stack[_g1]; ++_g1; if(touchOutStack.indexOf(target2) == -1) { if(target2.hasEventListener("touchRollOver")) { touchEvent = openfl_events_TouchEvent.__create("touchRollOver",null,touchX,touchY,touchOverTarget.__globalToLocal(targetPoint,localPoint),target2); touchEvent.touchPointID = touchId; touchEvent.isPrimaryTouchPoint = isPrimaryTouchPoint; touchEvent.bubbles = false; target2.__dispatchEvent(touchEvent); } if(target2.hasEventListener("touchRollOut")) { touchOutStack.push(target2); } } } if(target != touchOverTarget) { if(target != null) { touchEvent = openfl_events_TouchEvent.__create("touchOver",null,touchX,touchY,target.__globalToLocal(targetPoint,localPoint),target); touchEvent.touchPointID = touchId; touchEvent.isPrimaryTouchPoint = isPrimaryTouchPoint; touchEvent.bubbles = true; target.__dispatchEvent(touchEvent); } touchData.touchOverTarget = target; } openfl_geom_Point.__pool.release(targetPoint); openfl_geom_Point.__pool.release(localPoint); if(releaseTouchData) { this.__touchData.remove(touchId); touchData.reset(); openfl_utils_TouchData.__pool.release(touchData); } } ,__resize: function() { var cacheWidth = this.stageWidth; var cacheHeight = this.stageHeight; var windowWidth = this.window.__width * this.window.__scale | 0; var windowHeight = this.window.__height * this.window.__scale | 0; this.__logicalWidth = windowWidth; this.__logicalHeight = windowHeight; this.__displayMatrix.identity(); if(this.__logicalWidth == 0 && this.__logicalHeight == 0) { this.stageWidth = windowWidth; this.stageHeight = windowHeight; } else { this.stageWidth = this.__logicalWidth; this.stageHeight = this.__logicalHeight; var scaleX = windowWidth / this.stageWidth; var scaleY = windowHeight / this.stageHeight; var targetScale = Math.min(scaleX,scaleY); var offsetX = Math.round((windowWidth - this.stageWidth * targetScale) / 2); var offsetY = Math.round((windowHeight - this.stageHeight * targetScale) / 2); this.__displayMatrix.scale(targetScale,targetScale); this.__displayMatrix.translate(offsetX,offsetY); } var _g = 0; var _g1 = this.stage3Ds; while(_g < _g1.data.get_length()) { var stage3D = _g1.data.get(_g); ++_g; stage3D.__resize(this.stageWidth,this.stageHeight); } if(this.__renderer != null) { this.__renderer.resize(windowWidth,windowHeight); } if(this.stageWidth != cacheWidth || this.stageHeight != cacheHeight) { this.__dispatchEvent(new openfl_events_Event("resize")); } } ,__setLogicalSize: function(width,height) { this.__logicalWidth = width; this.__logicalHeight = height; this.__resize(); } ,__startDrag: function(sprite,lockCenter,bounds) { this.__dragBounds = bounds == null ? null : bounds.clone(); this.__dragObject = sprite; if(this.__dragObject != null) { if(lockCenter) { this.__dragOffsetX = 0; this.__dragOffsetY = 0; } else { var mouse = openfl_geom_Point.__pool.get(); mouse.setTo(this.get_mouseX(),this.get_mouseY()); var parent = this.__dragObject.parent; if(parent != null) { var _this = parent.__getWorldTransform(); var norm = _this.a * _this.d - _this.b * _this.c; if(norm == 0) { mouse.x = -_this.tx; mouse.y = -_this.ty; } else { var px = 1.0 / norm * (_this.c * (_this.ty - mouse.y) + _this.d * (mouse.x - _this.tx)); mouse.y = 1.0 / norm * (_this.a * (mouse.y - _this.ty) + _this.b * (_this.tx - mouse.x)); mouse.x = px; } } this.__dragOffsetX = this.__dragObject.get_x() - mouse.x; this.__dragOffsetY = this.__dragObject.get_y() - mouse.y; openfl_geom_Point.__pool.release(mouse); } } } ,__stopDrag: function(sprite) { this.__dragBounds = null; this.__dragObject = null; } ,__update: function(transformOnly,updateChildren,maskGraphics) { if(transformOnly) { if(this.__transformDirty) { openfl_display_DisplayObjectContainer.prototype.__update.call(this,true,updateChildren,maskGraphics); if(updateChildren) { this.__transformDirty = false; } } } else if(this.__transformDirty || this.__renderDirty) { openfl_display_DisplayObjectContainer.prototype.__update.call(this,false,updateChildren,maskGraphics); var updateChildren1 = updateChildren; } } ,get_color: function() { return this.__color; } ,set_color: function(value) { var r = (value & 16711680) >>> 16; var g = (value & 65280) >>> 8; var b = value & 255; this.__colorSplit = [r / 255,g / 255,b / 255]; this.__colorString = "#" + StringTools.hex(value & 16777215,6); return this.__color = value; } ,get_contentsScaleFactor: function() { return this.__contentsScaleFactor; } ,get_displayState: function() { return this.__displayState; } ,set_displayState: function(value) { if(this.window != null) { if(value == 2) { if(this.window.__fullscreen) { this.window.set_fullscreen(false); } } else if(!this.window.__fullscreen) { this.window.set_fullscreen(true); } } return this.__displayState = value; } ,get_focus: function() { return this.__focus; } ,set_focus: function(value) { if(value != this.__focus) { var oldFocus = this.__focus; this.__focus = value; this.__cacheFocus = value; if(oldFocus != null) { var event = new openfl_events_FocusEvent("focusOut",true,false,this.__focus,false,0); var stack = []; oldFocus.__getInteractive(stack); stack.reverse(); this.__dispatchStack(event,stack); } if(this.__focus != null) { var event1 = new openfl_events_FocusEvent("focusIn",true,false,oldFocus,false,0); var stack1 = []; value.__getInteractive(stack1); stack1.reverse(); this.__dispatchStack(event1,stack1); } } return this.__focus; } ,get_frameRate: function() { if(this.application != null) { return this.application.backend.getFrameRate(); } return 0; } ,set_frameRate: function(value) { if(this.application != null) { return this.application.backend.setFrameRate(value); } return value; } ,get_fullScreenHeight: function() { return this.window.get_display().currentMode.height; } ,get_fullScreenWidth: function() { return this.window.get_display().currentMode.width; } ,set_height: function(value) { return this.get_height(); } ,get_mouseX: function() { return this.__mouseX; } ,get_mouseY: function() { return this.__mouseY; } ,set_rotation: function(value) { return 0; } ,set_scaleX: function(value) { return 0; } ,set_scaleY: function(value) { return 0; } ,set_transform: function(value) { return this.get_transform(); } ,set_width: function(value) { return this.get_width(); } ,set_x: function(value) { return 0; } ,set_y: function(value) { return 0; } ,__class__: openfl_display_Stage ,__properties__: $extend(openfl_display_DisplayObjectContainer.prototype.__properties__,{get_fullScreenWidth:"get_fullScreenWidth",get_fullScreenHeight:"get_fullScreenHeight",set_frameRate:"set_frameRate",get_frameRate:"get_frameRate",set_focus:"set_focus",get_focus:"get_focus",set_displayState:"set_displayState",get_displayState:"get_displayState",get_contentsScaleFactor:"get_contentsScaleFactor",set_color:"set_color",get_color:"get_color"}) }); var openfl_display_Stage3D = function() { openfl_events_EventDispatcher.call(this); this.set_x(0); this.set_y(0); this.visible = true; }; $hxClasses["openfl.display.Stage3D"] = openfl_display_Stage3D; openfl_display_Stage3D.__name__ = ["openfl","display","Stage3D"]; openfl_display_Stage3D.__super__ = openfl_events_EventDispatcher; openfl_display_Stage3D.prototype = $extend(openfl_events_EventDispatcher.prototype,{ context3D: null ,visible: null ,x: null ,y: null ,__contextRequested: null ,__stage: null ,__canvas: null ,__renderContext: null ,__style: null ,__webgl: null ,requestContext3D: function(context3DRenderMode,profile) { if(profile == null) { profile = 0; } if(context3DRenderMode == null) { context3DRenderMode = 0; } this.__contextRequested = true; if(this.context3D != null) { haxe_Timer.delay($bind(this,this.__dispatchCreate),1); } } ,requestContext3DMatchingProfiles: function(profiles) { this.requestContext3D(); } ,__createContext: function(stage,renderSession) { this.__stage = stage; if(renderSession.gl != null) { this.context3D = new openfl_display3D_Context3D(this,renderSession); this.__dispatchCreate(); } else { this.__canvas = window.document.createElement("canvas"); this.__canvas.width = stage.stageWidth; this.__canvas.height = stage.stageHeight; var $window = stage.window; var options = { alpha : Object.prototype.hasOwnProperty.call($window.config,"background") && $window.config.background == null, antialias : Object.prototype.hasOwnProperty.call($window.config,"antialiasing") && $window.config.antialiasing > 0, depth : Object.prototype.hasOwnProperty.call($window.config,"depthBuffer") ? $window.config.depthBuffer : true, premultipliedAlpha : true, stencil : Object.prototype.hasOwnProperty.call($window.config,"stencilBuffer") && $window.config.stencilBuffer, preserveDrawingBuffer : false}; this.__webgl = js_html__$CanvasElement_CanvasUtil.getContextWebGL(this.__canvas,options); if(this.__webgl != null) { this.__renderContext = new lime__$backend_html5_HTML5GLRenderContext(this.__webgl); lime_graphics_opengl_GL.context = this.__renderContext; this.context3D = new openfl_display3D_Context3D(this,renderSession); renderSession.element.appendChild(this.__canvas); this.__style = this.__canvas.style; this.__style.setProperty("position","absolute",null); this.__style.setProperty("top","0",null); this.__style.setProperty("left","0",null); this.__style.setProperty(renderSession.transformOriginProperty,"0 0 0",null); this.__style.setProperty("z-index","-1",null); this.__dispatchCreate(); } else { this.__dispatchError(); } } } ,__dispatchError: function() { this.__contextRequested = false; this.dispatchEvent(new openfl_events_ErrorEvent("error",false,false,"Context3D not available")); } ,__dispatchCreate: function() { if(this.__contextRequested) { this.__contextRequested = false; this.dispatchEvent(new openfl_events_Event("context3DCreate")); } } ,__renderCairo: function(stage,renderSession) { if(!this.visible) { return; } if(this.__contextRequested) { this.__dispatchError(); this.__contextRequested = false; } } ,__renderCanvas: function(stage,renderSession) { if(!this.visible) { return; } if(this.__contextRequested) { this.__dispatchError(); this.__contextRequested = false; } } ,__renderDOM: function(stage,renderSession) { if(!this.visible) { return; } if(this.__contextRequested && this.context3D == null) { this.__createContext(stage,renderSession); } if(this.context3D != null) { lime_graphics_opengl_GL.context = this.__renderContext; this.__resetContext3DStates(); } } ,__renderGL: function(stage,renderSession) { if(!this.visible) { return; } if(this.__contextRequested && this.context3D == null) { this.__createContext(stage,renderSession); } if(this.context3D != null) { this.__resetContext3DStates(); if(this.context3D != null) { renderSession.blendModeManager.setBlendMode(null); if(renderSession.shaderManager.currentShader != null) { renderSession.shaderManager.setShader(null); if(this.context3D.__program != null) { this.context3D.__program.__use(); } } } if(openfl__$internal_stage3D_GLUtils.debug) { renderSession.gl.__context.getError(); } } } ,__resize: function(width,height) { if(this.__canvas != null) { this.__canvas.width = width; this.__canvas.height = height; } } ,__resetContext3DStates: function() { this.context3D.__updateBlendFactors(); this.context3D.__updateBackbufferViewport(); } ,set_x: function(value) { if(this.x == value) { return value; } this.x = value; if(this.context3D != null) { this.context3D.__updateBackbufferViewport(); } return value; } ,set_y: function(value) { if(this.y == value) { return value; } this.y = value; if(this.context3D != null) { this.context3D.__updateBackbufferViewport(); } return value; } ,__class__: openfl_display_Stage3D ,__properties__: {set_y:"set_y",set_x:"set_x"} }); var openfl_display__$StageAlign_StageAlign_$Impl_$ = {}; $hxClasses["openfl.display._StageAlign.StageAlign_Impl_"] = openfl_display__$StageAlign_StageAlign_$Impl_$; openfl_display__$StageAlign_StageAlign_$Impl_$.__name__ = ["openfl","display","_StageAlign","StageAlign_Impl_"]; openfl_display__$StageAlign_StageAlign_$Impl_$.fromString = function(value) { switch(value) { case "bottom": return 0; case "bottomLeft": return 1; case "bottomRight": return 2; case "left": return 3; case "right": return 4; case "top": return 5; case "topLeft": return 6; case "topRight": return 7; default: return null; } }; openfl_display__$StageAlign_StageAlign_$Impl_$.toString = function(value) { switch(value) { case 0: return "bottom"; case 1: return "bottomLeft"; case 2: return "bottomRight"; case 3: return "left"; case 4: return "right"; case 5: return "top"; case 6: return "topLeft"; case 7: return "topRight"; default: return null; } }; var openfl_display__$StageDisplayState_StageDisplayState_$Impl_$ = {}; $hxClasses["openfl.display._StageDisplayState.StageDisplayState_Impl_"] = openfl_display__$StageDisplayState_StageDisplayState_$Impl_$; openfl_display__$StageDisplayState_StageDisplayState_$Impl_$.__name__ = ["openfl","display","_StageDisplayState","StageDisplayState_Impl_"]; openfl_display__$StageDisplayState_StageDisplayState_$Impl_$.fromString = function(value) { switch(value) { case "fullScreen": return 0; case "fullScreenInteractive": return 1; case "normal": return 2; default: return null; } }; openfl_display__$StageDisplayState_StageDisplayState_$Impl_$.toString = function(value) { switch(value) { case 0: return "fullScreen"; case 1: return "fullScreenInteractive"; case 2: return "normal"; default: return null; } }; var openfl_display__$StageQuality_StageQuality_$Impl_$ = {}; $hxClasses["openfl.display._StageQuality.StageQuality_Impl_"] = openfl_display__$StageQuality_StageQuality_$Impl_$; openfl_display__$StageQuality_StageQuality_$Impl_$.__name__ = ["openfl","display","_StageQuality","StageQuality_Impl_"]; openfl_display__$StageQuality_StageQuality_$Impl_$.fromString = function(value) { switch(value) { case "best": return 0; case "high": return 1; case "low": return 2; case "medium": return 3; default: return null; } }; openfl_display__$StageQuality_StageQuality_$Impl_$.toString = function(value) { switch(value) { case 0: return "best"; case 1: return "high"; case 2: return "low"; case 3: return "medium"; default: return null; } }; var openfl_display__$StageScaleMode_StageScaleMode_$Impl_$ = {}; $hxClasses["openfl.display._StageScaleMode.StageScaleMode_Impl_"] = openfl_display__$StageScaleMode_StageScaleMode_$Impl_$; openfl_display__$StageScaleMode_StageScaleMode_$Impl_$.__name__ = ["openfl","display","_StageScaleMode","StageScaleMode_Impl_"]; openfl_display__$StageScaleMode_StageScaleMode_$Impl_$.fromString = function(value) { switch(value) { case "exactFit": return 0; case "noBorder": return 1; case "noScale": return 2; case "showAll": return 3; default: return null; } }; openfl_display__$StageScaleMode_StageScaleMode_$Impl_$.toString = function(value) { switch(value) { case 0: return "exactFit"; case 1: return "noBorder"; case 2: return "noScale"; case 3: return "showAll"; default: return null; } }; var openfl_display__$TriangleCulling_TriangleCulling_$Impl_$ = {}; $hxClasses["openfl.display._TriangleCulling.TriangleCulling_Impl_"] = openfl_display__$TriangleCulling_TriangleCulling_$Impl_$; openfl_display__$TriangleCulling_TriangleCulling_$Impl_$.__name__ = ["openfl","display","_TriangleCulling","TriangleCulling_Impl_"]; openfl_display__$TriangleCulling_TriangleCulling_$Impl_$.fromString = function(value) { switch(value) { case "negative": return 0; case "none": return 1; case "positive": return 2; default: return null; } }; openfl_display__$TriangleCulling_TriangleCulling_$Impl_$.toString = function(value) { switch(value) { case 0: return "negative"; case 1: return "none"; case 2: return "positive"; default: return null; } }; var openfl_display_Window = function(config) { lime_ui_Window.call(this,config); }; $hxClasses["openfl.display.Window"] = openfl_display_Window; openfl_display_Window.__name__ = ["openfl","display","Window"]; openfl_display_Window.__super__ = lime_ui_Window; openfl_display_Window.prototype = $extend(lime_ui_Window.prototype,{ create: function(application) { lime_ui_Window.prototype.create.call(this,application); this.stage = new openfl_display_Stage(this,Object.prototype.hasOwnProperty.call(this.config,"background") ? this.config.background : 16777215); if(Object.prototype.hasOwnProperty.call(this.config,"parameters")) { try { this.stage.get_loaderInfo().parameters = this.config.parameters; } catch( e ) { haxe_CallStack.lastException = e; } } if(Object.prototype.hasOwnProperty.call(this.config,"resizable") && !this.config.resizable) { this.stage.__setLogicalSize(this.config.width,this.config.height); } application.addModule(this.stage); } ,__class__: openfl_display_Window }); var openfl_display3D_Context3D = function(stage3D,renderSession) { this.totalGPUMemory = 0; this.profile = 0; this.enableErrorChecking = false; this.driverInfo = "OpenGL (Direct blitting)"; this.backBufferWidth = 0; this.backBufferHeight = 0; openfl_events_EventDispatcher.call(this); this.__stage3D = stage3D; this.__renderSession = renderSession; openfl__$internal_stage3D_opengl_GLContext3D.create(this); }; $hxClasses["openfl.display3D.Context3D"] = openfl_display3D_Context3D; openfl_display3D_Context3D.__name__ = ["openfl","display3D","Context3D"]; openfl_display3D_Context3D.__super__ = openfl_events_EventDispatcher; openfl_display3D_Context3D.prototype = $extend(openfl_events_EventDispatcher.prototype,{ backBufferHeight: null ,backBufferWidth: null ,driverInfo: null ,enableErrorChecking: null ,maxBackBufferHeight: null ,maxBackBufferWidth: null ,profile: null ,totalGPUMemory: null ,__backBufferAntiAlias: null ,__backBufferEnableDepthAndStencil: null ,__backBufferWantsBestResolution: null ,__depthRenderBuffer: null ,__depthStencilRenderBuffer: null ,__fragmentConstants: null ,__framebuffer: null ,__frameCount: null ,__maxAnisotropyCubeTexture: null ,__maxAnisotropyTexture2D: null ,__positionScale: null ,__program: null ,__renderSession: null ,__renderToTexture: null ,__rttDepthAndStencil: null ,__samplerDirty: null ,__samplerTextures: null ,__samplerStates: null ,__scissorRectangle: null ,__stage3D: null ,__stats: null ,__statsCache: null ,__stencilCompareMode: null ,__stencilRef: null ,__stencilReadMask: null ,__stencilRenderBuffer: null ,__supportsAnisotropicFiltering: null ,__supportsPackedDepthStencil: null ,__vertexConstants: null ,clear: function(red,green,blue,alpha,depth,stencil,mask) { if(mask == null) { mask = 7; } if(stencil == null) { stencil = 0; } if(depth == null) { depth = 1; } if(alpha == null) { alpha = 1; } if(blue == null) { blue = 0; } if(green == null) { green = 0; } if(red == null) { red = 0; } openfl__$internal_stage3D_opengl_GLContext3D.clear(this,red,green,blue,alpha,depth,stencil,mask); } ,configureBackBuffer: function(width,height,antiAlias,enableDepthAndStencil,wantsBestResolution,wantsBestResolutionOnBrowserZoom) { if(wantsBestResolutionOnBrowserZoom == null) { wantsBestResolutionOnBrowserZoom = false; } if(wantsBestResolution == null) { wantsBestResolution = false; } if(enableDepthAndStencil == null) { enableDepthAndStencil = true; } openfl__$internal_stage3D_opengl_GLContext3D.configureBackBuffer(this,width,height,antiAlias,enableDepthAndStencil,wantsBestResolution,wantsBestResolutionOnBrowserZoom); } ,createCubeTexture: function(size,format,optimizeForRenderToTexture,streamingLevels) { if(streamingLevels == null) { streamingLevels = 0; } return new openfl_display3D_textures_CubeTexture(this,size,format,optimizeForRenderToTexture,streamingLevels); } ,createIndexBuffer: function(numIndices,bufferUsage) { if(bufferUsage == null) { bufferUsage = 1; } return new openfl_display3D_IndexBuffer3D(this,numIndices,bufferUsage); } ,createProgram: function() { return new openfl_display3D_Program3D(this); } ,createRectangleTexture: function(width,height,format,optimizeForRenderToTexture) { return new openfl_display3D_textures_RectangleTexture(this,width,height,openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.toString(format),optimizeForRenderToTexture); } ,createTexture: function(width,height,format,optimizeForRenderToTexture,streamingLevels) { if(streamingLevels == null) { streamingLevels = 0; } return new openfl_display3D_textures_Texture(this,width,height,format,optimizeForRenderToTexture,streamingLevels); } ,createVertexBuffer: function(numVertices,data32PerVertex,bufferUsage) { if(bufferUsage == null) { bufferUsage = 1; } return new openfl_display3D_VertexBuffer3D(this,numVertices,data32PerVertex,openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$.toString(bufferUsage)); } ,createVideoTexture: function() { return new openfl_display3D_textures_VideoTexture(this); } ,dispose: function(recreate) { if(recreate == null) { recreate = true; } openfl__$internal_stage3D_opengl_GLContext3D.dispose(this,recreate); } ,drawToBitmapData: function(destination) { if(destination == null) { return; } openfl__$internal_stage3D_opengl_GLContext3D.drawToBitmapData(this,destination); } ,drawTriangles: function(indexBuffer,firstIndex,numTriangles) { if(numTriangles == null) { numTriangles = -1; } if(firstIndex == null) { firstIndex = 0; } if(this.__program == null) { return; } openfl__$internal_stage3D_opengl_GLContext3D.drawTriangles(this,indexBuffer,firstIndex,numTriangles); } ,present: function() { openfl__$internal_stage3D_opengl_GLContext3D.present(this); } ,setBlendFactors: function(sourceFactor,destinationFactor) { openfl__$internal_stage3D_opengl_GLContext3D.setBlendFactors(this,sourceFactor,destinationFactor); } ,setColorMask: function(red,green,blue,alpha) { openfl__$internal_stage3D_opengl_GLContext3D.setColorMask(this,red,green,blue,alpha); } ,setCulling: function(triangleFaceToCull) { openfl__$internal_stage3D_opengl_GLContext3D.setCulling(this,triangleFaceToCull); } ,setDepthTest: function(depthMask,passCompareMode) { openfl__$internal_stage3D_opengl_GLContext3D.setDepthTest(this,depthMask,passCompareMode); } ,setProgram: function(program) { if(program == null) { throw new js__$Boot_HaxeError(new openfl_errors_IllegalOperationError()); } openfl__$internal_stage3D_opengl_GLContext3D.setProgram(this,program); } ,setProgramConstantsFromByteArray: function(programType,firstRegister,numRegisters,data,byteArrayOffset) { if(numRegisters == 0) { return; } openfl__$internal_stage3D_opengl_GLContext3D.setProgramConstantsFromByteArray(this,programType,firstRegister,numRegisters,data,byteArrayOffset); } ,setProgramConstantsFromMatrix: function(programType,firstRegister,matrix,transposedMatrix) { if(transposedMatrix == null) { transposedMatrix = false; } openfl__$internal_stage3D_opengl_GLContext3D.setProgramConstantsFromMatrix(this,programType,firstRegister,matrix,transposedMatrix); } ,setProgramConstantsFromVector: function(programType,firstRegister,data,numRegisters) { if(numRegisters == null) { numRegisters = -1; } if(numRegisters == 0) { return; } openfl__$internal_stage3D_opengl_GLContext3D.setProgramConstantsFromVector(this,programType,firstRegister,data,numRegisters); } ,setRenderToBackBuffer: function() { openfl__$internal_stage3D_opengl_GLContext3D.setRenderToBackBuffer(this); } ,setRenderToTexture: function(texture,enableDepthAndStencil,antiAlias,surfaceSelector) { if(surfaceSelector == null) { surfaceSelector = 0; } if(antiAlias == null) { antiAlias = 0; } if(enableDepthAndStencil == null) { enableDepthAndStencil = false; } openfl__$internal_stage3D_opengl_GLContext3D.setRenderToTexture(this,texture,enableDepthAndStencil,antiAlias,surfaceSelector); } ,setSamplerStateAt: function(sampler,wrap,filter,mipfilter) { openfl__$internal_stage3D_opengl_GLContext3D.setSamplerStateAt(this,sampler,wrap,filter,mipfilter); } ,setScissorRectangle: function(rectangle) { openfl__$internal_stage3D_opengl_GLContext3D.setScissorRectangle(this,rectangle); } ,setStencilActions: function(triangleFace,compareMode,actionOnBothPass,actionOnDepthFail,actionOnDepthPassStencilFail) { if(actionOnDepthPassStencilFail == null) { actionOnDepthPassStencilFail = 5; } if(actionOnDepthFail == null) { actionOnDepthFail = 5; } if(actionOnBothPass == null) { actionOnBothPass = 5; } if(compareMode == null) { compareMode = 0; } if(triangleFace == null) { triangleFace = 2; } openfl__$internal_stage3D_opengl_GLContext3D.setStencilActions(this,triangleFace,compareMode,actionOnBothPass,actionOnDepthFail,actionOnDepthPassStencilFail); } ,setStencilReferenceValue: function(referenceValue,readMask,writeMask) { if(writeMask == null) { writeMask = 255; } if(readMask == null) { readMask = 255; } openfl__$internal_stage3D_opengl_GLContext3D.setStencilReferenceValue(this,referenceValue,readMask,writeMask); } ,setTextureAt: function(sampler,texture) { openfl__$internal_stage3D_opengl_GLContext3D.setTextureAt(this,sampler,texture); } ,setVertexBufferAt: function(index,buffer,bufferOffset,format) { if(format == null) { format = 4; } if(bufferOffset == null) { bufferOffset = 0; } openfl__$internal_stage3D_opengl_GLContext3D.setVertexBufferAt(this,index,buffer,bufferOffset,format); } ,__updateBackbufferViewport: function() { openfl__$internal_stage3D_opengl_GLContext3D.__updateBackbufferViewportTEMP(this); } ,__updateBlendFactors: function() { openfl__$internal_stage3D_opengl_GLContext3D.__updateBlendFactorsTEMP(this); } ,set_enableErrorChecking: function(value) { openfl__$internal_stage3D_opengl_GLContext3D.setEnableErrorChecking(value); return this.enableErrorChecking = value; } ,__class__: openfl_display3D_Context3D ,__properties__: {set_enableErrorChecking:"set_enableErrorChecking"} }); var openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3D.Context3DTelemetry_Impl_"] = openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.__name__ = ["openfl","display3D","_Context3D","Context3DTelemetry_Impl_"]; var openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DBlendFactor.Context3DBlendFactor_Impl_"] = openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.__name__ = ["openfl","display3D","_Context3DBlendFactor","Context3DBlendFactor_Impl_"]; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.fromString = function(value) { switch(value) { case "destinationAlpha": return 0; case "destinationColor": return 1; case "one": return 2; case "oneMinusDestinationAlpha": return 3; case "oneMinusDestinationColor": return 4; case "oneMinusSourceAlpha": return 5; case "oneMinusSourceColor": return 6; case "sourceAlpha": return 7; case "sourceColor": return 8; case "zero": return 9; default: return null; } }; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.toString = function(value) { switch(value) { case 0: return "destinationAlpha"; case 1: return "destinationColor"; case 2: return "one"; case 3: return "oneMinusDestinationAlpha"; case 4: return "oneMinusDestinationColor"; case 5: return "oneMinusSourceAlpha"; case 6: return "oneMinusSourceColor"; case 7: return "sourceAlpha"; case 8: return "sourceColor"; case 9: return "zero"; default: return null; } }; var openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DBufferUsage.Context3DBufferUsage_Impl_"] = openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$; openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$.__name__ = ["openfl","display3D","_Context3DBufferUsage","Context3DBufferUsage_Impl_"]; openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$.fromString = function(value) { switch(value) { case "dynamicDraw": return 0; case "staticDraw": return 1; default: return null; } }; openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$.toString = function(value) { switch(value) { case 0: return "dynamicDraw"; case 1: return "staticDraw"; default: return null; } }; var openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DCompareMode.Context3DCompareMode_Impl_"] = openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.__name__ = ["openfl","display3D","_Context3DCompareMode","Context3DCompareMode_Impl_"]; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.fromString = function(value) { switch(value) { case "always": return 0; case "equal": return 1; case "greater": return 2; case "greaterEqual": return 3; case "less": return 4; case "lessEqual": return 5; case "never": return 6; case "notEqual": return 7; default: return null; } }; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.toString = function(value) { switch(value) { case 0: return "always"; case 1: return "equal"; case 2: return "greater"; case 3: return "greaterEqual"; case 4: return "less"; case 5: return "lessEqual"; case 6: return "never"; case 7: return "notEqual"; default: return null; } }; var openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DMipFilter.Context3DMipFilter_Impl_"] = openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$; openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$.__name__ = ["openfl","display3D","_Context3DMipFilter","Context3DMipFilter_Impl_"]; openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$.fromString = function(value) { switch(value) { case "miplinear": return 0; case "mipnearest": return 1; case "mipnone": return 2; default: return null; } }; openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$.toString = function(value) { switch(value) { case 0: return "miplinear"; case 1: return "mipnearest"; case 2: return "mipnone"; default: return null; } }; var openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DProfile.Context3DProfile_Impl_"] = openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.__name__ = ["openfl","display3D","_Context3DProfile","Context3DProfile_Impl_"]; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.fromString = function(value) { switch(value) { case "baseline": return 0; case "baselineConstrained": return 1; case "baselineExtended": return 2; case "standard": return 3; case "standardConstrained": return 4; case "standardExtended": return 5; default: return null; } }; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.toString = function(value) { switch(value) { case 0: return "baseline"; case 1: return "baselineConstrained"; case 2: return "baselineExtended"; case 3: return "standard"; case 4: return "standardConstrained"; case 5: return "standardExtended"; default: return null; } }; var openfl_display3D__$Context3DProgramType_Context3DProgramType_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DProgramType.Context3DProgramType_Impl_"] = openfl_display3D__$Context3DProgramType_Context3DProgramType_$Impl_$; openfl_display3D__$Context3DProgramType_Context3DProgramType_$Impl_$.__name__ = ["openfl","display3D","_Context3DProgramType","Context3DProgramType_Impl_"]; openfl_display3D__$Context3DProgramType_Context3DProgramType_$Impl_$.fromString = function(value) { switch(value) { case "fragment": return 0; case "vertex": return 1; default: return null; } }; openfl_display3D__$Context3DProgramType_Context3DProgramType_$Impl_$.toString = function(value) { switch(value) { case 0: return "fragment"; case 1: return "vertex"; default: return null; } }; var openfl_display3D__$Context3DRenderMode_Context3DRenderMode_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DRenderMode.Context3DRenderMode_Impl_"] = openfl_display3D__$Context3DRenderMode_Context3DRenderMode_$Impl_$; openfl_display3D__$Context3DRenderMode_Context3DRenderMode_$Impl_$.__name__ = ["openfl","display3D","_Context3DRenderMode","Context3DRenderMode_Impl_"]; openfl_display3D__$Context3DRenderMode_Context3DRenderMode_$Impl_$.fromString = function(value) { switch(value) { case "auto": return 0; case "software": return 1; default: return null; } }; openfl_display3D__$Context3DRenderMode_Context3DRenderMode_$Impl_$.toString = function(value) { switch(value) { case 0: return "auto"; case 1: return "software"; default: return null; } }; var openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DStencilAction.Context3DStencilAction_Impl_"] = openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.__name__ = ["openfl","display3D","_Context3DStencilAction","Context3DStencilAction_Impl_"]; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.fromString = function(value) { switch(value) { case "decrementSaturate": return 0; case "decrementWrap": return 1; case "incrementSaturate": return 2; case "incrementWrap": return 3; case "invert": return 4; case "keep": return 5; case "set": return 6; case "zero": return 7; default: return null; } }; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.toString = function(value) { switch(value) { case 0: return "decrementSaturate"; case 1: return "decrementWrap"; case 2: return "incrementSaturate"; case 3: return "incrementWrap"; case 4: return "invert"; case 5: return "keep"; case 6: return "set"; case 7: return "zero"; default: return null; } }; var openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DTextureFilter.Context3DTextureFilter_Impl_"] = openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.__name__ = ["openfl","display3D","_Context3DTextureFilter","Context3DTextureFilter_Impl_"]; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.fromString = function(value) { switch(value) { case "anisotropic16x": return 0; case "anisotropic2x": return 1; case "anisotropic4x": return 2; case "anisotropic8x": return 3; case "linear": return 4; case "nearest": return 5; default: return null; } }; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.toString = function(value) { switch(value) { case 0: return "anisotropic16x"; case 1: return "anisotropic2x"; case 2: return "anisotropic4x"; case 3: return "anisotropic8x"; case 4: return "linear"; case 5: return "nearest"; default: return null; } }; var openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DTextureFormat.Context3DTextureFormat_Impl_"] = openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.__name__ = ["openfl","display3D","_Context3DTextureFormat","Context3DTextureFormat_Impl_"]; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.fromString = function(value) { switch(value) { case "bgrPacked565": return 0; case "bgra": return 1; case "bgraPacked4444": return 2; case "compressed": return 3; case "compressedAlpha": return 4; case "rgbaHalfFloat": return 5; default: return null; } }; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.toString = function(value) { switch(value) { case 0: return "bgrPacked565"; case 1: return "bgra"; case 2: return "bgraPacked4444"; case 3: return "compressed"; case 4: return "compressedAlpha"; case 5: return "rgbaHalfFloat"; default: return null; } }; var openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DTriangleFace.Context3DTriangleFace_Impl_"] = openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$; openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$.__name__ = ["openfl","display3D","_Context3DTriangleFace","Context3DTriangleFace_Impl_"]; openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$.fromString = function(value) { switch(value) { case "back": return 0; case "front": return 1; case "frontAndBack": return 2; case "none": return 3; default: return null; } }; openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$.toString = function(value) { switch(value) { case 0: return "back"; case 1: return "front"; case 2: return "frontAndBack"; case 3: return "none"; default: return null; } }; var openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DVertexBufferFormat.Context3DVertexBufferFormat_Impl_"] = openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.__name__ = ["openfl","display3D","_Context3DVertexBufferFormat","Context3DVertexBufferFormat_Impl_"]; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.fromString = function(value) { switch(value) { case "bytes4": return 0; case "float1": return 1; case "float2": return 2; case "float3": return 3; case "float4": return 4; default: return null; } }; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.toString = function(value) { switch(value) { case 0: return "bytes4"; case 1: return "float1"; case 2: return "float2"; case 3: return "float3"; case 4: return "float4"; default: return null; } }; var openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$ = {}; $hxClasses["openfl.display3D._Context3DWrapMode.Context3DWrapMode_Impl_"] = openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$; openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$.__name__ = ["openfl","display3D","_Context3DWrapMode","Context3DWrapMode_Impl_"]; openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$.fromString = function(value) { switch(value) { case "clamp": return 0; case "clamp_u_repeat_y": return 1; case "repeat": return 2; case "repeat_u_clamp_y": return 3; default: return null; } }; openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$.toString = function(value) { switch(value) { case 0: return "clamp"; case 1: return "clamp_u_repeat_y"; case 2: return "repeat"; case 3: return "repeat_u_clamp_y"; default: return null; } }; var openfl_display3D_IndexBuffer3D = function(context3D,numIndices,bufferUsage) { this.__context = context3D; this.__numIndices = numIndices; openfl__$internal_stage3D_opengl_GLIndexBuffer3D.create(this,this.__context.__renderSession,bufferUsage); }; $hxClasses["openfl.display3D.IndexBuffer3D"] = openfl_display3D_IndexBuffer3D; openfl_display3D_IndexBuffer3D.__name__ = ["openfl","display3D","IndexBuffer3D"]; openfl_display3D_IndexBuffer3D.prototype = { __context: null ,__elementType: null ,__id: null ,__memoryUsage: null ,__numIndices: null ,__usage: null ,dispose: function() { openfl__$internal_stage3D_opengl_GLIndexBuffer3D.dispose(this,this.__context.__renderSession); } ,uploadFromByteArray: function(data,byteArrayOffset,startOffset,count) { openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromByteArray(this,this.__context.__renderSession,data,byteArrayOffset,startOffset,count); } ,uploadFromTypedArray: function(data) { openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromTypedArray(this,this.__context.__renderSession,data); } ,uploadFromVector: function(data,startOffset,count) { openfl__$internal_stage3D_opengl_GLIndexBuffer3D.uploadFromVector(this,this.__context.__renderSession,data,startOffset,count); } ,__class__: openfl_display3D_IndexBuffer3D }; var openfl_display3D_Program3D = function(context3D) { this.__context = context3D; this.__memUsage = 0; this.__samplerUsageMask = 0; this.__uniforms = new List(); this.__samplerUniforms = new List(); this.__alphaSamplerUniforms = new List(); this.__samplerStates = openfl__$Vector_Vector_$Impl_$.toObjectVector(null,8); }; $hxClasses["openfl.display3D.Program3D"] = openfl_display3D_Program3D; openfl_display3D_Program3D.__name__ = ["openfl","display3D","Program3D"]; openfl_display3D_Program3D.prototype = { __alphaSamplerUniforms: null ,__context: null ,__fragmentShaderID: null ,__fragmentSource: null ,__fragmentUniformMap: null ,__memUsage: null ,__positionScale: null ,__programID: null ,__samplerStates: null ,__samplerUniforms: null ,__samplerUsageMask: null ,__uniforms: null ,__vertexShaderID: null ,__vertexSource: null ,__vertexUniformMap: null ,dispose: function() { openfl__$internal_stage3D_opengl_GLProgram3D.dispose(this,this.__context.__renderSession); } ,upload: function(vertexProgram,fragmentProgram) { openfl__$internal_stage3D_opengl_GLProgram3D.upload(this,this.__context.__renderSession,vertexProgram,fragmentProgram); } ,__flush: function() { this.__vertexUniformMap.flush(); this.__fragmentUniformMap.flush(); } ,__getSamplerState: function(sampler) { return this.__samplerStates.data.get(sampler); } ,__markDirty: function(isVertex,index,count) { if(isVertex) { this.__vertexUniformMap.markDirty(index,count); } else { this.__fragmentUniformMap.markDirty(index,count); } } ,__setPositionScale: function(positionScale) { if(this.__positionScale != null) { openfl__$internal_stage3D_opengl_GLProgram3D.setPositionScale(this,this.__context.__renderSession,positionScale); } } ,__setSamplerState: function(sampler,state) { this.__samplerStates.data.set(sampler,state); } ,__use: function() { openfl__$internal_stage3D_opengl_GLProgram3D["use"](this,this.__context.__renderSession); } ,__class__: openfl_display3D_Program3D }; var openfl_display3D_Uniform = function(gl) { this.gl = gl; this.isDirty = true; var this1 = new lime_utils_BytePointerData(null,0); this.regDataPointer = this1; }; $hxClasses["openfl.display3D.Uniform"] = openfl_display3D_Uniform; openfl_display3D_Uniform.__name__ = ["openfl","display3D","Uniform"]; openfl_display3D_Uniform.prototype = { name: null ,location: null ,type: null ,size: null ,regData: null ,regIndex: null ,regCount: null ,isDirty: null ,gl: null ,regDataPointer: null ,flush: function() { openfl__$internal_stage3D_opengl_GLProgram3D.flushUniform(this,this.gl); } ,__class__: openfl_display3D_Uniform }; var openfl_display3D_UniformMap = function(list) { this.__uniforms = list; this.__uniforms.sort(function(a,b) { return Reflect.compare(a.regIndex,b.regIndex); }); var total = 0; var _g = 0; var _g1 = this.__uniforms; while(_g < _g1.length) { var uniform = _g1[_g]; ++_g; if(uniform.regIndex + uniform.regCount > total) { total = uniform.regIndex + uniform.regCount; } } this.__registerLookup = openfl__$Vector_Vector_$Impl_$.toObjectVector(null,total); var _g2 = 0; var _g11 = this.__uniforms; while(_g2 < _g11.length) { var uniform1 = _g11[_g2]; ++_g2; var _g3 = 0; var _g21 = uniform1.regCount; while(_g3 < _g21) { var i = _g3++; this.__registerLookup.data.set(uniform1.regIndex + i,uniform1); } } this.__anyDirty = this.__allDirty = true; }; $hxClasses["openfl.display3D.UniformMap"] = openfl_display3D_UniformMap; openfl_display3D_UniformMap.__name__ = ["openfl","display3D","UniformMap"]; openfl_display3D_UniformMap.prototype = { __allDirty: null ,__anyDirty: null ,__registerLookup: null ,__uniforms: null ,flush: function() { if(this.__anyDirty) { var _g = 0; var _g1 = this.__uniforms; while(_g < _g1.length) { var uniform = _g1[_g]; ++_g; if(this.__allDirty || uniform.isDirty) { uniform.flush(); uniform.isDirty = false; } } this.__anyDirty = this.__allDirty = false; } } ,markAllDirty: function() { this.__allDirty = true; this.__anyDirty = true; } ,markDirty: function(start,count) { if(this.__allDirty) { return; } var end = start + count; if(end > this.__registerLookup.data.get_length()) { end = this.__registerLookup.data.get_length(); } var index = start; while(index < end) { var uniform = this.__registerLookup.data.get(index); if(uniform != null) { uniform.isDirty = true; this.__anyDirty = true; index = uniform.regIndex + uniform.regCount; } else { ++index; } } } ,__class__: openfl_display3D_UniformMap }; var openfl_display3D_VertexBuffer3D = function(context3D,numVertices,dataPerVertex,bufferUsage) { this.__context = context3D; this.__numVertices = numVertices; this.__vertexSize = dataPerVertex; openfl__$internal_stage3D_opengl_GLVertexBuffer3D.create(this,this.__context.__renderSession,openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$.fromString(bufferUsage)); }; $hxClasses["openfl.display3D.VertexBuffer3D"] = openfl_display3D_VertexBuffer3D; openfl_display3D_VertexBuffer3D.__name__ = ["openfl","display3D","VertexBuffer3D"]; openfl_display3D_VertexBuffer3D.prototype = { __context: null ,__data: null ,__id: null ,__memoryUsage: null ,__numVertices: null ,__stride: null ,__tempBytes: null ,__usage: null ,__vertexSize: null ,dispose: function() { openfl__$internal_stage3D_opengl_GLVertexBuffer3D.dispose(this,this.__context.__renderSession); } ,uploadFromByteArray: function(data,byteArrayOffset,startVertex,numVertices) { openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromByteArray(this,this.__context.__renderSession,data,byteArrayOffset,startVertex,numVertices); } ,uploadFromTypedArray: function(data) { openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromTypedArray(this,this.__context.__renderSession,data); } ,uploadFromVector: function(data,startVertex,numVertices) { openfl__$internal_stage3D_opengl_GLVertexBuffer3D.uploadFromVector(this,this.__context.__renderSession,data,startVertex,numVertices); } ,__class__: openfl_display3D_VertexBuffer3D }; var openfl_display3D_textures_TextureBase = function(context) { openfl_events_EventDispatcher.call(this); this.__context = context; openfl__$internal_stage3D_opengl_GLTextureBase.create(this,this.__context.__renderSession); }; $hxClasses["openfl.display3D.textures.TextureBase"] = openfl_display3D_textures_TextureBase; openfl_display3D_textures_TextureBase.__name__ = ["openfl","display3D","textures","TextureBase"]; openfl_display3D_textures_TextureBase.__super__ = openfl_events_EventDispatcher; openfl_display3D_textures_TextureBase.prototype = $extend(openfl_events_EventDispatcher.prototype,{ __alphaTexture: null ,__context: null ,__format: null ,__height: null ,__internalFormat: null ,__optimizeForRenderToTexture: null ,__samplerState: null ,__streamingLevels: null ,__textureContext: null ,__textureID: null ,__textureTarget: null ,__width: null ,dispose: function() { openfl__$internal_stage3D_opengl_GLTextureBase.dispose(this,this.__context.__renderSession); } ,__getImage: function(bitmapData) { return openfl__$internal_stage3D_opengl_GLTextureBase.getImage(this,this.__context.__renderSession,bitmapData); } ,__getTexture: function() { return this.__textureID; } ,__setSamplerState: function(state) { openfl__$internal_stage3D_opengl_GLTextureBase.setSamplerState(this,this.__context.__renderSession,state); } ,__class__: openfl_display3D_textures_TextureBase }); var openfl_display3D_textures_CubeTexture = function(context,size,format,optimizeForRenderToTexture,streamingLevels) { openfl_display3D_textures_TextureBase.call(this,context); this.__size = size; this.__optimizeForRenderToTexture = optimizeForRenderToTexture; this.__streamingLevels = streamingLevels; openfl__$internal_stage3D_opengl_GLCubeTexture.create(this,this.__context.__renderSession); }; $hxClasses["openfl.display3D.textures.CubeTexture"] = openfl_display3D_textures_CubeTexture; openfl_display3D_textures_CubeTexture.__name__ = ["openfl","display3D","textures","CubeTexture"]; openfl_display3D_textures_CubeTexture.__super__ = openfl_display3D_textures_TextureBase; openfl_display3D_textures_CubeTexture.prototype = $extend(openfl_display3D_textures_TextureBase.prototype,{ __size: null ,__uploadedSides: null ,uploadCompressedTextureFromByteArray: function(data,byteArrayOffset,async) { if(async == null) { async = false; } var _gthis = this; if(!async) { openfl__$internal_stage3D_opengl_GLCubeTexture.uploadCompressedTextureFromByteArray(this,this.__context.__renderSession,data,byteArrayOffset); } else { haxe_Timer.delay(function() { openfl__$internal_stage3D_opengl_GLCubeTexture.uploadCompressedTextureFromByteArray(_gthis,_gthis.__context.__renderSession,data,byteArrayOffset); _gthis.dispatchEvent(new openfl_events_Event("textureReady")); },1); } } ,uploadFromBitmapData: function(source,side,miplevel,generateMipmap) { if(generateMipmap == null) { generateMipmap = false; } if(miplevel == null) { miplevel = 0; } if(source == null) { return; } openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromBitmapData(this,this.__context.__renderSession,source,side,miplevel,generateMipmap); } ,uploadFromByteArray: function(data,byteArrayOffset,side,miplevel) { if(miplevel == null) { miplevel = 0; } openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromByteArray(this,this.__context.__renderSession,data,byteArrayOffset,side,miplevel); } ,uploadFromTypedArray: function(data,side,miplevel) { if(miplevel == null) { miplevel = 0; } if(data == null) { return; } openfl__$internal_stage3D_opengl_GLCubeTexture.uploadFromTypedArray(this,this.__context.__renderSession,data,side,miplevel); } ,__setSamplerState: function(state) { openfl__$internal_stage3D_opengl_GLCubeTexture.setSamplerState(this,this.__context.__renderSession,state); } ,__class__: openfl_display3D_textures_CubeTexture }); var openfl_display3D_textures_RectangleTexture = function(context,width,height,format,optimizeForRenderToTexture) { openfl_display3D_textures_TextureBase.call(this,context); this.__width = width; this.__height = height; this.__optimizeForRenderToTexture = optimizeForRenderToTexture; openfl__$internal_stage3D_opengl_GLRectangleTexture.create(this,this.__context.__renderSession); }; $hxClasses["openfl.display3D.textures.RectangleTexture"] = openfl_display3D_textures_RectangleTexture; openfl_display3D_textures_RectangleTexture.__name__ = ["openfl","display3D","textures","RectangleTexture"]; openfl_display3D_textures_RectangleTexture.__super__ = openfl_display3D_textures_TextureBase; openfl_display3D_textures_RectangleTexture.prototype = $extend(openfl_display3D_textures_TextureBase.prototype,{ uploadFromBitmapData: function(source) { openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromBitmapData(this,this.__context.__renderSession,source); } ,uploadFromByteArray: function(data,byteArrayOffset) { openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromByteArray(this,this.__context.__renderSession,data,byteArrayOffset); } ,uploadFromTypedArray: function(data) { openfl__$internal_stage3D_opengl_GLRectangleTexture.uploadFromTypedArray(this,this.__context.__renderSession,data); } ,__setSamplerState: function(state) { openfl__$internal_stage3D_opengl_GLRectangleTexture.setSamplerState(this,this.__context.__renderSession,state); } ,__class__: openfl_display3D_textures_RectangleTexture }); var openfl_display3D_textures_Texture = function(context,width,height,format,optimizeForRenderToTexture,streamingLevels) { openfl_display3D_textures_TextureBase.call(this,context); this.__width = width; this.__height = height; this.__optimizeForRenderToTexture = optimizeForRenderToTexture; this.__streamingLevels = streamingLevels; openfl__$internal_stage3D_opengl_GLTexture.create(this,this.__context.__renderSession); }; $hxClasses["openfl.display3D.textures.Texture"] = openfl_display3D_textures_Texture; openfl_display3D_textures_Texture.__name__ = ["openfl","display3D","textures","Texture"]; openfl_display3D_textures_Texture.__super__ = openfl_display3D_textures_TextureBase; openfl_display3D_textures_Texture.prototype = $extend(openfl_display3D_textures_TextureBase.prototype,{ uploadCompressedTextureFromByteArray: function(data,byteArrayOffset,async) { if(async == null) { async = false; } var _gthis = this; if(!async) { openfl__$internal_stage3D_opengl_GLTexture.uploadCompressedTextureFromByteArray(this,this.__context.__renderSession,data,byteArrayOffset); } else { haxe_Timer.delay(function() { openfl__$internal_stage3D_opengl_GLTexture.uploadCompressedTextureFromByteArray(_gthis,_gthis.__context.__renderSession,data,byteArrayOffset); _gthis.dispatchEvent(new openfl_events_Event("textureReady")); },1); } } ,uploadFromBitmapData: function(source,miplevel,generateMipmap) { if(generateMipmap == null) { generateMipmap = false; } if(miplevel == null) { miplevel = 0; } openfl__$internal_stage3D_opengl_GLTexture.uploadFromBitmapData(this,this.__context.__renderSession,source,miplevel,generateMipmap); } ,uploadFromByteArray: function(data,byteArrayOffset,miplevel) { if(miplevel == null) { miplevel = 0; } openfl__$internal_stage3D_opengl_GLTexture.uploadFromByteArray(this,this.__context.__renderSession,data,byteArrayOffset,miplevel); } ,uploadFromTypedArray: function(data,miplevel) { if(miplevel == null) { miplevel = 0; } openfl__$internal_stage3D_opengl_GLTexture.uploadFromTypedArray(this,this.__context.__renderSession,data,miplevel); } ,__setSamplerState: function(state) { openfl__$internal_stage3D_opengl_GLTexture.setSamplerState(this,this.__context.__renderSession,state); } ,__class__: openfl_display3D_textures_Texture }); var openfl_display3D_textures_VideoTexture = function(context) { openfl_display3D_textures_TextureBase.call(this,context); openfl__$internal_stage3D_opengl_GLVideoTexture.create(this,this.__context.__renderSession); }; $hxClasses["openfl.display3D.textures.VideoTexture"] = openfl_display3D_textures_VideoTexture; openfl_display3D_textures_VideoTexture.__name__ = ["openfl","display3D","textures","VideoTexture"]; openfl_display3D_textures_VideoTexture.__super__ = openfl_display3D_textures_TextureBase; openfl_display3D_textures_VideoTexture.prototype = $extend(openfl_display3D_textures_TextureBase.prototype,{ videoHeight: null ,videoWidth: null ,__netStream: null ,attachNetStream: function(netStream) { var _gthis = this; this.__netStream = netStream; if(this.__netStream.__video.readyState == 4) { haxe_Timer.delay(function() { _gthis.__textureReady(); },0); } else { this.__netStream.__video.addEventListener("canplay",function(_) { _gthis.__textureReady(); },false); } } ,__getTexture: function() { return openfl__$internal_stage3D_opengl_GLVideoTexture.getTexture(this,this.__context.__renderSession); } ,__textureReady: function() { this.videoWidth = this.__netStream.__video.videoWidth; this.videoHeight = this.__netStream.__video.videoHeight; this.dispatchEvent(new openfl_events_Event("textureReady")); } ,__class__: openfl_display3D_textures_VideoTexture }); var openfl_errors_Error = function(message,id) { if(id == null) { id = 0; } if(message == null) { message = ""; } this.message = message; this.errorID = id; this.name = "Error"; }; $hxClasses["openfl.errors.Error"] = openfl_errors_Error; openfl_errors_Error.__name__ = ["openfl","errors","Error"]; openfl_errors_Error.prototype = { errorID: null ,message: null ,name: null ,getStackTrace: function() { return haxe_CallStack.toString(haxe_CallStack.exceptionStack()); } ,toString: function() { if(this.message != null) { return this.message; } else { return "Error"; } } ,__class__: openfl_errors_Error }; var openfl_errors_ArgumentError = function(message) { if(message == null) { message = ""; } openfl_errors_Error.call(this,message); this.name = "ArgumentError"; }; $hxClasses["openfl.errors.ArgumentError"] = openfl_errors_ArgumentError; openfl_errors_ArgumentError.__name__ = ["openfl","errors","ArgumentError"]; openfl_errors_ArgumentError.__super__ = openfl_errors_Error; openfl_errors_ArgumentError.prototype = $extend(openfl_errors_Error.prototype,{ __class__: openfl_errors_ArgumentError }); var openfl_errors_IOError = function(message) { if(message == null) { message = ""; } openfl_errors_Error.call(this,message); this.name = "IOError"; }; $hxClasses["openfl.errors.IOError"] = openfl_errors_IOError; openfl_errors_IOError.__name__ = ["openfl","errors","IOError"]; openfl_errors_IOError.__super__ = openfl_errors_Error; openfl_errors_IOError.prototype = $extend(openfl_errors_Error.prototype,{ __class__: openfl_errors_IOError }); var openfl_errors_EOFError = function() { openfl_errors_IOError.call(this,"End of file was encountered"); this.name = "EOFError"; this.errorID = 2030; }; $hxClasses["openfl.errors.EOFError"] = openfl_errors_EOFError; openfl_errors_EOFError.__name__ = ["openfl","errors","EOFError"]; openfl_errors_EOFError.__super__ = openfl_errors_IOError; openfl_errors_EOFError.prototype = $extend(openfl_errors_IOError.prototype,{ __class__: openfl_errors_EOFError }); var openfl_errors_IllegalOperationError = function(message) { if(message == null) { message = ""; } openfl_errors_Error.call(this,message,0); this.name = "IllegalOperationError"; }; $hxClasses["openfl.errors.IllegalOperationError"] = openfl_errors_IllegalOperationError; openfl_errors_IllegalOperationError.__name__ = ["openfl","errors","IllegalOperationError"]; openfl_errors_IllegalOperationError.__super__ = openfl_errors_Error; openfl_errors_IllegalOperationError.prototype = $extend(openfl_errors_Error.prototype,{ __class__: openfl_errors_IllegalOperationError }); var openfl_errors_RangeError = function(message) { if(message == null) { message = ""; } openfl_errors_Error.call(this,message,0); this.name = "RangeError"; }; $hxClasses["openfl.errors.RangeError"] = openfl_errors_RangeError; openfl_errors_RangeError.__name__ = ["openfl","errors","RangeError"]; openfl_errors_RangeError.__super__ = openfl_errors_Error; openfl_errors_RangeError.prototype = $extend(openfl_errors_Error.prototype,{ __class__: openfl_errors_RangeError }); var openfl_errors_TypeError = function(message) { if(message == null) { message = ""; } openfl_errors_Error.call(this,message,0); this.name = "TypeError"; }; $hxClasses["openfl.errors.TypeError"] = openfl_errors_TypeError; openfl_errors_TypeError.__name__ = ["openfl","errors","TypeError"]; openfl_errors_TypeError.__super__ = openfl_errors_Error; openfl_errors_TypeError.prototype = $extend(openfl_errors_Error.prototype,{ __class__: openfl_errors_TypeError }); var openfl_events_ActivityEvent = function(type,bubbles,cancelable,activating) { if(activating == null) { activating = false; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.activating = activating; }; $hxClasses["openfl.events.ActivityEvent"] = openfl_events_ActivityEvent; openfl_events_ActivityEvent.__name__ = ["openfl","events","ActivityEvent"]; openfl_events_ActivityEvent.__super__ = openfl_events_Event; openfl_events_ActivityEvent.prototype = $extend(openfl_events_Event.prototype,{ activating: null ,clone: function() { var event = new openfl_events_ActivityEvent(this.type,this.bubbles,this.cancelable,this.activating); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("ActivityEvent",["type","bubbles","cancelable","activating"]); } ,__class__: openfl_events_ActivityEvent }); var openfl_events_TextEvent = function(type,bubbles,cancelable,text) { if(text == null) { text = ""; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.text = text; }; $hxClasses["openfl.events.TextEvent"] = openfl_events_TextEvent; openfl_events_TextEvent.__name__ = ["openfl","events","TextEvent"]; openfl_events_TextEvent.__super__ = openfl_events_Event; openfl_events_TextEvent.prototype = $extend(openfl_events_Event.prototype,{ text: null ,clone: function() { var event = new openfl_events_TextEvent(this.type,this.bubbles,this.cancelable,this.text); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("TextEvent",["type","bubbles","cancelable","text"]); } ,__class__: openfl_events_TextEvent }); var openfl_events_ErrorEvent = function(type,bubbles,cancelable,text,id) { if(id == null) { id = 0; } if(text == null) { text = ""; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_TextEvent.call(this,type,bubbles,cancelable,text); this.errorID = id; }; $hxClasses["openfl.events.ErrorEvent"] = openfl_events_ErrorEvent; openfl_events_ErrorEvent.__name__ = ["openfl","events","ErrorEvent"]; openfl_events_ErrorEvent.__super__ = openfl_events_TextEvent; openfl_events_ErrorEvent.prototype = $extend(openfl_events_TextEvent.prototype,{ errorID: null ,clone: function() { var event = new openfl_events_ErrorEvent(this.type,this.bubbles,this.cancelable,this.text,this.errorID); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("ErrorEvent",["type","bubbles","cancelable","text","errorID"]); } ,__class__: openfl_events_ErrorEvent }); var openfl_events__$EventDispatcher_DispatchIterator = function(list) { this.list = list; this.index = list.length; }; $hxClasses["openfl.events._EventDispatcher.DispatchIterator"] = openfl_events__$EventDispatcher_DispatchIterator; openfl_events__$EventDispatcher_DispatchIterator.__name__ = ["openfl","events","_EventDispatcher","DispatchIterator"]; openfl_events__$EventDispatcher_DispatchIterator.prototype = { active: null ,index: null ,isCopy: null ,list: null ,copy: function() { if(!this.isCopy) { this.list = this.list.slice(); this.isCopy = true; } } ,hasNext: function() { if(this.index < this.list.length) { return true; } else { this.active = false; return false; } } ,next: function() { return this.list[this.index++]; } ,remove: function(listener,listIndex) { if(this.active) { if(!this.isCopy) { if(listIndex < this.index) { this.index--; } } else { var _g1 = this.index; var _g = this.list.length; while(_g1 < _g) { var i = _g1++; if(this.list[i] == listener) { this.list.splice(i,1); break; } } } } } ,reset: function(list) { this.list = list; this.active = true; this.isCopy = false; this.index = 0; } ,__class__: openfl_events__$EventDispatcher_DispatchIterator }; var openfl_events__$EventDispatcher_Listener = function(callback,useCapture,priority) { this.callback = callback; this.useCapture = useCapture; this.priority = priority; }; $hxClasses["openfl.events._EventDispatcher.Listener"] = openfl_events__$EventDispatcher_Listener; openfl_events__$EventDispatcher_Listener.__name__ = ["openfl","events","_EventDispatcher","Listener"]; openfl_events__$EventDispatcher_Listener.prototype = { callback: null ,priority: null ,useCapture: null ,match: function(callback,useCapture) { if(Reflect.compareMethods(this.callback,callback)) { return this.useCapture == useCapture; } else { return false; } } ,__class__: openfl_events__$EventDispatcher_Listener }; var openfl_events_FocusEvent = function(type,bubbles,cancelable,relatedObject,shiftKey,keyCode) { if(keyCode == null) { keyCode = 0; } if(shiftKey == null) { shiftKey = false; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.keyCode = keyCode; this.shiftKey = shiftKey; this.relatedObject = relatedObject; }; $hxClasses["openfl.events.FocusEvent"] = openfl_events_FocusEvent; openfl_events_FocusEvent.__name__ = ["openfl","events","FocusEvent"]; openfl_events_FocusEvent.__super__ = openfl_events_Event; openfl_events_FocusEvent.prototype = $extend(openfl_events_Event.prototype,{ keyCode: null ,relatedObject: null ,shiftKey: null ,clone: function() { var event = new openfl_events_FocusEvent(this.type,this.bubbles,this.cancelable,this.relatedObject,this.shiftKey,this.keyCode); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("FocusEvent",["type","bubbles","cancelable","relatedObject","shiftKey","keyCode"]); } ,__class__: openfl_events_FocusEvent }); var openfl_events_FullScreenEvent = function(type,bubbles,cancelable,fullScreen,interactive) { if(interactive == null) { interactive = false; } if(fullScreen == null) { fullScreen = false; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_ActivityEvent.call(this,type,bubbles,cancelable); this.fullScreen = fullScreen; this.interactive = interactive; }; $hxClasses["openfl.events.FullScreenEvent"] = openfl_events_FullScreenEvent; openfl_events_FullScreenEvent.__name__ = ["openfl","events","FullScreenEvent"]; openfl_events_FullScreenEvent.__super__ = openfl_events_ActivityEvent; openfl_events_FullScreenEvent.prototype = $extend(openfl_events_ActivityEvent.prototype,{ fullScreen: null ,interactive: null ,clone: function() { var event = new openfl_events_FullScreenEvent(this.type,this.bubbles,this.cancelable,this.fullScreen,this.interactive); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("FullscreenEvent",["type","bubbles","cancelable","fullscreen","interactive"]); } ,__class__: openfl_events_FullScreenEvent }); var openfl_events_GameInputEvent = function(type,bubbles,cancelable,device) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = true; } openfl_events_Event.call(this,type,bubbles,cancelable); this.device = device; }; $hxClasses["openfl.events.GameInputEvent"] = openfl_events_GameInputEvent; openfl_events_GameInputEvent.__name__ = ["openfl","events","GameInputEvent"]; openfl_events_GameInputEvent.__super__ = openfl_events_Event; openfl_events_GameInputEvent.prototype = $extend(openfl_events_Event.prototype,{ device: null ,clone: function() { var event = new openfl_events_GameInputEvent(this.type,this.bubbles,this.cancelable,this.device); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("GameInputEvent",["type","bubbles","cancelable","device"]); } ,__class__: openfl_events_GameInputEvent }); var openfl_events_HTTPStatusEvent = function(type,bubbles,cancelable,status,redirected) { if(redirected == null) { redirected = false; } if(status == null) { status = 0; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } this.status = status; this.redirected = redirected; openfl_events_Event.call(this,type,bubbles,cancelable); }; $hxClasses["openfl.events.HTTPStatusEvent"] = openfl_events_HTTPStatusEvent; openfl_events_HTTPStatusEvent.__name__ = ["openfl","events","HTTPStatusEvent"]; openfl_events_HTTPStatusEvent.__super__ = openfl_events_Event; openfl_events_HTTPStatusEvent.prototype = $extend(openfl_events_Event.prototype,{ redirected: null ,responseHeaders: null ,responseURL: null ,status: null ,clone: function() { var event = new openfl_events_HTTPStatusEvent(this.type,this.bubbles,null,this.status,this.redirected); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("HTTPStatusEvent",["type","bubbles","cancelable","status","redirected"]); } ,__class__: openfl_events_HTTPStatusEvent }); var openfl_events_IOErrorEvent = function(type,bubbles,cancelable,text,id) { if(id == null) { id = 0; } if(text == null) { text = ""; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = true; } openfl_events_ErrorEvent.call(this,type,bubbles,cancelable,text,id); }; $hxClasses["openfl.events.IOErrorEvent"] = openfl_events_IOErrorEvent; openfl_events_IOErrorEvent.__name__ = ["openfl","events","IOErrorEvent"]; openfl_events_IOErrorEvent.__super__ = openfl_events_ErrorEvent; openfl_events_IOErrorEvent.prototype = $extend(openfl_events_ErrorEvent.prototype,{ clone: function() { var event = new openfl_events_IOErrorEvent(this.type,this.bubbles,this.cancelable,this.text,this.errorID); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("IOErrorEvent",["type","bubbles","cancelable","text","errorID"]); } ,__class__: openfl_events_IOErrorEvent }); var openfl_events_KeyboardEvent = function(type,bubbles,cancelable,charCodeValue,keyCodeValue,keyLocationValue,ctrlKeyValue,altKeyValue,shiftKeyValue,controlKeyValue,commandKeyValue) { if(commandKeyValue == null) { commandKeyValue = false; } if(controlKeyValue == null) { controlKeyValue = false; } if(shiftKeyValue == null) { shiftKeyValue = false; } if(altKeyValue == null) { altKeyValue = false; } if(ctrlKeyValue == null) { ctrlKeyValue = false; } if(keyCodeValue == null) { keyCodeValue = 0; } if(charCodeValue == null) { charCodeValue = 0; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.charCode = charCodeValue; this.keyCode = keyCodeValue; this.keyLocation = keyLocationValue != null ? keyLocationValue : 0; this.ctrlKey = ctrlKeyValue; this.altKey = altKeyValue; this.shiftKey = shiftKeyValue; this.controlKey = controlKeyValue; this.commandKey = commandKeyValue; }; $hxClasses["openfl.events.KeyboardEvent"] = openfl_events_KeyboardEvent; openfl_events_KeyboardEvent.__name__ = ["openfl","events","KeyboardEvent"]; openfl_events_KeyboardEvent.__super__ = openfl_events_Event; openfl_events_KeyboardEvent.prototype = $extend(openfl_events_Event.prototype,{ altKey: null ,charCode: null ,ctrlKey: null ,commandKey: null ,controlKey: null ,keyCode: null ,keyLocation: null ,shiftKey: null ,clone: function() { var event = new openfl_events_KeyboardEvent(this.type,this.bubbles,this.cancelable,this.charCode,this.keyCode,this.keyLocation,this.ctrlKey,this.altKey,this.shiftKey,this.controlKey,this.commandKey); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("KeyboardEvent",["type","bubbles","cancelable","charCode","keyCode","keyLocation","ctrlKey","altKey","shiftKey"]); } ,__class__: openfl_events_KeyboardEvent }); var openfl_events_MouseEvent = function(type,bubbles,cancelable,localX,localY,relatedObject,ctrlKey,altKey,shiftKey,buttonDown,delta,commandKey,clickCount) { if(clickCount == null) { clickCount = 0; } if(commandKey == null) { commandKey = false; } if(delta == null) { delta = 0; } if(buttonDown == null) { buttonDown = false; } if(shiftKey == null) { shiftKey = false; } if(altKey == null) { altKey = false; } if(ctrlKey == null) { ctrlKey = false; } if(localY == null) { localY = 0; } if(localX == null) { localX = 0; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = true; } openfl_events_Event.call(this,type,bubbles,cancelable); this.shiftKey = shiftKey; this.altKey = altKey; this.ctrlKey = ctrlKey; this.bubbles = bubbles; this.relatedObject = relatedObject; this.delta = delta; this.localX = localX; this.localY = localY; this.buttonDown = buttonDown; this.commandKey = commandKey; this.clickCount = clickCount; this.isRelatedObjectInaccessible = false; this.stageX = NaN; this.stageY = NaN; }; $hxClasses["openfl.events.MouseEvent"] = openfl_events_MouseEvent; openfl_events_MouseEvent.__name__ = ["openfl","events","MouseEvent"]; openfl_events_MouseEvent.__create = function(type,button,stageX,stageY,local,target,delta) { if(delta == null) { delta = 0; } if(type == "mouseDown") { openfl_events_MouseEvent.__buttonDown = true; } else { openfl_events_MouseEvent.__buttonDown = false; } var event = new openfl_events_MouseEvent(type,true,false,local.x,local.y,null,openfl_events_MouseEvent.__ctrlKey,openfl_events_MouseEvent.__altKey,openfl_events_MouseEvent.__shiftKey,openfl_events_MouseEvent.__buttonDown,delta,openfl_events_MouseEvent.__commandKey); event.stageX = stageX; event.stageY = stageY; event.target = target; return event; }; openfl_events_MouseEvent.__super__ = openfl_events_Event; openfl_events_MouseEvent.prototype = $extend(openfl_events_Event.prototype,{ altKey: null ,buttonDown: null ,commandKey: null ,clickCount: null ,ctrlKey: null ,delta: null ,isRelatedObjectInaccessible: null ,localX: null ,localY: null ,relatedObject: null ,shiftKey: null ,stageX: null ,stageY: null ,clone: function() { var event = new openfl_events_MouseEvent(this.type,this.bubbles,this.cancelable,this.localX,this.localY,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta,this.commandKey,this.clickCount); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("MouseEvent",["type","bubbles","cancelable","localX","localY","relatedObject","ctrlKey","altKey","shiftKey","buttonDown","delta"]); } ,updateAfterEvent: function() { } ,__class__: openfl_events_MouseEvent }); var openfl_events_NetStatusEvent = function(type,bubbles,cancelable,info) { if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } this.info = info; openfl_events_Event.call(this,type,bubbles,cancelable); }; $hxClasses["openfl.events.NetStatusEvent"] = openfl_events_NetStatusEvent; openfl_events_NetStatusEvent.__name__ = ["openfl","events","NetStatusEvent"]; openfl_events_NetStatusEvent.__super__ = openfl_events_Event; openfl_events_NetStatusEvent.prototype = $extend(openfl_events_Event.prototype,{ info: null ,clone: function() { var event = new openfl_events_NetStatusEvent(this.type,this.bubbles,this.cancelable,this.info); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("NetStatusEvent",["type","bubbles","cancelable","info"]); } ,__class__: openfl_events_NetStatusEvent }); var openfl_events_ProgressEvent = function(type,bubbles,cancelable,bytesLoaded,bytesTotal) { if(bytesTotal == null) { bytesTotal = 0; } if(bytesLoaded == null) { bytesLoaded = 0; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_Event.call(this,type,bubbles,cancelable); this.bytesLoaded = bytesLoaded; this.bytesTotal = bytesTotal; }; $hxClasses["openfl.events.ProgressEvent"] = openfl_events_ProgressEvent; openfl_events_ProgressEvent.__name__ = ["openfl","events","ProgressEvent"]; openfl_events_ProgressEvent.__super__ = openfl_events_Event; openfl_events_ProgressEvent.prototype = $extend(openfl_events_Event.prototype,{ bytesLoaded: null ,bytesTotal: null ,clone: function() { var event = new openfl_events_ProgressEvent(this.type,this.bubbles,this.cancelable,this.bytesLoaded,this.bytesTotal); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("ProgressEvent",["type","bubbles","cancelable","bytesLoaded","bytesTotal"]); } ,__class__: openfl_events_ProgressEvent }); var openfl_events_SecurityErrorEvent = function(type,bubbles,cancelable,text,id) { if(id == null) { id = 0; } if(text == null) { text = ""; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = false; } openfl_events_ErrorEvent.call(this,type,bubbles,cancelable,text,id); }; $hxClasses["openfl.events.SecurityErrorEvent"] = openfl_events_SecurityErrorEvent; openfl_events_SecurityErrorEvent.__name__ = ["openfl","events","SecurityErrorEvent"]; openfl_events_SecurityErrorEvent.__super__ = openfl_events_ErrorEvent; openfl_events_SecurityErrorEvent.prototype = $extend(openfl_events_ErrorEvent.prototype,{ clone: function() { var event = new openfl_events_SecurityErrorEvent(this.type,this.bubbles,this.cancelable,this.text,this.errorID); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("SecurityErrorEvent",["type","bubbles","cancelable","text","errorID"]); } ,__class__: openfl_events_SecurityErrorEvent }); var openfl_events_TouchEvent = function(type,bubbles,cancelable,touchPointID,isPrimaryTouchPoint,localX,localY,sizeX,sizeY,pressure,relatedObject,ctrlKey,altKey,shiftKey,commandKey,controlKey,timestamp,touchIntent,samples,isTouchPointCanceled) { if(isTouchPointCanceled == null) { isTouchPointCanceled = false; } if(timestamp == null) { timestamp = 0; } if(controlKey == null) { controlKey = false; } if(commandKey == null) { commandKey = false; } if(shiftKey == null) { shiftKey = false; } if(altKey == null) { altKey = false; } if(ctrlKey == null) { ctrlKey = false; } if(pressure == null) { pressure = 0; } if(sizeY == null) { sizeY = 0; } if(sizeX == null) { sizeX = 0; } if(localY == null) { localY = 0; } if(localX == null) { localX = 0; } if(isPrimaryTouchPoint == null) { isPrimaryTouchPoint = false; } if(touchPointID == null) { touchPointID = 0; } if(cancelable == null) { cancelable = false; } if(bubbles == null) { bubbles = true; } openfl_events_Event.call(this,type,bubbles,cancelable); this.touchPointID = touchPointID; this.isPrimaryTouchPoint = isPrimaryTouchPoint; this.localX = localX; this.localY = localY; this.sizeX = sizeX; this.sizeY = sizeY; this.pressure = pressure; this.relatedObject = relatedObject; this.ctrlKey = ctrlKey; this.altKey = altKey; this.shiftKey = shiftKey; this.commandKey = commandKey; this.controlKey = controlKey; this.stageX = NaN; this.stageY = NaN; }; $hxClasses["openfl.events.TouchEvent"] = openfl_events_TouchEvent; openfl_events_TouchEvent.__name__ = ["openfl","events","TouchEvent"]; openfl_events_TouchEvent.__create = function(type,touch,stageX,stageY,local,target) { var evt = new openfl_events_TouchEvent(type,true,false,0,true,local.x,local.y,1,1,1); evt.stageX = stageX; evt.stageY = stageY; evt.target = target; return evt; }; openfl_events_TouchEvent.__super__ = openfl_events_Event; openfl_events_TouchEvent.prototype = $extend(openfl_events_Event.prototype,{ altKey: null ,commandKey: null ,controlKey: null ,ctrlKey: null ,delta: null ,isPrimaryTouchPoint: null ,localX: null ,localY: null ,pressure: null ,relatedObject: null ,shiftKey: null ,sizeX: null ,sizeY: null ,stageX: null ,stageY: null ,touchPointID: null ,clone: function() { var event = new openfl_events_TouchEvent(this.type,this.bubbles,this.cancelable,this.touchPointID,this.isPrimaryTouchPoint,this.localX,this.localY,this.sizeX,this.sizeY,this.pressure,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.commandKey,this.controlKey); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("TouchEvent",["type","bubbles","cancelable","touchPointID","isPrimaryTouchPoint","localX","localY","sizeX","sizeY","pressure","relatedObject","ctrlKey","altKey","shiftKey","commandKey","controlKey"]); } ,updateAfterEvent: function() { } ,__class__: openfl_events_TouchEvent }); var openfl_events_UncaughtErrorEvent = function(type,bubbles,cancelable,error) { if(cancelable == null) { cancelable = true; } if(bubbles == null) { bubbles = true; } openfl_events_ErrorEvent.call(this,type,bubbles,cancelable); this.error = error; }; $hxClasses["openfl.events.UncaughtErrorEvent"] = openfl_events_UncaughtErrorEvent; openfl_events_UncaughtErrorEvent.__name__ = ["openfl","events","UncaughtErrorEvent"]; openfl_events_UncaughtErrorEvent.__super__ = openfl_events_ErrorEvent; openfl_events_UncaughtErrorEvent.prototype = $extend(openfl_events_ErrorEvent.prototype,{ error: null ,clone: function() { var event = new openfl_events_UncaughtErrorEvent(this.type,this.bubbles,this.cancelable,this.error); event.target = this.target; event.currentTarget = this.currentTarget; event.eventPhase = this.eventPhase; return event; } ,toString: function() { return this.__formatToString("UncaughtErrorEvent",["type","bubbles","cancelable","error"]); } ,__class__: openfl_events_UncaughtErrorEvent }); var openfl_events_UncaughtErrorEvents = function() { openfl_events_EventDispatcher.call(this); }; $hxClasses["openfl.events.UncaughtErrorEvents"] = openfl_events_UncaughtErrorEvents; openfl_events_UncaughtErrorEvents.__name__ = ["openfl","events","UncaughtErrorEvents"]; openfl_events_UncaughtErrorEvents.__super__ = openfl_events_EventDispatcher; openfl_events_UncaughtErrorEvents.prototype = $extend(openfl_events_EventDispatcher.prototype,{ __class__: openfl_events_UncaughtErrorEvents }); var openfl_filters_BitmapFilter = function() { this.__bottomExtension = 0; this.__leftExtension = 0; this.__needSecondBitmapData = true; this.__numShaderPasses = 0; this.__preserveObject = false; this.__rightExtension = 0; this.__topExtension = 0; }; $hxClasses["openfl.filters.BitmapFilter"] = openfl_filters_BitmapFilter; openfl_filters_BitmapFilter.__name__ = ["openfl","filters","BitmapFilter"]; openfl_filters_BitmapFilter.prototype = { __bottomExtension: null ,__leftExtension: null ,__needSecondBitmapData: null ,__numShaderPasses: null ,__preserveObject: null ,__renderDirty: null ,__rightExtension: null ,__topExtension: null ,clone: function() { return new openfl_filters_BitmapFilter(); } ,__applyFilter: function(bitmapData,sourceBitmapData,sourceRect,destPoint) { return sourceBitmapData; } ,__initShader: function(renderSession,pass) { return renderSession.shaderManager.defaultShader; } ,__class__: openfl_filters_BitmapFilter }; var openfl_filters_BlurFilter = function(blurX,blurY,quality) { if(quality == null) { quality = 1; } if(blurY == null) { blurY = 4; } if(blurX == null) { blurX = 4; } openfl_filters_BitmapFilter.call(this); this.set_blurX(blurX); this.set_blurY(blurY); this.set_quality(quality); this.__needSecondBitmapData = true; this.__preserveObject = false; }; $hxClasses["openfl.filters.BlurFilter"] = openfl_filters_BlurFilter; openfl_filters_BlurFilter.__name__ = ["openfl","filters","BlurFilter"]; openfl_filters_BlurFilter.__super__ = openfl_filters_BitmapFilter; openfl_filters_BlurFilter.prototype = $extend(openfl_filters_BitmapFilter.prototype,{ blurX: null ,blurY: null ,quality: null ,horizontalPasses: null ,verticalPasses: null ,clone: function() { return new openfl_filters_BlurFilter(this.blurX,this.blurY,this.quality); } ,__applyFilter: function(bitmapData,sourceBitmapData,sourceRect,destPoint) { var finalImage = lime_graphics_utils_ImageDataUtil.gaussianBlur(bitmapData.image,sourceBitmapData.image,sourceRect.__toLimeRectangle(),destPoint.__toLimeVector2(),this.blurX,this.blurY,this.quality); if(finalImage == bitmapData.image) { return bitmapData; } return sourceBitmapData; } ,__initShader: function(renderSession,pass) { return null; } ,set_blurX: function(value) { if(value != this.blurX) { this.blurX = value; this.__renderDirty = true; this.__leftExtension = value > 0 ? Math.ceil(value) : 0; this.__rightExtension = this.__leftExtension; } return value; } ,set_blurY: function(value) { if(value != this.blurY) { this.blurY = value; this.__renderDirty = true; this.__topExtension = value > 0 ? Math.ceil(value) : 0; this.__bottomExtension = this.__topExtension; } return value; } ,set_quality: function(value) { this.horizontalPasses = this.blurX <= 0 ? 0 : Math.round(this.blurX * (value / 4)) + 1; this.verticalPasses = this.blurY <= 0 ? 0 : Math.round(this.blurY * (value / 4)) + 1; this.__numShaderPasses = this.horizontalPasses + this.verticalPasses; if(value != this.quality) { this.__renderDirty = true; } return this.quality = value; } ,__class__: openfl_filters_BlurFilter ,__properties__: {set_quality:"set_quality",set_blurY:"set_blurY",set_blurX:"set_blurX"} }); var openfl_filters__$BlurFilter_BlurShader = function() { if(this.__glFragmentSource == null) { this.__glFragmentSource = "varying float vAlpha;\n\t\tvarying vec2 vTexCoord;\n\t\tuniform sampler2D uImage0;\n\t\t\n\t\tvarying vec2 vBlurCoords[7];\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 sum = vec4(0.0);\n\t\t\tsum += texture2D(uImage0, vBlurCoords[0]) * 0.00443;\n\t\t\tsum += texture2D(uImage0, vBlurCoords[1]) * 0.05399;\n\t\t\tsum += texture2D(uImage0, vBlurCoords[2]) * 0.24197;\n\t\t\tsum += texture2D(uImage0, vBlurCoords[3]) * 0.39894;\n\t\t\tsum += texture2D(uImage0, vBlurCoords[4]) * 0.24197;\n\t\t\tsum += texture2D(uImage0, vBlurCoords[5]) * 0.05399;\n\t\t\tsum += texture2D(uImage0, vBlurCoords[6]) * 0.00443;\n\t\t\t\n\t\t\tgl_FragColor = sum;\n\t\t\t\n\t\t}"; } if(this.__glVertexSource == null) { this.__glVertexSource = "attribute float aAlpha;\n\t\tattribute vec4 aPosition;\n\t\tattribute vec2 aTexCoord;\n\t\tvarying float vAlpha;\n\t\tvarying vec2 vTexCoord;\n\t\t\n\t\tuniform mat4 uMatrix;\n\t\t\n\t\tuniform vec2 uRadius;\n\t\tvarying vec2 vBlurCoords[7];\n\t\tuniform vec2 uTextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvAlpha = aAlpha;\n\t\t\tvTexCoord = aTexCoord;\n\t\t\tgl_Position = uMatrix * aPosition;\n\t\t\t\n\t\t\tvec2 r = uRadius / uTextureSize;\n\t\t\tvBlurCoords[0] = aTexCoord - r * 1.0;\n\t\t\tvBlurCoords[1] = aTexCoord - r * 0.75;\n\t\t\tvBlurCoords[2] = aTexCoord - r * 0.5;\n\t\t\tvBlurCoords[3] = aTexCoord;\n\t\t\tvBlurCoords[4] = aTexCoord + r * 0.5;\n\t\t\tvBlurCoords[5] = aTexCoord + r * 0.75;\n\t\t\tvBlurCoords[6] = aTexCoord + r * 1.0;\n\t\t\t\n\t\t}"; } openfl_display_Shader.call(this); this.get_data().uRadius.value = [0,0]; }; $hxClasses["openfl.filters._BlurFilter.BlurShader"] = openfl_filters__$BlurFilter_BlurShader; openfl_filters__$BlurFilter_BlurShader.__name__ = ["openfl","filters","_BlurFilter","BlurShader"]; openfl_filters__$BlurFilter_BlurShader.__super__ = openfl_display_Shader; openfl_filters__$BlurFilter_BlurShader.prototype = $extend(openfl_display_Shader.prototype,{ __update: function() { var tmp = this.get_data().uImage0.input.width; this.get_data().uTextureSize.value = [tmp,this.get_data().uImage0.input.height]; openfl_display_Shader.prototype.__update.call(this); } ,__class__: openfl_filters__$BlurFilter_BlurShader }); var openfl_filters_ColorMatrixFilter = function(matrix) { openfl_filters_BitmapFilter.call(this); this.set_matrix(matrix); this.__numShaderPasses = 0; this.__needSecondBitmapData = false; }; $hxClasses["openfl.filters.ColorMatrixFilter"] = openfl_filters_ColorMatrixFilter; openfl_filters_ColorMatrixFilter.__name__ = ["openfl","filters","ColorMatrixFilter"]; openfl_filters_ColorMatrixFilter.__super__ = openfl_filters_BitmapFilter; openfl_filters_ColorMatrixFilter.prototype = $extend(openfl_filters_BitmapFilter.prototype,{ matrix: null ,clone: function() { return new openfl_filters_ColorMatrixFilter(this.matrix); } ,__applyFilter: function(destBitmapData,sourceBitmapData,sourceRect,destPoint) { var sourceImage = sourceBitmapData.image; var image = destBitmapData.image; lime_graphics_utils_ImageCanvasUtil.convertToData(sourceImage); lime_graphics_utils_ImageCanvasUtil.convertToData(image); var sourceData = sourceImage.get_data(); var destData = image.get_data(); var offsetX = destPoint.x - sourceRect.x | 0; var offsetY = destPoint.y - sourceRect.y | 0; var sourceStride = sourceBitmapData.width * 4; var destStride = destBitmapData.width * 4; var sourceFormat = sourceImage.buffer.format; var destFormat = image.buffer.format; var sourcePremultiplied = sourceImage.buffer.premultiplied; var destPremultiplied = image.buffer.premultiplied; var sourcePixel; var destPixel = 0; var sourceOffset; var destOffset; var _g1 = sourceRect.y | 0; var _g = sourceRect.height | 0; while(_g1 < _g) { var row = _g1++; var _g3 = sourceRect.x | 0; var _g2 = sourceRect.width | 0; while(_g3 < _g2) { var column = _g3++; sourceOffset = row * sourceStride + column * 4; destOffset = (row + offsetX) * destStride + (column + offsetY) * 4; switch(sourceFormat) { case 0: sourcePixel = (sourceData[sourceOffset] & 255) << 24 | (sourceData[sourceOffset + 1] & 255) << 16 | (sourceData[sourceOffset + 2] & 255) << 8 | sourceData[sourceOffset + 3] & 255; break; case 1: sourcePixel = (sourceData[sourceOffset + 1] & 255) << 24 | (sourceData[sourceOffset + 2] & 255) << 16 | (sourceData[sourceOffset + 3] & 255) << 8 | sourceData[sourceOffset] & 255; break; case 2: sourcePixel = (sourceData[sourceOffset + 2] & 255) << 24 | (sourceData[sourceOffset + 1] & 255) << 16 | (sourceData[sourceOffset] & 255) << 8 | sourceData[sourceOffset + 3] & 255; break; } if(sourcePremultiplied) { if((sourcePixel & 255) != 0 && (sourcePixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.unmult = 255.0 / (sourcePixel & 255); sourcePixel = (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 24 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 16 | (lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[Math.round((sourcePixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.unmult)] & 255) << 8 | sourcePixel & 255 & 255; } } if((sourcePixel & 255) == 0) { destPixel = 0; } else { var value = this.matrix[0] * (sourcePixel >>> 24 & 255) + this.matrix[1] * (sourcePixel >>> 16 & 255) + this.matrix[2] * (sourcePixel >>> 8 & 255) + this.matrix[3] * (sourcePixel & 255) + this.matrix[4] | 0; destPixel = (value & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value1 = this.matrix[5] * (sourcePixel >>> 24 & 255) + this.matrix[6] * (sourcePixel >>> 16 & 255) + this.matrix[7] * (sourcePixel >>> 8 & 255) + this.matrix[8] * (sourcePixel & 255) + this.matrix[9] | 0; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (value1 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | destPixel & 255 & 255; var value2 = this.matrix[10] * (sourcePixel >>> 24 & 255) + this.matrix[11] * (sourcePixel >>> 16 & 255) + this.matrix[12] * (sourcePixel >>> 8 & 255) + this.matrix[13] * (sourcePixel & 255) + this.matrix[14] | 0; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (value2 & 255) << 8 | destPixel & 255 & 255; var value3 = this.matrix[15] * (sourcePixel >>> 24 & 255) + this.matrix[16] * (sourcePixel >>> 16 & 255) + this.matrix[17] * (sourcePixel >>> 8 & 255) + this.matrix[18] * (sourcePixel & 255) + this.matrix[19] | 0; destPixel = (destPixel >>> 24 & 255 & 255) << 24 | (destPixel >>> 16 & 255 & 255) << 16 | (destPixel >>> 8 & 255 & 255) << 8 | value3 & 255; } if(destPremultiplied) { if((destPixel & 255) == 0) { if(destPixel != 0) { destPixel = 0; } } else if((destPixel & 255) != 255) { lime_math_color__$RGBA_RGBA_$Impl_$.a16 = lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[destPixel & 255]; destPixel = ((destPixel >>> 24 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 24 | ((destPixel >>> 16 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 16 | ((destPixel >>> 8 & 255) * lime_math_color__$RGBA_RGBA_$Impl_$.a16 >> 16 & 255) << 8 | destPixel & 255 & 255; } } switch(destFormat) { case 0: destData[destOffset] = destPixel >>> 24 & 255; destData[destOffset + 1] = destPixel >>> 16 & 255; destData[destOffset + 2] = destPixel >>> 8 & 255; destData[destOffset + 3] = destPixel & 255; break; case 1: destData[destOffset] = destPixel & 255; destData[destOffset + 1] = destPixel >>> 24 & 255; destData[destOffset + 2] = destPixel >>> 16 & 255; destData[destOffset + 3] = destPixel >>> 8 & 255; break; case 2: destData[destOffset] = destPixel >>> 8 & 255; destData[destOffset + 1] = destPixel >>> 16 & 255; destData[destOffset + 2] = destPixel >>> 24 & 255; destData[destOffset + 3] = destPixel & 255; break; } } } destBitmapData.image.dirty = true; return destBitmapData; } ,__initShader: function(renderSession,pass) { return null; } ,set_matrix: function(value) { if(value == null) { value = [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]; } return this.matrix = value; } ,__class__: openfl_filters_ColorMatrixFilter ,__properties__: {set_matrix:"set_matrix"} }); var openfl_filters__$ColorMatrixFilter_ColorMatrixShader = function() { if(this.__glFragmentSource == null) { this.__glFragmentSource = "varying float vAlpha;\n\t\tvarying vec2 vTexCoord;\n\t\tuniform sampler2D uImage0;\n\t\t\n\t\tuniform mat4 uMultipliers;\n\t\tuniform vec4 uOffsets;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvec4 color = texture2D (uImage0, vTexCoord);\n\t\t\t\n\t\t\tif (color.a == 0.0) {\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (0.0, 0.0, 0.0, 0.0);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tcolor = vec4 (color.rgb / color.a, color.a);\n\t\t\t\tcolor = uOffsets + color * uMultipliers;\n\t\t\t\t\n\t\t\t\tgl_FragColor = vec4 (color.rgb * color.a * vAlpha, color.a * vAlpha);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}"; } openfl_display_Shader.call(this); this.get_data().uMultipliers.value = [1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]; this.get_data().uOffsets.value = [0,0,0,0]; }; $hxClasses["openfl.filters._ColorMatrixFilter.ColorMatrixShader"] = openfl_filters__$ColorMatrixFilter_ColorMatrixShader; openfl_filters__$ColorMatrixFilter_ColorMatrixShader.__name__ = ["openfl","filters","_ColorMatrixFilter","ColorMatrixShader"]; openfl_filters__$ColorMatrixFilter_ColorMatrixShader.__super__ = openfl_display_Shader; openfl_filters__$ColorMatrixFilter_ColorMatrixShader.prototype = $extend(openfl_display_Shader.prototype,{ init: function(matrix) { var multipliers = this.get_data().uMultipliers.value; var offsets = this.get_data().uOffsets.value; multipliers[0] = matrix[0]; multipliers[1] = matrix[1]; multipliers[2] = matrix[2]; multipliers[3] = matrix[3]; multipliers[4] = matrix[5]; multipliers[5] = matrix[6]; multipliers[6] = matrix[7]; multipliers[7] = matrix[8]; multipliers[8] = matrix[10]; multipliers[9] = matrix[11]; multipliers[10] = matrix[12]; multipliers[11] = matrix[13]; multipliers[12] = matrix[15]; multipliers[13] = matrix[16]; multipliers[14] = matrix[17]; multipliers[15] = matrix[18]; offsets[0] = matrix[4] / 255.0; offsets[1] = matrix[9] / 255.0; offsets[2] = matrix[14] / 255.0; offsets[3] = matrix[19] / 255.0; } ,__class__: openfl_filters__$ColorMatrixFilter_ColorMatrixShader }); var openfl_filters_DropShadowFilter = function(distance,angle,color,alpha,blurX,blurY,strength,quality,inner,knockout,hideObject) { if(hideObject == null) { hideObject = false; } if(knockout == null) { knockout = false; } if(inner == null) { inner = false; } if(quality == null) { quality = 1; } if(strength == null) { strength = 1; } if(blurY == null) { blurY = 4; } if(blurX == null) { blurX = 4; } if(alpha == null) { alpha = 1; } if(color == null) { color = 0; } if(angle == null) { angle = 45; } if(distance == null) { distance = 4; } this.distance = 4; this.blurY = 0; this.blurX = 0; this.angle = 45; openfl_filters_BitmapFilter.call(this); this.__offsetX = 0; this.__offsetY = 0; this.__updateSize(); this.set_distance(distance); this.set_angle(angle); this.set_color(color); this.set_alpha(alpha); this.set_blurX(blurX); this.set_blurY(blurY); this.set_strength(strength); this.set_quality(quality); this.set_inner(inner); this.set_knockout(knockout); this.set_hideObject(hideObject); this.__needSecondBitmapData = true; this.__preserveObject = !hideObject; }; $hxClasses["openfl.filters.DropShadowFilter"] = openfl_filters_DropShadowFilter; openfl_filters_DropShadowFilter.__name__ = ["openfl","filters","DropShadowFilter"]; openfl_filters_DropShadowFilter.__super__ = openfl_filters_BitmapFilter; openfl_filters_DropShadowFilter.prototype = $extend(openfl_filters_BitmapFilter.prototype,{ alpha: null ,angle: null ,blurX: null ,blurY: null ,color: null ,distance: null ,hideObject: null ,inner: null ,knockout: null ,quality: null ,strength: null ,__offsetX: null ,__offsetY: null ,clone: function() { return new openfl_filters_DropShadowFilter(this.distance,this.angle,this.color,this.alpha,this.blurX,this.blurY,this.strength,this.quality,this.inner,this.knockout,this.hideObject); } ,__applyFilter: function(bitmapData,sourceBitmapData,sourceRect,destPoint) { var a = this.color >> 24 & 255; var r = this.color >> 16 & 255; var g = this.color >> 8 & 255; var b = this.color & 255; sourceBitmapData.colorTransform(sourceBitmapData.rect,new openfl_geom_ColorTransform(0,0,0,1,r,g,b,a)); destPoint.x += this.__offsetX; destPoint.y += this.__offsetY; var finalImage = lime_graphics_utils_ImageDataUtil.gaussianBlur(bitmapData.image,sourceBitmapData.image,sourceRect.__toLimeRectangle(),destPoint.__toLimeVector2(),this.blurX,this.blurY,this.quality,this.strength); if(finalImage == bitmapData.image) { return bitmapData; } return sourceBitmapData; } ,__updateSize: function() { this.__offsetX = this.distance * Math.cos(this.angle * Math.PI / 180) | 0; this.__offsetY = this.distance * Math.sin(this.angle * Math.PI / 180) | 0; this.__topExtension = Math.ceil((this.__offsetY < 0 ? -this.__offsetY : 0) + this.blurY); this.__bottomExtension = Math.ceil((this.__offsetY > 0 ? this.__offsetY : 0) + this.blurY); this.__leftExtension = Math.ceil((this.__offsetX < 0 ? -this.__offsetX : 0) + this.blurX); this.__rightExtension = Math.ceil((this.__offsetX > 0 ? this.__offsetX : 0) + this.blurX); } ,set_alpha: function(value) { if(value != this.alpha) { this.__renderDirty = true; } return this.alpha = value; } ,set_angle: function(value) { if(value != this.angle) { this.angle = value; this.__renderDirty = true; this.__updateSize(); } return value; } ,set_blurX: function(value) { if(value != this.blurX) { this.blurX = value; this.__renderDirty = true; this.__updateSize(); } return value; } ,set_blurY: function(value) { if(value != this.blurY) { this.blurY = value; this.__renderDirty = true; this.__updateSize(); } return value; } ,set_color: function(value) { if(value != this.color) { this.__renderDirty = true; } return this.color = value; } ,set_distance: function(value) { if(value != this.distance) { this.distance = value; this.__renderDirty = true; this.__updateSize(); } return value; } ,set_hideObject: function(value) { if(value != this.hideObject) { this.__renderDirty = true; this.__preserveObject = !value; } return this.hideObject = value; } ,set_inner: function(value) { if(value != this.inner) { this.__renderDirty = true; } return this.inner = value; } ,set_knockout: function(value) { if(value != this.knockout) { this.__renderDirty = true; } return this.knockout = value; } ,set_quality: function(value) { if(value != this.quality) { this.__renderDirty = true; } return this.quality = value; } ,set_strength: function(value) { if(value != this.strength) { this.__renderDirty = true; } return this.strength = value; } ,__class__: openfl_filters_DropShadowFilter ,__properties__: {set_strength:"set_strength",set_quality:"set_quality",set_knockout:"set_knockout",set_inner:"set_inner",set_hideObject:"set_hideObject",set_distance:"set_distance",set_color:"set_color",set_blurY:"set_blurY",set_blurX:"set_blurX",set_angle:"set_angle",set_alpha:"set_alpha"} }); var openfl_filters_GlowFilter = function(color,alpha,blurX,blurY,strength,quality,inner,knockout) { if(knockout == null) { knockout = false; } if(inner == null) { inner = false; } if(quality == null) { quality = 1; } if(strength == null) { strength = 2; } if(blurY == null) { blurY = 6; } if(blurX == null) { blurX = 6; } if(alpha == null) { alpha = 1; } if(color == null) { color = 16711680; } openfl_filters_BitmapFilter.call(this); this.set_color(color); this.set_alpha(alpha); this.set_blurX(blurX); this.set_blurY(blurY); this.set_strength(strength); this.set_quality(quality); this.set_inner(inner); this.set_knockout(knockout); this.__needSecondBitmapData = true; this.__preserveObject = true; }; $hxClasses["openfl.filters.GlowFilter"] = openfl_filters_GlowFilter; openfl_filters_GlowFilter.__name__ = ["openfl","filters","GlowFilter"]; openfl_filters_GlowFilter.__super__ = openfl_filters_BitmapFilter; openfl_filters_GlowFilter.prototype = $extend(openfl_filters_BitmapFilter.prototype,{ alpha: null ,blurX: null ,blurY: null ,color: null ,inner: null ,knockout: null ,quality: null ,strength: null ,horizontalPasses: null ,verticalPasses: null ,clone: function() { return new openfl_filters_GlowFilter(this.color,this.alpha,this.blurX,this.blurY,this.strength,this.quality,this.inner,this.knockout); } ,__applyFilter: function(bitmapData,sourceBitmapData,sourceRect,destPoint) { var r = this.color >> 16 & 255; var g = this.color >> 8 & 255; var b = this.color & 255; sourceBitmapData.colorTransform(sourceBitmapData.rect,new openfl_geom_ColorTransform(0,0,0,1,r,g,b,this.alpha * 255)); var finalImage = lime_graphics_utils_ImageDataUtil.gaussianBlur(bitmapData.image,sourceBitmapData.image,sourceRect.__toLimeRectangle(),destPoint.__toLimeVector2(),this.blurX,this.blurY,this.quality,this.strength); if(finalImage == bitmapData.image) { return bitmapData; } return sourceBitmapData; } ,__initShader: function(renderSession,pass) { return null; } ,set_alpha: function(value) { if(value != this.alpha) { this.__renderDirty = true; } return this.alpha = value; } ,set_blurX: function(value) { if(value != this.blurX) { this.blurX = value; this.__renderDirty = true; this.__leftExtension = value > 0 ? Math.ceil(value) : 0; this.__rightExtension = this.__leftExtension; } return value; } ,set_blurY: function(value) { if(value != this.blurY) { this.blurY = value; this.__renderDirty = true; this.__topExtension = value > 0 ? Math.ceil(value) : 0; this.__bottomExtension = this.__topExtension; } return value; } ,set_color: function(value) { if(value != this.color) { this.__renderDirty = true; } return this.color = value; } ,set_inner: function(value) { if(value != this.inner) { this.__renderDirty = true; } return this.inner = value; } ,set_knockout: function(value) { if(value != this.knockout) { this.__renderDirty = true; } return this.knockout = value; } ,set_quality: function(value) { this.horizontalPasses = this.blurX <= 0 ? 0 : Math.round(this.blurX * (value / 4)) + 1; this.verticalPasses = this.blurY <= 0 ? 0 : Math.round(this.blurY * (value / 4)) + 1; this.__numShaderPasses = this.horizontalPasses + this.verticalPasses; if(value != this.quality) { this.__renderDirty = true; } return this.quality = value; } ,set_strength: function(value) { if(value != this.strength) { this.__renderDirty = true; } return this.strength = value; } ,__class__: openfl_filters_GlowFilter ,__properties__: {set_strength:"set_strength",set_quality:"set_quality",set_knockout:"set_knockout",set_inner:"set_inner",set_color:"set_color",set_blurY:"set_blurY",set_blurX:"set_blurX",set_alpha:"set_alpha"} }); var openfl_filters__$GlowFilter_GlowShader = function() { if(this.__glFragmentSource == null) { this.__glFragmentSource = "varying float vAlpha;\n\t\tvarying vec2 vTexCoord;\n\t\tuniform sampler2D uImage0;\n\t\t\n\t\tuniform vec4 uColor;\n\t\t\n\t\tvarying vec2 vBlurCoords[7];\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tfloat a = 0.0;\n\t\t\ta += texture2D(uImage0, vBlurCoords[0]).a * 0.00443;\n\t\t\ta += texture2D(uImage0, vBlurCoords[1]).a * 0.05399;\n\t\t\ta += texture2D(uImage0, vBlurCoords[2]).a * 0.24197;\n\t\t\ta += texture2D(uImage0, vBlurCoords[3]).a * 0.39894;\n\t\t\ta += texture2D(uImage0, vBlurCoords[4]).a * 0.24197;\n\t\t\ta += texture2D(uImage0, vBlurCoords[5]).a * 0.05399;\n\t\t\ta += texture2D(uImage0, vBlurCoords[6]).a * 0.00443;\n\t\t\ta *= uColor.a;\n\t\t\t\n\t\t\tgl_FragColor = vec4(uColor.rgb * a, a);\n\t\t\t\n\t\t}"; } if(this.__glVertexSource == null) { this.__glVertexSource = "attribute float aAlpha;\n\t\tattribute vec4 aPosition;\n\t\tattribute vec2 aTexCoord;\n\t\tvarying float vAlpha;\n\t\tvarying vec2 vTexCoord;\n\t\t\n\t\tuniform mat4 uMatrix;\n\t\t\n\t\tuniform vec2 uRadius;\n\t\tvarying vec2 vBlurCoords[7];\n\t\tuniform vec2 uTextureSize;\n\t\t\n\t\tvoid main(void) {\n\t\t\t\n\t\t\tvAlpha = aAlpha;\n\t\t\tvTexCoord = aTexCoord;\n\t\t\tgl_Position = uMatrix * aPosition;\n\t\t\t\n\t\t\tvec2 r = uRadius / uTextureSize;\n\t\t\tvBlurCoords[0] = aTexCoord - r * 1.0;\n\t\t\tvBlurCoords[1] = aTexCoord - r * 0.75;\n\t\t\tvBlurCoords[2] = aTexCoord - r * 0.5;\n\t\t\tvBlurCoords[3] = aTexCoord;\n\t\t\tvBlurCoords[4] = aTexCoord + r * 0.5;\n\t\t\tvBlurCoords[5] = aTexCoord + r * 0.75;\n\t\t\tvBlurCoords[6] = aTexCoord + r * 1.0;\n\t\t\t\n\t\t}"; } openfl_display_Shader.call(this); this.get_data().uRadius.value = [0,0]; this.get_data().uColor.value = [0,0,0,0]; }; $hxClasses["openfl.filters._GlowFilter.GlowShader"] = openfl_filters__$GlowFilter_GlowShader; openfl_filters__$GlowFilter_GlowShader.__name__ = ["openfl","filters","_GlowFilter","GlowShader"]; openfl_filters__$GlowFilter_GlowShader.__super__ = openfl_display_Shader; openfl_filters__$GlowFilter_GlowShader.prototype = $extend(openfl_display_Shader.prototype,{ __update: function() { var tmp = this.get_data().uImage0.input.width; this.get_data().uTextureSize.value = [tmp,this.get_data().uImage0.input.height]; openfl_display_Shader.prototype.__update.call(this); } ,__class__: openfl_filters__$GlowFilter_GlowShader }); var openfl_filters__$BlurShader_$ShaderData = function(byteArray) { openfl_display_ShaderData.call(this,byteArray); }; $hxClasses["openfl.filters._BlurShader_ShaderData"] = openfl_filters__$BlurShader_$ShaderData; openfl_filters__$BlurShader_$ShaderData.__name__ = ["openfl","filters","_BlurShader_ShaderData"]; openfl_filters__$BlurShader_$ShaderData.__super__ = openfl_display_ShaderData; openfl_filters__$BlurShader_$ShaderData.prototype = $extend(openfl_display_ShaderData.prototype,{ uRadius: null ,uTextureSize: null ,__class__: openfl_filters__$BlurShader_$ShaderData }); var openfl_filters__$ColorMatrixShader_$ShaderData = function(byteArray) { openfl_display_ShaderData.call(this,byteArray); }; $hxClasses["openfl.filters._ColorMatrixShader_ShaderData"] = openfl_filters__$ColorMatrixShader_$ShaderData; openfl_filters__$ColorMatrixShader_$ShaderData.__name__ = ["openfl","filters","_ColorMatrixShader_ShaderData"]; openfl_filters__$ColorMatrixShader_$ShaderData.__super__ = openfl_display_ShaderData; openfl_filters__$ColorMatrixShader_$ShaderData.prototype = $extend(openfl_display_ShaderData.prototype,{ uMultipliers: null ,uOffsets: null ,__class__: openfl_filters__$ColorMatrixShader_$ShaderData }); var openfl_filters__$GlowShader_$ShaderData = function(byteArray) { openfl_display_ShaderData.call(this,byteArray); }; $hxClasses["openfl.filters._GlowShader_ShaderData"] = openfl_filters__$GlowShader_$ShaderData; openfl_filters__$GlowShader_$ShaderData.__name__ = ["openfl","filters","_GlowShader_ShaderData"]; openfl_filters__$GlowShader_$ShaderData.__super__ = openfl_display_ShaderData; openfl_filters__$GlowShader_$ShaderData.prototype = $extend(openfl_display_ShaderData.prototype,{ uRadius: null ,uTextureSize: null ,uColor: null ,__class__: openfl_filters__$GlowShader_$ShaderData }); var openfl_geom_Matrix3D = function(v) { if(v != null && v.data.get_length() == 16) { var data = null; this.rawData = new openfl__$Vector_AbstractVector(v.data.concat(data)); } else { var a = [1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } this.rawData = vector; } }; $hxClasses["openfl.geom.Matrix3D"] = openfl_geom_Matrix3D; openfl_geom_Matrix3D.__name__ = ["openfl","geom","Matrix3D"]; openfl_geom_Matrix3D.create2D = function(x,y,scale,rotation) { if(rotation == null) { rotation = 0; } if(scale == null) { scale = 1; } var theta = rotation * Math.PI / 180.0; var c = Math.cos(theta); var s = Math.sin(theta); var a = [c * scale,-s * scale,0,0,s * scale,c * scale,0,0,0,0,1,0,x,y,0,1]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } return new openfl_geom_Matrix3D(vector); }; openfl_geom_Matrix3D.createABCD = function(a,b,c,d,tx,ty) { var a1 = [a,b,0,0,c,d,0,0,0,0,1,0,tx,ty,0,1]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a1.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a1[i]); } return new openfl_geom_Matrix3D(vector); }; openfl_geom_Matrix3D.createOrtho = function(x0,x1,y0,y1,zNear,zFar) { var sx = 1.0 / (x1 - x0); var sy = 1.0 / (y1 - y0); var sz = 1.0 / (zFar - zNear); var a = [2.0 * sx,0,0,0,0,2.0 * sy,0,0,0,0,-2.0 * sz,0,-(x0 + x1) * sx,-(y0 + y1) * sy,-(zNear + zFar) * sz,1]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } return new openfl_geom_Matrix3D(vector); }; openfl_geom_Matrix3D.interpolate = function(thisMat,toMat,percent) { var m = new openfl_geom_Matrix3D(); var _g = 0; while(_g < 16) { var i = _g++; var this1 = m.rawData; var value = thisMat.rawData.data.get(i) + (toMat.rawData.data.get(i) - thisMat.rawData.data.get(i)) * percent; this1.data.set(i,value); } return m; }; openfl_geom_Matrix3D.__getAxisRotation = function(x,y,z,degrees) { var m = new openfl_geom_Matrix3D(); var a1 = new openfl_geom_Vector3D(x,y,z); var rad = -degrees * (Math.PI / 180); var c = Math.cos(rad); var s = Math.sin(rad); var t = 1.0 - c; m.rawData.data.set(0,c + a1.x * a1.x * t); m.rawData.data.set(5,c + a1.y * a1.y * t); m.rawData.data.set(10,c + a1.z * a1.z * t); var tmp1 = a1.x * a1.y * t; var tmp2 = a1.z * s; m.rawData.data.set(4,tmp1 + tmp2); m.rawData.data.set(1,tmp1 - tmp2); tmp1 = a1.x * a1.z * t; tmp2 = a1.y * s; m.rawData.data.set(8,tmp1 - tmp2); m.rawData.data.set(2,tmp1 + tmp2); tmp1 = a1.y * a1.z * t; tmp2 = a1.x * s; m.rawData.data.set(9,tmp1 + tmp2); m.rawData.data.set(6,tmp1 - tmp2); return m; }; openfl_geom_Matrix3D.prototype = { rawData: null ,append: function(lhs) { var m111 = this.rawData.data.get(0); var m121 = this.rawData.data.get(4); var m131 = this.rawData.data.get(8); var m141 = this.rawData.data.get(12); var m112 = this.rawData.data.get(1); var m122 = this.rawData.data.get(5); var m132 = this.rawData.data.get(9); var m142 = this.rawData.data.get(13); var m113 = this.rawData.data.get(2); var m123 = this.rawData.data.get(6); var m133 = this.rawData.data.get(10); var m143 = this.rawData.data.get(14); var m114 = this.rawData.data.get(3); var m124 = this.rawData.data.get(7); var m134 = this.rawData.data.get(11); var m144 = this.rawData.data.get(15); var m211 = lhs.rawData.data.get(0); var m221 = lhs.rawData.data.get(4); var m231 = lhs.rawData.data.get(8); var m241 = lhs.rawData.data.get(12); var m212 = lhs.rawData.data.get(1); var m222 = lhs.rawData.data.get(5); var m232 = lhs.rawData.data.get(9); var m242 = lhs.rawData.data.get(13); var m213 = lhs.rawData.data.get(2); var m223 = lhs.rawData.data.get(6); var m233 = lhs.rawData.data.get(10); var m243 = lhs.rawData.data.get(14); var m214 = lhs.rawData.data.get(3); var m224 = lhs.rawData.data.get(7); var m234 = lhs.rawData.data.get(11); var m244 = lhs.rawData.data.get(15); this.rawData.data.set(0,m111 * m211 + m112 * m221 + m113 * m231 + m114 * m241); this.rawData.data.set(1,m111 * m212 + m112 * m222 + m113 * m232 + m114 * m242); this.rawData.data.set(2,m111 * m213 + m112 * m223 + m113 * m233 + m114 * m243); this.rawData.data.set(3,m111 * m214 + m112 * m224 + m113 * m234 + m114 * m244); this.rawData.data.set(4,m121 * m211 + m122 * m221 + m123 * m231 + m124 * m241); this.rawData.data.set(5,m121 * m212 + m122 * m222 + m123 * m232 + m124 * m242); this.rawData.data.set(6,m121 * m213 + m122 * m223 + m123 * m233 + m124 * m243); this.rawData.data.set(7,m121 * m214 + m122 * m224 + m123 * m234 + m124 * m244); this.rawData.data.set(8,m131 * m211 + m132 * m221 + m133 * m231 + m134 * m241); this.rawData.data.set(9,m131 * m212 + m132 * m222 + m133 * m232 + m134 * m242); this.rawData.data.set(10,m131 * m213 + m132 * m223 + m133 * m233 + m134 * m243); this.rawData.data.set(11,m131 * m214 + m132 * m224 + m133 * m234 + m134 * m244); this.rawData.data.set(12,m141 * m211 + m142 * m221 + m143 * m231 + m144 * m241); this.rawData.data.set(13,m141 * m212 + m142 * m222 + m143 * m232 + m144 * m242); this.rawData.data.set(14,m141 * m213 + m142 * m223 + m143 * m233 + m144 * m243); this.rawData.data.set(15,m141 * m214 + m142 * m224 + m143 * m234 + m144 * m244); } ,appendRotation: function(degrees,axis,pivotPoint) { var tx; var ty; var tz = 0; ty = tz; tx = ty; if(pivotPoint != null) { tx = pivotPoint.x; ty = pivotPoint.y; tz = pivotPoint.z; } var radian = degrees * Math.PI / 180; var cos = Math.cos(radian); var sin = Math.sin(radian); var x = axis.x; var y = axis.y; var z = axis.z; var x2 = x * x; var y2 = y * y; var z2 = z * z; var ls = x2 + y2 + z2; if(ls != 0) { var l = Math.sqrt(ls); x /= l; y /= l; z /= l; x2 /= ls; y2 /= ls; z2 /= ls; } var ccos = 1 - cos; var m = new openfl_geom_Matrix3D(); var d = m.rawData; d.data.set(0,x2 + (y2 + z2) * cos); d.data.set(1,x * y * ccos + z * sin); d.data.set(2,x * z * ccos - y * sin); d.data.set(4,x * y * ccos - z * sin); d.data.set(5,y2 + (x2 + z2) * cos); d.data.set(6,y * z * ccos + x * sin); d.data.set(8,x * z * ccos + y * sin); d.data.set(9,y * z * ccos - x * sin); d.data.set(10,z2 + (x2 + y2) * cos); d.data.set(12,(tx * (y2 + z2) - x * (ty * y + tz * z)) * ccos + (ty * z - tz * y) * sin); d.data.set(13,(ty * (x2 + z2) - y * (tx * x + tz * z)) * ccos + (tz * x - tx * z) * sin); d.data.set(14,(tz * (x2 + y2) - z * (tx * x + ty * y)) * ccos + (tx * y - ty * x) * sin); this.append(m); } ,appendScale: function(xScale,yScale,zScale) { var a = [xScale,0.0,0.0,0.0,0.0,yScale,0.0,0.0,0.0,0.0,zScale,0.0,0.0,0.0,0.0,1.0]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } this.append(new openfl_geom_Matrix3D(vector)); } ,appendTranslation: function(x,y,z) { var _g = this.rawData; var value = _g.data.get(12) + x; _g.data.set(12,value); var _g1 = this.rawData; var value1 = _g1.data.get(13) + y; _g1.data.set(13,value1); var _g2 = this.rawData; var value2 = _g2.data.get(14) + z; _g2.data.set(14,value2); } ,clone: function() { return new openfl_geom_Matrix3D(new openfl__$Vector_AbstractVector(this.rawData.data.copy())); } ,copyColumnFrom: function(column,vector3D) { switch(column) { case 0: this.rawData.data.set(0,vector3D.x); this.rawData.data.set(1,vector3D.y); this.rawData.data.set(2,vector3D.z); this.rawData.data.set(3,vector3D.w); break; case 1: this.rawData.data.set(4,vector3D.x); this.rawData.data.set(5,vector3D.y); this.rawData.data.set(6,vector3D.z); this.rawData.data.set(7,vector3D.w); break; case 2: this.rawData.data.set(8,vector3D.x); this.rawData.data.set(9,vector3D.y); this.rawData.data.set(10,vector3D.z); this.rawData.data.set(11,vector3D.w); break; case 3: this.rawData.data.set(12,vector3D.x); this.rawData.data.set(13,vector3D.y); this.rawData.data.set(14,vector3D.z); this.rawData.data.set(15,vector3D.w); break; default: } } ,copyColumnTo: function(column,vector3D) { switch(column) { case 0: vector3D.x = this.rawData.data.get(0); vector3D.y = this.rawData.data.get(1); vector3D.z = this.rawData.data.get(2); vector3D.w = this.rawData.data.get(3); break; case 1: vector3D.x = this.rawData.data.get(4); vector3D.y = this.rawData.data.get(5); vector3D.z = this.rawData.data.get(6); vector3D.w = this.rawData.data.get(7); break; case 2: vector3D.x = this.rawData.data.get(8); vector3D.y = this.rawData.data.get(9); vector3D.z = this.rawData.data.get(10); vector3D.w = this.rawData.data.get(11); break; case 3: vector3D.x = this.rawData.data.get(12); vector3D.y = this.rawData.data.get(13); vector3D.z = this.rawData.data.get(14); vector3D.w = this.rawData.data.get(15); break; default: } } ,copyFrom: function(other) { this.rawData = new openfl__$Vector_AbstractVector(other.rawData.data.copy()); } ,copyRawDataFrom: function(vector,index,transpose) { if(transpose == null) { transpose = false; } if(index == null) { index = 0; } if(transpose) { this.transpose(); } var length = vector.data.get_length() - index; var _g1 = 0; var _g = length; while(_g1 < _g) { var i = _g1++; var this1 = this.rawData; var value = vector.data.get(i + index); this1.data.set(i,value); } if(transpose) { this.transpose(); } } ,copyRawDataTo: function(vector,index,transpose) { if(transpose == null) { transpose = false; } if(index == null) { index = 0; } if(transpose) { this.transpose(); } var _g1 = 0; var _g = this.rawData.data.get_length(); while(_g1 < _g) { var i = _g1++; var value = this.rawData.data.get(i); vector.data.set(i + index,value); } if(transpose) { this.transpose(); } } ,copyRowFrom: function(row,vector3D) { switch(row) { case 0: this.rawData.data.set(0,vector3D.x); this.rawData.data.set(4,vector3D.y); this.rawData.data.set(8,vector3D.z); this.rawData.data.set(12,vector3D.w); break; case 1: this.rawData.data.set(1,vector3D.x); this.rawData.data.set(5,vector3D.y); this.rawData.data.set(9,vector3D.z); this.rawData.data.set(13,vector3D.w); break; case 2: this.rawData.data.set(2,vector3D.x); this.rawData.data.set(6,vector3D.y); this.rawData.data.set(10,vector3D.z); this.rawData.data.set(14,vector3D.w); break; case 3: this.rawData.data.set(3,vector3D.x); this.rawData.data.set(7,vector3D.y); this.rawData.data.set(11,vector3D.z); this.rawData.data.set(15,vector3D.w); break; default: } } ,copyRowTo: function(row,vector3D) { switch(row) { case 0: vector3D.x = this.rawData.data.get(0); vector3D.y = this.rawData.data.get(4); vector3D.z = this.rawData.data.get(8); vector3D.w = this.rawData.data.get(12); break; case 1: vector3D.x = this.rawData.data.get(1); vector3D.y = this.rawData.data.get(5); vector3D.z = this.rawData.data.get(9); vector3D.w = this.rawData.data.get(13); break; case 2: vector3D.x = this.rawData.data.get(2); vector3D.y = this.rawData.data.get(6); vector3D.z = this.rawData.data.get(10); vector3D.w = this.rawData.data.get(14); break; case 3: vector3D.x = this.rawData.data.get(3); vector3D.y = this.rawData.data.get(7); vector3D.z = this.rawData.data.get(11); vector3D.w = this.rawData.data.get(15); break; default: } } ,copyToMatrix3D: function(other) { other.rawData = new openfl__$Vector_AbstractVector(this.rawData.data.copy()); } ,decompose: function(orientationStyle) { if(orientationStyle == null) { orientationStyle = 1; } var vec = openfl__$Vector_Vector_$Impl_$.toObjectVector(null); var m = this.clone(); var mr = new openfl__$Vector_AbstractVector(m.rawData.data.copy()); var pos = new openfl_geom_Vector3D(mr.data.get(12),mr.data.get(13),mr.data.get(14)); mr.data.set(12,0); mr.data.set(13,0); mr.data.set(14,0); var scale = new openfl_geom_Vector3D(); scale.x = Math.sqrt(mr.data.get(0) * mr.data.get(0) + mr.data.get(1) * mr.data.get(1) + mr.data.get(2) * mr.data.get(2)); scale.y = Math.sqrt(mr.data.get(4) * mr.data.get(4) + mr.data.get(5) * mr.data.get(5) + mr.data.get(6) * mr.data.get(6)); scale.z = Math.sqrt(mr.data.get(8) * mr.data.get(8) + mr.data.get(9) * mr.data.get(9) + mr.data.get(10) * mr.data.get(10)); if(mr.data.get(0) * (mr.data.get(5) * mr.data.get(10) - mr.data.get(6) * mr.data.get(9)) - mr.data.get(1) * (mr.data.get(4) * mr.data.get(10) - mr.data.get(6) * mr.data.get(8)) + mr.data.get(2) * (mr.data.get(4) * mr.data.get(9) - mr.data.get(5) * mr.data.get(8)) < 0) { scale.z = -scale.z; } var _g = mr; var value = _g.data.get(0) / scale.x; _g.data.set(0,value); var _g1 = mr; var value1 = _g1.data.get(1) / scale.x; _g1.data.set(1,value1); var _g2 = mr; var value2 = _g2.data.get(2) / scale.x; _g2.data.set(2,value2); var _g3 = mr; var value3 = _g3.data.get(4) / scale.y; _g3.data.set(4,value3); var _g4 = mr; var value4 = _g4.data.get(5) / scale.y; _g4.data.set(5,value4); var _g5 = mr; var value5 = _g5.data.get(6) / scale.y; _g5.data.set(6,value5); var _g6 = mr; var value6 = _g6.data.get(8) / scale.z; _g6.data.set(8,value6); var _g7 = mr; var value7 = _g7.data.get(9) / scale.z; _g7.data.set(9,value7); var _g8 = mr; var value8 = _g8.data.get(10) / scale.z; _g8.data.set(10,value8); var rot = new openfl_geom_Vector3D(); switch(orientationStyle) { case 0: rot.w = Math.acos((mr.data.get(0) + mr.data.get(5) + mr.data.get(10) - 1) / 2); var len = Math.sqrt((mr.data.get(6) - mr.data.get(9)) * (mr.data.get(6) - mr.data.get(9)) + (mr.data.get(8) - mr.data.get(2)) * (mr.data.get(8) - mr.data.get(2)) + (mr.data.get(1) - mr.data.get(4)) * (mr.data.get(1) - mr.data.get(4))); if(len != 0) { rot.x = (mr.data.get(6) - mr.data.get(9)) / len; rot.y = (mr.data.get(8) - mr.data.get(2)) / len; rot.z = (mr.data.get(1) - mr.data.get(4)) / len; } else { rot.x = rot.y = rot.z = 0; } break; case 1: rot.y = Math.asin(-mr.data.get(2)); if(mr.data.get(2) != 1 && mr.data.get(2) != -1) { rot.x = Math.atan2(mr.data.get(6),mr.data.get(10)); rot.z = Math.atan2(mr.data.get(1),mr.data.get(0)); } else { rot.z = 0; rot.x = Math.atan2(mr.data.get(4),mr.data.get(5)); } break; case 2: var tr = mr.data.get(0) + mr.data.get(5) + mr.data.get(10); if(tr > 0) { rot.w = Math.sqrt(1 + tr) / 2; rot.x = (mr.data.get(6) - mr.data.get(9)) / (4 * rot.w); rot.y = (mr.data.get(8) - mr.data.get(2)) / (4 * rot.w); rot.z = (mr.data.get(1) - mr.data.get(4)) / (4 * rot.w); } else if(mr.data.get(0) > mr.data.get(5) && mr.data.get(0) > mr.data.get(10)) { rot.x = Math.sqrt(1 + mr.data.get(0) - mr.data.get(5) - mr.data.get(10)) / 2; rot.w = (mr.data.get(6) - mr.data.get(9)) / (4 * rot.x); rot.y = (mr.data.get(1) + mr.data.get(4)) / (4 * rot.x); rot.z = (mr.data.get(8) + mr.data.get(2)) / (4 * rot.x); } else if(mr.data.get(5) > mr.data.get(10)) { rot.y = Math.sqrt(1 + mr.data.get(5) - mr.data.get(0) - mr.data.get(10)) / 2; rot.x = (mr.data.get(1) + mr.data.get(4)) / (4 * rot.y); rot.w = (mr.data.get(8) - mr.data.get(2)) / (4 * rot.y); rot.z = (mr.data.get(6) + mr.data.get(9)) / (4 * rot.y); } else { rot.z = Math.sqrt(1 + mr.data.get(10) - mr.data.get(0) - mr.data.get(5)) / 2; rot.x = (mr.data.get(8) + mr.data.get(2)) / (4 * rot.z); rot.y = (mr.data.get(6) + mr.data.get(9)) / (4 * rot.z); rot.w = (mr.data.get(1) - mr.data.get(4)) / (4 * rot.z); } break; } vec.data.push(pos); vec.data.push(rot); vec.data.push(scale); return vec; } ,deltaTransformVector: function(v) { var x = v.x; var y = v.y; var z = v.z; return new openfl_geom_Vector3D(x * this.rawData.data.get(0) + y * this.rawData.data.get(4) + z * this.rawData.data.get(8) + this.rawData.data.get(3),x * this.rawData.data.get(1) + y * this.rawData.data.get(5) + z * this.rawData.data.get(9) + this.rawData.data.get(7),x * this.rawData.data.get(2) + y * this.rawData.data.get(6) + z * this.rawData.data.get(10) + this.rawData.data.get(11),0); } ,identity: function() { var a = [1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } this.rawData = vector; } ,interpolateTo: function(toMat,percent) { var _g = 0; while(_g < 16) { var i = _g++; var this1 = this.rawData; var value = this.rawData.data.get(i) + (toMat.rawData.data.get(i) - this.rawData.data.get(i)) * percent; this1.data.set(i,value); } } ,invert: function() { var d = this.get_determinant(); var invertable = Math.abs(d) > 0.00000000001; if(invertable) { d = 1 / d; var m11 = this.rawData.data.get(0); var m21 = this.rawData.data.get(4); var m31 = this.rawData.data.get(8); var m41 = this.rawData.data.get(12); var m12 = this.rawData.data.get(1); var m22 = this.rawData.data.get(5); var m32 = this.rawData.data.get(9); var m42 = this.rawData.data.get(13); var m13 = this.rawData.data.get(2); var m23 = this.rawData.data.get(6); var m33 = this.rawData.data.get(10); var m43 = this.rawData.data.get(14); var m14 = this.rawData.data.get(3); var m24 = this.rawData.data.get(7); var m34 = this.rawData.data.get(11); var m44 = this.rawData.data.get(15); this.rawData.data.set(0,d * (m22 * (m33 * m44 - m43 * m34) - m32 * (m23 * m44 - m43 * m24) + m42 * (m23 * m34 - m33 * m24))); this.rawData.data.set(1,-d * (m12 * (m33 * m44 - m43 * m34) - m32 * (m13 * m44 - m43 * m14) + m42 * (m13 * m34 - m33 * m14))); this.rawData.data.set(2,d * (m12 * (m23 * m44 - m43 * m24) - m22 * (m13 * m44 - m43 * m14) + m42 * (m13 * m24 - m23 * m14))); this.rawData.data.set(3,-d * (m12 * (m23 * m34 - m33 * m24) - m22 * (m13 * m34 - m33 * m14) + m32 * (m13 * m24 - m23 * m14))); this.rawData.data.set(4,-d * (m21 * (m33 * m44 - m43 * m34) - m31 * (m23 * m44 - m43 * m24) + m41 * (m23 * m34 - m33 * m24))); this.rawData.data.set(5,d * (m11 * (m33 * m44 - m43 * m34) - m31 * (m13 * m44 - m43 * m14) + m41 * (m13 * m34 - m33 * m14))); this.rawData.data.set(6,-d * (m11 * (m23 * m44 - m43 * m24) - m21 * (m13 * m44 - m43 * m14) + m41 * (m13 * m24 - m23 * m14))); this.rawData.data.set(7,d * (m11 * (m23 * m34 - m33 * m24) - m21 * (m13 * m34 - m33 * m14) + m31 * (m13 * m24 - m23 * m14))); this.rawData.data.set(8,d * (m21 * (m32 * m44 - m42 * m34) - m31 * (m22 * m44 - m42 * m24) + m41 * (m22 * m34 - m32 * m24))); this.rawData.data.set(9,-d * (m11 * (m32 * m44 - m42 * m34) - m31 * (m12 * m44 - m42 * m14) + m41 * (m12 * m34 - m32 * m14))); this.rawData.data.set(10,d * (m11 * (m22 * m44 - m42 * m24) - m21 * (m12 * m44 - m42 * m14) + m41 * (m12 * m24 - m22 * m14))); this.rawData.data.set(11,-d * (m11 * (m22 * m34 - m32 * m24) - m21 * (m12 * m34 - m32 * m14) + m31 * (m12 * m24 - m22 * m14))); this.rawData.data.set(12,-d * (m21 * (m32 * m43 - m42 * m33) - m31 * (m22 * m43 - m42 * m23) + m41 * (m22 * m33 - m32 * m23))); this.rawData.data.set(13,d * (m11 * (m32 * m43 - m42 * m33) - m31 * (m12 * m43 - m42 * m13) + m41 * (m12 * m33 - m32 * m13))); this.rawData.data.set(14,-d * (m11 * (m22 * m43 - m42 * m23) - m21 * (m12 * m43 - m42 * m13) + m41 * (m12 * m23 - m22 * m13))); this.rawData.data.set(15,d * (m11 * (m22 * m33 - m32 * m23) - m21 * (m12 * m33 - m32 * m13) + m31 * (m12 * m23 - m22 * m13))); } return invertable; } ,pointAt: function(pos,at,up) { if(at == null) { at = new openfl_geom_Vector3D(0,0,-1); } if(up == null) { up = new openfl_geom_Vector3D(0,-1,0); } var dir = at.subtract(pos); var vup = up.clone(); var right; dir.normalize(); vup.normalize(); var dir2 = dir.clone(); dir2.scaleBy(vup.dotProduct(dir)); vup = vup.subtract(dir2); if(vup.get_length() > 0) { vup.normalize(); } else if(dir.x != 0) { vup = new openfl_geom_Vector3D(-dir.y,dir.x,0); } else { vup = new openfl_geom_Vector3D(1,0,0); } right = vup.crossProduct(dir); right.normalize(); this.rawData.data.set(0,right.x); this.rawData.data.set(4,right.y); this.rawData.data.set(8,right.z); this.rawData.data.set(12,0.0); this.rawData.data.set(1,vup.x); this.rawData.data.set(5,vup.y); this.rawData.data.set(9,vup.z); this.rawData.data.set(13,0.0); this.rawData.data.set(2,dir.x); this.rawData.data.set(6,dir.y); this.rawData.data.set(10,dir.z); this.rawData.data.set(14,0.0); this.rawData.data.set(3,pos.x); this.rawData.data.set(7,pos.y); this.rawData.data.set(11,pos.z); this.rawData.data.set(15,1.0); } ,prepend: function(rhs) { var m111 = rhs.rawData.data.get(0); var m121 = rhs.rawData.data.get(4); var m131 = rhs.rawData.data.get(8); var m141 = rhs.rawData.data.get(12); var m112 = rhs.rawData.data.get(1); var m122 = rhs.rawData.data.get(5); var m132 = rhs.rawData.data.get(9); var m142 = rhs.rawData.data.get(13); var m113 = rhs.rawData.data.get(2); var m123 = rhs.rawData.data.get(6); var m133 = rhs.rawData.data.get(10); var m143 = rhs.rawData.data.get(14); var m114 = rhs.rawData.data.get(3); var m124 = rhs.rawData.data.get(7); var m134 = rhs.rawData.data.get(11); var m144 = rhs.rawData.data.get(15); var m211 = this.rawData.data.get(0); var m221 = this.rawData.data.get(4); var m231 = this.rawData.data.get(8); var m241 = this.rawData.data.get(12); var m212 = this.rawData.data.get(1); var m222 = this.rawData.data.get(5); var m232 = this.rawData.data.get(9); var m242 = this.rawData.data.get(13); var m213 = this.rawData.data.get(2); var m223 = this.rawData.data.get(6); var m233 = this.rawData.data.get(10); var m243 = this.rawData.data.get(14); var m214 = this.rawData.data.get(3); var m224 = this.rawData.data.get(7); var m234 = this.rawData.data.get(11); var m244 = this.rawData.data.get(15); this.rawData.data.set(0,m111 * m211 + m112 * m221 + m113 * m231 + m114 * m241); this.rawData.data.set(1,m111 * m212 + m112 * m222 + m113 * m232 + m114 * m242); this.rawData.data.set(2,m111 * m213 + m112 * m223 + m113 * m233 + m114 * m243); this.rawData.data.set(3,m111 * m214 + m112 * m224 + m113 * m234 + m114 * m244); this.rawData.data.set(4,m121 * m211 + m122 * m221 + m123 * m231 + m124 * m241); this.rawData.data.set(5,m121 * m212 + m122 * m222 + m123 * m232 + m124 * m242); this.rawData.data.set(6,m121 * m213 + m122 * m223 + m123 * m233 + m124 * m243); this.rawData.data.set(7,m121 * m214 + m122 * m224 + m123 * m234 + m124 * m244); this.rawData.data.set(8,m131 * m211 + m132 * m221 + m133 * m231 + m134 * m241); this.rawData.data.set(9,m131 * m212 + m132 * m222 + m133 * m232 + m134 * m242); this.rawData.data.set(10,m131 * m213 + m132 * m223 + m133 * m233 + m134 * m243); this.rawData.data.set(11,m131 * m214 + m132 * m224 + m133 * m234 + m134 * m244); this.rawData.data.set(12,m141 * m211 + m142 * m221 + m143 * m231 + m144 * m241); this.rawData.data.set(13,m141 * m212 + m142 * m222 + m143 * m232 + m144 * m242); this.rawData.data.set(14,m141 * m213 + m142 * m223 + m143 * m233 + m144 * m243); this.rawData.data.set(15,m141 * m214 + m142 * m224 + m143 * m234 + m144 * m244); } ,prependRotation: function(degrees,axis,pivotPoint) { var tx; var ty; var tz = 0; ty = tz; tx = ty; if(pivotPoint != null) { tx = pivotPoint.x; ty = pivotPoint.y; tz = pivotPoint.z; } var radian = degrees * Math.PI / 180; var cos = Math.cos(radian); var sin = Math.sin(radian); var x = axis.x; var y = axis.y; var z = axis.z; var x2 = x * x; var y2 = y * y; var z2 = z * z; var ls = x2 + y2 + z2; if(ls != 0) { var l = Math.sqrt(ls); x /= l; y /= l; z /= l; x2 /= ls; y2 /= ls; z2 /= ls; } var ccos = 1 - cos; var m = new openfl_geom_Matrix3D(); var d = m.rawData; d.data.set(0,x2 + (y2 + z2) * cos); d.data.set(1,x * y * ccos + z * sin); d.data.set(2,x * z * ccos - y * sin); d.data.set(4,x * y * ccos - z * sin); d.data.set(5,y2 + (x2 + z2) * cos); d.data.set(6,y * z * ccos + x * sin); d.data.set(8,x * z * ccos + y * sin); d.data.set(9,y * z * ccos - x * sin); d.data.set(10,z2 + (x2 + y2) * cos); d.data.set(12,(tx * (y2 + z2) - x * (ty * y + tz * z)) * ccos + (ty * z - tz * y) * sin); d.data.set(13,(ty * (x2 + z2) - y * (tx * x + tz * z)) * ccos + (tz * x - tx * z) * sin); d.data.set(14,(tz * (x2 + y2) - z * (tx * x + ty * y)) * ccos + (tx * y - ty * x) * sin); this.prepend(m); } ,prependScale: function(xScale,yScale,zScale) { var a = [xScale,0.0,0.0,0.0,0.0,yScale,0.0,0.0,0.0,0.0,zScale,0.0,0.0,0.0,0.0,1.0]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } this.prepend(new openfl_geom_Matrix3D(vector)); } ,prependTranslation: function(x,y,z) { var m = new openfl_geom_Matrix3D(); m.set_position(new openfl_geom_Vector3D(x,y,z)); this.prepend(m); } ,recompose: function(components,orientationStyle) { if(components.data.get_length() < 3 || components.data.get(2).x == 0 || components.data.get(2).y == 0 || components.data.get(2).z == 0) { return false; } if(orientationStyle == null) { orientationStyle = 1; } this.identity(); var scale = []; scale[0] = scale[1] = scale[2] = components.data.get(2).x; scale[4] = scale[5] = scale[6] = components.data.get(2).y; scale[8] = scale[9] = scale[10] = components.data.get(2).z; if(orientationStyle == null) { var x = components.data.get(1).x; var y = components.data.get(1).y; var z = components.data.get(1).z; var w = components.data.get(1).w; if(orientationStyle == 0) { x *= Math.sin(w / 2); y *= Math.sin(w / 2); z *= Math.sin(w / 2); w = Math.cos(w / 2); } this.rawData.data.set(0,(1 - 2 * y * y - 2 * z * z) * scale[0]); this.rawData.data.set(1,(2 * x * y + 2 * w * z) * scale[1]); this.rawData.data.set(2,(2 * x * z - 2 * w * y) * scale[2]); this.rawData.data.set(3,0); this.rawData.data.set(4,(2 * x * y - 2 * w * z) * scale[4]); this.rawData.data.set(5,(1 - 2 * x * x - 2 * z * z) * scale[5]); this.rawData.data.set(6,(2 * y * z + 2 * w * x) * scale[6]); this.rawData.data.set(7,0); this.rawData.data.set(8,(2 * x * z + 2 * w * y) * scale[8]); this.rawData.data.set(9,(2 * y * z - 2 * w * x) * scale[9]); this.rawData.data.set(10,(1 - 2 * x * x - 2 * y * y) * scale[10]); this.rawData.data.set(11,0); var this1 = this.rawData; var value = components.data.get(0).x; this1.data.set(12,value); var this2 = this.rawData; var value1 = components.data.get(0).y; this2.data.set(13,value1); var this3 = this.rawData; var value2 = components.data.get(0).z; this3.data.set(14,value2); this.rawData.data.set(15,1); } else if(orientationStyle == 1) { var cx = Math.cos(components.data.get(1).x); var cy = Math.cos(components.data.get(1).y); var cz = Math.cos(components.data.get(1).z); var sx = Math.sin(components.data.get(1).x); var sy = Math.sin(components.data.get(1).y); var sz = Math.sin(components.data.get(1).z); this.rawData.data.set(0,cy * cz * scale[0]); this.rawData.data.set(1,cy * sz * scale[1]); this.rawData.data.set(2,-sy * scale[2]); this.rawData.data.set(3,0); this.rawData.data.set(4,(sx * sy * cz - cx * sz) * scale[4]); this.rawData.data.set(5,(sx * sy * sz + cx * cz) * scale[5]); this.rawData.data.set(6,sx * cy * scale[6]); this.rawData.data.set(7,0); this.rawData.data.set(8,(cx * sy * cz + sx * sz) * scale[8]); this.rawData.data.set(9,(cx * sy * sz - sx * cz) * scale[9]); this.rawData.data.set(10,cx * cy * scale[10]); this.rawData.data.set(11,0); var this4 = this.rawData; var value3 = components.data.get(0).x; this4.data.set(12,value3); var this5 = this.rawData; var value4 = components.data.get(0).y; this5.data.set(13,value4); var this6 = this.rawData; var value5 = components.data.get(0).z; this6.data.set(14,value5); this.rawData.data.set(15,1); } else { var x1 = components.data.get(1).x; var y1 = components.data.get(1).y; var z1 = components.data.get(1).z; var w1 = components.data.get(1).w; if(orientationStyle == 0) { x1 *= Math.sin(w1 / 2); y1 *= Math.sin(w1 / 2); z1 *= Math.sin(w1 / 2); w1 = Math.cos(w1 / 2); } this.rawData.data.set(0,(1 - 2 * y1 * y1 - 2 * z1 * z1) * scale[0]); this.rawData.data.set(1,(2 * x1 * y1 + 2 * w1 * z1) * scale[1]); this.rawData.data.set(2,(2 * x1 * z1 - 2 * w1 * y1) * scale[2]); this.rawData.data.set(3,0); this.rawData.data.set(4,(2 * x1 * y1 - 2 * w1 * z1) * scale[4]); this.rawData.data.set(5,(1 - 2 * x1 * x1 - 2 * z1 * z1) * scale[5]); this.rawData.data.set(6,(2 * y1 * z1 + 2 * w1 * x1) * scale[6]); this.rawData.data.set(7,0); this.rawData.data.set(8,(2 * x1 * z1 + 2 * w1 * y1) * scale[8]); this.rawData.data.set(9,(2 * y1 * z1 - 2 * w1 * x1) * scale[9]); this.rawData.data.set(10,(1 - 2 * x1 * x1 - 2 * y1 * y1) * scale[10]); this.rawData.data.set(11,0); var this7 = this.rawData; var value6 = components.data.get(0).x; this7.data.set(12,value6); var this8 = this.rawData; var value7 = components.data.get(0).y; this8.data.set(13,value7); var this9 = this.rawData; var value8 = components.data.get(0).z; this9.data.set(14,value8); this.rawData.data.set(15,1); } if(components.data.get(2).x == 0) { this.rawData.data.set(0,1e-15); } if(components.data.get(2).y == 0) { this.rawData.data.set(5,1e-15); } if(components.data.get(2).z == 0) { this.rawData.data.set(10,1e-15); } return !(components.data.get(2).x == 0 || components.data.get(2).y == 0 || components.data.get(2).y == 0); } ,transformVector: function(v) { var x = v.x; var y = v.y; var z = v.z; return new openfl_geom_Vector3D(x * this.rawData.data.get(0) + y * this.rawData.data.get(4) + z * this.rawData.data.get(8) + this.rawData.data.get(12),x * this.rawData.data.get(1) + y * this.rawData.data.get(5) + z * this.rawData.data.get(9) + this.rawData.data.get(13),x * this.rawData.data.get(2) + y * this.rawData.data.get(6) + z * this.rawData.data.get(10) + this.rawData.data.get(14),x * this.rawData.data.get(3) + y * this.rawData.data.get(7) + z * this.rawData.data.get(11) + this.rawData.data.get(15)); } ,transformVectors: function(vin,vout) { var i = 0; var x; var y; var z; while(i + 3 <= vin.data.get_length()) { x = vin.data.get(i); y = vin.data.get(i + 1); z = vin.data.get(i + 2); var value = x * this.rawData.data.get(0) + y * this.rawData.data.get(4) + z * this.rawData.data.get(8) + this.rawData.data.get(12); vout.data.set(i,value); var value1 = x * this.rawData.data.get(1) + y * this.rawData.data.get(5) + z * this.rawData.data.get(9) + this.rawData.data.get(13); vout.data.set(i + 1,value1); var value2 = x * this.rawData.data.get(2) + y * this.rawData.data.get(6) + z * this.rawData.data.get(10) + this.rawData.data.get(14); vout.data.set(i + 2,value2); i += 3; } } ,transpose: function() { var oRawData = new openfl__$Vector_AbstractVector(this.rawData.data.copy()); var this1 = this.rawData; var value = oRawData.data.get(4); this1.data.set(1,value); var this2 = this.rawData; var value1 = oRawData.data.get(8); this2.data.set(2,value1); var this3 = this.rawData; var value2 = oRawData.data.get(12); this3.data.set(3,value2); var this4 = this.rawData; var value3 = oRawData.data.get(1); this4.data.set(4,value3); var this5 = this.rawData; var value4 = oRawData.data.get(9); this5.data.set(6,value4); var this6 = this.rawData; var value5 = oRawData.data.get(13); this6.data.set(7,value5); var this7 = this.rawData; var value6 = oRawData.data.get(2); this7.data.set(8,value6); var this8 = this.rawData; var value7 = oRawData.data.get(6); this8.data.set(9,value7); var this9 = this.rawData; var value8 = oRawData.data.get(14); this9.data.set(11,value8); var this10 = this.rawData; var value9 = oRawData.data.get(3); this10.data.set(12,value9); var this11 = this.rawData; var value10 = oRawData.data.get(7); this11.data.set(13,value10); var this12 = this.rawData; var value11 = oRawData.data.get(11); this12.data.set(14,value11); } ,get_determinant: function() { return (this.rawData.data.get(0) * this.rawData.data.get(5) - this.rawData.data.get(4) * this.rawData.data.get(1)) * (this.rawData.data.get(10) * this.rawData.data.get(15) - this.rawData.data.get(14) * this.rawData.data.get(11)) - (this.rawData.data.get(0) * this.rawData.data.get(9) - this.rawData.data.get(8) * this.rawData.data.get(1)) * (this.rawData.data.get(6) * this.rawData.data.get(15) - this.rawData.data.get(14) * this.rawData.data.get(7)) + (this.rawData.data.get(0) * this.rawData.data.get(13) - this.rawData.data.get(12) * this.rawData.data.get(1)) * (this.rawData.data.get(6) * this.rawData.data.get(11) - this.rawData.data.get(10) * this.rawData.data.get(7)) + (this.rawData.data.get(4) * this.rawData.data.get(9) - this.rawData.data.get(8) * this.rawData.data.get(5)) * (this.rawData.data.get(2) * this.rawData.data.get(15) - this.rawData.data.get(14) * this.rawData.data.get(3)) - (this.rawData.data.get(4) * this.rawData.data.get(13) - this.rawData.data.get(12) * this.rawData.data.get(5)) * (this.rawData.data.get(2) * this.rawData.data.get(11) - this.rawData.data.get(10) * this.rawData.data.get(3)) + (this.rawData.data.get(8) * this.rawData.data.get(13) - this.rawData.data.get(12) * this.rawData.data.get(9)) * (this.rawData.data.get(2) * this.rawData.data.get(7) - this.rawData.data.get(6) * this.rawData.data.get(3)); } ,get_position: function() { return new openfl_geom_Vector3D(this.rawData.data.get(12),this.rawData.data.get(13),this.rawData.data.get(14)); } ,set_position: function(val) { this.rawData.data.set(12,val.x); this.rawData.data.set(13,val.y); this.rawData.data.set(14,val.z); return val; } ,__class__: openfl_geom_Matrix3D ,__properties__: {set_position:"set_position",get_position:"get_position",get_determinant:"get_determinant"} }; var openfl_geom__$Orientation3D_Orientation3D_$Impl_$ = {}; $hxClasses["openfl.geom._Orientation3D.Orientation3D_Impl_"] = openfl_geom__$Orientation3D_Orientation3D_$Impl_$; openfl_geom__$Orientation3D_Orientation3D_$Impl_$.__name__ = ["openfl","geom","_Orientation3D","Orientation3D_Impl_"]; openfl_geom__$Orientation3D_Orientation3D_$Impl_$.fromString = function(value) { switch(value) { case "axisAngle": return 0; case "eulerAngles": return 1; case "quaternion": return 2; default: return null; } }; openfl_geom__$Orientation3D_Orientation3D_$Impl_$.toString = function(value) { switch(value) { case 0: return "axisAngle"; case 1: return "eulerAngles"; case 2: return "quaternion"; default: return null; } }; var openfl_geom_Transform = function(displayObject) { this.__colorTransform = new openfl_geom_ColorTransform(); this.concatenatedColorTransform = new openfl_geom_ColorTransform(); this.pixelBounds = new openfl_geom_Rectangle(); this.__displayObject = displayObject; this.__hasMatrix = true; }; $hxClasses["openfl.geom.Transform"] = openfl_geom_Transform; openfl_geom_Transform.__name__ = ["openfl","geom","Transform"]; openfl_geom_Transform.prototype = { concatenatedColorTransform: null ,pixelBounds: null ,__colorTransform: null ,__displayObject: null ,__hasMatrix: null ,__hasMatrix3D: null ,get_colorTransform: function() { return this.__colorTransform; } ,set_colorTransform: function(value) { if(!this.__colorTransform.__equals(value)) { this.__colorTransform = value; if(value != null) { this.__displayObject.set_alpha(value.alphaMultiplier); } var _this = this.__displayObject; if(!_this.__renderDirty) { _this.__renderDirty = true; _this.__setParentRenderDirty(); } } return this.__colorTransform; } ,get_concatenatedMatrix: function() { if(this.__hasMatrix) { return this.__displayObject.__getWorldTransform().clone(); } return null; } ,get_matrix: function() { if(this.__hasMatrix) { return this.__displayObject.__transform.clone(); } return null; } ,set_matrix: function(value) { if(value == null) { this.__hasMatrix = false; return null; } this.__hasMatrix = true; this.__hasMatrix3D = false; if(this.__displayObject != null) { this.__setTransform(value.a,value.b,value.c,value.d,value.tx,value.ty); } return value; } ,get_matrix3D: function() { if(this.__hasMatrix3D) { var matrix = this.__displayObject.__transform; var a = [matrix.a,matrix.b,0.0,0.0,matrix.c,matrix.d,0.0,0.0,0.0,0.0,1.0,0.0,matrix.tx,matrix.ty,0.0,1.0]; var vector = openfl__$Vector_Vector_$Impl_$.toFloatVector(null); var _g1 = 0; var _g = a.length; while(_g1 < _g) { var i = _g1++; vector.data.set(i,a[i]); } return new openfl_geom_Matrix3D(vector); } return null; } ,set_matrix3D: function(value) { if(value == null) { this.__hasMatrix3D = false; return null; } this.__hasMatrix = false; this.__hasMatrix3D = true; this.__setTransform(value.rawData.data.get(0),value.rawData.data.get(1),value.rawData.data.get(5),value.rawData.data.get(6),value.rawData.data.get(12),value.rawData.data.get(13)); return value; } ,__setTransform: function(a,b,c,d,tx,ty) { if(this.__displayObject != null) { var scaleX = 0.0; var scaleY = 0.0; if(b == 0) { scaleX = a; } else { scaleX = Math.sqrt(a * a + b * b); } if(c == 0) { scaleY = a; } else { scaleY = Math.sqrt(c * c + d * d); } this.__displayObject.__scaleX = scaleX; this.__displayObject.__scaleY = scaleY; var rotation = 180 / Math.PI * Math.atan2(d,c) - 90; if(rotation != this.__displayObject.__rotation) { this.__displayObject.__rotation = rotation; var radians = rotation * (Math.PI / 180); this.__displayObject.__rotationSine = Math.sin(radians); this.__displayObject.__rotationCosine = Math.cos(radians); } this.__displayObject.__transform.a = a; this.__displayObject.__transform.b = b; this.__displayObject.__transform.c = c; this.__displayObject.__transform.d = d; this.__displayObject.__transform.tx = tx; this.__displayObject.__transform.ty = ty; this.__displayObject.__setTransformDirty(); } } ,__class__: openfl_geom_Transform ,__properties__: {set_matrix3D:"set_matrix3D",get_matrix3D:"get_matrix3D",set_matrix:"set_matrix",get_matrix:"get_matrix",get_concatenatedMatrix:"get_concatenatedMatrix",set_colorTransform:"set_colorTransform",get_colorTransform:"get_colorTransform"} }; var openfl_geom_Vector3D = function(x,y,z,w) { if(w == null) { w = 0; } if(z == null) { z = 0; } if(y == null) { y = 0; } if(x == null) { x = 0; } this.w = w; this.x = x; this.y = y; this.z = z; }; $hxClasses["openfl.geom.Vector3D"] = openfl_geom_Vector3D; openfl_geom_Vector3D.__name__ = ["openfl","geom","Vector3D"]; openfl_geom_Vector3D.__properties__ = {get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS",get_X_AXIS:"get_X_AXIS"}; openfl_geom_Vector3D.angleBetween = function(a,b) { var la = a.get_length(); var lb = b.get_length(); var dot = a.dotProduct(b); if(la != 0) { dot /= la; } if(lb != 0) { dot /= lb; } return Math.acos(dot); }; openfl_geom_Vector3D.distance = function(pt1,pt2) { var x = pt2.x - pt1.x; var y = pt2.y - pt1.y; var z = pt2.z - pt1.z; return Math.sqrt(x * x + y * y + z * z); }; openfl_geom_Vector3D.get_X_AXIS = function() { return new openfl_geom_Vector3D(1,0,0); }; openfl_geom_Vector3D.get_Y_AXIS = function() { return new openfl_geom_Vector3D(0,1,0); }; openfl_geom_Vector3D.get_Z_AXIS = function() { return new openfl_geom_Vector3D(0,0,1); }; openfl_geom_Vector3D.prototype = { w: null ,x: null ,y: null ,z: null ,add: function(a) { return new openfl_geom_Vector3D(this.x + a.x,this.y + a.y,this.z + a.z); } ,clone: function() { return new openfl_geom_Vector3D(this.x,this.y,this.z,this.w); } ,copyFrom: function(sourceVector3D) { this.x = sourceVector3D.x; this.y = sourceVector3D.y; this.z = sourceVector3D.z; } ,crossProduct: function(a) { return new openfl_geom_Vector3D(this.y * a.z - this.z * a.y,this.z * a.x - this.x * a.z,this.x * a.y - this.y * a.x,1); } ,decrementBy: function(a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; } ,dotProduct: function(a) { return this.x * a.x + this.y * a.y + this.z * a.z; } ,equals: function(toCompare,allFour) { if(allFour == null) { allFour = false; } if(this.x == toCompare.x && this.y == toCompare.y && this.z == toCompare.z) { if(!(!allFour)) { return this.w == toCompare.w; } else { return true; } } else { return false; } } ,incrementBy: function(a) { this.x += a.x; this.y += a.y; this.z += a.z; } ,nearEquals: function(toCompare,tolerance,allFour) { if(allFour == null) { allFour = false; } if(Math.abs(this.x - toCompare.x) < tolerance && Math.abs(this.y - toCompare.y) < tolerance && Math.abs(this.z - toCompare.z) < tolerance) { if(!(!allFour)) { return Math.abs(this.w - toCompare.w) < tolerance; } else { return true; } } else { return false; } } ,negate: function() { this.x *= -1; this.y *= -1; this.z *= -1; } ,normalize: function() { var l = this.get_length(); if(l != 0) { this.x /= l; this.y /= l; this.z /= l; } return l; } ,project: function() { this.x /= this.w; this.y /= this.w; this.z /= this.w; } ,scaleBy: function(s) { this.x *= s; this.y *= s; this.z *= s; } ,setTo: function(xa,ya,za) { this.x = xa; this.y = ya; this.z = za; } ,subtract: function(a) { return new openfl_geom_Vector3D(this.x - a.x,this.y - a.y,this.z - a.z); } ,toString: function() { return "Vector3D(" + this.x + ", " + this.y + ", " + this.z + ")"; } ,get_length: function() { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); } ,get_lengthSquared: function() { return this.x * this.x + this.y * this.y + this.z * this.z; } ,__class__: openfl_geom_Vector3D ,__properties__: {get_lengthSquared:"get_lengthSquared",get_length:"get_length"} }; var openfl_media_ID3Info = function() { }; $hxClasses["openfl.media.ID3Info"] = openfl_media_ID3Info; openfl_media_ID3Info.__name__ = ["openfl","media","ID3Info"]; openfl_media_ID3Info.prototype = { album: null ,artist: null ,comment: null ,genre: null ,songName: null ,track: null ,year: null ,__class__: openfl_media_ID3Info }; var openfl_media_Sound = function(stream,context) { openfl_events_EventDispatcher.call(this,this); this.bytesLoaded = 0; this.bytesTotal = 0; this.isBuffering = false; this.url = null; if(stream != null) { this.load(stream,context); } }; $hxClasses["openfl.media.Sound"] = openfl_media_Sound; openfl_media_Sound.__name__ = ["openfl","media","Sound"]; openfl_media_Sound.fromAudioBuffer = function(buffer) { var sound = new openfl_media_Sound(); sound.__buffer = buffer; return sound; }; openfl_media_Sound.fromFile = function(path) { return openfl_media_Sound.fromAudioBuffer(lime_media_AudioBuffer.fromFile(path)); }; openfl_media_Sound.loadFromFile = function(path) { return lime_media_AudioBuffer.loadFromFile(path).then(function(audioBuffer) { return lime_app_Future.withValue(openfl_media_Sound.fromAudioBuffer(audioBuffer)); }); }; openfl_media_Sound.__super__ = openfl_events_EventDispatcher; openfl_media_Sound.prototype = $extend(openfl_events_EventDispatcher.prototype,{ bytesLoaded: null ,bytesTotal: null ,isBuffering: null ,url: null ,__buffer: null ,close: function() { if(this.__buffer != null) { this.__buffer.dispose(); } } ,load: function(stream,context) { var _gthis = this; this.url = stream.url; var defaultLibrary = lime_utils_Assets.getLibrary("default"); var tmp; if(defaultLibrary != null) { var key = this.url; var _this = defaultLibrary.cachedAudioBuffers; if(__map_reserved[key] != null) { tmp = _this.existsReserved(key); } else { tmp = _this.h.hasOwnProperty(key); } } else { tmp = false; } if(tmp) { var key1 = this.url; var _this1 = defaultLibrary.cachedAudioBuffers; this.AudioBuffer_onURLLoad(__map_reserved[key1] != null ? _this1.getReserved(key1) : _this1.h[key1]); } else { lime_media_AudioBuffer.loadFromFile(this.url).onComplete($bind(this,this.AudioBuffer_onURLLoad)).onError(function(_) { _gthis.AudioBuffer_onURLLoad(null); }); } } ,loadCompressedDataFromByteArray: function(bytes,bytesLength) { if(bytes == null || bytesLength <= 0) { this.dispatchEvent(new openfl_events_IOErrorEvent("ioError")); return; } if(openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(bytes) > bytesLength) { var this1 = new openfl_utils_ByteArrayData(bytesLength); var copy = this1; copy.writeBytes(bytes,0,bytesLength); bytes = copy; } this.__buffer = lime_media_AudioBuffer.fromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(bytes)); if(this.__buffer == null) { this.dispatchEvent(new openfl_events_IOErrorEvent("ioError")); } else { this.dispatchEvent(new openfl_events_Event("complete")); } } ,loadPCMFromByteArray: function(bytes,samples,format,stereo,sampleRate) { if(sampleRate == null) { sampleRate = 44100; } if(stereo == null) { stereo = true; } if(format == null) { format = "float"; } if(bytes == null) { this.dispatchEvent(new openfl_events_IOErrorEvent("ioError")); return; } var audioBuffer = new lime_media_AudioBuffer(); audioBuffer.bitsPerSample = format == "float" ? 32 : 16; audioBuffer.channels = stereo ? 2 : 1; var buffer = openfl_utils__$ByteArray_ByteArray_$Impl_$.toArrayBuffer(bytes); var this1; if(buffer != null) { this1 = new Uint8Array(buffer,0); } else { this1 = null; } audioBuffer.data = this1; audioBuffer.sampleRate = sampleRate | 0; this.__buffer = audioBuffer; this.dispatchEvent(new openfl_events_Event("complete")); } ,play: function(startTime,loops,sndTransform) { if(loops == null) { loops = 0; } if(startTime == null) { startTime = 0.0; } if(openfl_media_SoundMixer.__soundChannels.length >= 32) { return null; } if(sndTransform == null) { sndTransform = new openfl_media_SoundTransform(); } else { sndTransform = sndTransform.clone(); } var pan = openfl_media_SoundMixer.__soundTransform.pan + sndTransform.pan; if(pan > 1) { pan = 1; } if(pan < -1) { pan = -1; } var volume = openfl_media_SoundMixer.__soundTransform.volume * sndTransform.volume; var source = new lime_media_AudioSource(this.__buffer); source.offset = startTime | 0; if(loops > 1) { source.set_loops(loops - 1); } source.set_gain(volume); var position = source.get_position(); position.x = pan; position.z = -1 * Math.sqrt(1 - Math.pow(pan,2)); source.set_position(position); return new openfl_media_SoundChannel(source,sndTransform); } ,get_id3: function() { return new openfl_media_ID3Info(); } ,get_length: function() { if(this.__buffer != null) { return this.__buffer.get_src().duration() * 1000 | 0; } return 0; } ,AudioBuffer_onURLLoad: function(buffer) { if(buffer == null) { this.dispatchEvent(new openfl_events_IOErrorEvent("ioError")); } else { this.__buffer = buffer; this.dispatchEvent(new openfl_events_Event("complete")); } } ,__class__: openfl_media_Sound ,__properties__: {get_length:"get_length",get_id3:"get_id3"} }); var openfl_media_SoundChannel = function(source,soundTransform) { openfl_events_EventDispatcher.call(this,this); this.leftPeak = 1; this.rightPeak = 1; if(soundTransform != null) { this.__soundTransform = soundTransform; } else { this.__soundTransform = new openfl_media_SoundTransform(); } if(source != null) { this.__source = source; this.__source.onComplete.add($bind(this,this.source_onComplete)); this.__isValid = true; this.__source.play(); } openfl_media_SoundMixer.__registerSoundChannel(this); }; $hxClasses["openfl.media.SoundChannel"] = openfl_media_SoundChannel; openfl_media_SoundChannel.__name__ = ["openfl","media","SoundChannel"]; openfl_media_SoundChannel.__super__ = openfl_events_EventDispatcher; openfl_media_SoundChannel.prototype = $extend(openfl_events_EventDispatcher.prototype,{ leftPeak: null ,rightPeak: null ,__isValid: null ,__soundTransform: null ,__source: null ,stop: function() { openfl_media_SoundMixer.__unregisterSoundChannel(this); if(!this.__isValid) { return; } this.__source.stop(); this.__dispose(); } ,__dispose: function() { if(!this.__isValid) { return; } this.__source.onComplete.remove($bind(this,this.source_onComplete)); this.__source.dispose(); this.__isValid = false; } ,__updateTransform: function() { this.set_soundTransform(this.get_soundTransform()); } ,get_position: function() { if(!this.__isValid) { return 0; } return this.__source.get_currentTime() + this.__source.offset; } ,set_position: function(value) { if(!this.__isValid) { return 0; } this.__source.set_currentTime((value | 0) - this.__source.offset); return value; } ,get_soundTransform: function() { return this.__soundTransform.clone(); } ,set_soundTransform: function(value) { if(value != null) { this.__soundTransform.pan = value.pan; this.__soundTransform.volume = value.volume; var pan = openfl_media_SoundMixer.__soundTransform.pan + this.__soundTransform.pan; if(pan < -1) { pan = -1; } if(pan > 1) { pan = 1; } var volume = openfl_media_SoundMixer.__soundTransform.volume * this.__soundTransform.volume; if(this.__isValid) { this.__source.set_gain(volume); var position = this.__source.get_position(); position.x = pan; position.z = -1 * Math.sqrt(1 - Math.pow(pan,2)); this.__source.set_position(position); return value; } } return value; } ,source_onComplete: function() { openfl_media_SoundMixer.__unregisterSoundChannel(this); this.__dispose(); this.dispatchEvent(new openfl_events_Event("soundComplete")); } ,__class__: openfl_media_SoundChannel ,__properties__: {set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform",set_position:"set_position",get_position:"get_position"} }); var openfl_media_SoundLoaderContext = function(bufferTime,checkPolicyFile) { if(checkPolicyFile == null) { checkPolicyFile = false; } if(bufferTime == null) { bufferTime = 1000; } this.bufferTime = bufferTime; this.checkPolicyFile = checkPolicyFile; }; $hxClasses["openfl.media.SoundLoaderContext"] = openfl_media_SoundLoaderContext; openfl_media_SoundLoaderContext.__name__ = ["openfl","media","SoundLoaderContext"]; openfl_media_SoundLoaderContext.prototype = { bufferTime: null ,checkPolicyFile: null ,__class__: openfl_media_SoundLoaderContext }; var openfl_media_SoundTransform = function(vol,panning) { if(panning == null) { panning = 0; } if(vol == null) { vol = 1; } this.volume = vol; this.pan = panning; this.leftToLeft = 0; this.leftToRight = 0; this.rightToLeft = 0; this.rightToRight = 0; }; $hxClasses["openfl.media.SoundTransform"] = openfl_media_SoundTransform; openfl_media_SoundTransform.__name__ = ["openfl","media","SoundTransform"]; openfl_media_SoundTransform.prototype = { leftToLeft: null ,leftToRight: null ,pan: null ,rightToLeft: null ,rightToRight: null ,volume: null ,clone: function() { return new openfl_media_SoundTransform(this.volume,this.pan); } ,__class__: openfl_media_SoundTransform }; var openfl_media_SoundMixer = function() { }; $hxClasses["openfl.media.SoundMixer"] = openfl_media_SoundMixer; openfl_media_SoundMixer.__name__ = ["openfl","media","SoundMixer"]; openfl_media_SoundMixer.__properties__ = {set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform"}; openfl_media_SoundMixer.areSoundsInaccessible = function() { return false; }; openfl_media_SoundMixer.stopAll = function() { var _g = 0; var _g1 = openfl_media_SoundMixer.__soundChannels; while(_g < _g1.length) { var channel = _g1[_g]; ++_g; channel.stop(); } }; openfl_media_SoundMixer.__registerSoundChannel = function(soundChannel) { openfl_media_SoundMixer.__soundChannels.push(soundChannel); }; openfl_media_SoundMixer.__unregisterSoundChannel = function(soundChannel) { HxOverrides.remove(openfl_media_SoundMixer.__soundChannels,soundChannel); }; openfl_media_SoundMixer.get_soundTransform = function() { return openfl_media_SoundMixer.__soundTransform; }; openfl_media_SoundMixer.set_soundTransform = function(value) { openfl_media_SoundMixer.__soundTransform = value.clone(); var _g = 0; var _g1 = openfl_media_SoundMixer.__soundChannels; while(_g < _g1.length) { var channel = _g1[_g]; ++_g; channel.__updateTransform(); } return value; }; var openfl_net_NetConnection = function() { openfl_events_EventDispatcher.call(this); }; $hxClasses["openfl.net.NetConnection"] = openfl_net_NetConnection; openfl_net_NetConnection.__name__ = ["openfl","net","NetConnection"]; openfl_net_NetConnection.__super__ = openfl_events_EventDispatcher; openfl_net_NetConnection.prototype = $extend(openfl_events_EventDispatcher.prototype,{ connect: function(command,_,_1,_2,_3,_4) { if(command != null) { throw new js__$Boot_HaxeError("Error: Can only connect in \"HTTP streaming\" mode"); } this.dispatchEvent(new openfl_events_NetStatusEvent("netStatus",false,true,{ code : "NetConnection.Connect.Success"})); } ,__class__: openfl_net_NetConnection }); var openfl_net_NetStream = function(connection,peerID) { openfl_events_EventDispatcher.call(this); this.__connection = connection; this.__video = window.document.createElement("video"); this.__video.addEventListener("error",$bind(this,this.video_onError),false); this.__video.addEventListener("waiting",$bind(this,this.video_onWaiting),false); this.__video.addEventListener("ended",$bind(this,this.video_onEnd),false); this.__video.addEventListener("pause",$bind(this,this.video_onPause),false); this.__video.addEventListener("seeking",$bind(this,this.video_onSeeking),false); this.__video.addEventListener("playing",$bind(this,this.video_onPlaying),false); this.__video.addEventListener("timeupdate",$bind(this,this.video_onTimeUpdate),false); this.__video.addEventListener("loadstart",$bind(this,this.video_onLoadStart),false); this.__video.addEventListener("stalled",$bind(this,this.video_onStalled),false); this.__video.addEventListener("durationchanged",$bind(this,this.video_onDurationChanged),false); this.__video.addEventListener("canplay",$bind(this,this.video_onCanPlay),false); this.__video.addEventListener("canplaythrough",$bind(this,this.video_onCanPlayThrough),false); this.__video.addEventListener("loadedmetadata",$bind(this,this.video_onLoadMetaData),false); }; $hxClasses["openfl.net.NetStream"] = openfl_net_NetStream; openfl_net_NetStream.__name__ = ["openfl","net","NetStream"]; openfl_net_NetStream.__super__ = openfl_events_EventDispatcher; openfl_net_NetStream.prototype = $extend(openfl_events_EventDispatcher.prototype,{ audioCodec: null ,bufferLength: null ,bufferTime: null ,bytesLoaded: null ,bytesTotal: null ,checkPolicyFile: null ,client: null ,currentFPS: null ,decodedFrames: null ,liveDelay: null ,objectEncoding: null ,soundTransform: null ,time: null ,videoCode: null ,__connection: null ,__timer: null ,__video: null ,close: function() { this.__video.pause(); this.__video.src = ""; this.time = 0; } ,pause: function() { this.__video.pause(); } ,play: function(url,_,_1,_2,_3,_4) { this.__video.src = url; this.__video.play(); } ,requestVideoStatus: function() { var _gthis = this; if(this.__timer == null) { this.__timer = new haxe_Timer(1); } this.__timer.run = function() { if(_gthis.__video.paused) { _gthis.__playStatus("NetStream.Play.pause"); } else { _gthis.__playStatus("NetStream.Play.playing"); } _gthis.__timer.stop(); }; } ,resume: function() { this.__video.play(); } ,seek: function(time) { if(time < 0) { time = 0; } else if(time > this.__video.duration) { time = this.__video.duration; } this.__video.currentTime = time; } ,togglePause: function() { if(this.__video.paused) { this.__video.play(); } else { this.__video.pause(); } } ,__playStatus: function(code) { if(this.client != null) { try { var handler = this.client.onPlayStatus; handler({ code : code, duration : this.__video.duration, position : this.__video.currentTime, speed : this.__video.playbackRate, start : this.__video.startTime}); } catch( e ) { haxe_CallStack.lastException = e; } } } ,video_onCanPlay: function(event) { this.__playStatus("NetStream.Play.canplay"); } ,video_onCanPlayThrough: function(event) { this.__playStatus("NetStream.Play.canplaythrough"); } ,video_onDurationChanged: function(event) { this.__playStatus("NetStream.Play.durationchanged"); } ,video_onEnd: function(event) { this.__connection.dispatchEvent(new openfl_events_NetStatusEvent("netStatus",false,false,{ code : "NetStream.Play.Stop"})); this.__playStatus("NetStream.Play.Complete"); } ,video_onError: function(event) { this.__connection.dispatchEvent(new openfl_events_NetStatusEvent("netStatus",false,false,{ code : "NetStream.Play.Stop"})); this.__playStatus("NetStream.Play.error"); } ,video_onLoadMetaData: function(event) { if(this.client != null) { try { var handler = this.client.onMetaData; handler({ width : this.__video.videoWidth, height : this.__video.videoHeight, duration : this.__video.duration}); } catch( e ) { haxe_CallStack.lastException = e; } } } ,video_onLoadStart: function(event) { this.__playStatus("NetStream.Play.loadstart"); } ,video_onPause: function(event) { this.__playStatus("NetStream.Play.pause"); } ,video_onPlaying: function(event) { this.__connection.dispatchEvent(new openfl_events_NetStatusEvent("netStatus",false,false,{ code : "NetStream.Play.Start"})); this.__playStatus("NetStream.Play.playing"); } ,video_onSeeking: function(event) { this.__playStatus("NetStream.Play.seeking"); } ,video_onStalled: function(event) { this.__playStatus("NetStream.Play.stalled"); } ,video_onTimeUpdate: function(event) { this.time = this.__video.currentTime; this.__playStatus("NetStream.Play.timeupdate"); } ,video_onWaiting: function(event) { this.__playStatus("NetStream.Play.waiting"); } ,get_speed: function() { return this.__video.playbackRate; } ,set_speed: function(value) { return this.__video.playbackRate = value; } ,__class__: openfl_net_NetStream ,__properties__: {set_speed:"set_speed",get_speed:"get_speed"} }); var openfl_net_URLLoader = function(request) { openfl_events_EventDispatcher.call(this); this.bytesLoaded = 0; this.bytesTotal = 0; this.dataFormat = 1; if(request != null) { this.load(request); } }; $hxClasses["openfl.net.URLLoader"] = openfl_net_URLLoader; openfl_net_URLLoader.__name__ = ["openfl","net","URLLoader"]; openfl_net_URLLoader.__super__ = openfl_events_EventDispatcher; openfl_net_URLLoader.prototype = $extend(openfl_events_EventDispatcher.prototype,{ bytesLoaded: null ,bytesTotal: null ,data: null ,dataFormat: null ,__httpRequest: null ,close: function() { if(this.__httpRequest != null) { this.__httpRequest.cancel(); } } ,load: function(request) { var _gthis = this; if(this.dataFormat == 0) { var httpRequest = new lime_net__$HTTPRequest_$openfl_$utils_$ByteArray(); this.__prepareRequest(httpRequest,request); httpRequest.load().onProgress($bind(this,this.httpRequest_onProgress)).onError($bind(this,this.httpRequest_onError)).onComplete(function(data) { _gthis.__dispatchStatus(); _gthis.data = data; var event = new openfl_events_Event("complete"); _gthis.dispatchEvent(event); }); } else { var httpRequest1 = new lime_net__$HTTPRequest_$String(); this.__prepareRequest(httpRequest1,request); httpRequest1.load().onProgress($bind(this,this.httpRequest_onProgress)).onError($bind(this,this.httpRequest_onError)).onComplete(function(data1) { _gthis.__dispatchStatus(); _gthis.data = data1; var event1 = new openfl_events_Event("complete"); _gthis.dispatchEvent(event1); }); } } ,__dispatchStatus: function() { var event = new openfl_events_HTTPStatusEvent("httpStatus",false,false,this.__httpRequest.responseStatus); event.responseURL = this.__httpRequest.uri; var headers = []; if(this.__httpRequest.enableResponseHeaders && this.__httpRequest.responseHeaders != null) { var _g = 0; var _g1 = this.__httpRequest.responseHeaders; while(_g < _g1.length) { var header = _g1[_g]; ++_g; headers.push(new openfl_net_URLRequestHeader(header.name,header.value)); } } event.responseHeaders = headers; this.dispatchEvent(event); } ,__prepareRequest: function(httpRequest,request) { this.__httpRequest = httpRequest; this.__httpRequest.uri = request.url; var _g = request.method; var tmp; switch(_g) { case "DELETE": tmp = "DELETE"; break; case "HEAD": tmp = "HEAD"; break; case "OPTIONS": tmp = "OPTIONS"; break; case "POST": tmp = "POST"; break; case "PUT": tmp = "PUT"; break; default: tmp = "GET"; } this.__httpRequest.method = tmp; if(request.data != null) { if(js_Boot.__instanceof(request.data,openfl_net_URLVariables)) { var fields = Reflect.fields(request.data); var _g1 = 0; while(_g1 < fields.length) { var field = fields[_g1]; ++_g1; var _this = this.__httpRequest.formData; var value = Reflect.field(request.data,field); if(__map_reserved[field] != null) { _this.setReserved(field,value); } else { _this.h[field] = value; } } } else if(js_Boot.__instanceof(request.data,haxe_io_Bytes)) { this.__httpRequest.data = request.data; } else { this.__httpRequest.data = haxe_io_Bytes.ofString(Std.string(request.data)); } } this.__httpRequest.contentType = request.contentType; if(request.requestHeaders != null) { var _g11 = 0; var _g2 = request.requestHeaders; while(_g11 < _g2.length) { var header = _g2[_g11]; ++_g11; this.__httpRequest.headers.push(new lime_net_HTTPRequestHeader(header.name,header.value)); } } this.__httpRequest.userAgent = request.userAgent; this.__httpRequest.enableResponseHeaders = true; } ,httpRequest_onError: function(error) { this.__dispatchStatus(); if(error == 403) { var event = new openfl_events_SecurityErrorEvent("securityError"); event.text = Std.string(error); this.dispatchEvent(event); } else { var event1 = new openfl_events_IOErrorEvent("ioError"); event1.text = Std.string(error); this.dispatchEvent(event1); } } ,httpRequest_onProgress: function(bytesLoaded,bytesTotal) { var event = new openfl_events_ProgressEvent("progress"); event.bytesLoaded = bytesLoaded; event.bytesTotal = bytesTotal; this.dispatchEvent(event); } ,__class__: openfl_net_URLLoader }); var openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$ = {}; $hxClasses["openfl.net._URLLoaderDataFormat.URLLoaderDataFormat_Impl_"] = openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$; openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$.__name__ = ["openfl","net","_URLLoaderDataFormat","URLLoaderDataFormat_Impl_"]; openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$.fromString = function(value) { switch(value) { case "binary": return 0; case "text": return 1; case "variables": return 2; default: return null; } }; openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$.toString = function(value) { switch(value) { case 0: return "binary"; case 1: return "text"; case 2: return "variables"; default: return null; } }; var openfl_net_URLRequest = function(url) { if(url != null) { this.url = url; } this.requestHeaders = []; this.method = "GET"; this.contentType = null; }; $hxClasses["openfl.net.URLRequest"] = openfl_net_URLRequest; openfl_net_URLRequest.__name__ = ["openfl","net","URLRequest"]; openfl_net_URLRequest.prototype = { contentType: null ,data: null ,method: null ,requestHeaders: null ,url: null ,userAgent: null ,__class__: openfl_net_URLRequest }; var openfl_net_URLRequestHeader = function(name,value) { if(value == null) { value = ""; } if(name == null) { name = ""; } this.name = name; this.value = value; }; $hxClasses["openfl.net.URLRequestHeader"] = openfl_net_URLRequestHeader; openfl_net_URLRequestHeader.__name__ = ["openfl","net","URLRequestHeader"]; openfl_net_URLRequestHeader.prototype = { name: null ,value: null ,__class__: openfl_net_URLRequestHeader }; var openfl_net_URLVariables = function(source) { if(source != null) { this.decode(source); } }; $hxClasses["openfl.net.URLVariables"] = openfl_net_URLVariables; openfl_net_URLVariables.__name__ = ["openfl","net","URLVariables"]; openfl_net_URLVariables.prototype = { decode: function(source) { var fields = Reflect.fields(this); var _g = 0; while(_g < fields.length) { var f = fields[_g]; ++_g; Reflect.deleteField(this,f); } var fields1 = source.split(";").join("&").split("&"); var _g1 = 0; while(_g1 < fields1.length) { var f1 = fields1[_g1]; ++_g1; var eq = f1.indexOf("="); if(eq > 0) { var s = HxOverrides.substr(f1,0,eq); var field = decodeURIComponent(s.split("+").join(" ")); var s1 = HxOverrides.substr(f1,eq + 1,null); this[field] = decodeURIComponent(s1.split("+").join(" ")); } else if(eq != 0) { this[decodeURIComponent(f1.split("+").join(" "))] = ""; } } } ,toString: function() { var result = []; var fields = Reflect.fields(this); var _g = 0; while(_g < fields.length) { var f = fields[_g]; ++_g; var tmp = encodeURIComponent(f) + "="; var s = Reflect.field(this,f); result.push(tmp + encodeURIComponent(s)); } return result.join("&"); } ,__class__: openfl_net_URLVariables }; var openfl_system_ApplicationDomain = function(parentDomain) { if(parentDomain != null) { this.parentDomain = parentDomain; } else { this.parentDomain = openfl_system_ApplicationDomain.currentDomain; } }; $hxClasses["openfl.system.ApplicationDomain"] = openfl_system_ApplicationDomain; openfl_system_ApplicationDomain.__name__ = ["openfl","system","ApplicationDomain"]; openfl_system_ApplicationDomain.prototype = { parentDomain: null ,getDefinition: function(name) { return Type.resolveClass(name); } ,hasDefinition: function(name) { return Type.resolveClass(name) != null; } ,__class__: openfl_system_ApplicationDomain }; var openfl_system_Capabilities = function() { }; $hxClasses["openfl.system.Capabilities"] = openfl_system_Capabilities; openfl_system_Capabilities.__name__ = ["openfl","system","Capabilities"]; openfl_system_Capabilities.__properties__ = {get_version:"get_version",get_screenResolutionY:"get_screenResolutionY",get_screenResolutionX:"get_screenResolutionX",get_screenDPI:"get_screenDPI",get_pixelAspectRatio:"get_pixelAspectRatio",get_os:"get_os",get_manufacturer:"get_manufacturer",get_language:"get_language",get_cpuArchitecture:"get_cpuArchitecture"}; openfl_system_Capabilities.hasMultiChannelAudio = function(type) { return false; }; openfl_system_Capabilities.get_cpuArchitecture = function() { return "x86"; }; openfl_system_Capabilities.get_language = function() { var language = lime_system__$Locale_Locale_$Impl_$.get_language(lime_system__$Locale_Locale_$Impl_$.get_currentLocale()); if(language != null) { language = language.toLowerCase(); switch(language) { case "cs":case "da":case "de":case "en":case "es":case "fi":case "fr":case "hu":case "it":case "ja":case "ko":case "nb":case "nl":case "pl":case "pt":case "ru":case "sv":case "tr": return language; case "zh": var region = lime_system__$Locale_Locale_$Impl_$.get_region(lime_system__$Locale_Locale_$Impl_$.get_currentLocale()); if(region != null) { var _g = region.toUpperCase(); switch(_g) { case "HANT":case "TW": return "zh-TW"; default: } } return "zh-CN"; default: return "xu"; } } return "en"; }; openfl_system_Capabilities.get_manufacturer = function() { return "OpenFL HTML5"; }; openfl_system_Capabilities.get_os = function() { return "HTML5"; }; openfl_system_Capabilities.get_pixelAspectRatio = function() { return 1; }; openfl_system_Capabilities.get_screenDPI = function() { var $window = openfl_Lib.application != null ? openfl_Lib.application.__windows[0] : null; var screenDPI = 72; if($window != null) { screenDPI *= $window.__scale; } return screenDPI; }; openfl_system_Capabilities.get_screenResolutionX = function() { var stage = openfl_Lib.current.stage; var resolutionX = 0; if(stage.window != null) { var display = stage.window.get_display(); if(display != null) { resolutionX = display.currentMode.width; } } if(resolutionX > 0) { return resolutionX; } return stage.stageWidth; }; openfl_system_Capabilities.get_screenResolutionY = function() { var stage = openfl_Lib.current.stage; var resolutionY = 0; if(stage.window != null) { var display = stage.window.get_display(); if(display != null) { resolutionY = display.currentMode.height; } } if(resolutionY > 0) { return resolutionY; } return stage.stageHeight; }; openfl_system_Capabilities.get_version = function() { var value = "WEB"; value += " " + StringTools.replace("6.2.2",".",",") + ",0"; return value; }; var openfl_system_LoaderContext = function(checkPolicyFile,applicationDomain,securityDomain) { if(checkPolicyFile == null) { checkPolicyFile = false; } this.checkPolicyFile = checkPolicyFile; this.securityDomain = securityDomain; this.applicationDomain = applicationDomain; this.allowCodeImport = true; this.allowLoadBytesCodeExecution = true; }; $hxClasses["openfl.system.LoaderContext"] = openfl_system_LoaderContext; openfl_system_LoaderContext.__name__ = ["openfl","system","LoaderContext"]; openfl_system_LoaderContext.prototype = { allowCodeImport: null ,allowLoadBytesCodeExecution: null ,applicationDomain: null ,checkPolicyFile: null ,securityDomain: null ,__class__: openfl_system_LoaderContext }; var openfl_system_SecurityDomain = function() { }; $hxClasses["openfl.system.SecurityDomain"] = openfl_system_SecurityDomain; openfl_system_SecurityDomain.__name__ = ["openfl","system","SecurityDomain"]; openfl_system_SecurityDomain.prototype = { __class__: openfl_system_SecurityDomain }; var openfl_system_System = function() { }; $hxClasses["openfl.system.System"] = openfl_system_System; openfl_system_System.__name__ = ["openfl","system","System"]; openfl_system_System.__properties__ = {get_vmVersion:"get_vmVersion",get_totalMemory:"get_totalMemory"}; openfl_system_System.exit = function(code) { lime_system_System.exit(code); }; openfl_system_System.gc = function() { }; openfl_system_System.pause = function() { openfl_Lib.notImplemented({ fileName : "System.hx", lineNumber : 40, className : "openfl.system.System", methodName : "pause"}); }; openfl_system_System.resume = function() { openfl_Lib.notImplemented({ fileName : "System.hx", lineNumber : 47, className : "openfl.system.System", methodName : "resume"}); }; openfl_system_System.setClipboard = function(string) { lime_system_Clipboard.set_text(string); }; openfl_system_System.get_totalMemory = function() { return (window.performance && window.performance.memory) ? window.performance.memory.usedJSHeapSize : 0; }; openfl_system_System.get_vmVersion = function() { return "1.0.0"; }; var openfl_system__$TouchscreenType_TouchscreenType_$Impl_$ = {}; $hxClasses["openfl.system._TouchscreenType.TouchscreenType_Impl_"] = openfl_system__$TouchscreenType_TouchscreenType_$Impl_$; openfl_system__$TouchscreenType_TouchscreenType_$Impl_$.__name__ = ["openfl","system","_TouchscreenType","TouchscreenType_Impl_"]; openfl_system__$TouchscreenType_TouchscreenType_$Impl_$.fromString = function(value) { switch(value) { case "finger": return 0; case "none": return 1; case "stylus": return 2; default: return null; } }; openfl_system__$TouchscreenType_TouchscreenType_$Impl_$.toString = function(value) { switch(value) { case 0: return "finger"; case 1: return "none"; case 2: return "stylus"; default: return null; } }; var openfl_text__$AntiAliasType_AntiAliasType_$Impl_$ = {}; $hxClasses["openfl.text._AntiAliasType.AntiAliasType_Impl_"] = openfl_text__$AntiAliasType_AntiAliasType_$Impl_$; openfl_text__$AntiAliasType_AntiAliasType_$Impl_$.__name__ = ["openfl","text","_AntiAliasType","AntiAliasType_Impl_"]; openfl_text__$AntiAliasType_AntiAliasType_$Impl_$.fromString = function(value) { switch(value) { case "advanced": return 0; case "normal": return 1; default: return null; } }; openfl_text__$AntiAliasType_AntiAliasType_$Impl_$.toString = function(value) { switch(value) { case 0: return "advanced"; case 1: return "normal"; default: return null; } }; var openfl_text__$FontStyle_FontStyle_$Impl_$ = {}; $hxClasses["openfl.text._FontStyle.FontStyle_Impl_"] = openfl_text__$FontStyle_FontStyle_$Impl_$; openfl_text__$FontStyle_FontStyle_$Impl_$.__name__ = ["openfl","text","_FontStyle","FontStyle_Impl_"]; openfl_text__$FontStyle_FontStyle_$Impl_$.fromString = function(value) { switch(value) { case "bold": return 0; case "boldItalic": return 1; case "italic": return 2; case "regular": return 3; default: return null; } }; openfl_text__$FontStyle_FontStyle_$Impl_$.toString = function(value) { switch(value) { case 0: return "bold"; case 1: return "boldItalic"; case 2: return "italic"; case 3: return "regular"; default: return null; } }; var openfl_text__$FontType_FontType_$Impl_$ = {}; $hxClasses["openfl.text._FontType.FontType_Impl_"] = openfl_text__$FontType_FontType_$Impl_$; openfl_text__$FontType_FontType_$Impl_$.__name__ = ["openfl","text","_FontType","FontType_Impl_"]; openfl_text__$FontType_FontType_$Impl_$.fromString = function(value) { switch(value) { case "device": return 0; case "embedded": return 1; case "embeddedCFF": return 2; default: return null; } }; openfl_text__$FontType_FontType_$Impl_$.toString = function(value) { switch(value) { case 0: return "device"; case 1: return "embedded"; case 2: return "embeddedCFF"; default: return null; } }; var openfl_text__$GridFitType_GridFitType_$Impl_$ = {}; $hxClasses["openfl.text._GridFitType.GridFitType_Impl_"] = openfl_text__$GridFitType_GridFitType_$Impl_$; openfl_text__$GridFitType_GridFitType_$Impl_$.__name__ = ["openfl","text","_GridFitType","GridFitType_Impl_"]; openfl_text__$GridFitType_GridFitType_$Impl_$.fromString = function(value) { switch(value) { case "none": return 0; case "pixel": return 1; case "subpixel": return 2; default: return null; } }; openfl_text__$GridFitType_GridFitType_$Impl_$.toString = function(value) { switch(value) { case 0: return "none"; case 1: return "pixel"; case 2: return "subpixel"; default: return null; } }; var openfl_text_StaticText = function() { openfl_display_DisplayObject.call(this); this.__graphics = new openfl_display_Graphics(this); }; $hxClasses["openfl.text.StaticText"] = openfl_text_StaticText; openfl_text_StaticText.__name__ = ["openfl","text","StaticText"]; openfl_text_StaticText.__super__ = openfl_display_DisplayObject; openfl_text_StaticText.prototype = $extend(openfl_display_DisplayObject.prototype,{ text: null ,__class__: openfl_text_StaticText }); var openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$ = {}; $hxClasses["openfl.text._TextFieldAutoSize.TextFieldAutoSize_Impl_"] = openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$; openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$.__name__ = ["openfl","text","_TextFieldAutoSize","TextFieldAutoSize_Impl_"]; openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$.fromString = function(value) { switch(value) { case "center": return 0; case "left": return 1; case "none": return 2; case "right": return 3; default: return null; } }; openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$.toString = function(value) { switch(value) { case 0: return "center"; case 1: return "left"; case 2: return "none"; case 3: return "right"; default: return null; } }; var openfl_text__$TextFieldType_TextFieldType_$Impl_$ = {}; $hxClasses["openfl.text._TextFieldType.TextFieldType_Impl_"] = openfl_text__$TextFieldType_TextFieldType_$Impl_$; openfl_text__$TextFieldType_TextFieldType_$Impl_$.__name__ = ["openfl","text","_TextFieldType","TextFieldType_Impl_"]; openfl_text__$TextFieldType_TextFieldType_$Impl_$.fromString = function(value) { switch(value) { case "dynamic": return 0; case "input": return 1; default: return null; } }; openfl_text__$TextFieldType_TextFieldType_$Impl_$.toString = function(value) { switch(value) { case 0: return "dynamic"; case 1: return "input"; default: return null; } }; var openfl_text_TextFormat = function(font,size,color,bold,italic,underline,url,target,align,leftMargin,rightMargin,indent,leading) { this.font = font; this.size = size; this.color = color; this.bold = bold; this.italic = italic; this.underline = underline; this.url = url; this.target = target; this.align = align; this.leftMargin = leftMargin; this.rightMargin = rightMargin; this.indent = indent; this.leading = leading; }; $hxClasses["openfl.text.TextFormat"] = openfl_text_TextFormat; openfl_text_TextFormat.__name__ = ["openfl","text","TextFormat"]; openfl_text_TextFormat.prototype = { align: null ,blockIndent: null ,bold: null ,bullet: null ,color: null ,font: null ,indent: null ,italic: null ,kerning: null ,leading: null ,leftMargin: null ,letterSpacing: null ,rightMargin: null ,size: null ,tabStops: null ,target: null ,underline: null ,url: null ,__ascent: null ,__descent: null ,clone: function() { var newFormat = new openfl_text_TextFormat(this.font,this.size,this.color,this.bold,this.italic,this.underline,this.url,this.target); newFormat.align = this.align; newFormat.leftMargin = this.leftMargin; newFormat.rightMargin = this.rightMargin; newFormat.indent = this.indent; newFormat.leading = this.leading; newFormat.blockIndent = this.blockIndent; newFormat.bullet = this.bullet; newFormat.kerning = this.kerning; newFormat.letterSpacing = this.letterSpacing; newFormat.tabStops = this.tabStops; newFormat.__ascent = this.__ascent; newFormat.__descent = this.__descent; return newFormat; } ,__merge: function(format) { if(format.font != null) { this.font = format.font; } if(format.size != null) { this.size = format.size; } if(format.color != null) { this.color = format.color; } if(format.bold != null) { this.bold = format.bold; } if(format.italic != null) { this.italic = format.italic; } if(format.underline != null) { this.underline = format.underline; } if(format.url != null) { this.url = format.url; } if(format.target != null) { this.target = format.target; } if(format.align != null) { this.align = format.align; } if(format.leftMargin != null) { this.leftMargin = format.leftMargin; } if(format.rightMargin != null) { this.rightMargin = format.rightMargin; } if(format.indent != null) { this.indent = format.indent; } if(format.leading != null) { this.leading = format.leading; } if(format.blockIndent != null) { this.blockIndent = format.blockIndent; } if(format.bullet != null) { this.bullet = format.bullet; } if(format.kerning != null) { this.kerning = format.kerning; } if(format.letterSpacing != null) { this.letterSpacing = format.letterSpacing; } if(format.tabStops != null) { this.tabStops = format.tabStops; } if(format.__ascent != null) { this.__ascent = format.__ascent; } if(format.__descent != null) { this.__descent = format.__descent; } } ,__class__: openfl_text_TextFormat }; var openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$ = {}; $hxClasses["openfl.text._TextFormatAlign.TextFormatAlign_Impl_"] = openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.__name__ = ["openfl","text","_TextFormatAlign","TextFormatAlign_Impl_"]; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.fromString = function(value) { switch(value) { case "center": return 0; case "end": return 1; case "justify": return 2; case "left": return 3; case "right": return 4; case "start": return 5; default: return null; } }; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.toString = function(value) { switch(value) { case 0: return "center"; case 1: return "end"; case 2: return "justify"; case 3: return "left"; case 4: return "right"; case 5: return "start"; default: return null; } }; var openfl_text_TextLineMetrics = function(x,width,height,ascent,descent,leading) { this.x = x; this.width = width; this.height = height; this.ascent = ascent; this.descent = descent; this.leading = leading; }; $hxClasses["openfl.text.TextLineMetrics"] = openfl_text_TextLineMetrics; openfl_text_TextLineMetrics.__name__ = ["openfl","text","TextLineMetrics"]; openfl_text_TextLineMetrics.prototype = { ascent: null ,descent: null ,height: null ,leading: null ,width: null ,x: null ,__class__: openfl_text_TextLineMetrics }; var openfl_ui_GameInput = function() { openfl_events_EventDispatcher.call(this); openfl_ui_GameInput.__instances.push(this); }; $hxClasses["openfl.ui.GameInput"] = openfl_ui_GameInput; openfl_ui_GameInput.__name__ = ["openfl","ui","GameInput"]; openfl_ui_GameInput.getDeviceAt = function(index) { if(index >= 0 && index < openfl_ui_GameInput.__deviceList.length) { return openfl_ui_GameInput.__deviceList[index]; } return null; }; openfl_ui_GameInput.__getDevice = function(gamepad) { if(gamepad == null) { return null; } if(openfl_ui_GameInput.__devices.h.__keys__[gamepad.__id__] == null) { var devices = lime_ui_Joystick.__getDeviceData(); var device = devices[gamepad.id].id; var devices1 = lime_ui_Joystick.__getDeviceData(); var device1 = new openfl_ui_GameInputDevice(device,devices1[gamepad.id].id); openfl_ui_GameInput.__deviceList.push(device1); openfl_ui_GameInput.__devices.set(gamepad,device1); openfl_ui_GameInput.numDevices = openfl_ui_GameInput.__deviceList.length; } return openfl_ui_GameInput.__devices.h[gamepad.__id__]; }; openfl_ui_GameInput.__onGamepadAxisMove = function(gamepad,axis,value) { var device = openfl_ui_GameInput.__getDevice(gamepad); if(device == null) { return; } if(device.enabled) { if(!device.__axis.h.hasOwnProperty(axis)) { var control; switch(axis) { case 0: control = "LEFT_X"; break; case 1: control = "LEFT_Y"; break; case 2: control = "RIGHT_X"; break; case 3: control = "RIGHT_Y"; break; case 4: control = "TRIGGER_LEFT"; break; case 5: control = "TRIGGER_RIGHT"; break; default: control = "UNKNOWN (" + axis + ")"; } var control1 = new openfl_ui_GameInputControl(device,"AXIS_" + control,-1,1); device.__axis.h[axis] = control1; device.__controls.push(control1); } var control2 = device.__axis.h[axis]; control2.value = value; control2.dispatchEvent(new openfl_events_Event("change")); } }; openfl_ui_GameInput.__onGamepadButtonDown = function(gamepad,button) { var device = openfl_ui_GameInput.__getDevice(gamepad); if(device == null) { return; } if(device.enabled) { if(!device.__button.h.hasOwnProperty(button)) { var control; switch(button) { case 0: control = "A"; break; case 1: control = "B"; break; case 2: control = "X"; break; case 3: control = "Y"; break; case 4: control = "BACK"; break; case 5: control = "GUIDE"; break; case 6: control = "START"; break; case 7: control = "LEFT_STICK"; break; case 8: control = "RIGHT_STICK"; break; case 9: control = "LEFT_SHOULDER"; break; case 10: control = "RIGHT_SHOULDER"; break; case 11: control = "DPAD_UP"; break; case 12: control = "DPAD_DOWN"; break; case 13: control = "DPAD_LEFT"; break; case 14: control = "DPAD_RIGHT"; break; default: control = "UNKNOWN (" + button + ")"; } var control1 = new openfl_ui_GameInputControl(device,"BUTTON_" + control,0,1); device.__button.h[button] = control1; device.__controls.push(control1); } var control2 = device.__button.h[button]; control2.value = 1; control2.dispatchEvent(new openfl_events_Event("change")); } }; openfl_ui_GameInput.__onGamepadButtonUp = function(gamepad,button) { var device = openfl_ui_GameInput.__getDevice(gamepad); if(device == null) { return; } if(device.enabled) { if(!device.__button.h.hasOwnProperty(button)) { var control; switch(button) { case 0: control = "A"; break; case 1: control = "B"; break; case 2: control = "X"; break; case 3: control = "Y"; break; case 4: control = "BACK"; break; case 5: control = "GUIDE"; break; case 6: control = "START"; break; case 7: control = "LEFT_STICK"; break; case 8: control = "RIGHT_STICK"; break; case 9: control = "LEFT_SHOULDER"; break; case 10: control = "RIGHT_SHOULDER"; break; case 11: control = "DPAD_UP"; break; case 12: control = "DPAD_DOWN"; break; case 13: control = "DPAD_LEFT"; break; case 14: control = "DPAD_RIGHT"; break; default: control = "UNKNOWN (" + button + ")"; } var control1 = new openfl_ui_GameInputControl(device,"BUTTON_" + control,0,1); device.__button.h[button] = control1; device.__controls.push(control1); } var control2 = device.__button.h[button]; control2.value = 0; control2.dispatchEvent(new openfl_events_Event("change")); } }; openfl_ui_GameInput.__onGamepadConnect = function(gamepad) { var device = openfl_ui_GameInput.__getDevice(gamepad); if(device == null) { return; } var _g = 0; var _g1 = openfl_ui_GameInput.__instances; while(_g < _g1.length) { var instance = _g1[_g]; ++_g; instance.dispatchEvent(new openfl_events_GameInputEvent("deviceAdded",null,null,device)); } }; openfl_ui_GameInput.__onGamepadDisconnect = function(gamepad) { var device = openfl_ui_GameInput.__devices.h[gamepad.__id__]; if(device != null) { if(openfl_ui_GameInput.__devices.h.__keys__[gamepad.__id__] != null) { HxOverrides.remove(openfl_ui_GameInput.__deviceList,openfl_ui_GameInput.__devices.h[gamepad.__id__]); openfl_ui_GameInput.__devices.remove(gamepad); } openfl_ui_GameInput.numDevices = openfl_ui_GameInput.__deviceList.length; var _g = 0; var _g1 = openfl_ui_GameInput.__instances; while(_g < _g1.length) { var instance = _g1[_g]; ++_g; instance.dispatchEvent(new openfl_events_GameInputEvent("deviceRemoved",null,null,device)); } } }; openfl_ui_GameInput.__super__ = openfl_events_EventDispatcher; openfl_ui_GameInput.prototype = $extend(openfl_events_EventDispatcher.prototype,{ addEventListener: function(type,listener,useCapture,priority,useWeakReference) { if(useWeakReference == null) { useWeakReference = false; } if(priority == null) { priority = 0; } if(useCapture == null) { useCapture = false; } openfl_events_EventDispatcher.prototype.addEventListener.call(this,type,listener,useCapture,priority,useWeakReference); if(type == "deviceAdded") { var _g = 0; var _g1 = openfl_ui_GameInput.__deviceList; while(_g < _g1.length) { var device = _g1[_g]; ++_g; this.dispatchEvent(new openfl_events_GameInputEvent("deviceAdded",null,null,device)); } } } ,__class__: openfl_ui_GameInput }); var openfl_ui_GameInputControl = function(device,id,minValue,maxValue,value) { if(value == null) { value = 0; } openfl_events_EventDispatcher.call(this); this.device = device; this.id = id; this.minValue = minValue; this.maxValue = maxValue; this.value = value; }; $hxClasses["openfl.ui.GameInputControl"] = openfl_ui_GameInputControl; openfl_ui_GameInputControl.__name__ = ["openfl","ui","GameInputControl"]; openfl_ui_GameInputControl.__super__ = openfl_events_EventDispatcher; openfl_ui_GameInputControl.prototype = $extend(openfl_events_EventDispatcher.prototype,{ device: null ,id: null ,maxValue: null ,minValue: null ,value: null ,__class__: openfl_ui_GameInputControl }); var openfl_ui_GameInputDevice = function(id,name) { this.__controls = []; this.__button = new haxe_ds_IntMap(); this.__axis = new haxe_ds_IntMap(); this.id = id; this.name = name; var control; var _g = 0; while(_g < 6) { var i = _g++; control = new openfl_ui_GameInputControl(this,"AXIS_" + i,-1,1); this.__axis.h[i] = control; this.__controls.push(control); } var _g1 = 0; while(_g1 < 15) { var i1 = _g1++; control = new openfl_ui_GameInputControl(this,"BUTTON_" + i1,0,1); this.__button.h[i1] = control; this.__controls.push(control); } }; $hxClasses["openfl.ui.GameInputDevice"] = openfl_ui_GameInputDevice; openfl_ui_GameInputDevice.__name__ = ["openfl","ui","GameInputDevice"]; openfl_ui_GameInputDevice.prototype = { enabled: null ,id: null ,name: null ,sampleInterval: null ,__axis: null ,__button: null ,__controls: null ,__gamepad: null ,getCachedSamples: function(data,append) { if(append == null) { append = false; } return 0; } ,getControlAt: function(i) { if(i >= 0 && i < this.__controls.length) { return this.__controls[i]; } return null; } ,startCachingSamples: function(numSamples,controls) { } ,stopCachingSamples: function() { } ,get_numControls: function() { return this.__controls.length; } ,__class__: openfl_ui_GameInputDevice ,__properties__: {get_numControls:"get_numControls"} }; var openfl_ui_Keyboard = function() { }; $hxClasses["openfl.ui.Keyboard"] = openfl_ui_Keyboard; openfl_ui_Keyboard.__name__ = ["openfl","ui","Keyboard"]; openfl_ui_Keyboard.isAccessible = function() { return false; }; openfl_ui_Keyboard.__convertKeyCode = function(key) { switch(key) { case 8: return 8; case 9: return 9; case 13: return 13; case 27: return 27; case 32: return 32; case 33: return 49; case 34: return 222; case 35: return 51; case 36: return 52; case 37: return 53; case 38: return 55; case 39: return 222; case 40: return 57; case 41: return 48; case 42: return 56; case 44: return 188; case 45: return 189; case 46: return 190; case 47: return 191; case 48: return 48; case 49: return 49; case 50: return 50; case 51: return 51; case 52: return 52; case 53: return 53; case 54: return 54; case 55: return 55; case 56: return 56; case 57: return 57; case 58: return 186; case 59: return 186; case 60: return 60; case 61: return 187; case 62: return 190; case 63: return 191; case 64: return 50; case 91: return 219; case 92: return 220; case 93: return 221; case 94: return 54; case 95: return 189; case 96: return 192; case 97: return 65; case 98: return 66; case 99: return 67; case 100: return 68; case 101: return 69; case 102: return 70; case 103: return 71; case 104: return 72; case 105: return 73; case 106: return 74; case 107: return 75; case 108: return 76; case 109: return 77; case 110: return 78; case 111: return 79; case 112: return 80; case 113: return 81; case 114: return 82; case 115: return 83; case 116: return 84; case 117: return 85; case 118: return 86; case 119: return 87; case 120: return 88; case 121: return 89; case 122: return 90; case 127: return 46; case 1073741881: return 20; case 1073741882: return 112; case 1073741883: return 113; case 1073741884: return 114; case 1073741885: return 115; case 1073741886: return 116; case 1073741887: return 117; case 1073741888: return 118; case 1073741889: return 119; case 1073741890: return 120; case 1073741891: return 121; case 1073741892: return 122; case 1073741893: return 123; case 1073741894: return 301; case 1073741895: return 145; case 1073741896: return 19; case 1073741897: return 45; case 1073741898: return 36; case 1073741899: return 33; case 1073741901: return 35; case 1073741902: return 34; case 1073741903: return 39; case 1073741904: return 37; case 1073741905: return 40; case 1073741906: return 38; case 1073741907: return 144; case 1073741908: return 111; case 1073741909: return 106; case 1073741910: return 109; case 1073741911: return 107; case 1073741912: return 108; case 1073741913: return 97; case 1073741914: return 98; case 1073741915: return 99; case 1073741916: return 100; case 1073741917: return 101; case 1073741918: return 102; case 1073741919: return 103; case 1073741920: return 104; case 1073741921: return 105; case 1073741922: return 96; case 1073741923: return 110; case 1073741925: return 302; case 1073741928: return 124; case 1073741929: return 125; case 1073741930: return 126; case 1073741982: return 13; case 1073742044: return 110; case 1073742048: return 17; case 1073742049: return 16; case 1073742050: return 18; case 1073742051: return 15; case 1073742052: return 17; case 1073742053: return 16; case 1073742054: return 18; case 1073742055: return 15; default: return key; } }; openfl_ui_Keyboard.__getCharCode = function(key,shift) { if(shift == null) { shift = false; } if(!shift) { switch(key) { case 8: return 8; case 9: return 9; case 13: return 13; case 27: return 27; case 32: return 32; case 186: return 59; case 187: return 61; case 188: return 44; case 189: return 45; case 190: return 46; case 191: return 47; case 192: return 96; case 219: return 91; case 220: return 92; case 221: return 93; case 222: return 39; } if(key >= 48 && key <= 57) { return key - 48 + 48; } if(key >= 65 && key <= 90) { return key - 65 + 97; } } else { switch(key) { case 48: return 41; case 49: return 33; case 50: return 64; case 51: return 35; case 52: return 36; case 53: return 37; case 54: return 94; case 55: return 38; case 56: return 42; case 57: return 40; case 186: return 58; case 187: return 43; case 188: return 60; case 189: return 95; case 190: return 62; case 191: return 63; case 192: return 126; case 219: return 123; case 220: return 124; case 221: return 125; case 222: return 34; } if(key >= 65 && key <= 90) { return key - 65 + 65; } } if(key >= 96 && key <= 105) { return key - 96 + 48; } switch(key) { case 8: return 8; case 13: return 13; case 46: return 127; case 106: return 42; case 107: return 43; case 108: return 44; case 110: return 45; case 111: return 46; } return 0; }; openfl_ui_Keyboard.__getKeyLocation = function(key) { switch(key) { case 1073741908:case 1073741909:case 1073741910:case 1073741911:case 1073741912:case 1073741913:case 1073741914:case 1073741915:case 1073741916:case 1073741917:case 1073741918:case 1073741919:case 1073741920:case 1073741921:case 1073741922:case 1073741923:case 1073742044: return 3; case 1073742048:case 1073742049:case 1073742050:case 1073742051: return 1; case 1073742052:case 1073742053:case 1073742054:case 1073742055: return 2; default: return 0; } }; var openfl_ui_Mouse = function() { }; $hxClasses["openfl.ui.Mouse"] = openfl_ui_Mouse; openfl_ui_Mouse.__name__ = ["openfl","ui","Mouse"]; openfl_ui_Mouse.__properties__ = {set_cursor:"set_cursor",get_cursor:"get_cursor"}; openfl_ui_Mouse.hide = function() { lime_ui_Mouse.hide(); }; openfl_ui_Mouse.show = function() { lime_ui_Mouse.show(); }; openfl_ui_Mouse.get_cursor = function() { return openfl_ui_Mouse.__cursor; }; openfl_ui_Mouse.set_cursor = function(value) { switch(value) { case "arrow": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.ARROW); break; case "button": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.POINTER); break; case "crosshair": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.CROSSHAIR); break; case "custom": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.CUSTOM); break; case "hand": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.MOVE); break; case "ibeam": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.TEXT); break; case "resize_nesw": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.RESIZE_NESW); break; case "resize_ns": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.RESIZE_NS); break; case "resize_nwse": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.RESIZE_NWSE); break; case "resize_we": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.RESIZE_WE); break; case "wait": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.WAIT); break; case "waitarrow": lime_ui_Mouse.set_cursor(lime_ui_MouseCursor.WAIT_ARROW); break; default: } return openfl_ui_Mouse.__cursor = value; }; var openfl_ui__$MouseCursor_MouseCursor_$Impl_$ = {}; $hxClasses["openfl.ui._MouseCursor.MouseCursor_Impl_"] = openfl_ui__$MouseCursor_MouseCursor_$Impl_$; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__name__ = ["openfl","ui","_MouseCursor","MouseCursor_Impl_"]; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.fromLimeCursor = function(cursor) { switch(cursor[1]) { case 0: return "arrow"; case 1: return "crosshair"; case 2: return "auto"; case 3: return "hand"; case 4: return "button"; case 5: return "resize_nesw"; case 6: return "resize_nwse"; case 7: return "resize_nwse"; case 8: return "resize_we"; case 9: return "ibeam"; case 10: return "wait"; case 11: return "waitarrow"; case 12: return "custom"; } }; var openfl_utils_IAssetCache = function() { }; $hxClasses["openfl.utils.IAssetCache"] = openfl_utils_IAssetCache; openfl_utils_IAssetCache.__name__ = ["openfl","utils","IAssetCache"]; openfl_utils_IAssetCache.prototype = { get_enabled: null ,set_enabled: null ,clear: null ,getBitmapData: null ,getFont: null ,getSound: null ,hasBitmapData: null ,hasFont: null ,hasSound: null ,removeBitmapData: null ,removeFont: null ,removeSound: null ,setBitmapData: null ,setFont: null ,setSound: null ,__class__: openfl_utils_IAssetCache ,__properties__: {set_enabled:"set_enabled",get_enabled:"get_enabled"} }; var openfl_utils_AssetCache = function() { this.__enabled = true; this.bitmapData = new haxe_ds_StringMap(); this.font = new haxe_ds_StringMap(); this.sound = new haxe_ds_StringMap(); }; $hxClasses["openfl.utils.AssetCache"] = openfl_utils_AssetCache; openfl_utils_AssetCache.__name__ = ["openfl","utils","AssetCache"]; openfl_utils_AssetCache.__interfaces__ = [openfl_utils_IAssetCache]; openfl_utils_AssetCache.prototype = { bitmapData: null ,font: null ,sound: null ,__enabled: null ,clear: function(prefix) { if(prefix == null) { this.bitmapData = new haxe_ds_StringMap(); this.font = new haxe_ds_StringMap(); this.sound = new haxe_ds_StringMap(); } else { var keys = this.bitmapData.keys(); var key = keys; while(key.hasNext()) { var key1 = key.next(); if(StringTools.startsWith(key1,prefix)) { this.removeBitmapData(key1); } } var keys1 = this.font.keys(); var key2 = keys1; while(key2.hasNext()) { var key3 = key2.next(); if(StringTools.startsWith(key3,prefix)) { this.removeFont(key3); } } var keys2 = this.sound.keys(); var key4 = keys2; while(key4.hasNext()) { var key5 = key4.next(); if(StringTools.startsWith(key5,prefix)) { this.removeSound(key5); } } } } ,getBitmapData: function(id) { var _this = this.bitmapData; if(__map_reserved[id] != null) { return _this.getReserved(id); } else { return _this.h[id]; } } ,getFont: function(id) { var _this = this.font; if(__map_reserved[id] != null) { return _this.getReserved(id); } else { return _this.h[id]; } } ,getSound: function(id) { var _this = this.sound; if(__map_reserved[id] != null) { return _this.getReserved(id); } else { return _this.h[id]; } } ,hasBitmapData: function(id) { var _this = this.bitmapData; if(__map_reserved[id] != null) { return _this.existsReserved(id); } else { return _this.h.hasOwnProperty(id); } } ,hasFont: function(id) { var _this = this.font; if(__map_reserved[id] != null) { return _this.existsReserved(id); } else { return _this.h.hasOwnProperty(id); } } ,hasSound: function(id) { var _this = this.sound; if(__map_reserved[id] != null) { return _this.existsReserved(id); } else { return _this.h.hasOwnProperty(id); } } ,removeBitmapData: function(id) { lime_utils_Assets.cache.image.remove(id); return this.bitmapData.remove(id); } ,removeFont: function(id) { lime_utils_Assets.cache.font.remove(id); return this.font.remove(id); } ,removeSound: function(id) { lime_utils_Assets.cache.audio.remove(id); return this.sound.remove(id); } ,setBitmapData: function(id,bitmapData) { var _this = this.bitmapData; if(__map_reserved[id] != null) { _this.setReserved(id,bitmapData); } else { _this.h[id] = bitmapData; } } ,setFont: function(id,font) { var _this = this.font; if(__map_reserved[id] != null) { _this.setReserved(id,font); } else { _this.h[id] = font; } } ,setSound: function(id,sound) { var _this = this.sound; if(__map_reserved[id] != null) { _this.setReserved(id,sound); } else { _this.h[id] = sound; } } ,get_enabled: function() { return this.__enabled; } ,set_enabled: function(value) { return this.__enabled = value; } ,__class__: openfl_utils_AssetCache ,__properties__: {set_enabled:"set_enabled",get_enabled:"get_enabled"} }; var openfl_utils_Assets = function() { }; $hxClasses["openfl.utils.Assets"] = openfl_utils_Assets; openfl_utils_Assets.__name__ = ["openfl","utils","Assets"]; openfl_utils_Assets.addEventListener = function(type,listener,useCapture,priority,useWeakReference) { if(useWeakReference == null) { useWeakReference = false; } if(priority == null) { priority = 0; } if(useCapture == null) { useCapture = false; } if(!lime_utils_Assets.onChange.has(openfl_utils_Assets.LimeAssets_onChange)) { lime_utils_Assets.onChange.add(openfl_utils_Assets.LimeAssets_onChange); } openfl_utils_Assets.dispatcher.addEventListener(type,listener,useCapture,priority,useWeakReference); }; openfl_utils_Assets.dispatchEvent = function(event) { return openfl_utils_Assets.dispatcher.dispatchEvent(event); }; openfl_utils_Assets.exists = function(id,type) { return lime_utils_Assets.exists(id,type); }; openfl_utils_Assets.getBitmapData = function(id,useCache) { if(useCache == null) { useCache = true; } if(useCache && openfl_utils_Assets.cache.get_enabled() && openfl_utils_Assets.cache.hasBitmapData(id)) { var bitmapData = openfl_utils_Assets.cache.getBitmapData(id); if(openfl_utils_Assets.isValidBitmapData(bitmapData)) { return bitmapData; } } var image = lime_utils_Assets.getImage(id,false); if(image != null) { var bitmapData1 = openfl_display_BitmapData.fromImage(image); if(useCache && openfl_utils_Assets.cache.get_enabled()) { openfl_utils_Assets.cache.setBitmapData(id,bitmapData1); } return bitmapData1; } return null; }; openfl_utils_Assets.getBytes = function(id) { return openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(lime_utils_Assets.getBytes(id)); }; openfl_utils_Assets.getFont = function(id,useCache) { if(useCache == null) { useCache = true; } if(useCache && openfl_utils_Assets.cache.get_enabled() && openfl_utils_Assets.cache.hasFont(id)) { return openfl_utils_Assets.cache.getFont(id); } var limeFont = lime_utils_Assets.getFont(id,false); if(limeFont != null) { var font = openfl_text_Font.__fromLimeFont(limeFont); if(useCache && openfl_utils_Assets.cache.get_enabled()) { openfl_utils_Assets.cache.setFont(id,font); } return font; } return new openfl_text_Font(); }; openfl_utils_Assets.getLibrary = function(name) { return lime_utils_Assets.getLibrary(name); }; openfl_utils_Assets.getMovieClip = function(id) { var libraryName = id.substring(0,id.indexOf(":")); var symbolName = HxOverrides.substr(id,id.indexOf(":") + 1,null); var limeLibrary = openfl_utils_Assets.getLibrary(libraryName); if(limeLibrary != null) { if(js_Boot.__instanceof(limeLibrary,openfl_utils_AssetLibrary)) { var library = limeLibrary; if(library.exists(symbolName,"MOVIE_CLIP")) { if(library.isLocal(symbolName,"MOVIE_CLIP")) { return library.getMovieClip(symbolName); } else { lime_utils_Log.error("MovieClip asset \"" + id + "\" exists, but only asynchronously",{ fileName : "Assets.hx", lineNumber : 175, className : "openfl.utils.Assets", methodName : "getMovieClip"}); return null; } } } lime_utils_Log.error("There is no MovieClip asset with an ID of \"" + id + "\"",{ fileName : "Assets.hx", lineNumber : 184, className : "openfl.utils.Assets", methodName : "getMovieClip"}); } else { lime_utils_Log.error("There is no asset library named \"" + libraryName + "\"",{ fileName : "Assets.hx", lineNumber : 188, className : "openfl.utils.Assets", methodName : "getMovieClip"}); } return null; }; openfl_utils_Assets.getMusic = function(id,useCache) { if(useCache == null) { useCache = true; } return openfl_utils_Assets.getSound(id,useCache); }; openfl_utils_Assets.getPath = function(id) { return lime_utils_Assets.getPath(id); }; openfl_utils_Assets.getSound = function(id,useCache) { if(useCache == null) { useCache = true; } if(useCache && openfl_utils_Assets.cache.get_enabled() && openfl_utils_Assets.cache.hasSound(id)) { var sound = openfl_utils_Assets.cache.getSound(id); if(openfl_utils_Assets.isValidSound(sound)) { return sound; } } var buffer = lime_utils_Assets.getAudioBuffer(id,false); if(buffer != null) { var sound1 = openfl_media_Sound.fromAudioBuffer(buffer); if(useCache && openfl_utils_Assets.cache.get_enabled()) { openfl_utils_Assets.cache.setSound(id,sound1); } return sound1; } return null; }; openfl_utils_Assets.getText = function(id) { return lime_utils_Assets.getText(id); }; openfl_utils_Assets.hasEventListener = function(type) { return openfl_utils_Assets.dispatcher.hasEventListener(type); }; openfl_utils_Assets.hasLibrary = function(name) { return lime_utils_Assets.hasLibrary(name); }; openfl_utils_Assets.isLocal = function(id,type,useCache) { if(useCache == null) { useCache = true; } if(useCache && openfl_utils_Assets.cache.get_enabled()) { if(type == "IMAGE" || type == null) { if(openfl_utils_Assets.cache.hasBitmapData(id)) { return true; } } if(type == "FONT" || type == null) { if(openfl_utils_Assets.cache.hasFont(id)) { return true; } } if(type == "SOUND" || type == "MUSIC" || type == null) { if(openfl_utils_Assets.cache.hasSound(id)) { return true; } } } var libraryName = id.substring(0,id.indexOf(":")); var symbolName = HxOverrides.substr(id,id.indexOf(":") + 1,null); var library = openfl_utils_Assets.getLibrary(libraryName); if(library != null) { return library.isLocal(symbolName,type); } return false; }; openfl_utils_Assets.isValidBitmapData = function(bitmapData) { return bitmapData != null && bitmapData.image != null; }; openfl_utils_Assets.isValidSound = function(sound) { return true; }; openfl_utils_Assets.list = function(type) { return lime_utils_Assets.list(type); }; openfl_utils_Assets.loadBitmapData = function(id,useCache) { if(useCache == null) { useCache = true; } if(useCache == null) { useCache = true; } var promise = new lime_app_Promise(); if(useCache && openfl_utils_Assets.cache.get_enabled() && openfl_utils_Assets.cache.hasBitmapData(id)) { var bitmapData = openfl_utils_Assets.cache.getBitmapData(id); if(openfl_utils_Assets.isValidBitmapData(bitmapData)) { promise.complete(bitmapData); return promise.future; } } lime_utils_Assets.loadImage(id,false).onComplete(function(image) { if(image != null) { var bitmapData1 = openfl_display_BitmapData.fromImage(image); if(useCache && openfl_utils_Assets.cache.get_enabled()) { openfl_utils_Assets.cache.setBitmapData(id,bitmapData1); } promise.complete(bitmapData1); } else { promise.error("[Assets] Could not load Image \"" + id + "\""); } }).onError($bind(promise,promise.error)).onProgress($bind(promise,promise.progress)); return promise.future; }; openfl_utils_Assets.loadBytes = function(id) { var promise = new lime_app_Promise(); var future = lime_utils_Assets.loadBytes(id); future.onComplete(function(bytes) { promise.complete(openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(bytes)); }); future.onProgress(function(progress,total) { promise.progress(progress,total); }); future.onError(function(msg) { promise.error(msg); }); return promise.future; }; openfl_utils_Assets.loadFont = function(id,useCache) { if(useCache == null) { useCache = true; } if(useCache == null) { useCache = true; } var promise = new lime_app_Promise(); if(useCache && openfl_utils_Assets.cache.get_enabled() && openfl_utils_Assets.cache.hasFont(id)) { var tmp = openfl_utils_Assets.cache.getFont(id); promise.complete(tmp); return promise.future; } lime_utils_Assets.loadFont(id).onComplete(function(limeFont) { var font = openfl_text_Font.__fromLimeFont(limeFont); if(useCache && openfl_utils_Assets.cache.get_enabled()) { openfl_utils_Assets.cache.setFont(id,font); } promise.complete(font); }).onError($bind(promise,promise.error)).onProgress($bind(promise,promise.progress)); return promise.future; }; openfl_utils_Assets.loadLibrary = function(name) { var future = lime_utils_Assets.loadLibrary(name); return future; }; openfl_utils_Assets.loadMusic = function(id,useCache) { if(useCache == null) { useCache = true; } if(useCache == null) { useCache = true; } var future = new lime_app_Future(function() { return openfl_utils_Assets.getMusic(id,useCache); }); return future; }; openfl_utils_Assets.loadMovieClip = function(id) { var promise = new lime_app_Promise(); var libraryName = id.substring(0,id.indexOf(":")); var symbolName = HxOverrides.substr(id,id.indexOf(":") + 1,null); var limeLibrary = openfl_utils_Assets.getLibrary(libraryName); if(limeLibrary != null) { if(js_Boot.__instanceof(limeLibrary,openfl_utils_AssetLibrary)) { var library = limeLibrary; if(library.exists(symbolName,"MOVIE_CLIP")) { promise.completeWith(library.loadMovieClip(symbolName)); return promise.future; } } promise.error("[Assets] There is no MovieClip asset with an ID of \"" + id + "\""); } else { promise.error("[Assets] There is no asset library named \"" + libraryName + "\""); } return promise.future; }; openfl_utils_Assets.loadSound = function(id,useCache) { if(useCache == null) { useCache = true; } if(useCache == null) { useCache = true; } var promise = new lime_app_Promise(); lime_utils_Assets.loadAudioBuffer(id,useCache).onComplete(function(buffer) { if(buffer != null) { var sound = openfl_media_Sound.fromAudioBuffer(buffer); if(useCache && openfl_utils_Assets.cache.get_enabled()) { openfl_utils_Assets.cache.setSound(id,sound); } promise.complete(sound); } else { promise.error("[Assets] Could not load Sound \"" + id + "\""); } }).onError($bind(promise,promise.error)).onProgress($bind(promise,promise.progress)); return promise.future; }; openfl_utils_Assets.loadText = function(id) { var future = lime_utils_Assets.loadText(id); return future; }; openfl_utils_Assets.registerLibrary = function(name,library) { lime_utils_Assets.registerLibrary(name,library); }; openfl_utils_Assets.removeEventListener = function(type,listener,capture) { if(capture == null) { capture = false; } openfl_utils_Assets.dispatcher.removeEventListener(type,listener,capture); }; openfl_utils_Assets.resolveClass = function(name) { return Type.resolveClass(name); }; openfl_utils_Assets.resolveEnum = function(name) { var value = Type.resolveEnum(name); return value; }; openfl_utils_Assets.unloadLibrary = function(name) { lime_utils_Assets.unloadLibrary(name); }; openfl_utils_Assets.LimeAssets_onChange = function() { openfl_utils_Assets.dispatchEvent(new openfl_events_Event("change")); }; var openfl_utils__$ByteArray_ByteArray_$Impl_$ = {}; $hxClasses["openfl.utils._ByteArray.ByteArray_Impl_"] = openfl_utils__$ByteArray_ByteArray_$Impl_$; openfl_utils__$ByteArray_ByteArray_$Impl_$.__name__ = ["openfl","utils","_ByteArray","ByteArray_Impl_"]; openfl_utils__$ByteArray_ByteArray_$Impl_$.__properties__ = {set_length:"set_length",get_length:"get_length"}; openfl_utils__$ByteArray_ByteArray_$Impl_$._new = function(length) { if(length == null) { length = 0; } var this1 = new openfl_utils_ByteArrayData(length); return this1; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.get = function(this1,index) { return this1.b[index]; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.set = function(this1,index,value) { this1.__resize(index + 1); this1.b[index] = value & 255; return value; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.fromArrayBuffer = function(buffer) { if(buffer == null) { return null; } return openfl_utils_ByteArrayData.fromBytes(haxe_io_Bytes.ofData(buffer)); }; openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes = function(bytes) { if(bytes == null) { return null; } if(js_Boot.__instanceof(bytes,openfl_utils_ByteArrayData)) { return bytes; } else { return openfl_utils_ByteArrayData.fromBytes(bytes); } }; openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytesData = function(bytesData) { if(bytesData == null) { return null; } return openfl_utils_ByteArrayData.fromBytes(haxe_io_Bytes.ofData(bytesData)); }; openfl_utils__$ByteArray_ByteArray_$Impl_$.fromFile = function(path) { return openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(lime_utils__$Bytes_Bytes_$Impl_$.fromFile(path)); }; openfl_utils__$ByteArray_ByteArray_$Impl_$.fromLimeBytes = function(bytes) { return openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(bytes); }; openfl_utils__$ByteArray_ByteArray_$Impl_$.toArrayBuffer = function(byteArray) { return byteArray.b.bufferValue; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytePointer = function(byteArray) { lime_utils__$BytePointer_BytePointer_$Impl_$.set(openfl_utils__$ByteArray_ByteArray_$Impl_$.__bytePointer,byteArray,null,null,byteArray.position); return openfl_utils__$ByteArray_ByteArray_$Impl_$.__bytePointer; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes = function(byteArray) { return byteArray; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytesData = function(byteArray) { return byteArray.b.bufferValue; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.toLimeBytes = function(byteArray) { return openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.toBytes(byteArray))); }; openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length = function(this1) { return this1.length; }; openfl_utils__$ByteArray_ByteArray_$Impl_$.set_length = function(this1,value) { if(value > 0) { this1.__resize(value); if(value < this1.position) { this1.position = value; } } this1.length = value; return value; }; var openfl_utils_IDataOutput = function() { }; $hxClasses["openfl.utils.IDataOutput"] = openfl_utils_IDataOutput; openfl_utils_IDataOutput.__name__ = ["openfl","utils","IDataOutput"]; openfl_utils_IDataOutput.prototype = { get_endian: null ,set_endian: null ,objectEncoding: null ,writeBoolean: null ,writeByte: null ,writeBytes: null ,writeDouble: null ,writeFloat: null ,writeInt: null ,writeMultiByte: null ,writeShort: null ,writeUTF: null ,writeUTFBytes: null ,writeUnsignedInt: null ,__class__: openfl_utils_IDataOutput ,__properties__: {set_endian:"set_endian",get_endian:"get_endian"} }; var openfl_utils_IDataInput = function() { }; $hxClasses["openfl.utils.IDataInput"] = openfl_utils_IDataInput; openfl_utils_IDataInput.__name__ = ["openfl","utils","IDataInput"]; openfl_utils_IDataInput.prototype = { get_bytesAvailable: null ,get_endian: null ,set_endian: null ,objectEncoding: null ,readBoolean: null ,readByte: null ,readBytes: null ,readDouble: null ,readFloat: null ,readInt: null ,readMultiByte: null ,readShort: null ,readUnsignedByte: null ,readUnsignedInt: null ,readUnsignedShort: null ,readUTF: null ,readUTFBytes: null ,__class__: openfl_utils_IDataInput ,__properties__: {set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"} }; var openfl_utils_ByteArrayData = function(length) { if(length == null) { length = 0; } var bytes = new haxe_io_Bytes(new ArrayBuffer(length)); haxe_io_Bytes.call(this,bytes.b.buffer); this.__length = length; if(openfl_utils_ByteArrayData.__defaultEndian == null) { if(lime_system_System.get_endianness() == lime_system_Endian.LITTLE_ENDIAN) { openfl_utils_ByteArrayData.__defaultEndian = 1; } else { openfl_utils_ByteArrayData.__defaultEndian = 0; } } this.__endian = openfl_utils_ByteArrayData.__defaultEndian; this.position = 0; }; $hxClasses["openfl.utils.ByteArrayData"] = openfl_utils_ByteArrayData; openfl_utils_ByteArrayData.__name__ = ["openfl","utils","ByteArrayData"]; openfl_utils_ByteArrayData.__interfaces__ = [openfl_utils_IDataOutput,openfl_utils_IDataInput]; openfl_utils_ByteArrayData.fromBytes = function(bytes) { var result = new openfl_utils_ByteArrayData(); result.__fromBytes(bytes); return result; }; openfl_utils_ByteArrayData.__super__ = haxe_io_Bytes; openfl_utils_ByteArrayData.prototype = $extend(haxe_io_Bytes.prototype,{ objectEncoding: null ,position: null ,__endian: null ,__length: null ,clear: function() { this.length = 0; this.position = 0; } ,compress: function(algorithm) { if(algorithm == null) { algorithm = 2; } if(this.__length > this.length) { var cacheLength = this.length; this.length = this.__length; var data = new haxe_io_Bytes(new ArrayBuffer(cacheLength)); data.blit(0,this,0,cacheLength); this.b = data.b; this.__length = data.length; this.data = data.data; this.length = cacheLength; } var bytes; switch(algorithm) { case 0: bytes = lime_utils_compress_Deflate.compress(this); break; case 1: bytes = lime_utils_compress_LZMA.compress(this); break; default: bytes = lime_utils_compress_Zlib.compress(this); } if(bytes != null) { this.b = bytes.b; this.__length = bytes.length; this.data = bytes.data; this.length = this.__length; this.position = this.length; } } ,deflate: function() { this.compress(0); } ,inflate: function() { this.uncompress(0); } ,readBoolean: function() { if(this.position < this.length) { return this.b[this.position++] != 0; } else { throw new js__$Boot_HaxeError(new openfl_errors_EOFError()); } } ,readByte: function() { var value = this.readUnsignedByte(); if((value & 128) != 0) { return value - 256; } else { return value; } } ,readBytes: function(bytes,offset,length) { if(length == null) { length = 0; } if(offset == null) { offset = 0; } if(length == 0) { length = this.length - this.position; } if(this.position + length > this.length) { throw new js__$Boot_HaxeError(new openfl_errors_EOFError()); } if(bytes.length < offset + length) { bytes.__resize(offset + length); } bytes.blit(offset,this,this.position,length); this.position += length; } ,readDouble: function() { var ch1 = this.readInt(); var ch2 = this.readInt(); if(this.__endian == 1) { return haxe_io_FPHelper.i64ToDouble(ch1,ch2); } else { return haxe_io_FPHelper.i64ToDouble(ch2,ch1); } } ,readFloat: function() { return haxe_io_FPHelper.i32ToFloat(this.readInt()); } ,readInt: function() { var ch1 = this.readUnsignedByte(); var ch2 = this.readUnsignedByte(); var ch3 = this.readUnsignedByte(); var ch4 = this.readUnsignedByte(); if(this.__endian == 1) { return ch4 << 24 | ch3 << 16 | ch2 << 8 | ch1; } else { return ch1 << 24 | ch2 << 16 | ch3 << 8 | ch4; } } ,readMultiByte: function(length,charSet) { return this.readUTFBytes(length); } ,readShort: function() { var ch1 = this.readUnsignedByte(); var ch2 = this.readUnsignedByte(); var value; if(this.__endian == 1) { value = ch2 << 8 | ch1; } else { value = ch1 << 8 | ch2; } if((value & 32768) != 0) { return value - 65536; } else { return value; } } ,readUnsignedByte: function() { if(this.position < this.length) { return this.b[this.position++]; } else { throw new js__$Boot_HaxeError(new openfl_errors_EOFError()); } } ,readUnsignedInt: function() { var ch1 = this.readUnsignedByte(); var ch2 = this.readUnsignedByte(); var ch3 = this.readUnsignedByte(); var ch4 = this.readUnsignedByte(); if(this.__endian == 1) { return ch4 << 24 | ch3 << 16 | ch2 << 8 | ch1; } else { return ch1 << 24 | ch2 << 16 | ch3 << 8 | ch4; } } ,readUnsignedShort: function() { var ch1 = this.readUnsignedByte(); var ch2 = this.readUnsignedByte(); if(this.__endian == 1) { return (ch2 << 8) + ch1; } else { return ch1 << 8 | ch2; } } ,readUTF: function() { var bytesCount = this.readUnsignedShort(); return this.readUTFBytes(bytesCount); } ,readUTFBytes: function(length) { if(this.position + length > this.length) { throw new js__$Boot_HaxeError(new openfl_errors_EOFError()); } this.position += length; return this.getString(this.position - length,length); } ,uncompress: function(algorithm) { if(algorithm == null) { algorithm = 2; } if(this.__length > this.length) { var cacheLength = this.length; this.length = this.__length; var data = new haxe_io_Bytes(new ArrayBuffer(cacheLength)); data.blit(0,this,0,cacheLength); this.b = data.b; this.__length = data.length; this.data = data.data; this.length = cacheLength; } var bytes; switch(algorithm) { case 0: bytes = lime_utils_compress_Deflate.decompress(this); break; case 1: bytes = lime_utils_compress_LZMA.decompress(this); break; default: bytes = lime_utils_compress_Zlib.decompress(this); } if(bytes != null) { this.b = bytes.b; this.__length = bytes.length; this.data = bytes.data; this.length = this.__length; } this.position = 0; } ,writeBoolean: function(value) { this.writeByte(value ? 1 : 0); } ,writeByte: function(value) { this.__resize(this.position + 1); this.b[this.position++] = value & 255 & 255; } ,writeBytes: function(bytes,offset,length) { if(length == null) { length = 0; } if(offset == null) { offset = 0; } if(openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(bytes) == 0) { return; } if(length == 0) { length = openfl_utils__$ByteArray_ByteArray_$Impl_$.get_length(bytes) - offset; } this.__resize(this.position + length); this.blit(this.position,bytes,offset,length); this.position = this.position + length; } ,writeDouble: function(value) { var int64 = haxe_io_FPHelper.doubleToI64(value); if(this.__endian == 1) { this.writeInt(int64.low); this.writeInt(int64.high); } else { this.writeInt(int64.high); this.writeInt(int64.low); } } ,writeFloat: function(value) { if(this.__endian == 1) { this.__resize(this.position + 4); this.setFloat(this.position,value); this.position += 4; } else { var $int = haxe_io_FPHelper.floatToI32(value); this.writeInt($int); } } ,writeInt: function(value) { this.__resize(this.position + 4); if(this.__endian == 1) { this.b[this.position++] = value & 255 & 255; this.b[this.position++] = value >> 8 & 255 & 255; this.b[this.position++] = value >> 16 & 255 & 255; this.b[this.position++] = value >> 24 & 255 & 255; } else { this.b[this.position++] = value >> 24 & 255 & 255; this.b[this.position++] = value >> 16 & 255 & 255; this.b[this.position++] = value >> 8 & 255 & 255; this.b[this.position++] = value & 255 & 255; } } ,writeMultiByte: function(value,charSet) { this.writeUTFBytes(value); } ,writeShort: function(value) { this.__resize(this.position + 2); if(this.__endian == 1) { this.b[this.position++] = value & 255; this.b[this.position++] = value >> 8 & 255; } else { this.b[this.position++] = value >> 8 & 255; this.b[this.position++] = value & 255; } } ,writeUnsignedInt: function(value) { this.writeInt(value); } ,writeUTF: function(value) { var bytes = haxe_io_Bytes.ofString(value); this.writeShort(bytes.length); this.writeBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(bytes)); } ,writeUTFBytes: function(value) { var bytes = haxe_io_Bytes.ofString(value); this.writeBytes(openfl_utils__$ByteArray_ByteArray_$Impl_$.fromBytes(haxe_io_Bytes.ofString(value))); } ,__fromBytes: function(bytes) { this.b = bytes.b; this.__length = bytes.length; this.data = bytes.data; this.length = bytes.length; } ,__resize: function(size) { if(size > this.__length) { var bytes = new haxe_io_Bytes(new ArrayBuffer((size + 1) * 3 >> 1)); var cacheLength = this.length; this.length = this.__length; bytes.blit(0,this,0,this.__length); this.length = cacheLength; this.b = bytes.b; this.__length = bytes.length; this.data = bytes.data; } if(this.length < size) { this.length = size; } } ,__setData: function(bytes) { this.b = bytes.b; this.__length = bytes.length; this.data = bytes.data; } ,get_bytesAvailable: function() { return this.length - this.position; } ,get_endian: function() { return this.__endian; } ,set_endian: function(value) { return this.__endian = value; } ,__class__: openfl_utils_ByteArrayData ,__properties__: {set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"} }); var openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$ = {}; $hxClasses["openfl.utils._CompressionAlgorithm.CompressionAlgorithm_Impl_"] = openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$; openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$.__name__ = ["openfl","utils","_CompressionAlgorithm","CompressionAlgorithm_Impl_"]; openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$.fromString = function(value) { switch(value) { case "deflate": return 0; case "lzma": return 1; case "zlib": return 2; default: return null; } }; openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$.toString = function(value) { switch(value) { case 0: return "deflate"; case 1: return "lzma"; case 2: return "zlib"; default: return null; } }; var openfl_utils__$Endian_Endian_$Impl_$ = {}; $hxClasses["openfl.utils._Endian.Endian_Impl_"] = openfl_utils__$Endian_Endian_$Impl_$; openfl_utils__$Endian_Endian_$Impl_$.__name__ = ["openfl","utils","_Endian","Endian_Impl_"]; openfl_utils__$Endian_Endian_$Impl_$.fromLimeEndian = function(value) { switch(value[1]) { case 0: return 1; case 1: return 0; } }; openfl_utils__$Endian_Endian_$Impl_$.fromString = function(value) { switch(value) { case "bigEndian": return 0; case "littleEndian": return 1; default: return null; } }; openfl_utils__$Endian_Endian_$Impl_$.toLimeEndian = function(value) { switch(value) { case 0: return lime_system_Endian.BIG_ENDIAN; case 1: return lime_system_Endian.LITTLE_ENDIAN; default: return null; } }; openfl_utils__$Endian_Endian_$Impl_$.toString = function(value) { switch(value) { case 0: return "bigEndian"; case 1: return "littleEndian"; default: return null; } }; var openfl_utils__$Object_Object_$Impl_$ = {}; $hxClasses["openfl.utils._Object.Object_Impl_"] = openfl_utils__$Object_Object_$Impl_$; openfl_utils__$Object_Object_$Impl_$.__name__ = ["openfl","utils","_Object","Object_Impl_"]; openfl_utils__$Object_Object_$Impl_$._new = function() { var this1 = { }; return this1; }; openfl_utils__$Object_Object_$Impl_$.hasOwnProperty = function(this1,name) { if(this1 != null) { return Object.prototype.hasOwnProperty.call(this1,name); } else { return false; } }; openfl_utils__$Object_Object_$Impl_$.isPrototypeOf = function(this1,theClass) { var o = this1; var c = o == null ? null : js_Boot.getClass(o); while(c != null) { if(c == theClass) { return true; } c = Type.getSuperClass(c); } return false; }; openfl_utils__$Object_Object_$Impl_$.iterator = function(this1) { var fields = Reflect.fields(this1); if(fields == null) { fields = []; } return HxOverrides.iter(fields); }; openfl_utils__$Object_Object_$Impl_$.propertyIsEnumerable = function(this1,name) { if(this1 != null && Object.prototype.hasOwnProperty.call(this1,name)) { return js_Boot.__instanceof(Reflect.field(this1,name),haxe_lang_Iterable); } else { return false; } }; openfl_utils__$Object_Object_$Impl_$.toLocaleString = function(this1) { return Std.string(this1); }; openfl_utils__$Object_Object_$Impl_$.toString = function(this1) { return Std.string(this1); }; openfl_utils__$Object_Object_$Impl_$.valueOf = function(this1) { return this1; }; openfl_utils__$Object_Object_$Impl_$.__get = function(this1,key) { return Reflect.field(this1,key); }; openfl_utils__$Object_Object_$Impl_$.__set = function(this1,key,value) { this1[key] = value; return value; }; var haxe_lang_Iterator = function() { }; $hxClasses["haxe.lang.Iterator"] = haxe_lang_Iterator; haxe_lang_Iterator.__name__ = ["haxe","lang","Iterator"]; haxe_lang_Iterator.prototype = { hasNext: null ,next: null ,__class__: haxe_lang_Iterator }; var haxe_lang_Iterable = function() { }; $hxClasses["haxe.lang.Iterable"] = haxe_lang_Iterable; haxe_lang_Iterable.__name__ = ["haxe","lang","Iterable"]; haxe_lang_Iterable.prototype = { iterator: null ,__class__: haxe_lang_Iterable }; var openfl_utils_TouchData = function() { this.rollOutStack = []; }; $hxClasses["openfl.utils.TouchData"] = openfl_utils_TouchData; openfl_utils_TouchData.__name__ = ["openfl","utils","TouchData"]; openfl_utils_TouchData.prototype = { touch: null ,touchDownTarget: null ,touchOverTarget: null ,rollOutStack: null ,reset: function() { this.touch = null; this.touchDownTarget = null; this.touchOverTarget = null; this.rollOutStack.splice(0,this.rollOutStack.length); } ,__class__: openfl_utils_TouchData }; var spritesheet_data_SpritesheetFrame = function(x,y,width,height,offsetX,offsetY) { if(offsetY == null) { offsetY = 0; } if(offsetX == null) { offsetX = 0; } if(height == null) { height = 0; } if(width == null) { width = 0; } if(y == null) { y = 0; } if(x == null) { x = 0; } this.x = x; this.y = y; this.width = width; this.height = height; this.offsetX = offsetX; this.offsetY = offsetY; }; $hxClasses["spritesheet.data.SpritesheetFrame"] = spritesheet_data_SpritesheetFrame; spritesheet_data_SpritesheetFrame.__name__ = ["spritesheet","data","SpritesheetFrame"]; spritesheet_data_SpritesheetFrame.prototype = { bitmapData: null ,height: null ,offsetX: null ,offsetY: null ,width: null ,x: null ,y: null ,__class__: spritesheet_data_SpritesheetFrame }; var src_game_states_title_TitleMenuButtonIds = $hxClasses["src.game.states.title.TitleMenuButtonIds"] = { __ename__ : ["src","game","states","title","TitleMenuButtonIds"], __constructs__ : ["PLAY","ABOUT"] }; src_game_states_title_TitleMenuButtonIds.PLAY = ["PLAY",0]; src_game_states_title_TitleMenuButtonIds.PLAY.toString = $estr; src_game_states_title_TitleMenuButtonIds.PLAY.__enum__ = src_game_states_title_TitleMenuButtonIds; src_game_states_title_TitleMenuButtonIds.ABOUT = ["ABOUT",1]; src_game_states_title_TitleMenuButtonIds.ABOUT.toString = $estr; src_game_states_title_TitleMenuButtonIds.ABOUT.__enum__ = src_game_states_title_TitleMenuButtonIds; src_game_states_title_TitleMenuButtonIds.__empty_constructs__ = [src_game_states_title_TitleMenuButtonIds.PLAY,src_game_states_title_TitleMenuButtonIds.ABOUT]; var src_game_states_title_TitleMenu = function() { game_shared_ui_GameMenu.call(this,"TitleMenu"); }; $hxClasses["src.game.states.title.TitleMenu"] = src_game_states_title_TitleMenu; src_game_states_title_TitleMenu.__name__ = ["src","game","states","title","TitleMenu"]; src_game_states_title_TitleMenu.__super__ = game_shared_ui_GameMenu; src_game_states_title_TitleMenu.prototype = $extend(game_shared_ui_GameMenu.prototype,{ onButtonHit: function(caller) { game_shared_ui_GameMenu.prototype.onButtonHit.call(this,caller); var buttonId = Type.createEnumIndex(src_game_states_title_TitleMenuButtonIds,caller.id); switch(buttonId[1]) { case 0: this.emitCompletionEvent(); break; case 1: window.open("https://sites.google.com/1stplayable.com/cards-against-calamity"); break; } } ,__class__: src_game_states_title_TitleMenu }); var src_game_states_title_TitleState = function() { game_states_AcadiaGameState.call(this,game_defs_GameState.TITLE); }; $hxClasses["src.game.states.title.TitleState"] = src_game_states_title_TitleState; src_game_states_title_TitleState.__name__ = ["src","game","states","title","TitleState"]; src_game_states_title_TitleState.__super__ = game_states_AcadiaGameState; src_game_states_title_TitleState.prototype = $extend(game_states_AcadiaGameState.prototype,{ init: function() { game_states_AcadiaGameState.prototype.init.call(this); var this1 = this.m_menus; var v = new src_game_states_title_TitleMenu(); var _this = this1; if(__map_reserved["TitleMenu"] != null) { _this.setReserved("TitleMenu",v); } else { _this.h["TitleMenu"] = v; } } ,enter: function(p) { game_states_AcadiaGameState.prototype.enter.call(this,p); com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.sendScreenview("Title"); var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.attach(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["TitleMenu"] != null ? _this.getReserved("TitleMenu") : _this.h["TitleMenu"]); } ,exit: function() { game_states_AcadiaGameState.prototype.exit.call(this); var _this = this.m_menus; com_firstplayable_hxlib_display_GameDisplay.remove(com_firstplayable_hxlib_display_LayerName.PRIMARY,__map_reserved["TitleMenu"] != null ? _this.getReserved("TitleMenu") : _this.h["TitleMenu"]); } ,addListeners: function() { Global.event.addEventListener("MenuComplete",$bind(this,this.onMenuComplete)); } ,removeListeners: function() { Global.event.removeEventListener("MenuComplete",$bind(this,this.onMenuComplete)); } ,onMenuComplete: function(e) { com_firstplayable_hxlib_state_StateManager.setState(game_defs_GameState.REGION_SELECT); } ,__class__: src_game_states_title_TitleState }); function $iterator(o) { if( o instanceof Array ) return function() { return HxOverrides.iter(o); }; return typeof(o.iterator) == 'function' ? $bind(o,o.iterator) : o.iterator; } var $_, $fid = 0; function $bind(o,m) { if( m == null ) return null; if( m.__id__ == null ) m.__id__ = $fid++; var f; if( o.hx__closures__ == null ) o.hx__closures__ = {}; else f = o.hx__closures__[m.__id__]; if( f == null ) { f = function(){ return f.method.apply(f.scope, arguments); }; f.scope = o; f.method = m; o.hx__closures__[m.__id__] = f; } return f; } var init = lime__$backend_html5_HTML5Application; var init = lime_app_Application; $hxClasses["Math"] = Math; String.prototype.__class__ = $hxClasses["String"] = String; String.__name__ = ["String"]; $hxClasses["Array"] = Array; Array.__name__ = ["Array"]; Date.prototype.__class__ = $hxClasses["Date"] = Date; Date.__name__ = ["Date"]; var Int = $hxClasses["Int"] = { __name__ : ["Int"]}; var Dynamic = $hxClasses["Dynamic"] = { __name__ : ["Dynamic"]}; var Float = $hxClasses["Float"] = Number; Float.__name__ = ["Float"]; var Bool = $hxClasses["Bool"] = Boolean; Bool.__ename__ = ["Bool"]; var Class = $hxClasses["Class"] = { __name__ : ["Class"]}; var Enum = { }; var __map_reserved = {}; haxe_Resource.content = [{ name : "version", data : "UmV2aXNpb246IDMzNg0KQnVpbGQ6IDEwNDUNCk1hY2hpbmU6IFNDQVJMRVRXSVRDSA0K"}]; var ArrayBuffer = $global.ArrayBuffer || js_html_compat_ArrayBuffer; if(ArrayBuffer.prototype.slice == null) { ArrayBuffer.prototype.slice = js_html_compat_ArrayBuffer.sliceImpl; } var DataView = $global.DataView || js_html_compat_DataView; var Float32Array = $global.Float32Array || js_html_compat_Float32Array._new; var Float64Array = $global.Float64Array || ($global.Float32Array ? "notsupported" : null) || js_html_compat_Float64Array._new; var Uint8Array = $global.Uint8Array || js_html_compat_Uint8Array._new; var this1 = new Uint32Array(256); lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16 = this1; var _g = 0; while(_g < 256) { var i = _g++; lime_math_color__$RGBA_RGBA_$Impl_$.__alpha16[i] = Math.ceil(i * 257.00392156862745); } var this2 = new Uint8Array(510); lime_math_color__$RGBA_RGBA_$Impl_$.__clamp = this2; var _g1 = 0; while(_g1 < 255) { var i1 = _g1++; lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[i1] = i1; } var _g11 = 255; var _g2 = 511; while(_g11 < _g2) { var i2 = _g11++; lime_math_color__$RGBA_RGBA_$Impl_$.__clamp[i2] = 255; } lime_system_CFFI.available = false; lime_system_CFFI.enabled = false; lime_utils_Log.level = 3; if(typeof console == "undefined") { console = {} } if(console.log == null) { console.log = function() { }; } lime_utils_Log.throwErrors = true; openfl_display_DisplayObject.__broadcastEvents = new haxe_ds_StringMap(); openfl_display_DisplayObject.__instanceCount = 0; com_firstplayable_hxlib_app_Application.buildInfo = "BUILD INFO:\n-not available"; Global.event = new openfl_events_EventDispatcher(); Global.isMuted = false; Global.bgmVolume = 0.25; openfl_text_Font.__registeredFonts = []; Xml.Element = 0; Xml.PCData = 1; Xml.CData = 2; Xml.Comment = 3; Xml.DocType = 4; Xml.ProcessingInstruction = 5; Xml.Document = 6; assets_Gamestrings.TOKEN_PREFIX = "TOKEN__"; assets_JsonAssets._2d_Background_BG_DEFAULT = { "animations" : { "2d/bg/PrepBG" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 1024, "name" : "bounds", "type" : "box", "width" : 1820, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 910, "y" : 512}]}}}}, "framerate" : 20, "frames" : [[0,0,1820,1024,0,0,0]], "images" : ["Background_BG_DEFAULT.png"]}; assets_JsonAssets._2d_CoverSprite_DEFAULT_LARGE = { "animations" : { "2d/ui/coversprite/BGMask" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 1024, "name" : "bounds", "type" : "box", "width" : 1820, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 910, "y" : 512}]}}}}, "framerate" : 20, "frames" : [[0,0,1820,1024,0,0,0]], "images" : ["CoverSprite_DEFAULT_LARGE.png"]}; assets_JsonAssets._2d_Event_BG_DEFAULT = { "animations" : { "2d/events/Earthquake" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_BreakInSupplyChain" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_Brownouts" : { "frames" : [2], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_FishDisease" : { "frames" : [3], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_FishFleeNorthward" : { "frames" : [4], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_FishingLicensesLimited" : { "frames" : [5], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_GlobalWarming" : { "frames" : [6], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_HeavyWinter" : { "frames" : [7], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_HipsterHangout" : { "frames" : [8], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_HollywoodMovie" : { "frames" : [9], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_Hypoxia" : { "frames" : [10], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_MovieHurricane" : { "frames" : [11], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_NationalEconomicRecession" : { "frames" : [12], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_PirateFishers" : { "frames" : [13], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_RealisticHurricane" : { "frames" : [14], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_SeaRush" : { "frames" : [15], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Event_Superfisher9000" : { "frames" : [16], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/FishEntanglement" : { "frames" : [17], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/MarineProtectedArea" : { "frames" : [18], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/OffshoreAquaculture" : { "frames" : [19], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/OilSpill" : { "frames" : [20], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_AdditionalFireTruck" : { "frames" : [21], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_AdditionalIndustry" : { "frames" : [22], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_AdditionalPoliceOfficer" : { "frames" : [23], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_Breakwater" : { "frames" : [24], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_CoastalCondominiums" : { "frames" : [25], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_CoastalFestival" : { "frames" : [26], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_CreateHatchery" : { "frames" : [27], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_Curfew" : { "frames" : [28], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_EconomicDevelopment" : { "frames" : [29], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_ExpandLocalBusiness" : { "frames" : [62], "params" : { "bounds" : { "-1" : [{ "height" : 312, "name" : "bounds", "type" : "box", "width" : 357, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 178, "y" : 156}]}}}, "2d/events/Prep_ExpandProcessingPlant" : { "frames" : [30], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_FishDifferentSpecies" : { "frames" : [63], "params" : { "bounds" : { "-1" : [{ "height" : 312, "name" : "bounds", "type" : "box", "width" : 357, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 178, "y" : 156}]}}}, "2d/events/Prep_FishingSkillsTraining" : { "frames" : [31], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_HarborHotel" : { "frames" : [32], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_HarborMedCenter" : { "frames" : [33], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_HarborRenovation" : { "frames" : [34], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_LiquorRestriction" : { "frames" : [35], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_LivingShoreline" : { "frames" : [36], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_LongerFishingHours" : { "frames" : [37], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_MarineProtectedArea" : { "frames" : [38], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_NewBars" : { "frames" : [39], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_NewJobProgram" : { "frames" : [40], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_NewMall" : { "frames" : [41], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_OffShoreWindfarm" : { "frames" : [42], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_PreparednessWorkshop" : { "frames" : [43], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_PromoteLocalSeafood" : { "frames" : [44], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_Regatta" : { "frames" : [45], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_RenovateSchool" : { "frames" : [46], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_RepairAgingPowerGrid" : { "frames" : [47], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_RepairRoads" : { "frames" : [48], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_RestrictRecreationalFishing" : { "frames" : [49], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_SeaWall" : { "frames" : [50], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_TighterPollutionControl" : { "frames" : [51], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_TourismZoningRestrictions" : { "frames" : [52], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_UpgradeSewerSystem" : { "frames" : [53], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_UpscaleShops" : { "frames" : [54], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/Prep_VaccinationProgram" : { "frames" : [55], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/SH_EmergencyWorkers" : { "frames" : [56], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/SH_IndustrialFishing" : { "frames" : [57], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/SH_RecreationalFishing" : { "frames" : [58], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/SH_SmallBusinessOwners" : { "frames" : [64], "params" : { "bounds" : { "-1" : [{ "height" : 312, "name" : "bounds", "type" : "box", "width" : 357, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 178, "y" : 156}]}}}, "2d/events/SeaTurtle" : { "frames" : [59], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/SealHaul" : { "frames" : [60], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/events/WaterCrisis" : { "frames" : [61], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}}, "framerate" : 20, "frames" : [[0,0,360,314,0,0,0],[360,0,360,314,0,0,0],[720,0,360,314,0,0,0],[1080,0,360,314,0,0,0],[1440,0,360,314,0,0,0],[0,314,360,314,0,0,0],[360,314,360,314,0,0,0],[720,314,360,314,0,0,0],[1080,314,360,314,0,0,0],[1440,314,360,314,0,0,0],[0,628,360,314,0,0,0],[360,628,360,314,0,0,0],[720,628,360,314,0,0,0],[1080,628,360,314,0,0,0],[1440,628,360,314,0,0,0],[0,942,360,314,0,0,0],[360,942,360,314,0,0,0],[720,942,360,314,0,0,0],[1080,942,360,314,0,0,0],[1440,942,360,314,0,0,0],[0,1256,360,314,0,0,0],[360,1256,360,314,0,0,0],[720,1256,360,314,0,0,0],[1080,1256,360,314,0,0,0],[1440,1256,360,314,0,0,0],[0,1570,360,314,0,0,0],[360,1570,360,314,0,0,0],[720,1570,360,314,0,0,0],[1080,1570,360,314,0,0,0],[1440,1570,360,314,0,0,0],[0,1884,360,314,0,0,0],[360,1884,360,314,0,0,0],[720,1884,360,314,0,0,0],[1080,1884,360,314,0,0,0],[1440,1884,360,314,0,0,0],[0,2198,360,314,0,0,0],[0,2512,360,314,0,0,0],[0,2826,360,314,0,0,0],[0,3140,360,314,0,0,0],[0,3454,360,314,0,0,0],[0,3768,360,314,0,0,0],[360,2198,360,314,0,0,0],[720,2198,360,314,0,0,0],[1080,2198,360,314,0,0,0],[1440,2198,360,314,0,0,0],[360,2512,360,314,0,0,0],[360,2826,360,314,0,0,0],[360,3140,360,314,0,0,0],[360,3454,360,314,0,0,0],[360,3768,360,314,0,0,0],[720,2512,360,314,0,0,0],[1080,2512,360,314,0,0,0],[1440,2512,360,314,0,0,0],[720,2826,360,314,0,0,0],[1080,2826,360,314,0,0,0],[1440,2826,360,314,0,0,0],[720,3140,360,314,0,0,0],[720,3454,360,314,0,0,0],[720,3768,360,314,0,0,0],[1080,3140,360,314,0,0,0],[1440,3140,360,314,0,0,0],[1080,3454,360,314,0,0,0],[1080,3768,357,312,0,0,0],[1437,3768,357,312,0,0,0],[1440,3454,357,312,0,0,0]], "images" : ["Event_BG_DEFAULT.png"]}; assets_JsonAssets._2d_IntroMenu_DEFAULT = { "animations" : { "2d/ui/intro/CommunityRes" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 140, "name" : "bounds", "type" : "box", "width" : 971, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 485, "y" : 139}]}}}, "2d/ui/intro/CommunityResImg" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 448, "name" : "bounds", "type" : "box", "width" : 861, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 430, "y" : 447}]}}}}, "framerate" : 20, "frames" : [[0,0,971,140,0,0,0],[0,142,861,448,0,0,0]], "images" : ["IntroMenu_DEFAULT.png"]}; assets_JsonAssets._2d_LevelSelectMenu_DEFAULT_LARGE = { "animations" : { "2d/ui/levelselect/LevelSelect" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 122, "name" : "bounds", "type" : "box", "width" : 524, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 262, "y" : 121}]}}}, "2d/ui/levelselect/Stakeholders" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 381, "name" : "bounds", "type" : "box", "width" : 1820, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 910, "y" : 380}]}}}}, "framerate" : 20, "frames" : [[0,0,1820,381,0,0,0],[0,383,524,122,0,0,0]], "images" : ["LevelSelectMenu_DEFAULT_LARGE.png"]}; assets_JsonAssets._2d_ModeSelectMenu_DEFAULT_LARGE = { "animations" : { "2d/ui/regionselect/Map" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 512, "name" : "bounds", "type" : "box", "width" : 873, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 436, "y" : 256}]}}}, "2d/ui/regionselect/MapAlaska" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 256, "name" : "bounds", "type" : "box", "width" : 512, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 256, "y" : 255}]}}}, "2d/ui/regionselect/MapCaribbean" : { "frames" : [4], "params" : { "bounds" : { "-1" : [{ "height" : 96, "name" : "bounds", "type" : "box", "width" : 256, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 128, "y" : 95}]}}}, "2d/ui/regionselect/MapWesternPacific" : { "frames" : [2], "params" : { "bounds" : { "-1" : [{ "height" : 256, "name" : "bounds", "type" : "box", "width" : 512, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 256, "y" : 255}]}}}, "2d/ui/regionselect/ModeSelectHeader" : { "frames" : [3], "params" : { "bounds" : { "-1" : [{ "height" : 125, "name" : "bounds", "type" : "box", "width" : 603, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 301, "y" : 124}]}}}}, "framerate" : 20, "frames" : [[0,0,873,512,0,0,0],[875,0,512,256,0,0,0],[1389,0,512,256,0,0,0],[875,258,603,125,0,0,0],[1480,258,256,96,0,0,0]], "images" : ["ModeSelectMenu_DEFAULT_LARGE.png"]}; assets_JsonAssets._2d_Pacific_BG_DEFAULT = { "animations" : { "2d/pacific/Earthquake" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/pacific/FishEntanglement" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/pacific/MarineProtectedArea" : { "frames" : [2], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/pacific/OffshoreAquaculture" : { "frames" : [3], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/pacific/OilSpill" : { "frames" : [4], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/pacific/SeaTurtle" : { "frames" : [5], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/pacific/SealHaul" : { "frames" : [6], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/pacific/WaterCrisis" : { "frames" : [7], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}}, "framerate" : 20, "frames" : [[0,0,360,314,0,0,0],[360,0,360,314,0,0,0],[720,0,360,314,0,0,0],[1080,0,360,314,0,0,0],[1440,0,360,314,0,0,0],[1800,0,360,314,0,0,0],[2160,0,360,314,0,0,0],[2520,0,360,314,0,0,0]], "images" : ["Pacific_BG_DEFAULT.png"]}; assets_JsonAssets._2d_Preparation_BG_DEFAULT = { "animations" : { "2d/prep/Earthquake" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_BreakInSupplyChain" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_Brownouts" : { "frames" : [2], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_FishDisease" : { "frames" : [3], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_FishFleeNorthward" : { "frames" : [4], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_FishingLicensesLimited" : { "frames" : [5], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_GlobalWarming" : { "frames" : [6], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_HeavyWinter" : { "frames" : [7], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_HipsterHangout" : { "frames" : [8], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_HollywoodMovie" : { "frames" : [9], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_Hypoxia" : { "frames" : [10], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_MovieHurricane" : { "frames" : [11], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_NationalEconomicRecession" : { "frames" : [12], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_PirateFishers" : { "frames" : [13], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_RealisticHurricane" : { "frames" : [14], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_SeaRush" : { "frames" : [15], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Event_Superfisher9000" : { "frames" : [16], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/FishEntanglement" : { "frames" : [17], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/MarineProtectedArea" : { "frames" : [18], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/OffshoreAquaculture" : { "frames" : [19], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/OilSpill" : { "frames" : [20], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_AdditionalFireTruck" : { "frames" : [21], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_AdditionalIndustry" : { "frames" : [22], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_AdditionalPoliceOfficer" : { "frames" : [23], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_Breakwater" : { "frames" : [24], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_CoastalCondominiums" : { "frames" : [25], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_CoastalFestival" : { "frames" : [26], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_CreateHatchery" : { "frames" : [27], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_Curfew" : { "frames" : [28], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_EconomicDevelopment" : { "frames" : [29], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_ExpandLocalBusiness" : { "frames" : [30], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_ExpandProcessingPlant" : { "frames" : [31], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_FishDifferentSpecies" : { "frames" : [32], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_FishingSkillsTraining" : { "frames" : [33], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_HarborHotel" : { "frames" : [34], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_HarborMedCenter" : { "frames" : [35], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_HarborRenovation" : { "frames" : [36], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_LiquorRestriction" : { "frames" : [37], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_LivingShoreline" : { "frames" : [38], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_LongerFishingHours" : { "frames" : [39], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_MarineProtectedArea" : { "frames" : [40], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_NewBars" : { "frames" : [41], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_NewJobProgram" : { "frames" : [42], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_NewMall" : { "frames" : [43], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_OffShoreWindfarm" : { "frames" : [44], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_PreparednessWorkshop" : { "frames" : [45], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_PromoteLocalSeafood" : { "frames" : [46], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_Regatta" : { "frames" : [47], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_RenovateSchool" : { "frames" : [48], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_RepairAgingPowerGrid" : { "frames" : [49], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_RepairRoads" : { "frames" : [50], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_RestrictRecreationalFishing" : { "frames" : [51], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_SeaWall" : { "frames" : [52], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_TighterPollutionControl" : { "frames" : [53], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_TourismZoningRestrictions" : { "frames" : [54], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_UpgradeSewerSystem" : { "frames" : [55], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_UpscaleShops" : { "frames" : [56], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/Prep_VaccinationProgram" : { "frames" : [57], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/SH_EmergencyWorkers" : { "frames" : [58], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/SH_IndustrialFishing" : { "frames" : [59], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/SH_RecreationalFishing" : { "frames" : [60], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/SH_SmallBusinessOwners" : { "frames" : [64], "params" : { "bounds" : { "-1" : [{ "height" : 312, "name" : "bounds", "type" : "box", "width" : 357, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 178, "y" : 156}]}}}, "2d/prep/SeaTurtle" : { "frames" : [61], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/SealHaul" : { "frames" : [62], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/prep/WaterCrisis" : { "frames" : [63], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}}, "framerate" : 20, "frames" : [[0,0,360,314,0,0,0],[360,0,360,314,0,0,0],[720,0,360,314,0,0,0],[1080,0,360,314,0,0,0],[1440,0,360,314,0,0,0],[0,314,360,314,0,0,0],[360,314,360,314,0,0,0],[720,314,360,314,0,0,0],[1080,314,360,314,0,0,0],[1440,314,360,314,0,0,0],[0,628,360,314,0,0,0],[360,628,360,314,0,0,0],[720,628,360,314,0,0,0],[1080,628,360,314,0,0,0],[1440,628,360,314,0,0,0],[0,942,360,314,0,0,0],[360,942,360,314,0,0,0],[720,942,360,314,0,0,0],[1080,942,360,314,0,0,0],[1440,942,360,314,0,0,0],[0,1256,360,314,0,0,0],[360,1256,360,314,0,0,0],[720,1256,360,314,0,0,0],[1080,1256,360,314,0,0,0],[1440,1256,360,314,0,0,0],[0,1570,360,314,0,0,0],[360,1570,360,314,0,0,0],[720,1570,360,314,0,0,0],[1080,1570,360,314,0,0,0],[1440,1570,360,314,0,0,0],[0,1884,360,314,0,0,0],[360,1884,360,314,0,0,0],[720,1884,360,314,0,0,0],[1080,1884,360,314,0,0,0],[1440,1884,360,314,0,0,0],[0,2198,360,314,0,0,0],[0,2512,360,314,0,0,0],[0,2826,360,314,0,0,0],[0,3140,360,314,0,0,0],[0,3454,360,314,0,0,0],[0,3768,360,314,0,0,0],[360,2198,360,314,0,0,0],[720,2198,360,314,0,0,0],[1080,2198,360,314,0,0,0],[1440,2198,360,314,0,0,0],[360,2512,360,314,0,0,0],[360,2826,360,314,0,0,0],[360,3140,360,314,0,0,0],[360,3454,360,314,0,0,0],[360,3768,360,314,0,0,0],[720,2512,360,314,0,0,0],[1080,2512,360,314,0,0,0],[1440,2512,360,314,0,0,0],[720,2826,360,314,0,0,0],[1080,2826,360,314,0,0,0],[1440,2826,360,314,0,0,0],[720,3140,360,314,0,0,0],[720,3454,360,314,0,0,0],[720,3768,360,314,0,0,0],[1080,3140,360,314,0,0,0],[1440,3140,360,314,0,0,0],[1080,3454,360,314,0,0,0],[1080,3768,360,314,0,0,0],[1440,3454,360,314,0,0,0],[1440,3768,357,312,0,0,0]], "images" : ["Preparation_BG_DEFAULT.png"]}; assets_JsonAssets._2d_ResultMenu_DEFAULT = { "animations" : { "2d/ui/result/Defeat" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 113, "name" : "bounds", "type" : "box", "width" : 314, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 157, "y" : 112}]}}}, "2d/ui/result/Victory" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 114, "name" : "bounds", "type" : "box", "width" : 391, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 195, "y" : 113}]}}}}, "framerate" : 20, "frames" : [[0,0,391,114,0,0,0],[393,0,314,113,0,0,0]], "images" : ["ResultMenu_DEFAULT.png"]}; assets_JsonAssets._2d_SharedUI_BUTTONS = { "animations" : { "2d/shared/coverBlack" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 8, "name" : "bounds", "type" : "box", "width" : 8, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}}, "framerate" : 20, "frames" : [[0,0,8,8,0,0,0]], "images" : ["SharedUI_BUTTONS.png"]}; assets_JsonAssets._2d_SharedUI_DEFAULT = { "animations" : { "2d/ui/icons/EffectDecrease" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 83, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 45, "y" : 82}]}}}, "2d/ui/icons/EffectIncrease" : { "frames" : [4], "params" : { "bounds" : { "-1" : [{ "height" : 83, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 45, "y" : 82}]}}}, "2d/ui/icons/InfoIcon" : { "frames" : [11], "params" : { "bounds" : { "-1" : [{ "height" : 56, "name" : "bounds", "type" : "box", "width" : 56, "x" : 0, "y" : 1}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 28, "y" : 29}]}}}, "2d/ui/icons/NoChange" : { "frames" : [3], "params" : { "bounds" : { "-1" : [{ "height" : 59, "name" : "bounds", "type" : "box", "width" : 228, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 114, "y" : 29}]}}}, "2d/ui/icons/Placeholder/Option1-Effect" : { "frames" : [5], "params" : { "bounds" : { "-1" : [{ "height" : 84, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 45, "y" : 83}]}}}, "2d/ui/icons/Placeholder/Option2-Effect1" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 84, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 45, "y" : 83}]}}}, "2d/ui/icons/Placeholder/Option2-Effect2" : { "frames" : [6], "params" : { "bounds" : { "-1" : [{ "height" : 83, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 45, "y" : 82}]}}}, "2d/ui/icons/SocialCapital" : { "frames" : [8], "params" : { "bounds" : { "-1" : [{ "height" : 57, "name" : "bounds", "type" : "box", "width" : 60, "x" : 0, "y" : 1}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 30, "y" : 29}]}}}, "2d/ui/icons/UserIcon" : { "frames" : [14], "params" : { "bounds" : { "-1" : [{ "height" : 49, "name" : "bounds", "type" : "box", "width" : 45, "x" : 15, "y" : 13}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 37, "y" : 37}]}}}, "2d/ui/icons/UserIconBacking" : { "frames" : [7], "params" : { "bounds" : { "-1" : [{ "height" : 74, "name" : "bounds", "type" : "box", "width" : 74, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 37, "y" : 37}]}}}, "2d/ui/icons/community" : { "frames" : [12], "params" : { "bounds" : { "-1" : [{ "height" : 54, "name" : "bounds", "type" : "box", "width" : 54, "x" : 3, "y" : 2}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 30, "y" : 29}]}}}, "2d/ui/icons/event" : { "frames" : [10], "params" : { "bounds" : { "-1" : [{ "height" : 55, "name" : "bounds", "type" : "box", "width" : 58, "x" : 1, "y" : 3}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 30, "y" : 30}]}}}, "2d/ui/icons/fish" : { "frames" : [13], "params" : { "bounds" : { "-1" : [{ "height" : 49, "name" : "bounds", "type" : "box", "width" : 58, "x" : 1, "y" : 6}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 30, "y" : 30}]}}}, "2d/ui/icons/services" : { "frames" : [15], "params" : { "bounds" : { "-1" : [{ "height" : 47, "name" : "bounds", "type" : "box", "width" : 57, "x" : 1, "y" : 6}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 29, "y" : 29}]}}}, "2d/ui/icons/tourism" : { "frames" : [2], "params" : { "bounds" : { "-1" : [{ "height" : 59, "name" : "bounds", "type" : "box", "width" : 55, "x" : 3, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 30, "y" : 29}]}}}, "2d/ui/icons/trade" : { "frames" : [9], "params" : { "bounds" : { "-1" : [{ "height" : 56, "name" : "bounds", "type" : "box", "width" : 56, "x" : 2, "y" : 2}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 30, "y" : 30}]}}}}, "framerate" : 20, "frames" : [[0,0,91,91,0,0,0],[0,93,90,90,0,0,0],[0,185,57,60,0,-2,0],[59,185,228,59,0,0,0],[92,93,90,84,0,0,0],[93,0,90,84,0,0,0],[184,86,90,83,0,0,0],[185,0,74,74,0,0,0],[261,0,60,59,0,0,0],[276,61,58,58,0,-1,-1],[323,0,60,57,0,0,-2],[276,121,56,57,0,0,0],[289,180,56,56,0,-2,-1],[334,121,60,51,0,0,-5],[336,59,47,51,0,-14,-12],[347,174,59,49,0,0,-5]], "images" : ["SharedUI_DEFAULT.png"]}; assets_JsonAssets._2d_Stakeholders_BG_DEFAULT = { "animations" : { "2d/stakeholders/SH_ConstructionWorkers" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/stakeholders/SH_EmergencyWorkers" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/stakeholders/SH_IndustrialFishing" : { "frames" : [2], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/stakeholders/SH_PTFishing1" : { "frames" : [3], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/stakeholders/SH_PTFishing2" : { "frames" : [4], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/stakeholders/SH_RecreationalFishing" : { "frames" : [5], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/stakeholders/SH_SmallBusinessOwners" : { "frames" : [6], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}, "2d/stakeholders/SH_TourismIndustry" : { "frames" : [7], "params" : { "bounds" : { "-1" : [{ "height" : 314, "name" : "bounds", "type" : "box", "width" : 360, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 180, "y" : 157}]}}}}, "framerate" : 20, "frames" : [[0,0,360,314,0,0,0],[360,0,360,314,0,0,0],[720,0,360,314,0,0,0],[1080,0,360,314,0,0,0],[1440,0,360,314,0,0,0],[1800,0,360,314,0,0,0],[2160,0,360,314,0,0,0],[2520,0,360,314,0,0,0]], "images" : ["Stakeholders_BG_DEFAULT.png"]}; assets_JsonAssets._2d_TitleBG_BG_DEFAULT = { "animations" : { "2d/bg/TitleBG" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 1024, "name" : "bounds", "type" : "box", "width" : 1820, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 910, "y" : 512}]}}}}, "framerate" : 20, "frames" : [[0,0,1820,1024,0,0,0]], "images" : ["TitleBG_BG_DEFAULT.png"]}; assets_JsonAssets._2d_Title_DEFAULT_LARGE = { "animations" : { "2d/title/eli_logo" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 330, "name" : "bounds", "type" : "box", "width" : 250, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 125, "y" : 329}]}}}, "2d/title/logo" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 828, "name" : "bounds", "type" : "box", "width" : 1908, "x" : 50, "y" : 29}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 1004, "y" : 856}]}}}}, "framerate" : 20, "frames" : [[0,0,1910,830,0,-49,-28],[0,832,250,330,0,0,0]], "images" : ["Title_DEFAULT_LARGE.png"]}; assets_JsonAssets._2d_UI_DEFAULT = { "animations" : { "2d/ui/buttons/9patch-EventButton_disabled" : { "frames" : [19], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/buttons/9patch-EventButton_down" : { "frames" : [21], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/buttons/9patch-EventButton_up" : { "frames" : [23], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/buttons/9patch-GameMode_disabled" : { "frames" : [25], "params" : { "bounds" : { "-1" : [{ "height" : 88, "name" : "bounds", "type" : "box", "width" : 128, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 73},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 10},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 11},{ "frame" : -1, "id" : 2, "name" : "yDivs", "type" : "int", "value" : 64},{ "frame" : -1, "id" : 3, "name" : "yDivs", "type" : "int", "value" : 65}]}}}, "2d/ui/buttons/9patch-GameMode_down" : { "frames" : [27], "params" : { "bounds" : { "-1" : [{ "height" : 87, "name" : "bounds", "type" : "box", "width" : 127, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 73},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 10},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 11},{ "frame" : -1, "id" : 2, "name" : "yDivs", "type" : "int", "value" : 64},{ "frame" : -1, "id" : 3, "name" : "yDivs", "type" : "int", "value" : 65}]}}}, "2d/ui/buttons/9patch-GameMode_up" : { "frames" : [29], "params" : { "bounds" : { "-1" : [{ "height" : 87, "name" : "bounds", "type" : "box", "width" : 127, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 73},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 10},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 11},{ "frame" : -1, "id" : 2, "name" : "yDivs", "type" : "int", "value" : 64},{ "frame" : -1, "id" : 3, "name" : "yDivs", "type" : "int", "value" : 65}]}}}, "2d/ui/buttons/9patch-LevelSelectBtn_disabled" : { "frames" : [14], "params" : { "bounds" : { "-1" : [{ "height" : 126, "name" : "bounds", "type" : "box", "width" : 289, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 137},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 153}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 67},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 83}]}}}, "2d/ui/buttons/9patch-LevelSelectBtn_down" : { "frames" : [1], "params" : { "bounds" : { "-1" : [{ "height" : 126, "name" : "bounds", "type" : "box", "width" : 289, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 137},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 153}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 67},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 83}]}}}, "2d/ui/buttons/9patch-LevelSelectBtn_up" : { "frames" : [5], "params" : { "bounds" : { "-1" : [{ "height" : 126, "name" : "bounds", "type" : "box", "width" : 289, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 137},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 153}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 67},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 83}]}}}, "2d/ui/buttons/9patch-PrepButton_disabled" : { "frames" : [24], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/buttons/9patch-PrepButton_down" : { "frames" : [26], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/buttons/9patch-PrepButton_up" : { "frames" : [28], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/buttons/9patch-Primary_down" : { "frames" : [42], "params" : { "bounds" : { "-1" : [{ "height" : 76, "name" : "bounds", "type" : "box", "width" : 76, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 25},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 51}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 20},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 46}]}}}, "2d/ui/buttons/9patch-Primary_up" : { "frames" : [45], "params" : { "bounds" : { "-1" : [{ "height" : 76, "name" : "bounds", "type" : "box", "width" : 76, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 25},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 51}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 20},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 46}]}}}, "2d/ui/buttons/9patch-Secondary_down" : { "frames" : [46], "params" : { "bounds" : { "-1" : [{ "height" : 76, "name" : "bounds", "type" : "box", "width" : 76, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 25},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 51}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 20},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 46}]}}}, "2d/ui/buttons/9patch-Secondary_up" : { "frames" : [47], "params" : { "bounds" : { "-1" : [{ "height" : 76, "name" : "bounds", "type" : "box", "width" : 76, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 25},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 51}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 20},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 46}]}}}, "2d/ui/buttons/Facebook_down" : { "frames" : [11], "params" : { "bounds" : { "-1" : [{ "height" : 80, "name" : "bounds", "type" : "box", "width" : 80, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 40, "y" : 79}]}}}, "2d/ui/buttons/Facebook_up" : { "frames" : [12], "params" : { "bounds" : { "-1" : [{ "height" : 80, "name" : "bounds", "type" : "box", "width" : 80, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 40, "y" : 79}]}}}, "2d/ui/buttons/GooglePlus_down" : { "frames" : [15], "params" : { "bounds" : { "-1" : [{ "height" : 80, "name" : "bounds", "type" : "box", "width" : 80, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 40, "y" : 79}]}}}, "2d/ui/buttons/GooglePlus_up" : { "frames" : [17], "params" : { "bounds" : { "-1" : [{ "height" : 80, "name" : "bounds", "type" : "box", "width" : 80, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 40, "y" : 79}]}}}, "2d/ui/buttons/LevelSelectCompleted" : { "frames" : [48], "params" : { "bounds" : { "-1" : [{ "height" : 76, "name" : "bounds", "type" : "box", "width" : 76, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 38, "y" : 38}]}}}, "2d/ui/buttons/LevelSelectLocked" : { "frames" : [20], "params" : { "bounds" : { "-1" : [{ "height" : 137, "name" : "bounds", "type" : "box", "width" : 137, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 68, "y" : 68}]}}}, "2d/ui/buttons/LevelSelectNew" : { "frames" : [49], "params" : { "bounds" : { "-1" : [{ "height" : 76, "name" : "bounds", "type" : "box", "width" : 76, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 38, "y" : 38}]}}}, "2d/ui/buttons/PageRight_down" : { "frames" : [43], "params" : { "bounds" : { "-1" : [{ "height" : 127, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 63}]}}}, "2d/ui/buttons/PageRight_up" : { "frames" : [44], "params" : { "bounds" : { "-1" : [{ "height" : 127, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 45, "y" : 63}]}}}, "2d/ui/buttons/Twitter_down" : { "frames" : [39], "params" : { "bounds" : { "-1" : [{ "height" : 80, "name" : "bounds", "type" : "box", "width" : 80, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 40, "y" : 79}]}}}, "2d/ui/buttons/Twitter_up" : { "frames" : [40], "params" : { "bounds" : { "-1" : [{ "height" : 80, "name" : "bounds", "type" : "box", "width" : 80, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 40, "y" : 79}]}}}, "2d/ui/coverSpriteBlack" : { "frames" : [2], "params" : { "bounds" : { "-1" : [{ "height" : 8, "name" : "bounds", "type" : "box", "width" : 8, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}, "2d/ui/hud/HudFishing" : { "frames" : [38], "params" : { "bounds" : { "-1" : [{ "height" : 144, "name" : "bounds", "type" : "box", "width" : 98, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 49, "y" : 143}]}}}, "2d/ui/hud/HudResilience" : { "frames" : [33], "params" : { "bounds" : { "-1" : [{ "height" : 106, "name" : "bounds", "type" : "box", "width" : 109, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 54, "y" : 105}]}}}, "2d/ui/hud/HudServices" : { "frames" : [30], "params" : { "bounds" : { "-1" : [{ "height" : 144, "name" : "bounds", "type" : "box", "width" : 109, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 54, "y" : 143}]}}}, "2d/ui/hud/HudTourism" : { "frames" : [34], "params" : { "bounds" : { "-1" : [{ "height" : 143, "name" : "bounds", "type" : "box", "width" : 108, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 54, "y" : 142}]}}}, "2d/ui/hud/HudTrade" : { "frames" : [41], "params" : { "bounds" : { "-1" : [{ "height" : 143, "name" : "bounds", "type" : "box", "width" : 90, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 45, "y" : 142}]}}}, "2d/ui/hud/Placeholder/Hud" : { "frames" : [0], "params" : { "bounds" : { "-1" : [{ "height" : 145, "name" : "bounds", "type" : "box", "width" : 683, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}, "2d/ui/hud/StatLabelBackingSocial" : { "frames" : [36], "params" : { "bounds" : { "-1" : [{ "height" : 53, "name" : "bounds", "type" : "box", "width" : 86, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 43, "y" : 52}]}}}, "2d/ui/hud/StatLabelbacking" : { "frames" : [37], "params" : { "bounds" : { "-1" : [{ "height" : 53, "name" : "bounds", "type" : "box", "width" : 86, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 43, "y" : 52}]}}}, "2d/ui/hud/year_completed" : { "frames" : [51], "params" : { "bounds" : { "-1" : [{ "height" : 64, "name" : "bounds", "type" : "box", "width" : 64, "x" : 6, "y" : 6}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 38, "y" : 38}]}}}, "2d/ui/hud/year_current" : { "frames" : [50], "params" : { "bounds" : { "-1" : [{ "height" : 76, "name" : "bounds", "type" : "box", "width" : 75, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 37, "y" : 38}]}}}, "2d/ui/hud/year_default" : { "frames" : [52], "params" : { "bounds" : { "-1" : [{ "height" : 64, "name" : "bounds", "type" : "box", "width" : 64, "x" : 6, "y" : 6}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 38, "y" : 38}]}}}, "2d/ui/panels/9patch-EventBanner" : { "frames" : [10], "params" : { "bounds" : { "-1" : [{ "height" : 141, "name" : "bounds", "type" : "box", "width" : 599, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 54},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 251},{ "frame" : -1, "id" : 2, "name" : "xDivs", "type" : "int", "value" : 348},{ "frame" : -1, "id" : 3, "name" : "xDivs", "type" : "int", "value" : 545}]}}}, "2d/ui/panels/9patch-EventHalfBanner" : { "frames" : [16], "params" : { "bounds" : { "-1" : [{ "height" : 95, "name" : "bounds", "type" : "box", "width" : 160, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 41},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 44}]}}}, "2d/ui/panels/9patch-EventPanel" : { "frames" : [31], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/panels/9patch-HintPanel" : { "frames" : [53], "params" : { "bounds" : { "-1" : [{ "height" : 63, "name" : "bounds", "type" : "box", "width" : 63, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 19},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 44}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 19},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 44}]}}}, "2d/ui/panels/9patch-HintPopupPanel" : { "frames" : [32], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/panels/9patch-HintTab" : { "frames" : [22], "params" : { "bounds" : { "-1" : [{ "height" : 300, "name" : "bounds", "type" : "box", "width" : 127, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 4},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 71}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 149},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 150}]}}}, "2d/ui/panels/9patch-PrepBanner" : { "frames" : [13], "params" : { "bounds" : { "-1" : [{ "height" : 141, "name" : "bounds", "type" : "box", "width" : 599, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 54},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 251},{ "frame" : -1, "id" : 2, "name" : "xDivs", "type" : "int", "value" : 348},{ "frame" : -1, "id" : 3, "name" : "xDivs", "type" : "int", "value" : 545}]}}}, "2d/ui/panels/9patch-PrepHalfBanner" : { "frames" : [18], "params" : { "bounds" : { "-1" : [{ "height" : 95, "name" : "bounds", "type" : "box", "width" : 160, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 41},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 44}]}}}, "2d/ui/panels/9patch-PrepPanel" : { "frames" : [35], "params" : { "bounds" : { "-1" : [{ "height" : 255, "name" : "bounds", "type" : "box", "width" : 439, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}, "xDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "xDivs", "type" : "int", "value" : 102},{ "frame" : -1, "id" : 1, "name" : "xDivs", "type" : "int", "value" : 105}]}, "yDivs" : { "-1" : [{ "frame" : -1, "id" : 0, "name" : "yDivs", "type" : "int", "value" : 112},{ "frame" : -1, "id" : 1, "name" : "yDivs", "type" : "int", "value" : 211}]}}}, "2d/ui/panels/Blue1" : { "frames" : [6], "params" : { "bounds" : { "-1" : [{ "height" : 1, "name" : "bounds", "type" : "box", "width" : 1, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}, "2d/ui/panels/Blue2" : { "frames" : [7], "params" : { "bounds" : { "-1" : [{ "height" : 1, "name" : "bounds", "type" : "box", "width" : 1, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}, "2d/ui/panels/Blue3" : { "frames" : [8], "params" : { "bounds" : { "-1" : [{ "height" : 1, "name" : "bounds", "type" : "box", "width" : 1, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}, "2d/ui/panels/CeilingDarkening" : { "frames" : [4], "params" : { "bounds" : { "-1" : [{ "height" : 128, "name" : "bounds", "type" : "box", "width" : 1, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}, "2d/ui/panels/HudPanel" : { "frames" : [3], "params" : { "bounds" : { "-1" : [{ "height" : 220, "name" : "bounds", "type" : "box", "width" : 1, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}, "2d/ui/panels/White" : { "frames" : [9], "params" : { "bounds" : { "-1" : [{ "height" : 1, "name" : "bounds", "type" : "box", "width" : 1, "x" : 0, "y" : 0}]}, "center" : { "-1" : [{ "name" : "center", "type" : "vector", "x" : 0, "y" : 0}]}}}}, "framerate" : 20, "frames" : [[0,0,683,145,0,0,0],[685,0,289,126,0,0,0],[976,0,8,8,0,0,0],[986,0,1,220,0,0,0],[976,10,1,128,0,0,0],[685,128,289,126,0,0,0],[979,10,1,1,0,0,0],[982,10,1,1,0,0,0],[979,13,1,1,0,0,0],[982,13,1,1,0,0,0],[0,147,599,141,0,0,0],[601,147,80,80,0,0,0],[601,229,80,80,0,0,0],[0,290,599,141,0,0,0],[683,256,289,102,0,0,-24],[601,311,80,80,0,0,0],[683,360,160,95,0,0,0],[601,393,80,80,0,0,0],[845,360,160,95,0,0,0],[0,433,439,255,0,0,0],[441,433,137,137,0,0,0],[580,475,439,255,0,0,0],[441,572,127,300,0,0,0],[0,690,439,255,0,0,0],[570,732,439,255,0,0,0],[441,874,127,87,0,0,0],[0,947,439,255,0,0,0],[441,963,127,87,0,0,0],[570,989,439,255,0,0,0],[441,1052,127,87,0,0,0],[441,1141,109,144,0,0,0],[0,1204,439,255,0,0,0],[552,1246,439,255,0,0,0],[441,1287,109,106,0,0,0],[441,1395,108,143,0,0,0],[0,1461,439,255,0,0,0],[0,1718,86,53,0,0,0],[88,1718,86,53,0,0,0],[441,1540,98,144,0,0,0],[441,1686,80,80,0,0,0],[523,1686,80,80,0,0,0],[541,1540,90,143,0,0,0],[605,1685,76,76,0,0,0],[633,1503,90,127,0,0,0],[683,1632,90,127,0,0,0],[725,1503,76,76,0,0,0],[775,1581,76,76,0,0,0],[803,1503,76,76,0,0,0],[775,1659,76,76,0,0,0],[881,1503,76,76,0,0,0],[853,1581,75,76,0,0,0],[930,1581,66,66,0,-5,-5],[930,1649,66,66,0,-5,-5],[853,1659,63,63,0,0,0]], "images" : ["UI_DEFAULT.png"]}; assets_JsonAssets._layouts_CommunityPopup = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "button" : [{ "inheritable" : { "loadParams" : true, "position" : [782,825], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [4.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [304,76], "textAlignment" : ["center","left or top"]}, "name" : "lbl_accept", "record" : true, "text" : "BUTTON_CONTINUE"}], "name" : "btn_accept", "priority" : 10, "record" : true}], "inheritable" : { "loadParams" : false, "position" : [0,-72]}, "label" : [{ "inheritable" : { "autoSize" : true, "clipOverflow" : null, "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:30", "loadParams" : false, "position" : [653,262], "size" : null, "wrapOverflow" : null}, "name" : "lbl_prep_header", "priority" : 11, "record" : true, "text" : "RESILIENCE_USE_WARNING_TITLE"},{ "inheritable" : { "autoSize" : null, "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [608,604], "size" : [650,200], "wrapOverflow" : true}, "name" : "lbl_description", "priority" : 11, "record" : true, "text" : "RESILIENCE_USE_WARNING_DESCRIPTION"},{ "inheritable" : { "autoSize" : null, "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [1086,444], "size" : [60,60], "wrapOverflow" : true}, "name" : "lbl_statValue", "priority" : 11, "record" : true, "text" : "100"}], "name" : "pnl_popup", "priority" : 100, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [547,243], "resource" : "2d/ui/panels/9patch-EventPanel", "scale" : [1.68,2.8]}, "name" : "spr_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [1019,525], "resource" : "2d/ui/hud/HudResilience", "scale" : null}, "name" : "ref_effect", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [848,472], "resource" : "2d/ui/icons/fish", "scale" : [2.0,2.0]}, "name" : "spr_portrait", "priority" : 100, "record" : true}]}], "spriteObject" : [{ "id" : 1, "inheritable" : { "loadParams" : true, "opacity" : 8, "resource" : "2d/shared/coverBlack", "scale" : [227.5,128.0]}, "name" : "spr_darkOverlay", "record" : true}]}}; assets_JsonAssets._layouts_EventChoiceMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "inheritable" : { "loadParams" : true, "resource" : "2d/ui/buttons/9patch-EventButton", "scale" : [1.1,1.2]}, "name" : "btn_eventChoice", "record" : true}], "label" : [{ "inheritable" : { "autoSize" : true, "clipOverflow" : null, "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:30", "loadParams" : false, "position" : [103,22], "size" : null, "textAlignment" : null, "wrapOverflow" : null}, "name" : "lbl_prep_header", "priority" : 11, "record" : true, "text" : "Increase Security"},{ "inheritable" : { "autoSize" : null, "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [46,200], "size" : [400,180], "textAlignment" : ["center","left or top"], "wrapOverflow" : true}, "name" : "lbl_prep_text", "priority" : 11, "record" : true, "text" : "Increase your security to try to fight off the pirates!"}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [142,184], "resource" : "2d/ui/icons/Placeholder/Option1-Effect", "visible" : false}, "name" : "ref_effect1", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [242,184], "resource" : "2d/ui/icons/Placeholder/Option2-Effect1", "visible" : false}, "name" : "ref_effect2", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [346,184], "resource" : "2d/ui/icons/Placeholder/Option2-Effect1", "visible" : false}, "name" : "ref_effect3", "priority" : 11, "record" : true}]}}; assets_JsonAssets._layouts_GameHudMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "inheritable" : { "loadParams" : false, "position" : [67,227]}, "label" : [{ "inheritable" : { "color" : [0,12,18], "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-44,-47], "size" : [80,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_services", "priority" : 11, "record" : true, "text" : "7"}], "name" : "pnl_services", "priority" : 1, "record" : null, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [-4,2], "resource" : "2d/ui/hud/StatLabelbacking"}, "name" : "spr_services_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [-4,-68], "resource" : "2d/ui/icons/services"}, "name" : "spr_services", "priority" : 10, "record" : true}]},{ "inheritable" : { "loadParams" : false, "position" : [67,307]}, "label" : [{ "inheritable" : { "color" : [0,12,18], "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-40,-18], "size" : [80,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_fishing", "priority" : 11, "record" : true, "text" : "3"}], "name" : "pnl_fishing", "priority" : 1, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [0,31], "resource" : "2d/ui/hud/StatLabelbacking"}, "name" : "spr_fishing_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [0,-40], "resource" : "2d/ui/icons/fish"}, "name" : "spr_fishing", "priority" : 10, "record" : true}]},{ "inheritable" : { "loadParams" : false, "position" : [67,451]}, "label" : [{ "inheritable" : { "color" : [0,12,18], "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-39,-50], "size" : [80,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_tourism", "priority" : 11, "record" : true, "text" : "2"}], "name" : "pnl_tourism", "priority" : 1, "record" : null, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [1,-1], "resource" : "2d/ui/hud/StatLabelbacking"}, "name" : "spr_tourism_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [1,-71], "resource" : "2d/ui/icons/tourism"}, "name" : "spr_tourism", "priority" : 10, "record" : true}]},{ "inheritable" : { "loadParams" : false, "position" : [67,563]}, "label" : [{ "inheritable" : { "color" : [0,12,18], "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-40,-50], "size" : [80,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_trade", "priority" : 11, "record" : true, "text" : "2"}], "name" : "pnl_trade", "priority" : 1, "record" : null, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [0,-1], "resource" : "2d/ui/hud/StatLabelbacking"}, "name" : "spr_trade_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [0,-71], "resource" : "2d/ui/icons/trade"}, "name" : "spr_trade", "priority" : 10, "record" : true}]},{ "inheritable" : { "loadParams" : false, "position" : [62,113]}, "label" : [{ "inheritable" : { "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:48", "loadParams" : false, "position" : [-55,-85], "size" : [110,100], "textAlignment" : ["center","left or top"]}, "name" : "lbl_resilience", "priority" : 11, "record" : true, "text" : "12"}], "name" : "pnl_resilience", "priority" : 1, "record" : null, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [-2,0], "resource" : "2d/ui/hud/HudResilience"}, "name" : "spr_resilience", "priority" : null, "record" : true}]},{ "inheritable" : { "loadParams" : false, "position" : [67,677]}, "label" : [{ "inheritable" : { "color" : [0,12,18], "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-39,-50], "size" : [80,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_social", "priority" : 11, "record" : true, "text" : "2"}], "name" : "pnl_social", "priority" : 1, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [1,-1], "resource" : "2d/ui/hud/StatLabelBackingSocial"}, "name" : "spr_social_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [1,-71], "resource" : "2d/ui/icons/SocialCapital"}, "name" : "spr_social", "priority" : 10, "record" : true}]}]}}; assets_JsonAssets._layouts_GameplayChoicePopup = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "button" : [{ "id" : null, "inheritable" : { "loadParams" : true, "position" : [926,625], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [4.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [304,76], "textAlignment" : ["center","left or top"]}, "name" : "lbl_accept", "record" : true, "text" : "BUTTON_SELECT"}], "name" : "btn_accept", "priority" : 10, "record" : true},{ "id" : 1, "inheritable" : { "loadParams" : true, "position" : [603,625], "resource" : "2d/ui/buttons/9patch-Secondary", "scale" : [4.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [304,76], "textAlignment" : ["center","left or top"]}, "name" : "lbl_reject", "record" : true, "text" : "BUTTON_BACK"}], "name" : "btn_reject", "priority" : 10, "record" : true}], "inheritable" : { "loadParams" : false}, "label" : [{ "inheritable" : { "autoSize" : true, "clipOverflow" : null, "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:30", "loadParams" : false, "position" : [653,262], "size" : null, "wrapOverflow" : null}, "name" : "lbl_prep_header", "priority" : 11, "record" : true, "text" : "Increase Security"},{ "inheritable" : { "autoSize" : null, "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [592,462], "size" : [650,180], "wrapOverflow" : true}, "name" : "lbl_description", "priority" : 11, "record" : true, "text" : "Increase your security to try to fight off the pirates!"}], "name" : "pnl_popup", "priority" : 100, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [547,243], "resource" : "2d/ui/panels/9patch-PrepPanel", "scale" : [1.68,2.0], "visible" : null}, "name" : "spr_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [1071,445], "resource" : "2d/ui/icons/Placeholder/Option2-Effect1", "scale" : null, "visible" : false}, "name" : "ref_effect3", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [967,445], "resource" : "2d/ui/icons/Placeholder/Option2-Effect1", "scale" : null, "visible" : false}, "name" : "ref_effect2", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [867,445], "resource" : "2d/ui/icons/Placeholder/Option1-Effect", "scale" : null, "visible" : false}, "name" : "ref_effect1", "priority" : 11, "record" : true}]}], "spriteObject" : [{ "id" : 1, "inheritable" : { "loadParams" : true, "opacity" : 8, "resource" : "2d/shared/coverBlack", "scale" : [227.5,128.0]}, "name" : "spr_darkOverlay", "record" : true}]}}; assets_JsonAssets._layouts_GameplayMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "id" : 200, "inheritable" : { "loadParams" : true, "position" : [312,696], "resource" : "2d/ui/buttons/9patch-PrepButton", "scale" : [1.68,1.2], "visible" : false}, "name" : "ref_prep_choice1", "priority" : 20, "record" : true},{ "id" : 201, "inheritable" : { "loadParams" : true, "position" : [1062,697], "resource" : "2d/ui/buttons/9patch-PrepButton", "scale" : [1.68,1.2], "visible" : false}, "name" : "ref_prep_choice2", "priority" : 20, "record" : true},{ "id" : 100, "inheritable" : { "loadParams" : true, "position" : [312,672], "resource" : "2d/ui/buttons/9patch-EventButton", "scale" : [1.1,1.2], "visible" : false}, "name" : "ref_event_choice1", "priority" : 20, "record" : true},{ "id" : 101, "inheritable" : { "loadParams" : true, "position" : [816,672], "resource" : "2d/ui/buttons/9patch-EventButton", "scale" : [1.1,1.2], "visible" : false}, "name" : "ref_event_choice2", "priority" : 20, "record" : true},{ "id" : 102, "inheritable" : { "loadParams" : true, "position" : [1318,672], "resource" : "2d/ui/buttons/9patch-EventButton", "scale" : [1.1,1.2], "visible" : false}, "name" : "ref_event_choice3", "priority" : 20, "record" : true}], "label" : [{ "inheritable" : { "clipOverflow" : true, "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "opacity" : null, "position" : [194,377], "size" : [700,70], "wrapOverflow" : true}, "name" : "lbl_news_title", "priority" : 11, "record" : true, "text" : "Downwind Smog"},{ "inheritable" : { "clipOverflow" : true, "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "opacity" : null, "position" : [193,445], "size" : [700,300], "wrapOverflow" : true}, "name" : "lbl_news_text", "priority" : 11, "record" : true, "text" : "You do not permit Blorp Chem into your community, but unfortunately the next town over sells them land to develop. Your community is downwind of the new chemical plant. "},{ "inheritable" : { "clipOverflow" : true, "font" : "/fonts/OpenSans-Bold.ttf:30", "loadParams" : false, "opacity" : null, "position" : [984,48], "size" : [700,70], "wrapOverflow" : true}, "name" : "lbl_social_feed", "priority" : 20, "record" : true, "text" : "TITLE_SOCIAL_FEED"},{ "inheritable" : { "clipOverflow" : true, "font" : "/fonts/OpenSans-Regular.ttf:24", "loadParams" : false, "opacity" : 25, "position" : [19,821], "size" : [250,180], "wrapOverflow" : true}, "name" : "lbl_hint", "priority" : 21, "record" : true, "text" : "PROMPT_GAMEPLAY_INSTRUCTIONS"}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "ninePatchPanel" : [{ "inheritable" : { "boundingBox" : [0,0,300,200], "loadParams" : true, "opacity" : 5, "position" : [0,737], "resource" : "2d/ui/panels/9patch-HintTab"}, "name" : "pnl_hint", "priority" : 20}], "spriteObject" : [{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : null, "position" : [160,25], "positionRelative" : null, "resource" : "2d/ui/panels/9patch-PrepHalfBanner", "scale" : [4.25,1.0], "visible" : false}, "name" : "spr_half_banner", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : null, "position" : [184,0], "positionRelative" : null, "resource" : "2d/ui/panels/White", "scale" : [720.0,670.0], "visible" : null}, "name" : "spr_hud_backing_left", "priority" : 4, "record" : null},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : null, "position" : [541,351], "positionRelative" : null, "resource" : "2d/events/Event_Brownouts", "scale" : [2.0,2.0], "visible" : null}, "name" : "ref_eventScenarioImg", "priority" : 9, "record" : true},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : null, "position" : [542,352], "positionRelative" : null, "resource" : "2d/prep/Prep_Breakwater", "scale" : [2.0,2.0], "visible" : null}, "name" : "ref_prepScenarioImg", "priority" : 9, "record" : true},{ "inheritable" : { "loadParams" : true, "opacity" : 15, "origin" : null, "position" : [185,352], "positionRelative" : null, "resource" : "2d/ui/coverSpriteBlack", "scale" : [89.5,39.0], "visible" : null}, "name" : "spr_overlay", "priority" : 10, "record" : null},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : null, "position" : [900,0], "positionRelative" : null, "resource" : "2d/ui/panels/Blue2", "scale" : [760.0,670.0], "visible" : null}, "name" : "spr_chat_backing", "priority" : 11, "record" : null},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : null, "position" : [912,-1], "positionRelative" : null, "resource" : null, "scale" : null, "visible" : false}, "name" : "ref_socialFeed", "priority" : 12, "record" : true},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : "middleCenter", "position" : null, "positionRelative" : false, "resource" : "2d/ui/coversprite/BGMask", "scale" : null, "visible" : null}, "name" : "spr_bg", "priority" : 13, "record" : true},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : null, "position" : [28,25], "positionRelative" : null, "resource" : null, "scale" : null, "visible" : false}, "name" : "ref_hud", "priority" : 21, "record" : true},{ "inheritable" : { "loadParams" : true, "opacity" : null, "origin" : "topRight", "position" : [-152,0], "positionRelative" : false, "resource" : null, "scale" : null, "visible" : false}, "name" : "ref_timeline", "priority" : 21, "record" : true},{ "inheritable" : { "loadParams" : true, "opacity" : 25, "origin" : null, "position" : [120,787], "positionRelative" : null, "resource" : "2d/ui/icons/InfoIcon", "scale" : null, "visible" : null}, "name" : "spr_hint", "priority" : 21, "record" : true}]}}; assets_JsonAssets._layouts_IntroMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "inheritable" : { "loadParams" : true, "position" : [728,888], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [5.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [380,70], "textAlignment" : ["center","left or top"]}, "name" : "lbl_continue", "text" : "BUTTON_CONTINUE"}], "name" : "btn_continue", "priority" : 10, "record" : true}], "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:28", "loadParams" : false, "position" : [360,687], "size" : [1100,200], "wrapOverflow" : true}, "name" : "lbl_narrative_text", "priority" : 11, "record" : true, "text" : "Years of decisions led up to this point. Community resilience is tied to the stakeholders within it. For your city this is a combination of fishing, trade, tourism, and services."}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : null, "positionRelative" : false, "resource" : "2d/bg/PrepBG", "scale" : null}, "name" : "spr_bg", "priority" : null},{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : [0,140], "positionRelative" : false, "resource" : "2d/ui/intro/CommunityResImg", "scale" : null}, "name" : "spr_img", "priority" : null},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [321,670], "positionRelative" : null, "resource" : "2d/ui/panels/9patch-HintPanel", "scale" : [18.7,3.1]}, "name" : "spr_hint_backing", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : "topCenter", "position" : [0,172], "positionRelative" : false, "resource" : "2d/ui/intro/CommunityRes", "scale" : null}, "name" : "spr_title", "priority" : 10}]}}; assets_JsonAssets._layouts_LevelSelect = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1024,768]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "inheritable" : { "loadParams" : true, "resource" : "2d/ui/buttons/9patch-LevelSelectBtn", "scale" : [1.0,2.5]}, "label" : [{ "inheritable" : { "clipOverflow" : null, "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [20,0], "size" : [250,80], "textAlignment" : ["center","left or top"], "wrapOverflow" : null}, "name" : "lbl_prep_header", "priority" : 11, "record" : true, "text" : "Level 1"},{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:22", "loadParams" : false, "position" : [17,154], "size" : [260,130], "textAlignment" : ["center","center"], "wrapOverflow" : true}, "name" : "lbl_prep_text", "priority" : 11, "record" : true, "text" : "Level Description"}], "name" : "btn_level", "priority" : 10, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [148,105], "resource" : "2d/ui/buttons/LevelSelectNew", "visible" : null}, "name" : "spr_level_new", "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [148,155], "resource" : "2d/ui/buttons/LevelSelectLocked", "visible" : false}, "name" : "spr_level_locked", "record" : true}]}], "menuProperties" : { "inheritable" : { "loadParams" : false}}}}; assets_JsonAssets._layouts_LevelSelectMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1024,768]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "id" : 11, "inheritable" : { "loadParams" : true, "origin" : null, "position" : [166,353], "positionRelative" : null, "resource" : "2d/ui/buttons/9patch-LevelSelectBtn", "scale" : [1.0,2.5], "visible" : null}, "name" : "ref_level_1", "priority" : 10, "record" : true},{ "id" : 12, "inheritable" : { "loadParams" : true, "origin" : null, "position" : [464,353], "positionRelative" : null, "resource" : "2d/ui/buttons/9patch-LevelSelectBtn", "scale" : [1.0,2.5], "visible" : null}, "name" : "ref_level_2", "priority" : 10, "record" : true},{ "id" : 13, "inheritable" : { "loadParams" : true, "origin" : null, "position" : [764,353], "positionRelative" : null, "resource" : "2d/ui/buttons/9patch-LevelSelectBtn", "scale" : [1.0,2.5], "visible" : null}, "name" : "ref_level_3", "priority" : 10, "record" : true},{ "id" : 14, "inheritable" : { "loadParams" : true, "origin" : null, "position" : [1064,353], "positionRelative" : null, "resource" : "2d/ui/buttons/9patch-LevelSelectBtn", "scale" : [1.0,2.5], "visible" : null}, "name" : "ref_level_4", "priority" : 10, "record" : true},{ "id" : 15, "inheritable" : { "loadParams" : true, "origin" : null, "position" : [1364,353], "positionRelative" : null, "resource" : "2d/ui/buttons/9patch-LevelSelectBtn", "scale" : [1.0,2.5], "visible" : null}, "name" : "ref_level_5", "priority" : 10, "record" : true},{ "id" : 1, "inheritable" : { "loadParams" : true, "origin" : "middleRight", "position" : [-95,0], "positionRelative" : false, "resource" : "2d/ui/buttons/PageRight", "scale" : null, "visible" : false}, "name" : "btn_page_right", "priority" : 10, "record" : true},{ "id" : null, "inheritable" : { "loadParams" : true, "origin" : "middleLeft", "position" : [90,0], "positionRelative" : false, "resource" : "2d/ui/buttons/PageRight", "scale" : [-1.0,1.0], "visible" : false}, "name" : "btn_page_left", "priority" : 10, "record" : true}], "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [603,227], "size" : [700,100], "textAlignment" : ["center","center"], "wrapOverflow" : true}, "name" : "lbl_hint", "priority" : 11, "smartLabel" : true, "text" : "PROMPT_LEVEL_SELECT"}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : null, "positionRelative" : false, "resource" : "2d/bg/PrepBG", "scale" : null}, "name" : "spr_bg", "priority" : null},{ "inheritable" : { "loadParams" : true, "origin" : "bottomCenter", "position" : null, "positionRelative" : false, "resource" : "2d/ui/levelselect/Stakeholders", "scale" : null}, "name" : "spr_stakeholders", "priority" : null},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [480,220], "positionRelative" : null, "resource" : "2d/ui/panels/9patch-HintPanel", "scale" : [13.7,1.75]}, "name" : "spr_hint_backing", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : "topCenter", "position" : [0,172], "positionRelative" : false, "resource" : "2d/ui/levelselect/LevelSelect", "scale" : null}, "name" : "spr_title", "priority" : 10},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [538,273], "positionRelative" : null, "resource" : "2d/ui/icons/InfoIcon", "scale" : null}, "name" : "spr_hint", "priority" : 11}]}}; assets_JsonAssets._layouts_PanelIcons = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "inheritable" : { "loadParams" : false}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-Bold.ttf:20", "loadParams" : false, "position" : [4,-32], "size" : [50,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_stat", "priority" : 11, "record" : true, "text" : "test"}], "name" : "pnl_positionContainer", "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : null, "resource" : "2d/ui/icons/EffectIncrease", "scale" : null}, "name" : "spr_iconBacking_increase", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : null, "resource" : "2d/ui/icons/EffectDecrease", "scale" : null}, "name" : "spr_iconBacking_decrease", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [-4,-41], "resource" : "2d/ui/icons/fish", "scale" : [0.75,0.75]}, "name" : "spr_icon", "priority" : 10, "record" : true}]}]}}; assets_JsonAssets._layouts_PreparationChoiceMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "inheritable" : { "loadParams" : true, "resource" : "2d/ui/buttons/9patch-PrepButton", "scale" : [1.68,1.2]}, "name" : "btn_prepChoice", "record" : true}], "label" : [{ "inheritable" : { "autoSize" : true, "clipOverflow" : null, "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:30", "loadParams" : false, "position" : [103,22], "size" : null, "wrapOverflow" : null}, "name" : "lbl_prep_header", "priority" : 11, "record" : true, "text" : "Upscale Shops"},{ "inheritable" : { "autoSize" : null, "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [46,177], "size" : [650,110], "wrapOverflow" : true}, "name" : "lbl_prep_text", "priority" : 11, "record" : true, "text" : "Nothing appeals to potential visitors quite like a local tradition involving friendly competition and connection with the water. "}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [296,177], "resource" : "2d/ui/icons/Placeholder/Option1-Effect", "visible" : false}, "name" : "ref_effect1", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [396,177], "resource" : "2d/ui/icons/Placeholder/Option2-Effect1", "visible" : false}, "name" : "ref_effect2", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [492,177], "resource" : "2d/ui/icons/Placeholder/Option2-Effect1", "visible" : false}, "name" : "ref_effect3", "priority" : 11, "record" : true}]}}; assets_JsonAssets._layouts_RegionSelectMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1024,768]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "id" : null, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [630,644], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [1.5,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [220,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_pacific", "priority" : 1, "record" : null, "smartLabel" : true, "text" : "BUTTON_REGION_PACIFIC"}], "name" : "btn_pacific", "priority" : 15, "record" : true},{ "id" : 1, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [940,770], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [2.5,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [220,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_gulf", "priority" : 1, "record" : true, "smartLabel" : true, "text" : "BUTTON_REGION_GULF"}], "name" : "btn_gulf", "priority" : 15, "record" : true},{ "id" : 2, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [1340,584], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [2.5,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [240,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_south_atlantic", "priority" : 1, "record" : true, "smartLabel" : true, "text" : "BUTTON_REGION_SOUTH_ATLANTIC"}], "name" : "btn_south_atlantic", "priority" : 15, "record" : true},{ "id" : 3, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [1407,444], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [2.2,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [240,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_mid_atlantic", "priority" : 1, "record" : true, "smartLabel" : true, "text" : "BUTTON_REGION_MID_ATLANTIC"}], "name" : "btn_mid_atlantic", "priority" : 15, "record" : true},{ "id" : 4, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [1487,314], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [2.3,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [240,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_new", "priority" : 1, "record" : true, "smartLabel" : true, "text" : "BUTTON_REGION_NEW_ENGLAND"}], "name" : "btn_new", "priority" : 15, "record" : true},{ "id" : 5, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [1535,874], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [2.0,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [220,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_caribbean", "priority" : 1, "record" : true, "smartLabel" : true, "text" : "BUTTON_REGION_CARIBBEAN"}], "name" : "btn_caribbean", "priority" : 15, "record" : true},{ "id" : 6, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [169,515], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [2.0,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [220,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_alaska", "priority" : 1, "record" : true, "smartLabel" : true, "text" : "BUTTON_REGION_ALASKA"}], "name" : "btn_alaska", "priority" : 15, "record" : true},{ "id" : 7, "inheritable" : { "enabled" : false, "loadParams" : true, "position" : [139,841], "resource" : "2d/ui/buttons/9patch-GameMode", "scale" : [2.5,1.0]}, "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [70,14], "size" : [220,50], "textAlignment" : ["left or top","center"]}, "name" : "lbl_western_pacific", "priority" : 1, "record" : true, "smartLabel" : true, "text" : "BUTTON_REGION_WESTERN_PACIFIC"}], "name" : "btn_western_pacific", "priority" : 15, "record" : true}], "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [601,165], "size" : [700,100], "textAlignment" : ["center","center"], "wrapOverflow" : true}, "name" : "lbl_hint", "priority" : 11, "record" : true, "smartLabel" : true, "text" : "PROMPT_REGION_SELECT"},{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:22", "loadParams" : false, "position" : [537,917], "size" : [935,130], "textAlignment" : null, "wrapOverflow" : true}, "name" : "lbl_region_info", "priority" : 11, "record" : true, "smartLabel" : null, "text" : "PROMPT_REGION_INFO"}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : null, "positionRelative" : false, "resource" : "2d/bg/PrepBG", "scale" : null}, "name" : "spr_bg", "priority" : null},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [480,174], "positionRelative" : null, "resource" : "2d/ui/panels/9patch-HintPanel", "scale" : [13.7,1.2]}, "name" : "spr_hint_backing", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : [130,22], "positionRelative" : false, "resource" : "2d/ui/regionselect/Map", "scale" : null}, "name" : "spr_map", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : [-615,356], "positionRelative" : false, "resource" : "2d/ui/regionselect/MapWesternPacific", "scale" : null}, "name" : "spr_map_western_pacific", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : [-615,22], "positionRelative" : false, "resource" : "2d/ui/regionselect/MapAlaska", "scale" : null}, "name" : "spr_map_alaska", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : [745,340], "positionRelative" : false, "resource" : "2d/ui/regionselect/MapCaribbean", "scale" : null}, "name" : "spr_map_caribbean", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [528,910], "positionRelative" : null, "resource" : "2d/ui/panels/9patch-HintPanel", "scale" : [15.1,1.2]}, "name" : "spr_region_info_backing", "priority" : 1},{ "inheritable" : { "loadParams" : true, "origin" : "topCenter", "position" : [0,156], "positionRelative" : false, "resource" : "2d/ui/regionselect/ModeSelectHeader", "scale" : null}, "name" : "spr_title", "priority" : 10},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [538,213], "positionRelative" : null, "resource" : "2d/ui/icons/InfoIcon", "scale" : null}, "name" : "spr_hint", "priority" : 11}]}}; assets_JsonAssets._layouts_ResilienceTutorialMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "inheritable" : { "loadParams" : true, "position" : [728,888], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [5.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [380,70], "textAlignment" : ["center","left or top"]}, "name" : "lbl_continue", "text" : "BUTTON_CONTINUE"}], "name" : "btn_continue", "priority" : 10, "record" : true}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "positionRelative" : false, "resource" : "2d/bg/PrepBG"}, "name" : "spr_bg"}]}}; assets_JsonAssets._layouts_ResultsMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "id" : 1, "inheritable" : { "loadParams" : true, "position" : [1720,967], "resource" : "2d/ui/buttons/Twitter", "scale" : null}, "label" : null, "name" : "btn_twitter", "priority" : 10, "record" : true},{ "id" : null, "inheritable" : { "loadParams" : true, "position" : [1620,967], "resource" : "2d/ui/buttons/Facebook", "scale" : null}, "label" : null, "name" : "btn_facebook", "priority" : 10, "record" : true},{ "id" : 2, "inheritable" : { "loadParams" : true, "position" : [976,888], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [5.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [380,70], "textAlignment" : ["center","left or top"]}, "name" : "lbl_continue", "text" : "BUTTON_CONTINUE"}], "name" : "btn_levelSelect", "priority" : 10, "record" : true},{ "id" : 3, "inheritable" : { "loadParams" : true, "position" : [552,888], "resource" : "2d/ui/buttons/9patch-Secondary", "scale" : [5.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [380,70], "textAlignment" : ["center","left or top"]}, "name" : "lbl_continue", "text" : "BUTTON_REPLAY"}], "name" : "btn_replay", "priority" : 10, "record" : true}], "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [676,225], "size" : [930,370], "textAlignment" : null, "wrapOverflow" : true}, "name" : "lbl_result_text", "priority" : 11, "record" : true, "text" : "The wind slows and the rain stops. The skies above clear, and the storm \npasses. \n\nThe services clear fallen branches from streets. Shop owners open their businesses to facilitate repairs. The fishermen uncover their boats, and the tourists take photos and post them on social media."},{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:48", "loadParams" : false, "position" : [223,635], "size" : [1370,200], "textAlignment" : ["center","left or top"], "wrapOverflow" : true}, "name" : "lbl_result_subtext", "priority" : 11, "record" : true, "text" : "They have all survived the Storm of 2018, thanks to your guidance, Mayor! "}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : null, "positionRelative" : false, "resource" : "2d/bg/PrepBG", "scale" : null}, "name" : "spr_bg", "priority" : null, "record" : null},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [210,210], "positionRelative" : null, "resource" : "2d/ui/panels/9patch-HintPanel", "scale" : [22.5,9.5]}, "name" : "spr_hint_backing", "priority" : 1, "record" : null},{ "inheritable" : { "loadParams" : true, "origin" : null, "position" : [444,413], "positionRelative" : null, "resource" : "2d/prep/Prep_Breakwater", "scale" : [0.9,0.9]}, "name" : "ref_prepScenarioImg", "priority" : 10, "record" : null},{ "inheritable" : { "loadParams" : true, "origin" : "topCenter", "position" : [0,172], "positionRelative" : false, "resource" : "2d/ui/result/Victory", "scale" : null}, "name" : "spr_title", "priority" : 10, "record" : true}]}}; assets_JsonAssets._layouts_SocialFeedComment = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "label" : [{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:28", "loadParams" : false, "position" : [89,24], "size" : [600,150], "wrapOverflow" : true}, "name" : "lbl_comment", "priority" : 11, "record" : true, "text" : "Increase your security to try to fight off the pirates!"},{ "inheritable" : { "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [89,-19], "size" : [650,100], "wrapOverflow" : true}, "name" : "lbl_name", "priority" : 11, "record" : true, "text" : "Jelly Cheesecake"}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [44,43], "resource" : "2d/ui/icons/UserIconBacking"}, "name" : "spr_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [44,43], "resource" : "2d/ui/icons/UserIcon"}, "name" : "spr_user", "priority" : 2, "record" : true}]}}; assets_JsonAssets._layouts_SocialFeedMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "inheritable" : { "loadParams" : false, "position" : [10,8]}, "name" : "ref_comment_1", "priority" : 15},{ "inheritable" : { "loadParams" : false, "position" : [10,168]}, "name" : "ref_comment_2", "priority" : 15},{ "inheritable" : { "loadParams" : false, "position" : [10,322]}, "name" : "ref_comment_3", "priority" : 15}]}}; assets_JsonAssets._layouts_SplashMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : null, "positionRelative" : false, "resource" : "2d/bg/TitleBG", "scale" : null}, "name" : "spr_bg"},{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : [778,474], "positionRelative" : false, "resource" : "2d/title/eli_logo", "scale" : [0.6,0.6]}, "name" : "spr_eliLogo"}]}}; assets_JsonAssets._layouts_StakeholderPopup = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "button" : [{ "inheritable" : { "loadParams" : true, "position" : [922,715], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [4.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [304,76], "textAlignment" : ["center","left or top"]}, "name" : "lbl_accept", "record" : true, "text" : "BUTTON_CONTINUE"}], "name" : "btn_accept", "priority" : 10, "record" : true}], "inheritable" : { "loadParams" : false, "position" : [-120,-20]}, "label" : [{ "inheritable" : { "autoSize" : true, "clipOverflow" : null, "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:30", "loadParams" : false, "position" : [653,262], "size" : null, "wrapOverflow" : null}, "name" : "lbl_prep_header", "priority" : 11, "record" : true, "text" : "Increase Security"},{ "inheritable" : { "autoSize" : null, "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-Regular.ttf:30", "loadParams" : false, "position" : [924,404], "size" : [600,300], "wrapOverflow" : true}, "name" : "lbl_description", "priority" : 11, "record" : true, "text" : "Increase your security to try to fight off the pirates!"},{ "inheritable" : { "autoSize" : null, "clipOverflow" : true, "color" : [0,0,0], "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [986,338], "size" : [100,60], "wrapOverflow" : true}, "name" : "lbl_statValue", "priority" : 11, "record" : true, "text" : "100"}], "name" : "pnl_popup", "priority" : 100, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [547,243], "resource" : "2d/ui/panels/9patch-HintPopupPanel", "scale" : [2.3,2.3], "visible" : null}, "name" : "spr_backing", "priority" : null, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [949,369], "resource" : "2d/ui/icons/trade", "scale" : null, "visible" : false}, "name" : "ref_effect", "priority" : 11, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [750,482], "resource" : "2d/stakeholders/SH_EmergencyWorkers", "scale" : [0.9,0.9], "visible" : null}, "name" : "spr_portrait", "priority" : 11, "record" : true}]}], "spriteObject" : [{ "id" : 1, "inheritable" : { "loadParams" : true, "opacity" : 8, "resource" : "2d/shared/coverBlack", "scale" : [227.5,128.0]}, "name" : "spr_darkOverlay", "record" : true}]}}; assets_JsonAssets._layouts_TimelineMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "inheritable" : { "loadParams" : false, "position" : [40,0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-41,7], "size" : [150,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_year", "priority" : 11, "record" : true, "text" : "STAGE"}], "name" : "pnl_timeline", "priority" : 10, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [10,460], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_6", "priority" : 20, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [28,387], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_5", "priority" : 20, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [42,314], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_4", "priority" : 20, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [45,241], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_3", "priority" : 20, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [29,606], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_8", "priority" : 20, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [17,533], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_7", "priority" : 20, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [30,168], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_2", "priority" : 20, "record" : true},{ "inheritable" : { "loadParams" : true, "position" : [29,95], "resource" : "2d/ui/hud/year_default", "visible" : false}, "name" : "ref_year_1", "priority" : 20, "record" : true}]}]}}; assets_JsonAssets._layouts_TimelineNode = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "menuProperties" : { "inheritable" : { "loadParams" : false}}, "panel" : [{ "inheritable" : { "loadParams" : false, "position" : [-32,-32]}, "label" : [{ "inheritable" : { "color" : [7,15,22], "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-17,8], "size" : [100,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_year_default", "priority" : 20, "record" : true, "text" : "1"}], "name" : "pnl_timeline_default", "priority" : 10, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [32,32], "resource" : "2d/ui/hud/year_default"}, "name" : "spr_year_default", "priority" : 1}]},{ "inheritable" : { "loadParams" : false, "position" : [-32,-32]}, "label" : [{ "inheritable" : { "color" : null, "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-17,8], "size" : [100,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_year_current", "priority" : 20, "record" : true, "text" : "1"}], "name" : "pnl_timeline_current", "priority" : 10, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [32,32], "resource" : "2d/ui/hud/year_current"}, "name" : "spr_year_current", "priority" : 1}]},{ "inheritable" : { "loadParams" : false, "position" : [-32,-32]}, "label" : [{ "inheritable" : { "color" : [7,15,22], "font" : "/fonts/OpenSans-Bold.ttf:36", "loadParams" : false, "position" : [-17,8], "size" : [100,50], "textAlignment" : ["center","left or top"]}, "name" : "lbl_year_completed", "priority" : 20, "record" : true, "text" : "1"}], "name" : "pnl_timeline_completed", "priority" : 10, "record" : true, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "position" : [32,32], "resource" : "2d/ui/hud/year_completed"}, "name" : "spr_year_completed", "priority" : 1}]}]}}; assets_JsonAssets._layouts_TitleMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1024,768]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "id" : null, "inheritable" : { "loadParams" : true, "position" : [698,844], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [5.0,1.25]}, "name" : "btn_play", "priority" : 10, "record" : true},{ "id" : 1, "inheritable" : { "loadParams" : true, "position" : [704,952], "resource" : "2d/ui/buttons/9patch-Secondary", "scale" : [5.0,0.75]}, "name" : "btn_about", "priority" : 10, "record" : true}], "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [708,956], "size" : [380,70], "textAlignment" : ["center","left or top"]}, "name" : "lbl_about", "priority" : 100, "stringTable" : null, "text" : "About"},{ "inheritable" : { "font" : "/fonts/OpenSans-Bold.ttf:48", "loadParams" : false, "position" : [700,852], "size" : [380,114], "textAlignment" : ["center","left or top"]}, "name" : "lbl_play", "priority" : 100, "stringTable" : "gamestrings", "text" : "BUTTON_PLAY"}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : null, "positionRelative" : false, "resource" : "2d/bg/TitleBG", "scale" : null}, "name" : "spr_bg"},{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "position" : [808,464], "positionRelative" : false, "resource" : "2d/title/eli_logo", "scale" : [0.6,0.6]}, "name" : "spr_eliLogo"}]}}; assets_JsonAssets._layouts_YearMenu = { "fileProperties" : { "CustomPlatformSize" : { "Responsive" : [1820,1024]}, "contentType" : "menu", "platform" : ["Responsive"], "screenOrientation" : "Landscape", "version" : 3.2}, "topMenu" : { "button" : [{ "inheritable" : { "loadParams" : true, "position" : [728,888], "resource" : "2d/ui/buttons/9patch-Primary", "scale" : [5.0,1.0]}, "label" : [{ "inheritable" : { "font" : "/fonts/OpenSans-SemiBold.ttf:30", "loadParams" : false, "position" : [0,7], "size" : [380,70], "textAlignment" : ["center","left or top"]}, "name" : "lbl_continue", "text" : "BUTTON_CONTINUE"}], "name" : "btn_continue", "priority" : 10, "record" : true}], "menuProperties" : { "inheritable" : { "loadParams" : false}}, "spriteObject" : [{ "inheritable" : { "loadParams" : true, "origin" : "middleCenter", "positionRelative" : false, "resource" : "2d/bg/PrepBG"}, "name" : "spr_bg"}]}}; assets_SoundLib.SOUNDS = ["SFX_CLICK","SFX_DONE"]; com_firstplayable_hxlib_Debug.m_outStream = new StringBuf(); com_firstplayable_hxlib_Debug.hushes = new haxe_ds_StringMap(); com_firstplayable_hxlib_StdX.INT_MAX = 2147483647; com_firstplayable_hxlib_app_MainLoop.MAX_FRAME_TIME = 250; com_firstplayable_hxlib_app_MainLoop.now = 0; com_firstplayable_hxlib_app_MainLoop.isReady = false; com_firstplayable_hxlib_app_MainLoop.isUpdating = false; com_firstplayable_hxlib_app_MainLoop.currentPhase = -1; com_firstplayable_hxlib_app_MainLoop.lastUpdateTime = 0; com_firstplayable_hxlib_app_UpdatePhase.NO_PHASE = -1; com_firstplayable_hxlib_app_UpdatePhase.SYSTEM = 0; com_firstplayable_hxlib_app_UpdatePhase.GAME_LOGIC = 1; com_firstplayable_hxlib_app_UpdatePhase.ANIMATION = 2; com_firstplayable_hxlib_app_UpdatePhase.NUM_UPDATE_PHASES = 3; com_firstplayable_hxlib_audio_WebAudio.HUSH = true; com_firstplayable_hxlib_audio_WebAudio.VOL_DEFAULT = 0.85; com_firstplayable_hxlib_audio_WebAudio.VOL_DEFAULT_SFX = 0.85; com_firstplayable_hxlib_audio_WebAudio.VOL_DEFAULT_VO = 1.0; com_firstplayable_hxlib_audio_WebAudio.VOL_DEFAULT_JINGLE = 0.9; com_firstplayable_hxlib_audio_WebAudio.VOL_DEFAULT_BGM = 0.65; com_firstplayable_hxlib_audio_WebAudio.VOL_DEFAULT_MOVIE = 1.0; com_firstplayable_hxlib_audio_WebAudio.VOL_DUCKED_BGM = 0.4; com_firstplayable_hxlib_audio_WebAudio.BGM_DUCK_MS = 8; com_firstplayable_hxlib_audio_WebAudio.BGM_UNDUCK_MS = 12; com_firstplayable_hxlib_audio_WebAudio.mute = false; com_firstplayable_hxlib_audio_WebAudio.muteBgm = false; com_firstplayable_hxlib_audio_WebAudio.muteSfx = false; com_firstplayable_hxlib_audio_WebAudio.muteMovie = false; com_firstplayable_hxlib_audio_WebAudio.volume = 0.85; com_firstplayable_hxlib_audio_WebAudio.bgmVolume = 0.65; com_firstplayable_hxlib_audio_WebAudio.duckedBgmVolume = 0.4; com_firstplayable_hxlib_audio_WebAudio.movieVolume = 1.0; openfl_display_BitmapData.__bufferStride = 26; openfl_display_BitmapData.__tempVector = new lime_math_Vector2(); lime_math_Matrix3.__identity = new lime_math_Matrix3(); openfl_geom_Matrix.__identity = new openfl_geom_Matrix(); openfl_geom_Matrix.__matrix3 = new lime_math_Matrix3(); openfl_geom_Matrix.__pool = new lime_utils_ObjectPool_$openfl_$geom_$Matrix(function() { return new openfl_geom_Matrix(); },function(m) { m.identity(); }); com_firstplayable_hxlib_display_GameDisplay.ms_layers = new haxe_ds_StringMap(); com_firstplayable_hxlib_display_GameDisplay.ms_bgFill = new openfl_display_Sprite(); com_firstplayable_hxlib_display_GenericMenu.EMPTY_MENU_NAME = ""; openfl_geom_Rectangle.__pool = new lime_utils_ObjectPool_$openfl_$geom_$Rectangle(function() { return new openfl_geom_Rectangle(); },function(r) { r.setTo(0,0,0,0); }); openfl_geom_Point.__pool = new lime_utils_ObjectPool_$openfl_$geom_$Point(function() { return new openfl_geom_Point(); },function(p) { p.setTo(0,0); }); com_firstplayable_hxlib_display_OPSprite.__tempBounds = new openfl_geom_Rectangle(); com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingEnabled = false; com_firstplayable_hxlib_display_OPSprite.ms_debugDrawingFlags = (function($this) { var $r; var this1 = 0; $r = this1; return $r; }(this)); com_firstplayable_hxlib_display_OPSprite.ms_forceSmoothingOn = true; com_firstplayable_hxlib_display_OPSprite._staticDrawRect = new openfl_geom_Rectangle(); com_firstplayable_hxlib_display_OPSprite._staticDrawMatrix = new openfl_geom_Matrix(); com_firstplayable_hxlib_display_OPSprite._staticDrawPoint = new openfl_geom_Point(); com_firstplayable_hxlib_display_OPSprite._staticDrawZeroPoint = new openfl_geom_Point(0,0); com_firstplayable_hxlib_display_OPSprite._fillColor = 0; com_firstplayable_hxlib_display_GraphicButton.INVALID_ID = -1; com_firstplayable_hxlib_display_GraphicButton.m_isMobile = new EReg("Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile","i").match(window.navigator.userAgent); com_firstplayable_hxlib_display_ParamBoxData.DEBUG_BOX_ALPHA = 0.3; com_firstplayable_hxlib_display_Params.CENTER = "center"; com_firstplayable_hxlib_display_Params.REFPT = "center"; com_firstplayable_hxlib_display_Params.BOUNDS = "bounds"; com_firstplayable_hxlib_display_Params.BOUNDING_BOX = "bounds"; com_firstplayable_hxlib_display_Params.LOOPING = "looping"; com_firstplayable_hxlib_display_Params.ATTACK_BOX = "attackbox"; com_firstplayable_hxlib_display_Params.VULNERABLE_BOX = "vulnerablebox"; com_firstplayable_hxlib_display_Params.ATTACK_SELECT_BOX = "attackselectbox"; com_firstplayable_hxlib_display_Params.OFFSET = "offset"; com_firstplayable_hxlib_display_Params.NO_FRAME = -1; com_firstplayable_hxlib_display_Params.NO_FRAME_STR = "-1"; com_firstplayable_hxlib_display_Params.NO_ID = -1; com_firstplayable_hxlib_display_Params.NO_ID_STR = "-1"; com_firstplayable_hxlib_display_Params.FRAME_FALLBACK = 2; com_firstplayable_hxlib_display_Params.FRAME_OVERLAP = 4; com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$.CENTER = 0; com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$.TOP = 1; com_firstplayable_hxlib_display__$SmartLabel_VerticalAlign_$Impl_$.BOTTOM = 2; com_firstplayable_hxlib_display_SmartLabel.BITMAP_FIT_SCALE = 0.95; com_firstplayable_hxlib_display_SmartLabel.ms_fontMetricOffsets = new haxe_ds_StringMap(); com_firstplayable_hxlib_display_SmartLabel.ms_defaultOffset = { width : 1.08, height : 1.25, xOffset : 0.02, yOffset : -0.1}; com_firstplayable_hxlib_display_anim_SpritesheetAnim.timeline = "_timeline"; spritesheet_data_BehaviorData.uniqueID = 0; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.spaceCode = 32; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.tabCode = 9; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.newLineCode = 10; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.defaultFontKey = "defaultFontKey"; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.defaultFontData = " 36000000000000000000!26101010001000\"46101010100000000000000000#66010100111110010100111110010100000000$56001000111011000001101110000100%66100100000100001000010000010010000000&66011000100000011010100100011010000000'26101000000000(36010100100100010000)36100010010010100000*46000010100100101000000000+46000001001110010000000000,36000000000000010100-46000000001110000000000000.26000000001000/66000010000100001000010000100000000000056011001001010010100100110000000156011000010000100001000010000000256111000001001100100001111000000356111000001001100000101110000000456100101001010010011100001000000556111101000011100000101110000000656011001000011100100100110000000756111000001000010001100001000000856011001001001100100100110000000956011001001010010011100001000000:26001000100000;26001000101000<46001001001000010000100000=46000011100000111000000000>46100001000010010010000000?56111000001001100000000100000000@66011100100010101110101010011100000000A56011001001010010111101001000000B56111001001011100100101110000000C56011001001010000100100110000000D56111001001010010100101110000000E56111101000011000100001111000000F56111101000010000110001000000000G56011001000010110100100111000000H56100101001011110100101001000000I26101010101000J56000100001000010100100110000000K56100101001010010111001001000000L46100010001000100011100000M66100010100010110110101010100010000000N56100101001011010101101001000000O56011001001010010100100110000000P56111001001010010111001000000000Q56011001001010010100100110000010R56111001001010010111001001000000S56011101000001100000101110000000T46111001000100010001000000U56100101001010010100100110000000V56100101001010010101000100000000W66100010100010101010110110100010000000X56100101001001100100101001000000Y56100101001010010011100001001100Z56111100001001100100001111000000[36110100100100110000}46110001000010010011000000]36110010010010110000^46010010100000000000000000_46000000000000000011110000'26101000000000a56000000111010010100100111000000b56100001110010010100101110000000c46000001101000100001100000d56000100111010010100100111000000e56000000110010110110000110000000f46011010001000110010000000g5700000011001001010010011100001001100h56100001110010010100101001000000i26100010101000j37010000010010010010100k56100001001010010111001001000000l26101010101000m66000000111100101010101010101010000000n56000001110010010100101001000000o56000000110010010100100110000000p5700000111001001010010111001000010000q5700000011101001010010011100001000010r46000010101100100010000000s56000000111011000001101110000000t46100011001000100001100000u56000001001010010100100111000000v56000001001010010101000100000000w66000000101010101010101010011110000000x56000001001010010011001001000000y5700000100101001010010011100001001100z56000001111000100010001111000000{46011001001000010001100000|26101010101000}46110001000010010011000000~56010101010000000000000000000000\\46111010101010101011100000"; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.fonts = new haxe_ds_StringMap(); com_firstplayable_hxlib_display_bitmapFont_BitmapFont.DEFAULT_GLYPHS = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"; com_firstplayable_hxlib_display_bitmapFont_BitmapFont.POINT = new openfl_geom_Point(); com_firstplayable_hxlib_display_bitmapFont_BitmapFont.MATRIX = new openfl_geom_Matrix(); com_firstplayable_hxlib_display_bitmapFont_BitmapFont.COLOR_TRANSFORM = new openfl_geom_ColorTransform(); com_firstplayable_hxlib_display_bitmapFont_BitmapGlyphCollection.ms_glyphCollectionMap = new haxe_ds_StringMap(); openfl_events_Event.ACTIVATE = "activate"; openfl_events_Event.ADDED = "added"; openfl_events_Event.ADDED_TO_STAGE = "addedToStage"; openfl_events_Event.CANCEL = "cancel"; openfl_events_Event.CHANGE = "change"; openfl_events_Event.CLEAR = "clear"; openfl_events_Event.CLOSE = "close"; openfl_events_Event.COMPLETE = "complete"; openfl_events_Event.CONNECT = "connect"; openfl_events_Event.CONTEXT3D_CREATE = "context3DCreate"; openfl_events_Event.COPY = "copy"; openfl_events_Event.CUT = "cut"; openfl_events_Event.DEACTIVATE = "deactivate"; openfl_events_Event.ENTER_FRAME = "enterFrame"; openfl_events_Event.EXIT_FRAME = "exitFrame"; openfl_events_Event.FRAME_CONSTRUCTED = "frameConstructed"; openfl_events_Event.FRAME_LABEL = "frameLabel"; openfl_events_Event.FULLSCREEN = "fullScreen"; openfl_events_Event.ID3 = "id3"; openfl_events_Event.INIT = "init"; openfl_events_Event.MOUSE_LEAVE = "mouseLeave"; openfl_events_Event.OPEN = "open"; openfl_events_Event.PASTE = "paste"; openfl_events_Event.REMOVED = "removed"; openfl_events_Event.REMOVED_FROM_STAGE = "removedFromStage"; openfl_events_Event.RENDER = "render"; openfl_events_Event.RESIZE = "resize"; openfl_events_Event.SCROLL = "scroll"; openfl_events_Event.SELECT = "select"; openfl_events_Event.SELECT_ALL = "selectAll"; openfl_events_Event.SOUND_COMPLETE = "soundComplete"; openfl_events_Event.TAB_CHILDREN_CHANGE = "tabChildrenChange"; openfl_events_Event.TAB_ENABLED_CHANGE = "tabEnabledChange"; openfl_events_Event.TAB_INDEX_CHANGE = "tabIndexChange"; openfl_events_Event.TEXTURE_READY = "textureReady"; openfl_events_Event.UNLOAD = "unload"; com_firstplayable_hxlib_events_AnimEvent.COMPLETE = "animcomplete"; com_firstplayable_hxlib_events_AnimEvent.LAST_FRAME = "animlastframe"; com_firstplayable_hxlib_events_VolumeChangedEvent.VOLUME_CHANGED_MOVIE = "VolumeChanged_MOVIE"; com_firstplayable_hxlib_loader_ResMan.HUSH = true; com_firstplayable_hxlib_loader_ResMan.MISSING_IMAGE = "MISSING_IMAGE"; com_firstplayable_hxlib_loader_ResMan.MISSING_IMAGE_DATA = "MISSING_IMAGE_DATA"; com_firstplayable_hxlib_loader_ResMan.MISSING_SOUND = "MISSING_SOUND"; com_firstplayable_hxlib_loader_ResMan.MISSING_TEXT = "MISSING_TEXT"; com_firstplayable_hxlib_loader_ResMan.MISSING_SHEET = "MISSING_SHEET"; com_firstplayable_hxlib_loader_ResMan.DEFAULT_LIB = "DEFAULT"; com_firstplayable_hxlib_loader_ResMan.SPRITESHEET_LIB = "SPRITESHEET"; com_firstplayable_hxlib_net_apis_GoogleAnalyticsApi.win = window; com_firstplayable_hxlib_net_apis_TwitterApi.BUTTON_ID = "tweet_btn"; com_firstplayable_hxlib_state_StateManager.m_rStates = new haxe_ds_IntMap(); openfl_Lib.current = new openfl_display_MovieClip(); openfl_Lib.__sentWarnings = new haxe_ds_StringMap(); com_firstplayable_hxlib_utils_DeviceCapabilities.isWidescreen = com_firstplayable_hxlib_utils_DeviceCapabilities.aspectRatio() > 1.5; com_firstplayable_hxlib_utils_MathUtils.RADIANS_MULTIPLIER = 0.0174532925; com_firstplayable_hxlib_utils_MathUtils.DEGREES_MULTIPLIER = 57.2957795; openfl_text_TextField.__missingFontWarning = new haxe_ds_StringMap(); com_firstplayable_hxlib_utils_Version.versionInfo = ""; com_firstplayable_hxlib_utils_json_JsonMenuMakerDirectory.HUSH = true; com_firstplayable_hxlib_utils_json_JsonMenuPlugIn.OBJECT_TYPES = ["spriteObject","button","label","panel","borderPanel","ninePatchPanel"]; com_firstplayable_hxlib_utils_json_JsonMenuPlugIn.MAX_OPACITY = 31; com_firstplayable_hxlib_utils_json_LayoutMap.widescreenThreshold = 1.5; com_firstplayable_hxlib_utils_json_LayoutMap.m_map = (function($this) { var $r; com_firstplayable_hxlib_utils_json_LayoutMap.m_map = new haxe_ds_EnumValueMap(); com_firstplayable_hxlib_utils_json_LayoutMap.m_map.set(com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom1,new openfl_geom_Point(576,1024)); com_firstplayable_hxlib_utils_json_LayoutMap.m_map.set(com_firstplayable_hxlib_utils_json_SupportedPlatform.Custom2,new openfl_geom_Point(768,1024)); $r = com_firstplayable_hxlib_utils_json_LayoutMap.m_map; return $r; }(this)); game_data_GameCMS.RESULTS_ROUND_IDX = -1; game_data_GameCMS.REGION_DATA_PATH = "data/regions.json"; game_data_GameCMS.STORY_DATA_PATH = "data/stories.json"; game_data_GameCMS.GAMESTRINGS_DATA_PATH = "data/gamestrings.json"; game_defs_Analytics.ANALYTICS_TRACKING_ID = "UA-3661490-2"; game_defs_Analytics.ANALYTICS_APP_NAME = "Digital Cards Against Calamity"; game_defs_AudioDefs.SFX_BUTTON_CLICK = "SFX_CLICK"; game_defs_AudioDefs.SFX_ADD = "SFX_Add"; game_defs_AudioDefs.SFX_DONE = "SFX_DONE"; game_defs_AudioDefs.SFX_ACCEPT = "UI_Accept"; game_defs_AudioDefs.SHARED_SFX_LIST = ["SFX_CLICK","SFX_Add","SFX_DONE","UI_Accept"]; game_defs__$RegionType_RegionType_$Impl_$.NEW_ENGLAND = "New England"; game_defs__$RegionType_RegionType_$Impl_$.PACIFIC = "Pacific"; game_defs__$RegionType_RegionType_$Impl_$.MID_ATLANTIC = "Mid-Atlantic"; game_defs__$RegionType_RegionType_$Impl_$.SOUTH_ATLANTIC = "South Atlantic"; game_defs__$RegionType_RegionType_$Impl_$.GULF_OF_MEXICO = "Gulf of Mexico"; game_defs__$RegionType_RegionType_$Impl_$.ALASKA = "Alaska"; game_defs__$RegionType_RegionType_$Impl_$.CARIBBEAN = "Caribbean"; game_defs__$RegionType_RegionType_$Impl_$.WESTERN_PACIFIC = "Western Pacific"; game_defs_ResourceIcons.ICON_ASSETS = (function($this) { var $r; var _g = new haxe_ds_StringMap(); { var key = "Fishing"; if(__map_reserved[key] != null) { _g.setReserved(key,"2d/ui/icons/fish"); } else { _g.h[key] = "2d/ui/icons/fish"; } } { var key1 = "Services"; if(__map_reserved[key1] != null) { _g.setReserved(key1,"2d/ui/icons/services"); } else { _g.h[key1] = "2d/ui/icons/services"; } } { var key2 = "Tourism"; if(__map_reserved[key2] != null) { _g.setReserved(key2,"2d/ui/icons/tourism"); } else { _g.h[key2] = "2d/ui/icons/tourism"; } } { var key3 = "Trade"; if(__map_reserved[key3] != null) { _g.setReserved(key3,"2d/ui/icons/trade"); } else { _g.h[key3] = "2d/ui/icons/trade"; } } { var key4 = "Resilience"; if(__map_reserved[key4] != null) { _g.setReserved(key4,"2d/ui/icons/community"); } else { _g.h[key4] = "2d/ui/icons/community"; } } { var key5 = "Social"; if(__map_reserved[key5] != null) { _g.setReserved(key5,"2d/ui/icons/SocialCapital"); } else { _g.h[key5] = "2d/ui/icons/SocialCapital"; } } { var key6 = "None"; if(__map_reserved[key6] != null) { _g.setReserved(key6,"2d/ui/icons/NoChange"); } else { _g.h[key6] = "2d/ui/icons/NoChange"; } } if(__map_reserved["EVENT"] != null) { _g.setReserved("EVENT","2d/ui/icons/event"); } else { _g.h["EVENT"] = "2d/ui/icons/event"; } $r = _g; return $r; }(this)); game_defs_ResourceIcons.PORTRAIT_ASSETS = (function($this) { var $r; var _g = new haxe_ds_StringMap(); { var key = "Fishing"; if(__map_reserved[key] != null) { _g.setReserved(key,"2d/stakeholders/SH_IndustrialFishing"); } else { _g.h[key] = "2d/stakeholders/SH_IndustrialFishing"; } } { var key1 = "Services"; if(__map_reserved[key1] != null) { _g.setReserved(key1,"2d/stakeholders/SH_EmergencyWorkers"); } else { _g.h[key1] = "2d/stakeholders/SH_EmergencyWorkers"; } } { var key2 = "Tourism"; if(__map_reserved[key2] != null) { _g.setReserved(key2,"2d/stakeholders/SH_TourismIndustry"); } else { _g.h[key2] = "2d/stakeholders/SH_TourismIndustry"; } } { var key3 = "Trade"; if(__map_reserved[key3] != null) { _g.setReserved(key3,"2d/stakeholders/SH_SmallBusinessOwners"); } else { _g.h[key3] = "2d/stakeholders/SH_SmallBusinessOwners"; } } { var key4 = "Resilience"; if(__map_reserved[key4] != null) { _g.setReserved(key4,"2d/stakeholders/SH_ConstructionWorkers"); } else { _g.h[key4] = "2d/stakeholders/SH_ConstructionWorkers"; } } { var key5 = "Social"; if(__map_reserved[key5] != null) { _g.setReserved(key5,"2d/stakeholders/SH_PTFishing2"); } else { _g.h[key5] = "2d/stakeholders/SH_PTFishing2"; } } $r = _g; return $r; }(this)); game_defs__$ResourceType_ResourceType_$Impl_$.FISHING = "Fishing"; game_defs__$ResourceType_ResourceType_$Impl_$.SERVICES = "Services"; game_defs__$ResourceType_ResourceType_$Impl_$.TOURISM = "Tourism"; game_defs__$ResourceType_ResourceType_$Impl_$.TRADE = "Trade"; game_defs__$ResourceType_ResourceType_$Impl_$.RESILIENCE = "Resilience"; game_defs__$ResourceType_ResourceType_$Impl_$.SOCIAL = "Social"; game_defs__$ResourceType_ResourceType_$Impl_$.NONE = "None"; game_defs_TransitionDefs.CARD = "Card"; game_events_GameUiEvent.PREP_CHOICE_HIDDEN = "GAMEPLAY_PREP_CHOICE_HIDDEN"; game_events_GameUiEvent.PREP_CHOICE_SHOWN = "GAMEPLAY_PREP_CHOICE_SHOWN"; game_events_GameUiEvent.EVENT_CHOICE_HIDDEN = "GAMEPLAY_EVENT_CHOICE_HIDDEN"; game_events_GameUiEvent.EVENT_CHOICE_SHOWN = "GAMEPLAY_EVENT_CHOICE_SHOWN"; game_events_GameUiEvent.SOCIAL_SCROLL_COMPLETE = "SOCIAL_SCROLL_COMPLETE"; game_events_GameUiEvent.HUD_ICON_MOVE_COMPLETE = "HUD_ICON_MOVE_COMPLETE"; game_events_GameUiEvent.HUD_REPLENISH_COMPLETE = "HUD_REPLENISH_COMPLETE"; game_events_GameplayEvent.CHOICE_SELECTED = "GAMEPLAY_CHOICE_SELECTED"; game_events_GameplayEvent.CHOICE_ACCEPTED = "GAMEPLAY_CHOICE_ACCEPTED"; game_events_GameplayEvent.CHOICE_REJECTED = "GAMEPLAY_CHOICE_REJECTED"; game_events_GameplayEvent.ICON_CLICKED = "ICON_CLICKED"; game_events_MenuEvent.MENU_COMPLETE = "MenuComplete"; game_events_TransitionEvent.SUBSTATE = "Substate"; game_events_TransitionEvent.STATE = "State"; game_events_TransitionEvent.TRANSITION_COMPLETE = "Transition complete"; game_shared_ui_ImpactIcon.LAYOUT_NAME = "PanelIcons"; game_shared_ui_ImpactIcon.VALUE_LBL_NAME = "lbl_stat"; game_shared_ui_ImpactIcon.TYPE_ICON_NAME = "spr_icon"; game_shared_ui_ImpactIcon.INCREASE_BACKING_NAME = "spr_iconBacking_increase"; game_shared_ui_ImpactIcon.DECREASE_BACKING_NAME = "spr_iconBacking_decrease"; game_shared_ui_popups_BasePopupMenu.BACKGROUND_ALPHA = 0.3; game_states_gameplay_CommunityPopup.LAYOUT_NAME = "CommunityPopup"; game_states_gameplay_CommunityPopup.SLIDE_SPEED = 0.2; game_states_gameplay_CommunityPopup.TITLE_TEXT_NAME = "lbl_prep_header"; game_states_gameplay_CommunityPopup.DESCRIPTION_TEXT = "lbl_description"; game_states_gameplay_CommunityPopup.OVERLAY_NAME = "spr_overlay"; game_states_gameplay_CommunityPopup.BACKING_NAME = "spr_backing"; game_states_gameplay_CommunityPopup.IMPACT_ICON_REF_PREFIX = "ref_effect"; game_states_gameplay_CommunityPopup.POPUP_NAME = "pnl_popup"; game_states_gameplay_CommunityPopup.STAT_LABEL = "lbl_statValue"; game_states_gameplay_CommunityPopup.PORTRAIT_NAME = "spr_portrait"; game_states_gameplay_CommunityPopup.PREPARATION_HEADER_ASSET = "2d/ui/panels/9patch-PrepPanel"; game_states_gameplay_CommunityPopup.EVENT_HEADER_ASSET = "2d/ui/panels/9patch-EventPanel"; game_states_gameplay_GameplaySubstate.PARAM_STORY_ID = "storyId"; game_states_gameplay_GameplaySubstate.PARAM_ROUND_ID = "roundId"; game_states_gameplay_GameplaySubstate.PARAM_REGION_ID = "region"; game_states_gameplay_GameplaySubstate.PARAM_PREP_CHOICE_ID = "roundPrepChoiceId"; game_states_gameplay_GameplaySubstate.PARAM_EVENT_CHOICE_ID = "roundEventChoiceId"; game_states_gameplay_GameplaySubstate.PARAM_MENUS = "menus"; game_states_gameplay_GameplaySubstate.PARAM_CARD_ID = "cardId"; game_states_gameplay_GameplaySubstate.PARAM_CHOICE_ID = "choiceId"; game_states_gameplay_CommunitySubstate.SSID = "CommunitySubstate"; game_states_gameplay_CommunitySubstate.TOKEN_INDUSTRY = ""; game_states_gameplay_CommunitySubstate.TOKEN_RESILIENCE_STAT = ""; game_states_gameplay_EventChoiceMenu.LAYOUT_NAME = "EventChoiceMenu"; game_states_gameplay_EventChoiceMenu.FIRST_CHOICE = "EventOptionOne"; game_states_gameplay_EventChoiceMenu.SECOND_CHOICE = "EventOptionTwo"; game_states_gameplay_EventChoiceMenu.THIRD_CHOICE = "EventOptionThree"; game_states_gameplay_EventChoiceMenu.TITLE_NAME = "lbl_prep_header"; game_states_gameplay_EventChoiceMenu.DESCRIPTION_NAME = "lbl_prep_text"; game_states_gameplay_EventChoiceMenu.IMPACT_ICON_REF_PREFIX = "ref_effect"; game_states_gameplay_EventChoiceMenu.SLIDE_TRANSITION_TIME = 0.6; game_states_gameplay_EventSubstate.SSID = "EventSubstate"; game_states_gameplay_GameplayChoicePopup.LAYOUT_NAME = "GameplayChoicePopup"; game_states_gameplay_GameplayChoicePopup.HEIGHT_PADDING = 150; game_states_gameplay_GameplayChoicePopup.BUTTON_PADDING = 20; game_states_gameplay_GameplayChoicePopup.SLIDE_SPEED = 0.2; game_states_gameplay_GameplayChoicePopup.TITLE_TEXT_NAME = "lbl_prep_header"; game_states_gameplay_GameplayChoicePopup.DESCRIPTION_TEXT = "lbl_description"; game_states_gameplay_GameplayChoicePopup.OVERLAY_NAME = "spr_overlay"; game_states_gameplay_GameplayChoicePopup.BACKING_NAME = "spr_backing"; game_states_gameplay_GameplayChoicePopup.IMPACT_ICON_REF_PREFIX = "ref_effect"; game_states_gameplay_GameplayChoicePopup.POPUP_NAME = "pnl_popup"; game_states_gameplay_GameplayChoicePopup.PREPARATION_HEADER_ASSET = "2d/ui/panels/9patch-PrepPanel"; game_states_gameplay_GameplayChoicePopup.EVENT_HEADER_ASSET = "2d/ui/panels/9patch-EventPanel"; game_states_gameplay_GameplayHudMenu.LAYOUT_NAME = "GameHudMenu"; game_states_gameplay_GameplayHudMenu.RESILIENCE_LBL_NAME = "lbl_resilience"; game_states_gameplay_GameplayHudMenu.RESILIENCE_ICON_NAME = "spr_resilience"; game_states_gameplay_GameplayHudMenu.RESILIENCE_PNL_NAME = "pnl_resilience"; game_states_gameplay_GameplayHudMenu.FISHING_LBL_NAME = "lbl_fishing"; game_states_gameplay_GameplayHudMenu.FISHING_ICON_NAME = "spr_fishing"; game_states_gameplay_GameplayHudMenu.FISHING_PNL_NAME = "pnl_fishing"; game_states_gameplay_GameplayHudMenu.FISHING_BACKING_NAME = "spr_fishing_backing"; game_states_gameplay_GameplayHudMenu.SERVICES_LBL_NAME = "lbl_services"; game_states_gameplay_GameplayHudMenu.SERVICES_ICON_NAME = "spr_services"; game_states_gameplay_GameplayHudMenu.SERVICES_PNL_NAME = "pnl_services"; game_states_gameplay_GameplayHudMenu.SERVICES_BACKING_NAME = "spr_services_backing"; game_states_gameplay_GameplayHudMenu.TOURISM_LBL_NAME = "lbl_tourism"; game_states_gameplay_GameplayHudMenu.TOURISM_ICON_NAME = "spr_tourism"; game_states_gameplay_GameplayHudMenu.TOURISM_PNL_NAME = "pnl_tourism"; game_states_gameplay_GameplayHudMenu.TOURISM_BACKING_NAME = "spr_tourism_backing"; game_states_gameplay_GameplayHudMenu.TRADE_LBL_NAME = "lbl_trade"; game_states_gameplay_GameplayHudMenu.TRADE_ICON_NAME = "spr_trade"; game_states_gameplay_GameplayHudMenu.TRADE_PNL_NAME = "pnl_trade"; game_states_gameplay_GameplayHudMenu.TRADE_BACKING_NAME = "spr_tourism_backing"; game_states_gameplay_GameplayHudMenu.SOCIAL_LBL_NAME = "lbl_social"; game_states_gameplay_GameplayHudMenu.SOCIAL_ICON_NAME = "spr_social"; game_states_gameplay_GameplayHudMenu.SOCIAL_PNL_NAME = "pnl_social"; game_states_gameplay_GameplayHudMenu.SOCIAL_BACKING_NAME = "spr_social_backing"; game_states_gameplay_GameplayHudMenu.ICON_FLY_SPEED = 1.5; game_states_gameplay_GameplayHudMenu.ICON_ROCK_SPEED = 0.25; game_states_gameplay_GameplayHudMenu.ICON_ROCK_OFFSET = 10; game_states_gameplay_GameplayHudMenu.BACKING_BASE_ALPHA = 1; game_states_gameplay_GameplayHudMenu.BACKING_DEPLETED_ALPHA = 0.5; game_states_gameplay_GameplayMenu.LAYOUT_NAME = "GameplayMenu"; game_states_gameplay_GameplayMenu.TEXT_PADDING = 50; game_states_gameplay_GameplayMenu.CROSSFADE_DURATION = 2; game_states_gameplay_GameplayMenu.BANNER_NAME = "spr_half_banner"; game_states_gameplay_GameplayMenu.PREPARATION_HEADER_ASSET = "2d/ui/panels/9patch-PrepHalfBanner"; game_states_gameplay_GameplayMenu.EVENT_HEADER_ASSET = "2d/ui/panels/9patch-EventHalfBanner"; game_states_gameplay_GameplayMenu.NEWS_TEXT_BACKING_ASSET = "2d/ui/coverSpriteBlack"; game_states_gameplay_GameplayMenu.PATH_SCENARIO_PREP = "2d/prep/"; game_states_gameplay_GameplayMenu.PATH_SCENARIO_EVENT = "2d/events/"; game_states_gameplay_GameplayMenu.SPR_PREP_SCENARIO = "ref_prepScenarioImg"; game_states_gameplay_GameplayMenu.SPR_EVENT_SCENARIO = "ref_eventScenarioImg"; game_states_gameplay_GameplayMenu.SPR_NEWS_TEXT_BACKING = "spr_overlay"; game_states_gameplay_GameplayMenu.LBL_NEWS_TEXT = "lbl_news_text"; game_states_gameplay_GameplayMenu.SPR_HUD_BACKING = "spr_hud_backing_left"; game_states_gameplay_GameplayMenu.LBL_NEWS_TITLE = "lbl_news_title"; game_states_gameplay_GameplayMenu.PNL_HINT = "pnl_hint"; game_states_gameplay_GameplayState.GAME_OVER = "GAME_OVER"; game_states_gameplay_GameplayState.REF_HUD_NAME = "ref_hud"; game_states_gameplay_GameplayState.REF_TIMELINE_NAME = "ref_timeline"; game_states_gameplay_GameplayState.REF_SOCIAL_FEED_NAME = "ref_socialFeed"; game_states_gameplay_GameplayState.REF_PREP_FIRST_CHOICE_NAME = "ref_prep_choice1"; game_states_gameplay_GameplayState.REF_PREP_SECOND_CHOICE_NAME = "ref_prep_choice2"; game_states_gameplay_GameplayState.REF_EVENT_FIRST_CHOICE_NAME = "ref_event_choice1"; game_states_gameplay_GameplayState.REF_EVENT_SECOND_CHOICE_NAME = "ref_event_choice2"; game_states_gameplay_GameplayState.REF_EVENT_THIRD_CHOICE_NAME = "ref_event_choice3"; game_states_gameplay_GameplayState.MIN_STAT_THRESHOLD = 0; game_states_gameplay_GameplayState.TAPS_TO_UNLOCK_CHEAT = 10; game_states_gameplay_GameplayState.hush = com_firstplayable_hxlib_Debug.hush(null,{ fileName : "GameplayState.hx", lineNumber : 65, className : "game.states.gameplay.GameplayState", methodName : "hush"}); game_states_gameplay_GameplayTimelineMenu.LAYOUT_NAME = "TimelineMenu"; game_states_gameplay_GameplayTimelineMenu.NODE_NAME_BASE = "ref_year_"; game_states_gameplay_GameplayTimelineMenu.YEAR_LBL_NAME = "lbl_year"; game_states_gameplay_GameplayTimelineMenu.LINE_THICKNESS = 8; game_states_gameplay_GameplayTimelineMenu.LINE_COLOR = 12314623; game_states_gameplay_GameplayTimelineMenu.NODE_PULSE_DURATION = 0.5; game_states_gameplay_GameplayTimelineMenu.NODE_PULSE_SCALE = 1.25; game_states_gameplay_GameplayTimelineNodeMenu.LAYOUT_NAME = "TimelineNode"; game_states_gameplay_GameplayTimelineNodeMenu.NODE_PANEL_NAME = "pnl_timeline"; game_states_gameplay_GameplayTimelineNodeMenu.BACKING_SPRITE_NAME = "spr_year"; game_states_gameplay_GameplayTimelineNodeMenu.YEAR_LABEL_NAME = "lbl_year"; game_states_gameplay_PreparationChoiceMenu.LAYOUT_NAME = "PreparationChoiceMenu"; game_states_gameplay_PreparationChoiceMenu.FIRST_CHOICE = "PreparationOptionOne"; game_states_gameplay_PreparationChoiceMenu.SECOND_CHOICE = "PreparationOptionTwo"; game_states_gameplay_PreparationChoiceMenu.TITLE_NAME = "lbl_prep_header"; game_states_gameplay_PreparationChoiceMenu.TEXT_NAME = "lbl_prep_text"; game_states_gameplay_PreparationChoiceMenu.IMPACT_ICON_REF_PREFIX = "ref_effect"; game_states_gameplay_PreparationChoiceMenu.SLIDE_TRANSITION_TIME = 0.6; game_states_gameplay_PreparationSubstate.SSID = "PreparationSubstate"; game_states_gameplay_RoundIntroSubstate.SSID = "RoundIntroSubstate"; game_states_gameplay_RoundIntroSubstate.PARAM_ROUNDS_COMPLETE = "RoundsComplete"; game_states_gameplay_RoundIntroSubstate.NUM_STARTING_CHATTER_LINES = 3; game_states_gameplay_RoundOutroSubstate.SSID = "RoundOutroSubstate"; game_states_gameplay_RoundOutroSubstate.NUM_STARTING_CHATTER_LINES = 3; game_states_gameplay_SocialFeedComment.LAYOUT_NAME = "SocialFeedComment"; game_states_gameplay_SocialFeedComment.USER_AVATAR_NAME = "spr_user"; game_states_gameplay_SocialFeedComment.TITLE_LABEL_NAME = "lbl_name"; game_states_gameplay_SocialFeedComment.COMMENT_LABEL_NAME = "lbl_comment"; game_states_gameplay_SocialFeedComment.DEFAULT_ICON_PATH = "2d/ui/icons/UserIcon"; game_states_gameplay_SocialFeedComment.COMMENT_HEIGHT_PADDING = 100; game_states_gameplay_SocialFeedMenu.LAYOUT_NAME = "SocialFeedMenu"; game_states_gameplay_SocialFeedMenu.NEWEST_POST_Y_POS = 650; game_states_gameplay_SocialFeedMenu.SCROLL_SPEED = 1.5; game_states_gameplay_StakeholderPopup.LAYOUT_NAME = "StakeholderPopup"; game_states_gameplay_StakeholderPopup.HEIGHT_PADDING = 150; game_states_gameplay_StakeholderPopup.BUTTON_PADDING = 20; game_states_gameplay_StakeholderPopup.SLIDE_SPEED = 0.2; game_states_gameplay_StakeholderPopup.TITLE_TEXT_NAME = "lbl_prep_header"; game_states_gameplay_StakeholderPopup.DESCRIPTION_TEXT = "lbl_description"; game_states_gameplay_StakeholderPopup.OVERLAY_NAME = "spr_overlay"; game_states_gameplay_StakeholderPopup.BACKING_NAME = "spr_backing"; game_states_gameplay_StakeholderPopup.IMPACT_ICON_REF_PREFIX = "ref_effect"; game_states_gameplay_StakeholderPopup.POPUP_NAME = "pnl_popup"; game_states_gameplay_StakeholderPopup.PORTRAIT_NAME = "spr_portrait"; game_states_gameplay_StakeholderPopup.STAT_VALUE_NAME = "lbl_statValue"; game_states_gameplay_StakeholderPopup.PREPARATION_HEADER_ASSET = "2d/ui/panels/9patch-PrepPanel"; game_states_gameplay_StakeholderPopup.EVENT_HEADER_ASSET = "2d/ui/panels/9patch-EventPanel"; game_states_intro_IntroMenu.LAYOUT_NAME = "IntroMenu"; game_states_intro_IntroMenu.LBL_TEXT = "lbl_narrative_text"; game_states_levelSelect_LevelButtonMenu.LAYOUT_NAME = "LevelSelect"; game_states_levelSelect_LevelButtonMenu.LEVEL_BTN_NAME = "btn_level"; game_states_levelSelect_LevelButtonMenu.LEVEL_TITLE_NAME = "lbl_prep_header"; game_states_levelSelect_LevelButtonMenu.LEVEL_DESC_NAME = "lbl_prep_text"; game_states_levelSelect_LevelButtonMenu.LEVEL_NEW_ICON_NAME = "spr_level_new"; game_states_levelSelect_LevelButtonMenu.LEVEL_LOCK_NAME = "spr_level_locked"; game_states_levelSelect_LevelSelectEvent.LEVEL_SELECTED = "LEVEL_SELECTED"; game_states_levelSelect_LevelSelectEvent.REGION_SELECTED = "REGION_SELECTED"; game_states_levelSelect_LevelSelectMenu.LAYOUT_NAME = "LevelSelectMenu"; game_states_levelSelect_LevelSelectMenu.REF_LEVEL_BUTTON_NAME = "ref_level_"; game_states_levelSelect_LevelSelectMenu.LEVEL_NAME_PREFIX = "Level "; game_states_regionSelect_RegionSelectMenu.LAYOUT_NAME = "RegionSelectMenu"; game_states_results_ResultsMenu.LAYOUT_NAME = "ResultsMenu"; game_states_results_ResultsMenu.SPR_TITLE = "spr_title"; game_states_results_ResultsMenu.LBL_DESCRIPTION = "lbl_result_text"; game_states_results_ResultsMenu.LBL_DESCRIPTION_SUMMARY = "lbl_result_subtext"; game_states_results_ResultsMenu.BTN_CONTINUE = "btn_continue"; game_states_results_ResultsMenu.BTN_LEVEL_SELECT = "btn_levelSelect"; game_states_results_ResultsMenu.BTN_REPLAY = "btn_replay"; game_states_results_ResultsMenu.SPR_PATH_VICTORY = "2d/ui/result/Victory"; game_states_results_ResultsMenu.SPR_PATH_DEFEAT = "2d/ui/result/Defeat"; game_states_results_ResultsState.MIN_SOCIAL_THRESHOLD = 0; game_states_splash_SplashMenu.LAYOUT_NAME = "SplashMenu"; game_states_splash_SplashMenu.LOAD_LIST = ["TitleMenu"]; game_states_splash_SplashState.MENU_LOAD_LIST = ["TitleMenu","IntroMenu","RegionSelectMenu","LevelSelectMenu","GameplayMenu","GameplayChoicePopup","PreparationChoiceMenu","EventChoiceMenu","StakeholderPopup","ResultsMenu"]; haxe_Serializer.USE_CACHE = false; haxe_Serializer.USE_ENUM_INDEX = false; haxe_Serializer.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:"; haxe_Unserializer.DEFAULT_RESOLVER = new haxe__$Unserializer_DefaultResolver(); haxe_Unserializer.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:"; haxe_crypto_Base64.CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; haxe_crypto_Base64.BYTES = haxe_io_Bytes.ofString(haxe_crypto_Base64.CHARS); haxe_ds_ObjectMap.count = 0; haxe_io_FPHelper.i64tmp = (function($this) { var $r; var this1 = new haxe__$Int64__$_$_$Int64(0,0); $r = this1; return $r; }(this)); haxe_io_FPHelper.LN2 = 0.6931471805599453; haxe_xml_Parser.escapes = (function($this) { var $r; var h = new haxe_ds_StringMap(); if(__map_reserved["lt"] != null) { h.setReserved("lt","<"); } else { h.h["lt"] = "<"; } if(__map_reserved["gt"] != null) { h.setReserved("gt",">"); } else { h.h["gt"] = ">"; } if(__map_reserved["amp"] != null) { h.setReserved("amp","&"); } else { h.h["amp"] = "&"; } if(__map_reserved["quot"] != null) { h.setReserved("quot","\""); } else { h.h["quot"] = "\""; } if(__map_reserved["apos"] != null) { h.setReserved("apos","'"); } else { h.h["apos"] = "'"; } $r = h; return $r; }(this)); haxe_zip_InflateImpl.LEN_EXTRA_BITS_TBL = [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,-1,-1]; haxe_zip_InflateImpl.LEN_BASE_VAL_TBL = [3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258]; haxe_zip_InflateImpl.DIST_EXTRA_BITS_TBL = [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,-1,-1]; haxe_zip_InflateImpl.DIST_BASE_VAL_TBL = [1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577]; haxe_zip_InflateImpl.CODE_LENGTHS_POS = [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]; js_Boot.__toStr = ({ }).toString; js_html_compat_Float32Array.BYTES_PER_ELEMENT = 4; js_html_compat_Float64Array.BYTES_PER_ELEMENT = 8; js_html_compat_Uint8Array.BYTES_PER_ELEMENT = 1; lime__$backend_html5_HTML5HTTPRequest.activeRequests = 0; lime__$backend_html5_HTML5HTTPRequest.requestLimit = 4; lime__$backend_html5_HTML5HTTPRequest.requestQueue = new List(); lime__$backend_html5_HTML5Window.dummyCharacter = ""; lime__$backend_html5_HTML5Window.windowID = 0; lime_graphics_Image.__base64Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; lime_graphics_cairo__$CairoFTFontFace_CairoFTFontFace_$Impl_$.FT_LOAD_FORCE_AUTOHINT = 32; lime_graphics_opengl_GL.DEPTH_BUFFER_BIT = 256; lime_graphics_opengl_GL.STENCIL_BUFFER_BIT = 1024; lime_graphics_opengl_GL.COLOR_BUFFER_BIT = 16384; lime_graphics_opengl_GL.POINTS = 0; lime_graphics_opengl_GL.LINES = 1; lime_graphics_opengl_GL.LINE_LOOP = 2; lime_graphics_opengl_GL.LINE_STRIP = 3; lime_graphics_opengl_GL.TRIANGLES = 4; lime_graphics_opengl_GL.TRIANGLE_STRIP = 5; lime_graphics_opengl_GL.TRIANGLE_FAN = 6; lime_graphics_opengl_GL.ZERO = 0; lime_graphics_opengl_GL.ONE = 1; lime_graphics_opengl_GL.SRC_COLOR = 768; lime_graphics_opengl_GL.ONE_MINUS_SRC_COLOR = 769; lime_graphics_opengl_GL.SRC_ALPHA = 770; lime_graphics_opengl_GL.ONE_MINUS_SRC_ALPHA = 771; lime_graphics_opengl_GL.DST_ALPHA = 772; lime_graphics_opengl_GL.ONE_MINUS_DST_ALPHA = 773; lime_graphics_opengl_GL.DST_COLOR = 774; lime_graphics_opengl_GL.ONE_MINUS_DST_COLOR = 775; lime_graphics_opengl_GL.SRC_ALPHA_SATURATE = 776; lime_graphics_opengl_GL.FUNC_ADD = 32774; lime_graphics_opengl_GL.BLEND_EQUATION = 32777; lime_graphics_opengl_GL.BLEND_EQUATION_RGB = 32777; lime_graphics_opengl_GL.BLEND_EQUATION_ALPHA = 34877; lime_graphics_opengl_GL.FUNC_SUBTRACT = 32778; lime_graphics_opengl_GL.FUNC_REVERSE_SUBTRACT = 32779; lime_graphics_opengl_GL.BLEND_DST_RGB = 32968; lime_graphics_opengl_GL.BLEND_SRC_RGB = 32969; lime_graphics_opengl_GL.BLEND_DST_ALPHA = 32970; lime_graphics_opengl_GL.BLEND_SRC_ALPHA = 32971; lime_graphics_opengl_GL.CONSTANT_COLOR = 32769; lime_graphics_opengl_GL.ONE_MINUS_CONSTANT_COLOR = 32770; lime_graphics_opengl_GL.CONSTANT_ALPHA = 32771; lime_graphics_opengl_GL.ONE_MINUS_CONSTANT_ALPHA = 32772; lime_graphics_opengl_GL.BLEND_COLOR = 32773; lime_graphics_opengl_GL.ARRAY_BUFFER = 34962; lime_graphics_opengl_GL.ELEMENT_ARRAY_BUFFER = 34963; lime_graphics_opengl_GL.ARRAY_BUFFER_BINDING = 34964; lime_graphics_opengl_GL.ELEMENT_ARRAY_BUFFER_BINDING = 34965; lime_graphics_opengl_GL.STREAM_DRAW = 35040; lime_graphics_opengl_GL.STATIC_DRAW = 35044; lime_graphics_opengl_GL.DYNAMIC_DRAW = 35048; lime_graphics_opengl_GL.BUFFER_SIZE = 34660; lime_graphics_opengl_GL.BUFFER_USAGE = 34661; lime_graphics_opengl_GL.CURRENT_VERTEX_ATTRIB = 34342; lime_graphics_opengl_GL.FRONT = 1028; lime_graphics_opengl_GL.BACK = 1029; lime_graphics_opengl_GL.FRONT_AND_BACK = 1032; lime_graphics_opengl_GL.CULL_FACE = 2884; lime_graphics_opengl_GL.BLEND = 3042; lime_graphics_opengl_GL.DITHER = 3024; lime_graphics_opengl_GL.STENCIL_TEST = 2960; lime_graphics_opengl_GL.DEPTH_TEST = 2929; lime_graphics_opengl_GL.SCISSOR_TEST = 3089; lime_graphics_opengl_GL.POLYGON_OFFSET_FILL = 32823; lime_graphics_opengl_GL.SAMPLE_ALPHA_TO_COVERAGE = 32926; lime_graphics_opengl_GL.SAMPLE_COVERAGE = 32928; lime_graphics_opengl_GL.NO_ERROR = 0; lime_graphics_opengl_GL.INVALID_ENUM = 1280; lime_graphics_opengl_GL.INVALID_VALUE = 1281; lime_graphics_opengl_GL.INVALID_OPERATION = 1282; lime_graphics_opengl_GL.OUT_OF_MEMORY = 1285; lime_graphics_opengl_GL.CW = 2304; lime_graphics_opengl_GL.CCW = 2305; lime_graphics_opengl_GL.LINE_WIDTH = 2849; lime_graphics_opengl_GL.ALIASED_POINT_SIZE_RANGE = 33901; lime_graphics_opengl_GL.ALIASED_LINE_WIDTH_RANGE = 33902; lime_graphics_opengl_GL.CULL_FACE_MODE = 2885; lime_graphics_opengl_GL.FRONT_FACE = 2886; lime_graphics_opengl_GL.DEPTH_RANGE = 2928; lime_graphics_opengl_GL.DEPTH_WRITEMASK = 2930; lime_graphics_opengl_GL.DEPTH_CLEAR_VALUE = 2931; lime_graphics_opengl_GL.DEPTH_FUNC = 2932; lime_graphics_opengl_GL.STENCIL_CLEAR_VALUE = 2961; lime_graphics_opengl_GL.STENCIL_FUNC = 2962; lime_graphics_opengl_GL.STENCIL_FAIL = 2964; lime_graphics_opengl_GL.STENCIL_PASS_DEPTH_FAIL = 2965; lime_graphics_opengl_GL.STENCIL_PASS_DEPTH_PASS = 2966; lime_graphics_opengl_GL.STENCIL_REF = 2967; lime_graphics_opengl_GL.STENCIL_VALUE_MASK = 2963; lime_graphics_opengl_GL.STENCIL_WRITEMASK = 2968; lime_graphics_opengl_GL.STENCIL_BACK_FUNC = 34816; lime_graphics_opengl_GL.STENCIL_BACK_FAIL = 34817; lime_graphics_opengl_GL.STENCIL_BACK_PASS_DEPTH_FAIL = 34818; lime_graphics_opengl_GL.STENCIL_BACK_PASS_DEPTH_PASS = 34819; lime_graphics_opengl_GL.STENCIL_BACK_REF = 36003; lime_graphics_opengl_GL.STENCIL_BACK_VALUE_MASK = 36004; lime_graphics_opengl_GL.STENCIL_BACK_WRITEMASK = 36005; lime_graphics_opengl_GL.VIEWPORT = 2978; lime_graphics_opengl_GL.SCISSOR_BOX = 3088; lime_graphics_opengl_GL.COLOR_CLEAR_VALUE = 3106; lime_graphics_opengl_GL.COLOR_WRITEMASK = 3107; lime_graphics_opengl_GL.UNPACK_ALIGNMENT = 3317; lime_graphics_opengl_GL.PACK_ALIGNMENT = 3333; lime_graphics_opengl_GL.MAX_TEXTURE_SIZE = 3379; lime_graphics_opengl_GL.MAX_VIEWPORT_DIMS = 3386; lime_graphics_opengl_GL.SUBPIXEL_BITS = 3408; lime_graphics_opengl_GL.RED_BITS = 3410; lime_graphics_opengl_GL.GREEN_BITS = 3411; lime_graphics_opengl_GL.BLUE_BITS = 3412; lime_graphics_opengl_GL.ALPHA_BITS = 3413; lime_graphics_opengl_GL.DEPTH_BITS = 3414; lime_graphics_opengl_GL.STENCIL_BITS = 3415; lime_graphics_opengl_GL.POLYGON_OFFSET_UNITS = 10752; lime_graphics_opengl_GL.POLYGON_OFFSET_FACTOR = 32824; lime_graphics_opengl_GL.TEXTURE_BINDING_2D = 32873; lime_graphics_opengl_GL.SAMPLE_BUFFERS = 32936; lime_graphics_opengl_GL.SAMPLES = 32937; lime_graphics_opengl_GL.SAMPLE_COVERAGE_VALUE = 32938; lime_graphics_opengl_GL.SAMPLE_COVERAGE_INVERT = 32939; lime_graphics_opengl_GL.NUM_COMPRESSED_TEXTURE_FORMATS = 34466; lime_graphics_opengl_GL.COMPRESSED_TEXTURE_FORMATS = 34467; lime_graphics_opengl_GL.DONT_CARE = 4352; lime_graphics_opengl_GL.FASTEST = 4353; lime_graphics_opengl_GL.NICEST = 4354; lime_graphics_opengl_GL.GENERATE_MIPMAP_HINT = 33170; lime_graphics_opengl_GL.BYTE = 5120; lime_graphics_opengl_GL.UNSIGNED_BYTE = 5121; lime_graphics_opengl_GL.SHORT = 5122; lime_graphics_opengl_GL.UNSIGNED_SHORT = 5123; lime_graphics_opengl_GL.INT = 5124; lime_graphics_opengl_GL.UNSIGNED_INT = 5125; lime_graphics_opengl_GL.FLOAT = 5126; lime_graphics_opengl_GL.DEPTH_COMPONENT = 6402; lime_graphics_opengl_GL.ALPHA = 6406; lime_graphics_opengl_GL.RGB = 6407; lime_graphics_opengl_GL.RGBA = 6408; lime_graphics_opengl_GL.LUMINANCE = 6409; lime_graphics_opengl_GL.LUMINANCE_ALPHA = 6410; lime_graphics_opengl_GL.UNSIGNED_SHORT_4_4_4_4 = 32819; lime_graphics_opengl_GL.UNSIGNED_SHORT_5_5_5_1 = 32820; lime_graphics_opengl_GL.UNSIGNED_SHORT_5_6_5 = 33635; lime_graphics_opengl_GL.FRAGMENT_SHADER = 35632; lime_graphics_opengl_GL.VERTEX_SHADER = 35633; lime_graphics_opengl_GL.MAX_VERTEX_ATTRIBS = 34921; lime_graphics_opengl_GL.MAX_VERTEX_UNIFORM_VECTORS = 36347; lime_graphics_opengl_GL.MAX_VARYING_VECTORS = 36348; lime_graphics_opengl_GL.MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661; lime_graphics_opengl_GL.MAX_VERTEX_TEXTURE_IMAGE_UNITS = 35660; lime_graphics_opengl_GL.MAX_TEXTURE_IMAGE_UNITS = 34930; lime_graphics_opengl_GL.MAX_FRAGMENT_UNIFORM_VECTORS = 36349; lime_graphics_opengl_GL.SHADER_TYPE = 35663; lime_graphics_opengl_GL.DELETE_STATUS = 35712; lime_graphics_opengl_GL.LINK_STATUS = 35714; lime_graphics_opengl_GL.VALIDATE_STATUS = 35715; lime_graphics_opengl_GL.ATTACHED_SHADERS = 35717; lime_graphics_opengl_GL.ACTIVE_UNIFORMS = 35718; lime_graphics_opengl_GL.ACTIVE_ATTRIBUTES = 35721; lime_graphics_opengl_GL.SHADING_LANGUAGE_VERSION = 35724; lime_graphics_opengl_GL.CURRENT_PROGRAM = 35725; lime_graphics_opengl_GL.NEVER = 512; lime_graphics_opengl_GL.LESS = 513; lime_graphics_opengl_GL.EQUAL = 514; lime_graphics_opengl_GL.LEQUAL = 515; lime_graphics_opengl_GL.GREATER = 516; lime_graphics_opengl_GL.NOTEQUAL = 517; lime_graphics_opengl_GL.GEQUAL = 518; lime_graphics_opengl_GL.ALWAYS = 519; lime_graphics_opengl_GL.KEEP = 7680; lime_graphics_opengl_GL.REPLACE = 7681; lime_graphics_opengl_GL.INCR = 7682; lime_graphics_opengl_GL.DECR = 7683; lime_graphics_opengl_GL.INVERT = 5386; lime_graphics_opengl_GL.INCR_WRAP = 34055; lime_graphics_opengl_GL.DECR_WRAP = 34056; lime_graphics_opengl_GL.VENDOR = 7936; lime_graphics_opengl_GL.RENDERER = 7937; lime_graphics_opengl_GL.VERSION = 7938; lime_graphics_opengl_GL.EXTENSIONS = 7939; lime_graphics_opengl_GL.NEAREST = 9728; lime_graphics_opengl_GL.LINEAR = 9729; lime_graphics_opengl_GL.NEAREST_MIPMAP_NEAREST = 9984; lime_graphics_opengl_GL.LINEAR_MIPMAP_NEAREST = 9985; lime_graphics_opengl_GL.NEAREST_MIPMAP_LINEAR = 9986; lime_graphics_opengl_GL.LINEAR_MIPMAP_LINEAR = 9987; lime_graphics_opengl_GL.TEXTURE_MAG_FILTER = 10240; lime_graphics_opengl_GL.TEXTURE_MIN_FILTER = 10241; lime_graphics_opengl_GL.TEXTURE_WRAP_S = 10242; lime_graphics_opengl_GL.TEXTURE_WRAP_T = 10243; lime_graphics_opengl_GL.TEXTURE_2D = 3553; lime_graphics_opengl_GL.TEXTURE = 5890; lime_graphics_opengl_GL.TEXTURE_CUBE_MAP = 34067; lime_graphics_opengl_GL.TEXTURE_BINDING_CUBE_MAP = 34068; lime_graphics_opengl_GL.TEXTURE_CUBE_MAP_POSITIVE_X = 34069; lime_graphics_opengl_GL.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070; lime_graphics_opengl_GL.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071; lime_graphics_opengl_GL.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072; lime_graphics_opengl_GL.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073; lime_graphics_opengl_GL.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074; lime_graphics_opengl_GL.MAX_CUBE_MAP_TEXTURE_SIZE = 34076; lime_graphics_opengl_GL.TEXTURE0 = 33984; lime_graphics_opengl_GL.TEXTURE1 = 33985; lime_graphics_opengl_GL.TEXTURE2 = 33986; lime_graphics_opengl_GL.TEXTURE3 = 33987; lime_graphics_opengl_GL.TEXTURE4 = 33988; lime_graphics_opengl_GL.TEXTURE5 = 33989; lime_graphics_opengl_GL.TEXTURE6 = 33990; lime_graphics_opengl_GL.TEXTURE7 = 33991; lime_graphics_opengl_GL.TEXTURE8 = 33992; lime_graphics_opengl_GL.TEXTURE9 = 33993; lime_graphics_opengl_GL.TEXTURE10 = 33994; lime_graphics_opengl_GL.TEXTURE11 = 33995; lime_graphics_opengl_GL.TEXTURE12 = 33996; lime_graphics_opengl_GL.TEXTURE13 = 33997; lime_graphics_opengl_GL.TEXTURE14 = 33998; lime_graphics_opengl_GL.TEXTURE15 = 33999; lime_graphics_opengl_GL.TEXTURE16 = 34000; lime_graphics_opengl_GL.TEXTURE17 = 34001; lime_graphics_opengl_GL.TEXTURE18 = 34002; lime_graphics_opengl_GL.TEXTURE19 = 34003; lime_graphics_opengl_GL.TEXTURE20 = 34004; lime_graphics_opengl_GL.TEXTURE21 = 34005; lime_graphics_opengl_GL.TEXTURE22 = 34006; lime_graphics_opengl_GL.TEXTURE23 = 34007; lime_graphics_opengl_GL.TEXTURE24 = 34008; lime_graphics_opengl_GL.TEXTURE25 = 34009; lime_graphics_opengl_GL.TEXTURE26 = 34010; lime_graphics_opengl_GL.TEXTURE27 = 34011; lime_graphics_opengl_GL.TEXTURE28 = 34012; lime_graphics_opengl_GL.TEXTURE29 = 34013; lime_graphics_opengl_GL.TEXTURE30 = 34014; lime_graphics_opengl_GL.TEXTURE31 = 34015; lime_graphics_opengl_GL.ACTIVE_TEXTURE = 34016; lime_graphics_opengl_GL.REPEAT = 10497; lime_graphics_opengl_GL.CLAMP_TO_EDGE = 33071; lime_graphics_opengl_GL.MIRRORED_REPEAT = 33648; lime_graphics_opengl_GL.FLOAT_VEC2 = 35664; lime_graphics_opengl_GL.FLOAT_VEC3 = 35665; lime_graphics_opengl_GL.FLOAT_VEC4 = 35666; lime_graphics_opengl_GL.INT_VEC2 = 35667; lime_graphics_opengl_GL.INT_VEC3 = 35668; lime_graphics_opengl_GL.INT_VEC4 = 35669; lime_graphics_opengl_GL.BOOL = 35670; lime_graphics_opengl_GL.BOOL_VEC2 = 35671; lime_graphics_opengl_GL.BOOL_VEC3 = 35672; lime_graphics_opengl_GL.BOOL_VEC4 = 35673; lime_graphics_opengl_GL.FLOAT_MAT2 = 35674; lime_graphics_opengl_GL.FLOAT_MAT3 = 35675; lime_graphics_opengl_GL.FLOAT_MAT4 = 35676; lime_graphics_opengl_GL.SAMPLER_2D = 35678; lime_graphics_opengl_GL.SAMPLER_CUBE = 35680; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_ENABLED = 34338; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_SIZE = 34339; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_STRIDE = 34340; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_TYPE = 34341; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_NORMALIZED = 34922; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_POINTER = 34373; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 34975; lime_graphics_opengl_GL.IMPLEMENTATION_COLOR_READ_TYPE = 35738; lime_graphics_opengl_GL.IMPLEMENTATION_COLOR_READ_FORMAT = 35739; lime_graphics_opengl_GL.VERTEX_PROGRAM_POINT_SIZE = 34370; lime_graphics_opengl_GL.POINT_SPRITE = 34913; lime_graphics_opengl_GL.COMPILE_STATUS = 35713; lime_graphics_opengl_GL.LOW_FLOAT = 36336; lime_graphics_opengl_GL.MEDIUM_FLOAT = 36337; lime_graphics_opengl_GL.HIGH_FLOAT = 36338; lime_graphics_opengl_GL.LOW_INT = 36339; lime_graphics_opengl_GL.MEDIUM_INT = 36340; lime_graphics_opengl_GL.HIGH_INT = 36341; lime_graphics_opengl_GL.FRAMEBUFFER = 36160; lime_graphics_opengl_GL.RENDERBUFFER = 36161; lime_graphics_opengl_GL.RGBA4 = 32854; lime_graphics_opengl_GL.RGB5_A1 = 32855; lime_graphics_opengl_GL.RGB565 = 36194; lime_graphics_opengl_GL.DEPTH_COMPONENT16 = 33189; lime_graphics_opengl_GL.STENCIL_INDEX = 6401; lime_graphics_opengl_GL.STENCIL_INDEX8 = 36168; lime_graphics_opengl_GL.DEPTH_STENCIL = 34041; lime_graphics_opengl_GL.RENDERBUFFER_WIDTH = 36162; lime_graphics_opengl_GL.RENDERBUFFER_HEIGHT = 36163; lime_graphics_opengl_GL.RENDERBUFFER_INTERNAL_FORMAT = 36164; lime_graphics_opengl_GL.RENDERBUFFER_RED_SIZE = 36176; lime_graphics_opengl_GL.RENDERBUFFER_GREEN_SIZE = 36177; lime_graphics_opengl_GL.RENDERBUFFER_BLUE_SIZE = 36178; lime_graphics_opengl_GL.RENDERBUFFER_ALPHA_SIZE = 36179; lime_graphics_opengl_GL.RENDERBUFFER_DEPTH_SIZE = 36180; lime_graphics_opengl_GL.RENDERBUFFER_STENCIL_SIZE = 36181; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051; lime_graphics_opengl_GL.COLOR_ATTACHMENT0 = 36064; lime_graphics_opengl_GL.DEPTH_ATTACHMENT = 36096; lime_graphics_opengl_GL.STENCIL_ATTACHMENT = 36128; lime_graphics_opengl_GL.DEPTH_STENCIL_ATTACHMENT = 33306; lime_graphics_opengl_GL.NONE = 0; lime_graphics_opengl_GL.FRAMEBUFFER_COMPLETE = 36053; lime_graphics_opengl_GL.FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054; lime_graphics_opengl_GL.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055; lime_graphics_opengl_GL.FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057; lime_graphics_opengl_GL.FRAMEBUFFER_UNSUPPORTED = 36061; lime_graphics_opengl_GL.FRAMEBUFFER_BINDING = 36006; lime_graphics_opengl_GL.RENDERBUFFER_BINDING = 36007; lime_graphics_opengl_GL.MAX_RENDERBUFFER_SIZE = 34024; lime_graphics_opengl_GL.INVALID_FRAMEBUFFER_OPERATION = 1286; lime_graphics_opengl_GL.UNPACK_FLIP_Y_WEBGL = 37440; lime_graphics_opengl_GL.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441; lime_graphics_opengl_GL.CONTEXT_LOST_WEBGL = 37442; lime_graphics_opengl_GL.UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443; lime_graphics_opengl_GL.BROWSER_DEFAULT_WEBGL = 37444; lime_graphics_opengl_GL.READ_BUFFER = 3074; lime_graphics_opengl_GL.UNPACK_ROW_LENGTH = 3314; lime_graphics_opengl_GL.UNPACK_SKIP_ROWS = 3315; lime_graphics_opengl_GL.UNPACK_SKIP_PIXELS = 3316; lime_graphics_opengl_GL.PACK_ROW_LENGTH = 3330; lime_graphics_opengl_GL.PACK_SKIP_ROWS = 3331; lime_graphics_opengl_GL.PACK_SKIP_PIXELS = 3332; lime_graphics_opengl_GL.TEXTURE_BINDING_3D = 32874; lime_graphics_opengl_GL.UNPACK_SKIP_IMAGES = 32877; lime_graphics_opengl_GL.UNPACK_IMAGE_HEIGHT = 32878; lime_graphics_opengl_GL.MAX_3D_TEXTURE_SIZE = 32883; lime_graphics_opengl_GL.MAX_ELEMENTS_VERTICES = 33000; lime_graphics_opengl_GL.MAX_ELEMENTS_INDICES = 33001; lime_graphics_opengl_GL.MAX_TEXTURE_LOD_BIAS = 34045; lime_graphics_opengl_GL.MAX_FRAGMENT_UNIFORM_COMPONENTS = 35657; lime_graphics_opengl_GL.MAX_VERTEX_UNIFORM_COMPONENTS = 35658; lime_graphics_opengl_GL.MAX_ARRAY_TEXTURE_LAYERS = 35071; lime_graphics_opengl_GL.MIN_PROGRAM_TEXEL_OFFSET = 35076; lime_graphics_opengl_GL.MAX_PROGRAM_TEXEL_OFFSET = 35077; lime_graphics_opengl_GL.MAX_VARYING_COMPONENTS = 35659; lime_graphics_opengl_GL.FRAGMENT_SHADER_DERIVATIVE_HINT = 35723; lime_graphics_opengl_GL.RASTERIZER_DISCARD = 35977; lime_graphics_opengl_GL.VERTEX_ARRAY_BINDING = 34229; lime_graphics_opengl_GL.MAX_VERTEX_OUTPUT_COMPONENTS = 37154; lime_graphics_opengl_GL.MAX_FRAGMENT_INPUT_COMPONENTS = 37157; lime_graphics_opengl_GL.MAX_SERVER_WAIT_TIMEOUT = 37137; lime_graphics_opengl_GL.MAX_ELEMENT_INDEX = 36203; lime_graphics_opengl_GL.RED = 6403; lime_graphics_opengl_GL.RGB8 = 32849; lime_graphics_opengl_GL.RGBA8 = 32856; lime_graphics_opengl_GL.RGB10_A2 = 32857; lime_graphics_opengl_GL.TEXTURE_3D = 32879; lime_graphics_opengl_GL.TEXTURE_WRAP_R = 32882; lime_graphics_opengl_GL.TEXTURE_MIN_LOD = 33082; lime_graphics_opengl_GL.TEXTURE_MAX_LOD = 33083; lime_graphics_opengl_GL.TEXTURE_BASE_LEVEL = 33084; lime_graphics_opengl_GL.TEXTURE_MAX_LEVEL = 33085; lime_graphics_opengl_GL.TEXTURE_COMPARE_MODE = 34892; lime_graphics_opengl_GL.TEXTURE_COMPARE_FUNC = 34893; lime_graphics_opengl_GL.SRGB = 35904; lime_graphics_opengl_GL.SRGB8 = 35905; lime_graphics_opengl_GL.SRGB8_ALPHA8 = 35907; lime_graphics_opengl_GL.COMPARE_REF_TO_TEXTURE = 34894; lime_graphics_opengl_GL.RGBA32F = 34836; lime_graphics_opengl_GL.RGB32F = 34837; lime_graphics_opengl_GL.RGBA16F = 34842; lime_graphics_opengl_GL.RGB16F = 34843; lime_graphics_opengl_GL.TEXTURE_2D_ARRAY = 35866; lime_graphics_opengl_GL.TEXTURE_BINDING_2D_ARRAY = 35869; lime_graphics_opengl_GL.R11F_G11F_B10F = 35898; lime_graphics_opengl_GL.RGB9_E5 = 35901; lime_graphics_opengl_GL.RGBA32UI = 36208; lime_graphics_opengl_GL.RGB32UI = 36209; lime_graphics_opengl_GL.RGBA16UI = 36214; lime_graphics_opengl_GL.RGB16UI = 36215; lime_graphics_opengl_GL.RGBA8UI = 36220; lime_graphics_opengl_GL.RGB8UI = 36221; lime_graphics_opengl_GL.RGBA32I = 36226; lime_graphics_opengl_GL.RGB32I = 36227; lime_graphics_opengl_GL.RGBA16I = 36232; lime_graphics_opengl_GL.RGB16I = 36233; lime_graphics_opengl_GL.RGBA8I = 36238; lime_graphics_opengl_GL.RGB8I = 36239; lime_graphics_opengl_GL.RED_INTEGER = 36244; lime_graphics_opengl_GL.RGB_INTEGER = 36248; lime_graphics_opengl_GL.RGBA_INTEGER = 36249; lime_graphics_opengl_GL.R8 = 33321; lime_graphics_opengl_GL.RG8 = 33323; lime_graphics_opengl_GL.R16F = 33325; lime_graphics_opengl_GL.R32F = 33326; lime_graphics_opengl_GL.RG16F = 33327; lime_graphics_opengl_GL.RG32F = 33328; lime_graphics_opengl_GL.R8I = 33329; lime_graphics_opengl_GL.R8UI = 33330; lime_graphics_opengl_GL.R16I = 33331; lime_graphics_opengl_GL.R16UI = 33332; lime_graphics_opengl_GL.R32I = 33333; lime_graphics_opengl_GL.R32UI = 33334; lime_graphics_opengl_GL.RG8I = 33335; lime_graphics_opengl_GL.RG8UI = 33336; lime_graphics_opengl_GL.RG16I = 33337; lime_graphics_opengl_GL.RG16UI = 33338; lime_graphics_opengl_GL.RG32I = 33339; lime_graphics_opengl_GL.RG32UI = 33340; lime_graphics_opengl_GL.R8_SNORM = 36756; lime_graphics_opengl_GL.RG8_SNORM = 36757; lime_graphics_opengl_GL.RGB8_SNORM = 36758; lime_graphics_opengl_GL.RGBA8_SNORM = 36759; lime_graphics_opengl_GL.RGB10_A2UI = 36975; lime_graphics_opengl_GL.TEXTURE_IMMUTABLE_FORMAT = 37167; lime_graphics_opengl_GL.TEXTURE_IMMUTABLE_LEVELS = 33503; lime_graphics_opengl_GL.UNSIGNED_INT_2_10_10_10_REV = 33640; lime_graphics_opengl_GL.UNSIGNED_INT_10F_11F_11F_REV = 35899; lime_graphics_opengl_GL.UNSIGNED_INT_5_9_9_9_REV = 35902; lime_graphics_opengl_GL.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269; lime_graphics_opengl_GL.UNSIGNED_INT_24_8 = 34042; lime_graphics_opengl_GL.HALF_FLOAT = 5131; lime_graphics_opengl_GL.RG = 33319; lime_graphics_opengl_GL.RG_INTEGER = 33320; lime_graphics_opengl_GL.INT_2_10_10_10_REV = 36255; lime_graphics_opengl_GL.CURRENT_QUERY = 34917; lime_graphics_opengl_GL.QUERY_RESULT = 34918; lime_graphics_opengl_GL.QUERY_RESULT_AVAILABLE = 34919; lime_graphics_opengl_GL.ANY_SAMPLES_PASSED = 35887; lime_graphics_opengl_GL.ANY_SAMPLES_PASSED_CONSERVATIVE = 36202; lime_graphics_opengl_GL.MAX_DRAW_BUFFERS = 34852; lime_graphics_opengl_GL.DRAW_BUFFER0 = 34853; lime_graphics_opengl_GL.DRAW_BUFFER1 = 34854; lime_graphics_opengl_GL.DRAW_BUFFER2 = 34855; lime_graphics_opengl_GL.DRAW_BUFFER3 = 34856; lime_graphics_opengl_GL.DRAW_BUFFER4 = 34857; lime_graphics_opengl_GL.DRAW_BUFFER5 = 34858; lime_graphics_opengl_GL.DRAW_BUFFER6 = 34859; lime_graphics_opengl_GL.DRAW_BUFFER7 = 34860; lime_graphics_opengl_GL.DRAW_BUFFER8 = 34861; lime_graphics_opengl_GL.DRAW_BUFFER9 = 34862; lime_graphics_opengl_GL.DRAW_BUFFER10 = 34863; lime_graphics_opengl_GL.DRAW_BUFFER11 = 34864; lime_graphics_opengl_GL.DRAW_BUFFER12 = 34865; lime_graphics_opengl_GL.DRAW_BUFFER13 = 34866; lime_graphics_opengl_GL.DRAW_BUFFER14 = 34867; lime_graphics_opengl_GL.DRAW_BUFFER15 = 34868; lime_graphics_opengl_GL.MAX_COLOR_ATTACHMENTS = 36063; lime_graphics_opengl_GL.COLOR_ATTACHMENT1 = 36065; lime_graphics_opengl_GL.COLOR_ATTACHMENT2 = 36066; lime_graphics_opengl_GL.COLOR_ATTACHMENT3 = 36067; lime_graphics_opengl_GL.COLOR_ATTACHMENT4 = 36068; lime_graphics_opengl_GL.COLOR_ATTACHMENT5 = 36069; lime_graphics_opengl_GL.COLOR_ATTACHMENT6 = 36070; lime_graphics_opengl_GL.COLOR_ATTACHMENT7 = 36071; lime_graphics_opengl_GL.COLOR_ATTACHMENT8 = 36072; lime_graphics_opengl_GL.COLOR_ATTACHMENT9 = 36073; lime_graphics_opengl_GL.COLOR_ATTACHMENT10 = 36074; lime_graphics_opengl_GL.COLOR_ATTACHMENT11 = 36075; lime_graphics_opengl_GL.COLOR_ATTACHMENT12 = 36076; lime_graphics_opengl_GL.COLOR_ATTACHMENT13 = 36077; lime_graphics_opengl_GL.COLOR_ATTACHMENT14 = 36078; lime_graphics_opengl_GL.COLOR_ATTACHMENT15 = 36079; lime_graphics_opengl_GL.SAMPLER_3D = 35679; lime_graphics_opengl_GL.SAMPLER_2D_SHADOW = 35682; lime_graphics_opengl_GL.SAMPLER_2D_ARRAY = 36289; lime_graphics_opengl_GL.SAMPLER_2D_ARRAY_SHADOW = 36292; lime_graphics_opengl_GL.SAMPLER_CUBE_SHADOW = 36293; lime_graphics_opengl_GL.INT_SAMPLER_2D = 36298; lime_graphics_opengl_GL.INT_SAMPLER_3D = 36299; lime_graphics_opengl_GL.INT_SAMPLER_CUBE = 36300; lime_graphics_opengl_GL.INT_SAMPLER_2D_ARRAY = 36303; lime_graphics_opengl_GL.UNSIGNED_INT_SAMPLER_2D = 36306; lime_graphics_opengl_GL.UNSIGNED_INT_SAMPLER_3D = 36307; lime_graphics_opengl_GL.UNSIGNED_INT_SAMPLER_CUBE = 36308; lime_graphics_opengl_GL.UNSIGNED_INT_SAMPLER_2D_ARRAY = 36311; lime_graphics_opengl_GL.MAX_SAMPLES = 36183; lime_graphics_opengl_GL.SAMPLER_BINDING = 35097; lime_graphics_opengl_GL.PIXEL_PACK_BUFFER = 35051; lime_graphics_opengl_GL.PIXEL_UNPACK_BUFFER = 35052; lime_graphics_opengl_GL.PIXEL_PACK_BUFFER_BINDING = 35053; lime_graphics_opengl_GL.PIXEL_UNPACK_BUFFER_BINDING = 35055; lime_graphics_opengl_GL.COPY_READ_BUFFER = 36662; lime_graphics_opengl_GL.COPY_WRITE_BUFFER = 36663; lime_graphics_opengl_GL.COPY_READ_BUFFER_BINDING = 36662; lime_graphics_opengl_GL.COPY_WRITE_BUFFER_BINDING = 36663; lime_graphics_opengl_GL.FLOAT_MAT2x3 = 35685; lime_graphics_opengl_GL.FLOAT_MAT2x4 = 35686; lime_graphics_opengl_GL.FLOAT_MAT3x2 = 35687; lime_graphics_opengl_GL.FLOAT_MAT3x4 = 35688; lime_graphics_opengl_GL.FLOAT_MAT4x2 = 35689; lime_graphics_opengl_GL.FLOAT_MAT4x3 = 35690; lime_graphics_opengl_GL.UNSIGNED_INT_VEC2 = 36294; lime_graphics_opengl_GL.UNSIGNED_INT_VEC3 = 36295; lime_graphics_opengl_GL.UNSIGNED_INT_VEC4 = 36296; lime_graphics_opengl_GL.UNSIGNED_NORMALIZED = 35863; lime_graphics_opengl_GL.SIGNED_NORMALIZED = 36764; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_INTEGER = 35069; lime_graphics_opengl_GL.VERTEX_ATTRIB_ARRAY_DIVISOR = 35070; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_BUFFER_MODE = 35967; lime_graphics_opengl_GL.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 35968; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_VARYINGS = 35971; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_BUFFER_START = 35972; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_BUFFER_SIZE = 35973; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 35976; lime_graphics_opengl_GL.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 35978; lime_graphics_opengl_GL.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 35979; lime_graphics_opengl_GL.INTERLEAVED_ATTRIBS = 35980; lime_graphics_opengl_GL.SEPARATE_ATTRIBS = 35981; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_BUFFER = 35982; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_BUFFER_BINDING = 35983; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK = 36386; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_PAUSED = 36387; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_ACTIVE = 36388; lime_graphics_opengl_GL.TRANSFORM_FEEDBACK_BINDING = 36389; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 33296; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 33297; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_RED_SIZE = 33298; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 33299; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 33300; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 33301; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 33302; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 33303; lime_graphics_opengl_GL.FRAMEBUFFER_DEFAULT = 33304; lime_graphics_opengl_GL.DEPTH24_STENCIL8 = 35056; lime_graphics_opengl_GL.DRAW_FRAMEBUFFER_BINDING = 36006; lime_graphics_opengl_GL.READ_FRAMEBUFFER = 36008; lime_graphics_opengl_GL.DRAW_FRAMEBUFFER = 36009; lime_graphics_opengl_GL.READ_FRAMEBUFFER_BINDING = 36010; lime_graphics_opengl_GL.RENDERBUFFER_SAMPLES = 36011; lime_graphics_opengl_GL.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 36052; lime_graphics_opengl_GL.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 36182; lime_graphics_opengl_GL.UNIFORM_BUFFER = 35345; lime_graphics_opengl_GL.UNIFORM_BUFFER_BINDING = 35368; lime_graphics_opengl_GL.UNIFORM_BUFFER_START = 35369; lime_graphics_opengl_GL.UNIFORM_BUFFER_SIZE = 35370; lime_graphics_opengl_GL.MAX_VERTEX_UNIFORM_BLOCKS = 35371; lime_graphics_opengl_GL.MAX_FRAGMENT_UNIFORM_BLOCKS = 35373; lime_graphics_opengl_GL.MAX_COMBINED_UNIFORM_BLOCKS = 35374; lime_graphics_opengl_GL.MAX_UNIFORM_BUFFER_BINDINGS = 35375; lime_graphics_opengl_GL.MAX_UNIFORM_BLOCK_SIZE = 35376; lime_graphics_opengl_GL.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 35377; lime_graphics_opengl_GL.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 35379; lime_graphics_opengl_GL.UNIFORM_BUFFER_OFFSET_ALIGNMENT = 35380; lime_graphics_opengl_GL.ACTIVE_UNIFORM_BLOCKS = 35382; lime_graphics_opengl_GL.UNIFORM_TYPE = 35383; lime_graphics_opengl_GL.UNIFORM_SIZE = 35384; lime_graphics_opengl_GL.UNIFORM_BLOCK_INDEX = 35386; lime_graphics_opengl_GL.UNIFORM_OFFSET = 35387; lime_graphics_opengl_GL.UNIFORM_ARRAY_STRIDE = 35388; lime_graphics_opengl_GL.UNIFORM_MATRIX_STRIDE = 35389; lime_graphics_opengl_GL.UNIFORM_IS_ROW_MAJOR = 35390; lime_graphics_opengl_GL.UNIFORM_BLOCK_BINDING = 35391; lime_graphics_opengl_GL.UNIFORM_BLOCK_DATA_SIZE = 35392; lime_graphics_opengl_GL.UNIFORM_BLOCK_ACTIVE_UNIFORMS = 35394; lime_graphics_opengl_GL.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 35395; lime_graphics_opengl_GL.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 35396; lime_graphics_opengl_GL.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 35398; lime_graphics_opengl_GL.OBJECT_TYPE = 37138; lime_graphics_opengl_GL.SYNC_CONDITION = 37139; lime_graphics_opengl_GL.SYNC_STATUS = 37140; lime_graphics_opengl_GL.SYNC_FLAGS = 37141; lime_graphics_opengl_GL.SYNC_FENCE = 37142; lime_graphics_opengl_GL.SYNC_GPU_COMMANDS_COMPLETE = 37143; lime_graphics_opengl_GL.UNSIGNALED = 37144; lime_graphics_opengl_GL.SIGNALED = 37145; lime_graphics_opengl_GL.ALREADY_SIGNALED = 37146; lime_graphics_opengl_GL.TIMEOUT_EXPIRED = 37147; lime_graphics_opengl_GL.CONDITION_SATISFIED = 37148; lime_graphics_opengl_GL.WAIT_FAILED = 37149; lime_graphics_opengl_GL.SYNC_FLUSH_COMMANDS_BIT = 1; lime_graphics_opengl_GL.COLOR = 6144; lime_graphics_opengl_GL.DEPTH = 6145; lime_graphics_opengl_GL.STENCIL = 6146; lime_graphics_opengl_GL.MIN = 32775; lime_graphics_opengl_GL.MAX = 32776; lime_graphics_opengl_GL.DEPTH_COMPONENT24 = 33190; lime_graphics_opengl_GL.STREAM_READ = 35041; lime_graphics_opengl_GL.STREAM_COPY = 35042; lime_graphics_opengl_GL.STATIC_READ = 35045; lime_graphics_opengl_GL.STATIC_COPY = 35046; lime_graphics_opengl_GL.DYNAMIC_READ = 35049; lime_graphics_opengl_GL.DYNAMIC_COPY = 35050; lime_graphics_opengl_GL.DEPTH_COMPONENT32F = 36012; lime_graphics_opengl_GL.DEPTH32F_STENCIL8 = 36013; lime_graphics_opengl_GL.INVALID_INDEX = -1; lime_graphics_opengl_GL.TIMEOUT_IGNORED = -1; lime_graphics_opengl_GL.MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 37447; lime_graphics_opengl__$WebGL2Context_WebGL2Context_$Impl_$.__tempPointer = (function($this) { var $r; var this1 = new lime_utils_BytePointerData(null,0); $r = this1; return $r; }(this)); lime_math__$ColorMatrix_ColorMatrix_$Impl_$.__identity = [1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0]; lime_math__$Matrix4_Matrix4_$Impl_$.__identity = [1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0]; lime_media_openal_AL.NONE = 0; lime_media_openal_AL.FALSE = 0; lime_media_openal_AL.TRUE = 1; lime_media_openal_AL.SOURCE_RELATIVE = 514; lime_media_openal_AL.CONE_INNER_ANGLE = 4097; lime_media_openal_AL.CONE_OUTER_ANGLE = 4098; lime_media_openal_AL.PITCH = 4099; lime_media_openal_AL.POSITION = 4100; lime_media_openal_AL.DIRECTION = 4101; lime_media_openal_AL.VELOCITY = 4102; lime_media_openal_AL.LOOPING = 4103; lime_media_openal_AL.BUFFER = 4105; lime_media_openal_AL.GAIN = 4106; lime_media_openal_AL.MIN_GAIN = 4109; lime_media_openal_AL.MAX_GAIN = 4110; lime_media_openal_AL.ORIENTATION = 4111; lime_media_openal_AL.SOURCE_STATE = 4112; lime_media_openal_AL.INITIAL = 4113; lime_media_openal_AL.PLAYING = 4114; lime_media_openal_AL.PAUSED = 4115; lime_media_openal_AL.STOPPED = 4116; lime_media_openal_AL.BUFFERS_QUEUED = 4117; lime_media_openal_AL.BUFFERS_PROCESSED = 4118; lime_media_openal_AL.REFERENCE_DISTANCE = 4128; lime_media_openal_AL.ROLLOFF_FACTOR = 4129; lime_media_openal_AL.CONE_OUTER_GAIN = 4130; lime_media_openal_AL.MAX_DISTANCE = 4131; lime_media_openal_AL.SEC_OFFSET = 4132; lime_media_openal_AL.SAMPLE_OFFSET = 4133; lime_media_openal_AL.BYTE_OFFSET = 4134; lime_media_openal_AL.SOURCE_TYPE = 4135; lime_media_openal_AL.STATIC = 4136; lime_media_openal_AL.STREAMING = 4137; lime_media_openal_AL.UNDETERMINED = 4144; lime_media_openal_AL.FORMAT_MONO8 = 4352; lime_media_openal_AL.FORMAT_MONO16 = 4353; lime_media_openal_AL.FORMAT_STEREO8 = 4354; lime_media_openal_AL.FORMAT_STEREO16 = 4355; lime_media_openal_AL.FREQUENCY = 8193; lime_media_openal_AL.BITS = 8194; lime_media_openal_AL.CHANNELS = 8195; lime_media_openal_AL.SIZE = 8196; lime_media_openal_AL.NO_ERROR = 0; lime_media_openal_AL.INVALID_NAME = 40961; lime_media_openal_AL.INVALID_ENUM = 40962; lime_media_openal_AL.INVALID_VALUE = 40963; lime_media_openal_AL.INVALID_OPERATION = 40964; lime_media_openal_AL.OUT_OF_MEMORY = 40965; lime_media_openal_AL.VENDOR = 45057; lime_media_openal_AL.VERSION = 45058; lime_media_openal_AL.RENDERER = 45059; lime_media_openal_AL.EXTENSIONS = 45060; lime_media_openal_AL.DOPPLER_FACTOR = 49152; lime_media_openal_AL.SPEED_OF_SOUND = 49155; lime_media_openal_AL.DOPPLER_VELOCITY = 49153; lime_media_openal_AL.DISTANCE_MODEL = 53248; lime_media_openal_AL.INVERSE_DISTANCE = 53249; lime_media_openal_AL.INVERSE_DISTANCE_CLAMPED = 53250; lime_media_openal_AL.LINEAR_DISTANCE = 53251; lime_media_openal_AL.LINEAR_DISTANCE_CLAMPED = 53252; lime_media_openal_AL.EXPONENT_DISTANCE = 53253; lime_media_openal_AL.EXPONENT_DISTANCE_CLAMPED = 53254; lime_media_openal_ALC.FALSE = 0; lime_media_openal_ALC.TRUE = 1; lime_media_openal_ALC.FREQUENCY = 4103; lime_media_openal_ALC.REFRESH = 4104; lime_media_openal_ALC.SYNC = 4105; lime_media_openal_ALC.MONO_SOURCES = 4112; lime_media_openal_ALC.STEREO_SOURCES = 4113; lime_media_openal_ALC.NO_ERROR = 0; lime_media_openal_ALC.INVALID_DEVICE = 40961; lime_media_openal_ALC.INVALID_CONTEXT = 40962; lime_media_openal_ALC.INVALID_ENUM = 40963; lime_media_openal_ALC.INVALID_VALUE = 40964; lime_media_openal_ALC.OUT_OF_MEMORY = 40965; lime_media_openal_ALC.ATTRIBUTES_SIZE = 4098; lime_media_openal_ALC.ALL_ATTRIBUTES = 4099; lime_media_openal_ALC.DEFAULT_DEVICE_SPECIFIER = 4100; lime_media_openal_ALC.DEVICE_SPECIFIER = 4101; lime_media_openal_ALC.EXTENSIONS = 4102; lime_media_openal_ALC.ENUMERATE_ALL_EXT = 1; lime_media_openal_ALC.DEFAULT_ALL_DEVICES_SPECIFIER = 4114; lime_media_openal_ALC.ALL_DEVICES_SPECIFIER = 4115; lime_system_Clipboard.onUpdate = new lime_app__$Event_$Void_$Void(); lime_system_JNI.alreadyCreated = new haxe_ds_StringMap(); lime_system_JNI.initialized = false; lime_system_System.__directories = new haxe_ds_IntMap(); lime_text__$TextDirection_TextDirection_$Impl_$.INVALID = 0; lime_text__$TextDirection_TextDirection_$Impl_$.LEFT_TO_RIGHT = 4; lime_text__$TextDirection_TextDirection_$Impl_$.RIGHT_TO_LEFT = 5; lime_text__$TextDirection_TextDirection_$Impl_$.TOP_TO_BOTTOM = 6; lime_text__$TextDirection_TextDirection_$Impl_$.BOTTOM_TO_TOP = 7; lime_text__$TextScript_TextScript_$Impl_$.COMMON = "Zyyy"; lime_text__$TextScript_TextScript_$Impl_$.INHERITED = "Zinh"; lime_text__$TextScript_TextScript_$Impl_$.UNKNOWN = "Zzzz"; lime_text__$TextScript_TextScript_$Impl_$.ARABIC = "Arab"; lime_text__$TextScript_TextScript_$Impl_$.ARMENIAN = "Armn"; lime_text__$TextScript_TextScript_$Impl_$.BENGALI = "Beng"; lime_text__$TextScript_TextScript_$Impl_$.CYRILLIC = "Cyrl"; lime_text__$TextScript_TextScript_$Impl_$.DEVANAGARI = "Deva"; lime_text__$TextScript_TextScript_$Impl_$.GEORGIAN = "Geor"; lime_text__$TextScript_TextScript_$Impl_$.GREEK = "Grek"; lime_text__$TextScript_TextScript_$Impl_$.GUJARATI = "Gujr"; lime_text__$TextScript_TextScript_$Impl_$.GURMUKHI = "Guru"; lime_text__$TextScript_TextScript_$Impl_$.HANGUL = "Hang"; lime_text__$TextScript_TextScript_$Impl_$.HAN = "Hani"; lime_text__$TextScript_TextScript_$Impl_$.HEBREW = "Hebr"; lime_text__$TextScript_TextScript_$Impl_$.HIRAGANA = "Hira"; lime_text__$TextScript_TextScript_$Impl_$.KANNADA = "Knda"; lime_text__$TextScript_TextScript_$Impl_$.KATAKANA = "Kana"; lime_text__$TextScript_TextScript_$Impl_$.LAO = "Laoo"; lime_text__$TextScript_TextScript_$Impl_$.LATIN = "Latn"; lime_text__$TextScript_TextScript_$Impl_$.MALAYALAM = "Mlym"; lime_text__$TextScript_TextScript_$Impl_$.ORIYA = "Orya"; lime_text__$TextScript_TextScript_$Impl_$.TAMIL = "Taml"; lime_text__$TextScript_TextScript_$Impl_$.TELUGA = "Telu"; lime_text__$TextScript_TextScript_$Impl_$.THAI = "Thai"; lime_text__$TextScript_TextScript_$Impl_$.TIBETAN = "Tibt"; lime_text__$TextScript_TextScript_$Impl_$.BOPOMOFO = "Bopo"; lime_text__$TextScript_TextScript_$Impl_$.BRAILLE = "Brai"; lime_text__$TextScript_TextScript_$Impl_$.CANADIAN_SYLLABICS = "Cans"; lime_text__$TextScript_TextScript_$Impl_$.CHEROKEE = "Cher"; lime_text__$TextScript_TextScript_$Impl_$.ETHIOPIC = "Ethi"; lime_text__$TextScript_TextScript_$Impl_$.KHMER = "Khmr"; lime_text__$TextScript_TextScript_$Impl_$.MONGOLIAN = "Mong"; lime_text__$TextScript_TextScript_$Impl_$.MYANMAR = "Mymr"; lime_text__$TextScript_TextScript_$Impl_$.OGHAM = "Ogam"; lime_text__$TextScript_TextScript_$Impl_$.RUNIC = "Runr"; lime_text__$TextScript_TextScript_$Impl_$.SINHALA = "Sinh"; lime_text__$TextScript_TextScript_$Impl_$.SYRIAC = "Syrc"; lime_text__$TextScript_TextScript_$Impl_$.THAANA = "Thaa"; lime_text__$TextScript_TextScript_$Impl_$.YI = "Yiii"; lime_text__$TextScript_TextScript_$Impl_$.DESERET = "Dsrt"; lime_text__$TextScript_TextScript_$Impl_$.GOTHIC = "Goth"; lime_text__$TextScript_TextScript_$Impl_$.OLD_ITALIC = "Ital"; lime_text__$TextScript_TextScript_$Impl_$.BUHID = "Buhd"; lime_text__$TextScript_TextScript_$Impl_$.HANUNOO = "Hano"; lime_text__$TextScript_TextScript_$Impl_$.TAGALOG = "Tglg"; lime_text__$TextScript_TextScript_$Impl_$.TAGBANWA = "Tagb"; lime_text__$TextScript_TextScript_$Impl_$.CYPRIOT = "Cprt"; lime_text__$TextScript_TextScript_$Impl_$.LIMBU = "Limb"; lime_text__$TextScript_TextScript_$Impl_$.LINEAR_B = "Linb"; lime_text__$TextScript_TextScript_$Impl_$.OSMANYA = "Osma"; lime_text__$TextScript_TextScript_$Impl_$.SHAVIAN = "Shaw"; lime_text__$TextScript_TextScript_$Impl_$.TAI_LE = "Tale"; lime_text__$TextScript_TextScript_$Impl_$.UGARITIC = "Ugar"; lime_text__$TextScript_TextScript_$Impl_$.BUGINESE = "Bugi"; lime_text__$TextScript_TextScript_$Impl_$.COPTIC = "Copt"; lime_text__$TextScript_TextScript_$Impl_$.GLAGOLITIC = "Glag"; lime_text__$TextScript_TextScript_$Impl_$.KHAROSHTHI = "Khar"; lime_text__$TextScript_TextScript_$Impl_$.NEW_TAI_LUE = "Talu"; lime_text__$TextScript_TextScript_$Impl_$.OLD_PERSIAN = "Xpeo"; lime_text__$TextScript_TextScript_$Impl_$.SYLOTI_NAGRI = "Sylo"; lime_text__$TextScript_TextScript_$Impl_$.TIFINAGH = "Tfng"; lime_text__$TextScript_TextScript_$Impl_$.BALINESE = "Bali"; lime_text__$TextScript_TextScript_$Impl_$.CUNEIFORM = "Xsux"; lime_text__$TextScript_TextScript_$Impl_$.NKO = "Nkoo"; lime_text__$TextScript_TextScript_$Impl_$.PHAGS_PA = "Phag"; lime_text__$TextScript_TextScript_$Impl_$.PHOENICIAN = "Phnx"; lime_text__$TextScript_TextScript_$Impl_$.CARIAN = "Cari"; lime_text__$TextScript_TextScript_$Impl_$.CHAM = "Cham"; lime_text__$TextScript_TextScript_$Impl_$.KAYAH_LI = "Kali"; lime_text__$TextScript_TextScript_$Impl_$.LEPCHA = "Lepc"; lime_text__$TextScript_TextScript_$Impl_$.LYCIAN = "Lyci"; lime_text__$TextScript_TextScript_$Impl_$.LYDIAN = "Lydi"; lime_text__$TextScript_TextScript_$Impl_$.OL_CHIKI = "Olck"; lime_text__$TextScript_TextScript_$Impl_$.REJANG = "Rjng"; lime_text__$TextScript_TextScript_$Impl_$.SAURASHTRA = "Saur"; lime_text__$TextScript_TextScript_$Impl_$.SUNDANESE = "Sund"; lime_text__$TextScript_TextScript_$Impl_$.VAI = "Vaii"; lime_text__$TextScript_TextScript_$Impl_$.AVESTAN = "Avst"; lime_text__$TextScript_TextScript_$Impl_$.BAMUM = "Bamu"; lime_text__$TextScript_TextScript_$Impl_$.EGYPTIAN_HIEROGLYPHS = "Egyp"; lime_text__$TextScript_TextScript_$Impl_$.IMPERIAL_ARAMAIC = "Armi"; lime_text__$TextScript_TextScript_$Impl_$.INSCRIPTIONAL_PAHLAVI = "Phli"; lime_text__$TextScript_TextScript_$Impl_$.INSCRIPTIONAL_PARTHIAN = "Prti"; lime_text__$TextScript_TextScript_$Impl_$.JAVANESE = "Java"; lime_text__$TextScript_TextScript_$Impl_$.KAITHI = "Kthi"; lime_text__$TextScript_TextScript_$Impl_$.LISU = "Lisu"; lime_text__$TextScript_TextScript_$Impl_$.MEETEI_MAYEK = "Mtei"; lime_text__$TextScript_TextScript_$Impl_$.OLD_SOUTH_ARABIAN = "Sarb"; lime_text__$TextScript_TextScript_$Impl_$.OLD_TURKIC = "Orkh"; lime_text__$TextScript_TextScript_$Impl_$.SAMARITAN = "Samr"; lime_text__$TextScript_TextScript_$Impl_$.TAI_THAM = "Lana"; lime_text__$TextScript_TextScript_$Impl_$.TAI_VIET = "Tavt"; lime_text__$TextScript_TextScript_$Impl_$.BATAK = "Batk"; lime_text__$TextScript_TextScript_$Impl_$.BRAHMI = "Brah"; lime_text__$TextScript_TextScript_$Impl_$.MANDAIC = "Mand"; lime_text__$TextScript_TextScript_$Impl_$.CHAKMA = "Cakm"; lime_text__$TextScript_TextScript_$Impl_$.MEROITIC_CURSIVE = "Merc"; lime_text__$TextScript_TextScript_$Impl_$.MEROITIC_HIEROGLYPHS = "Mero"; lime_text__$TextScript_TextScript_$Impl_$.MIAO = "Plrd"; lime_text__$TextScript_TextScript_$Impl_$.SHARADA = "Shrd"; lime_text__$TextScript_TextScript_$Impl_$.SORA_SOMPENG = "Sora"; lime_text__$TextScript_TextScript_$Impl_$.TAKRI = "Takr"; lime_text__$TextScript_TextScript_$Impl_$.BASSA_VAH = "Bass"; lime_text__$TextScript_TextScript_$Impl_$.CAUCASIAN_ALBANIAN = "Aghb"; lime_text__$TextScript_TextScript_$Impl_$.DUPLOYAN = "Dupl"; lime_text__$TextScript_TextScript_$Impl_$.ELBASAN = "Elba"; lime_text__$TextScript_TextScript_$Impl_$.GRANTHA = "Gran"; lime_text__$TextScript_TextScript_$Impl_$.KHOJKI = "Khoj"; lime_text__$TextScript_TextScript_$Impl_$.KHUDAWADI = "Sind"; lime_text__$TextScript_TextScript_$Impl_$.LINEAR_A = "Lina"; lime_text__$TextScript_TextScript_$Impl_$.MAHAJANI = "Mahj"; lime_text__$TextScript_TextScript_$Impl_$.MANICHAEAN = "Mani"; lime_text__$TextScript_TextScript_$Impl_$.MENDE_KIKAKUI = "Mend"; lime_text__$TextScript_TextScript_$Impl_$.MODI = "Modi"; lime_text__$TextScript_TextScript_$Impl_$.MRO = "Mroo"; lime_text__$TextScript_TextScript_$Impl_$.NABATAEAN = "Nbat"; lime_text__$TextScript_TextScript_$Impl_$.OLD_NORTH_ARABIAN = "Narb"; lime_text__$TextScript_TextScript_$Impl_$.OLD_PERMIC = "Perm"; lime_text__$TextScript_TextScript_$Impl_$.PAHAWH_HMONG = "Hmng"; lime_text__$TextScript_TextScript_$Impl_$.PALMYRENE = "Palm"; lime_text__$TextScript_TextScript_$Impl_$.PAU_CIN_HAU = "Pauc"; lime_text__$TextScript_TextScript_$Impl_$.PSALTER_PAHLAVI = "Phlp"; lime_text__$TextScript_TextScript_$Impl_$.SIDDHAM = "Sidd"; lime_text__$TextScript_TextScript_$Impl_$.TIRHUTA = "Tirh"; lime_text__$TextScript_TextScript_$Impl_$.WARANG_CITI = "Wara"; lime_text_unifill_Unicode.minCodePoint = 0; lime_text_unifill_Unicode.maxCodePoint = 1114111; lime_text_unifill_Unicode.minHighSurrogate = 55296; lime_text_unifill_Unicode.maxHighSurrogate = 56319; lime_text_unifill_Unicode.minLowSurrogate = 56320; lime_text_unifill_Unicode.maxLowSurrogate = 57343; lime_ui_Gamepad.devices = new haxe_ds_IntMap(); lime_ui_Gamepad.onConnect = new lime_app__$Event_$lime_$ui_$Gamepad_$Void(); lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.LEFT_X = 0; lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.LEFT_Y = 1; lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.RIGHT_X = 2; lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.RIGHT_Y = 3; lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.TRIGGER_LEFT = 4; lime_ui__$GamepadAxis_GamepadAxis_$Impl_$.TRIGGER_RIGHT = 5; lime_ui__$GamepadButton_GamepadButton_$Impl_$.A = 0; lime_ui__$GamepadButton_GamepadButton_$Impl_$.B = 1; lime_ui__$GamepadButton_GamepadButton_$Impl_$.X = 2; lime_ui__$GamepadButton_GamepadButton_$Impl_$.Y = 3; lime_ui__$GamepadButton_GamepadButton_$Impl_$.BACK = 4; lime_ui__$GamepadButton_GamepadButton_$Impl_$.GUIDE = 5; lime_ui__$GamepadButton_GamepadButton_$Impl_$.START = 6; lime_ui__$GamepadButton_GamepadButton_$Impl_$.LEFT_STICK = 7; lime_ui__$GamepadButton_GamepadButton_$Impl_$.RIGHT_STICK = 8; lime_ui__$GamepadButton_GamepadButton_$Impl_$.LEFT_SHOULDER = 9; lime_ui__$GamepadButton_GamepadButton_$Impl_$.RIGHT_SHOULDER = 10; lime_ui__$GamepadButton_GamepadButton_$Impl_$.DPAD_UP = 11; lime_ui__$GamepadButton_GamepadButton_$Impl_$.DPAD_DOWN = 12; lime_ui__$GamepadButton_GamepadButton_$Impl_$.DPAD_LEFT = 13; lime_ui__$GamepadButton_GamepadButton_$Impl_$.DPAD_RIGHT = 14; lime_ui_Joystick.devices = new haxe_ds_IntMap(); lime_ui_Joystick.onConnect = new lime_app__$Event_$lime_$ui_$Joystick_$Void(); lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.CENTER = 0; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.DOWN = 4; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.LEFT = 8; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.RIGHT = 2; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.UP = 1; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.DOWN_LEFT = 12; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.DOWN_RIGHT = 6; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.UP_LEFT = 9; lime_ui__$JoystickHatPosition_JoystickHatPosition_$Impl_$.UP_RIGHT = 3; lime_ui__$KeyCode_KeyCode_$Impl_$.UNKNOWN = 0; lime_ui__$KeyCode_KeyCode_$Impl_$.BACKSPACE = 8; lime_ui__$KeyCode_KeyCode_$Impl_$.TAB = 9; lime_ui__$KeyCode_KeyCode_$Impl_$.RETURN = 13; lime_ui__$KeyCode_KeyCode_$Impl_$.ESCAPE = 27; lime_ui__$KeyCode_KeyCode_$Impl_$.SPACE = 32; lime_ui__$KeyCode_KeyCode_$Impl_$.EXCLAMATION = 33; lime_ui__$KeyCode_KeyCode_$Impl_$.QUOTE = 34; lime_ui__$KeyCode_KeyCode_$Impl_$.HASH = 35; lime_ui__$KeyCode_KeyCode_$Impl_$.DOLLAR = 36; lime_ui__$KeyCode_KeyCode_$Impl_$.PERCENT = 37; lime_ui__$KeyCode_KeyCode_$Impl_$.AMPERSAND = 38; lime_ui__$KeyCode_KeyCode_$Impl_$.SINGLE_QUOTE = 39; lime_ui__$KeyCode_KeyCode_$Impl_$.LEFT_PARENTHESIS = 40; lime_ui__$KeyCode_KeyCode_$Impl_$.RIGHT_PARENTHESIS = 41; lime_ui__$KeyCode_KeyCode_$Impl_$.ASTERISK = 42; lime_ui__$KeyCode_KeyCode_$Impl_$.PLUS = 43; lime_ui__$KeyCode_KeyCode_$Impl_$.COMMA = 44; lime_ui__$KeyCode_KeyCode_$Impl_$.MINUS = 45; lime_ui__$KeyCode_KeyCode_$Impl_$.PERIOD = 46; lime_ui__$KeyCode_KeyCode_$Impl_$.SLASH = 47; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_0 = 48; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_1 = 49; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_2 = 50; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_3 = 51; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_4 = 52; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_5 = 53; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_6 = 54; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_7 = 55; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_8 = 56; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMBER_9 = 57; lime_ui__$KeyCode_KeyCode_$Impl_$.COLON = 58; lime_ui__$KeyCode_KeyCode_$Impl_$.SEMICOLON = 59; lime_ui__$KeyCode_KeyCode_$Impl_$.LESS_THAN = 60; lime_ui__$KeyCode_KeyCode_$Impl_$.EQUALS = 61; lime_ui__$KeyCode_KeyCode_$Impl_$.GREATER_THAN = 62; lime_ui__$KeyCode_KeyCode_$Impl_$.QUESTION = 63; lime_ui__$KeyCode_KeyCode_$Impl_$.AT = 64; lime_ui__$KeyCode_KeyCode_$Impl_$.LEFT_BRACKET = 91; lime_ui__$KeyCode_KeyCode_$Impl_$.BACKSLASH = 92; lime_ui__$KeyCode_KeyCode_$Impl_$.RIGHT_BRACKET = 93; lime_ui__$KeyCode_KeyCode_$Impl_$.CARET = 94; lime_ui__$KeyCode_KeyCode_$Impl_$.UNDERSCORE = 95; lime_ui__$KeyCode_KeyCode_$Impl_$.GRAVE = 96; lime_ui__$KeyCode_KeyCode_$Impl_$.A = 97; lime_ui__$KeyCode_KeyCode_$Impl_$.B = 98; lime_ui__$KeyCode_KeyCode_$Impl_$.C = 99; lime_ui__$KeyCode_KeyCode_$Impl_$.D = 100; lime_ui__$KeyCode_KeyCode_$Impl_$.E = 101; lime_ui__$KeyCode_KeyCode_$Impl_$.F = 102; lime_ui__$KeyCode_KeyCode_$Impl_$.G = 103; lime_ui__$KeyCode_KeyCode_$Impl_$.H = 104; lime_ui__$KeyCode_KeyCode_$Impl_$.I = 105; lime_ui__$KeyCode_KeyCode_$Impl_$.J = 106; lime_ui__$KeyCode_KeyCode_$Impl_$.K = 107; lime_ui__$KeyCode_KeyCode_$Impl_$.L = 108; lime_ui__$KeyCode_KeyCode_$Impl_$.M = 109; lime_ui__$KeyCode_KeyCode_$Impl_$.N = 110; lime_ui__$KeyCode_KeyCode_$Impl_$.O = 111; lime_ui__$KeyCode_KeyCode_$Impl_$.P = 112; lime_ui__$KeyCode_KeyCode_$Impl_$.Q = 113; lime_ui__$KeyCode_KeyCode_$Impl_$.R = 114; lime_ui__$KeyCode_KeyCode_$Impl_$.S = 115; lime_ui__$KeyCode_KeyCode_$Impl_$.T = 116; lime_ui__$KeyCode_KeyCode_$Impl_$.U = 117; lime_ui__$KeyCode_KeyCode_$Impl_$.V = 118; lime_ui__$KeyCode_KeyCode_$Impl_$.W = 119; lime_ui__$KeyCode_KeyCode_$Impl_$.X = 120; lime_ui__$KeyCode_KeyCode_$Impl_$.Y = 121; lime_ui__$KeyCode_KeyCode_$Impl_$.Z = 122; lime_ui__$KeyCode_KeyCode_$Impl_$.DELETE = 127; lime_ui__$KeyCode_KeyCode_$Impl_$.CAPS_LOCK = 1073741881; lime_ui__$KeyCode_KeyCode_$Impl_$.F1 = 1073741882; lime_ui__$KeyCode_KeyCode_$Impl_$.F2 = 1073741883; lime_ui__$KeyCode_KeyCode_$Impl_$.F3 = 1073741884; lime_ui__$KeyCode_KeyCode_$Impl_$.F4 = 1073741885; lime_ui__$KeyCode_KeyCode_$Impl_$.F5 = 1073741886; lime_ui__$KeyCode_KeyCode_$Impl_$.F6 = 1073741887; lime_ui__$KeyCode_KeyCode_$Impl_$.F7 = 1073741888; lime_ui__$KeyCode_KeyCode_$Impl_$.F8 = 1073741889; lime_ui__$KeyCode_KeyCode_$Impl_$.F9 = 1073741890; lime_ui__$KeyCode_KeyCode_$Impl_$.F10 = 1073741891; lime_ui__$KeyCode_KeyCode_$Impl_$.F11 = 1073741892; lime_ui__$KeyCode_KeyCode_$Impl_$.F12 = 1073741893; lime_ui__$KeyCode_KeyCode_$Impl_$.PRINT_SCREEN = 1073741894; lime_ui__$KeyCode_KeyCode_$Impl_$.SCROLL_LOCK = 1073741895; lime_ui__$KeyCode_KeyCode_$Impl_$.PAUSE = 1073741896; lime_ui__$KeyCode_KeyCode_$Impl_$.INSERT = 1073741897; lime_ui__$KeyCode_KeyCode_$Impl_$.HOME = 1073741898; lime_ui__$KeyCode_KeyCode_$Impl_$.PAGE_UP = 1073741899; lime_ui__$KeyCode_KeyCode_$Impl_$.END = 1073741901; lime_ui__$KeyCode_KeyCode_$Impl_$.PAGE_DOWN = 1073741902; lime_ui__$KeyCode_KeyCode_$Impl_$.RIGHT = 1073741903; lime_ui__$KeyCode_KeyCode_$Impl_$.LEFT = 1073741904; lime_ui__$KeyCode_KeyCode_$Impl_$.DOWN = 1073741905; lime_ui__$KeyCode_KeyCode_$Impl_$.UP = 1073741906; lime_ui__$KeyCode_KeyCode_$Impl_$.NUM_LOCK = 1073741907; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_DIVIDE = 1073741908; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MULTIPLY = 1073741909; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MINUS = 1073741910; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_PLUS = 1073741911; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_ENTER = 1073741912; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_1 = 1073741913; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_2 = 1073741914; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_3 = 1073741915; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_4 = 1073741916; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_5 = 1073741917; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_6 = 1073741918; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_7 = 1073741919; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_8 = 1073741920; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_9 = 1073741921; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_0 = 1073741922; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_PERIOD = 1073741923; lime_ui__$KeyCode_KeyCode_$Impl_$.APPLICATION = 1073741925; lime_ui__$KeyCode_KeyCode_$Impl_$.POWER = 1073741926; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_EQUALS = 1073741927; lime_ui__$KeyCode_KeyCode_$Impl_$.F13 = 1073741928; lime_ui__$KeyCode_KeyCode_$Impl_$.F14 = 1073741929; lime_ui__$KeyCode_KeyCode_$Impl_$.F15 = 1073741930; lime_ui__$KeyCode_KeyCode_$Impl_$.F16 = 1073741931; lime_ui__$KeyCode_KeyCode_$Impl_$.F17 = 1073741932; lime_ui__$KeyCode_KeyCode_$Impl_$.F18 = 1073741933; lime_ui__$KeyCode_KeyCode_$Impl_$.F19 = 1073741934; lime_ui__$KeyCode_KeyCode_$Impl_$.F20 = 1073741935; lime_ui__$KeyCode_KeyCode_$Impl_$.F21 = 1073741936; lime_ui__$KeyCode_KeyCode_$Impl_$.F22 = 1073741937; lime_ui__$KeyCode_KeyCode_$Impl_$.F23 = 1073741938; lime_ui__$KeyCode_KeyCode_$Impl_$.F24 = 1073741939; lime_ui__$KeyCode_KeyCode_$Impl_$.EXECUTE = 1073741940; lime_ui__$KeyCode_KeyCode_$Impl_$.HELP = 1073741941; lime_ui__$KeyCode_KeyCode_$Impl_$.MENU = 1073741942; lime_ui__$KeyCode_KeyCode_$Impl_$.SELECT = 1073741943; lime_ui__$KeyCode_KeyCode_$Impl_$.STOP = 1073741944; lime_ui__$KeyCode_KeyCode_$Impl_$.AGAIN = 1073741945; lime_ui__$KeyCode_KeyCode_$Impl_$.UNDO = 1073741946; lime_ui__$KeyCode_KeyCode_$Impl_$.CUT = 1073741947; lime_ui__$KeyCode_KeyCode_$Impl_$.COPY = 1073741948; lime_ui__$KeyCode_KeyCode_$Impl_$.PASTE = 1073741949; lime_ui__$KeyCode_KeyCode_$Impl_$.FIND = 1073741950; lime_ui__$KeyCode_KeyCode_$Impl_$.MUTE = 1073741951; lime_ui__$KeyCode_KeyCode_$Impl_$.VOLUME_UP = 1073741952; lime_ui__$KeyCode_KeyCode_$Impl_$.VOLUME_DOWN = 1073741953; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_COMMA = 1073741957; lime_ui__$KeyCode_KeyCode_$Impl_$.ALT_ERASE = 1073741977; lime_ui__$KeyCode_KeyCode_$Impl_$.SYSTEM_REQUEST = 1073741978; lime_ui__$KeyCode_KeyCode_$Impl_$.CANCEL = 1073741979; lime_ui__$KeyCode_KeyCode_$Impl_$.CLEAR = 1073741980; lime_ui__$KeyCode_KeyCode_$Impl_$.PRIOR = 1073741981; lime_ui__$KeyCode_KeyCode_$Impl_$.RETURN2 = 1073741982; lime_ui__$KeyCode_KeyCode_$Impl_$.SEPARATOR = 1073741983; lime_ui__$KeyCode_KeyCode_$Impl_$.OUT = 1073741984; lime_ui__$KeyCode_KeyCode_$Impl_$.OPER = 1073741985; lime_ui__$KeyCode_KeyCode_$Impl_$.CLEAR_AGAIN = 1073741986; lime_ui__$KeyCode_KeyCode_$Impl_$.CRSEL = 1073741987; lime_ui__$KeyCode_KeyCode_$Impl_$.EXSEL = 1073741988; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_00 = 1073742000; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_000 = 1073742001; lime_ui__$KeyCode_KeyCode_$Impl_$.THOUSAND_SEPARATOR = 1073742002; lime_ui__$KeyCode_KeyCode_$Impl_$.DECIMAL_SEPARATOR = 1073742003; lime_ui__$KeyCode_KeyCode_$Impl_$.CURRENCY_UNIT = 1073742004; lime_ui__$KeyCode_KeyCode_$Impl_$.CURRENCY_SUBUNIT = 1073742005; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_LEFT_PARENTHESIS = 1073742006; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_RIGHT_PARENTHESIS = 1073742007; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_LEFT_BRACE = 1073742008; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_RIGHT_BRACE = 1073742009; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_TAB = 1073742010; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_BACKSPACE = 1073742011; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_A = 1073742012; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_B = 1073742013; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_C = 1073742014; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_D = 1073742015; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_E = 1073742016; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_F = 1073742017; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_XOR = 1073742018; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_POWER = 1073742019; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_PERCENT = 1073742020; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_LESS_THAN = 1073742021; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_GREATER_THAN = 1073742022; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_AMPERSAND = 1073742023; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_DOUBLE_AMPERSAND = 1073742024; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_VERTICAL_BAR = 1073742025; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_DOUBLE_VERTICAL_BAR = 1073742026; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_COLON = 1073742027; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_HASH = 1073742028; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_SPACE = 1073742029; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_AT = 1073742030; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_EXCLAMATION = 1073742031; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MEM_STORE = 1073742032; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MEM_RECALL = 1073742033; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MEM_CLEAR = 1073742034; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MEM_ADD = 1073742035; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MEM_SUBTRACT = 1073742036; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MEM_MULTIPLY = 1073742037; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_MEM_DIVIDE = 1073742038; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_PLUS_MINUS = 1073742039; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_CLEAR = 1073742040; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_CLEAR_ENTRY = 1073742041; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_BINARY = 1073742042; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_OCTAL = 1073742043; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_DECIMAL = 1073742044; lime_ui__$KeyCode_KeyCode_$Impl_$.NUMPAD_HEXADECIMAL = 1073742045; lime_ui__$KeyCode_KeyCode_$Impl_$.LEFT_CTRL = 1073742048; lime_ui__$KeyCode_KeyCode_$Impl_$.LEFT_SHIFT = 1073742049; lime_ui__$KeyCode_KeyCode_$Impl_$.LEFT_ALT = 1073742050; lime_ui__$KeyCode_KeyCode_$Impl_$.LEFT_META = 1073742051; lime_ui__$KeyCode_KeyCode_$Impl_$.RIGHT_CTRL = 1073742052; lime_ui__$KeyCode_KeyCode_$Impl_$.RIGHT_SHIFT = 1073742053; lime_ui__$KeyCode_KeyCode_$Impl_$.RIGHT_ALT = 1073742054; lime_ui__$KeyCode_KeyCode_$Impl_$.RIGHT_META = 1073742055; lime_ui__$KeyCode_KeyCode_$Impl_$.MODE = 1073742081; lime_ui__$KeyCode_KeyCode_$Impl_$.AUDIO_NEXT = 1073742082; lime_ui__$KeyCode_KeyCode_$Impl_$.AUDIO_PREVIOUS = 1073742083; lime_ui__$KeyCode_KeyCode_$Impl_$.AUDIO_STOP = 1073742084; lime_ui__$KeyCode_KeyCode_$Impl_$.AUDIO_PLAY = 1073742085; lime_ui__$KeyCode_KeyCode_$Impl_$.AUDIO_MUTE = 1073742086; lime_ui__$KeyCode_KeyCode_$Impl_$.MEDIA_SELECT = 1073742087; lime_ui__$KeyCode_KeyCode_$Impl_$.WWW = 1073742088; lime_ui__$KeyCode_KeyCode_$Impl_$.MAIL = 1073742089; lime_ui__$KeyCode_KeyCode_$Impl_$.CALCULATOR = 1073742090; lime_ui__$KeyCode_KeyCode_$Impl_$.COMPUTER = 1073742091; lime_ui__$KeyCode_KeyCode_$Impl_$.APP_CONTROL_SEARCH = 1073742092; lime_ui__$KeyCode_KeyCode_$Impl_$.APP_CONTROL_HOME = 1073742093; lime_ui__$KeyCode_KeyCode_$Impl_$.APP_CONTROL_BACK = 1073742094; lime_ui__$KeyCode_KeyCode_$Impl_$.APP_CONTROL_FORWARD = 1073742095; lime_ui__$KeyCode_KeyCode_$Impl_$.APP_CONTROL_STOP = 1073742096; lime_ui__$KeyCode_KeyCode_$Impl_$.APP_CONTROL_REFRESH = 1073742097; lime_ui__$KeyCode_KeyCode_$Impl_$.APP_CONTROL_BOOKMARKS = 1073742098; lime_ui__$KeyCode_KeyCode_$Impl_$.BRIGHTNESS_DOWN = 1073742099; lime_ui__$KeyCode_KeyCode_$Impl_$.BRIGHTNESS_UP = 1073742100; lime_ui__$KeyCode_KeyCode_$Impl_$.DISPLAY_SWITCH = 1073742101; lime_ui__$KeyCode_KeyCode_$Impl_$.BACKLIGHT_TOGGLE = 1073742102; lime_ui__$KeyCode_KeyCode_$Impl_$.BACKLIGHT_DOWN = 1073742103; lime_ui__$KeyCode_KeyCode_$Impl_$.BACKLIGHT_UP = 1073742104; lime_ui__$KeyCode_KeyCode_$Impl_$.EJECT = 1073742105; lime_ui__$KeyCode_KeyCode_$Impl_$.SLEEP = 1073742106; lime_ui__$KeyModifier_KeyModifier_$Impl_$.NONE = 0; lime_ui__$KeyModifier_KeyModifier_$Impl_$.LEFT_SHIFT = 1; lime_ui__$KeyModifier_KeyModifier_$Impl_$.RIGHT_SHIFT = 2; lime_ui__$KeyModifier_KeyModifier_$Impl_$.LEFT_CTRL = 64; lime_ui__$KeyModifier_KeyModifier_$Impl_$.RIGHT_CTRL = 128; lime_ui__$KeyModifier_KeyModifier_$Impl_$.LEFT_ALT = 256; lime_ui__$KeyModifier_KeyModifier_$Impl_$.RIGHT_ALT = 512; lime_ui__$KeyModifier_KeyModifier_$Impl_$.LEFT_META = 1024; lime_ui__$KeyModifier_KeyModifier_$Impl_$.RIGHT_META = 2048; lime_ui__$KeyModifier_KeyModifier_$Impl_$.NUM_LOCK = 4096; lime_ui__$KeyModifier_KeyModifier_$Impl_$.CAPS_LOCK = 8192; lime_ui__$KeyModifier_KeyModifier_$Impl_$.MODE = 16384; lime_ui__$KeyModifier_KeyModifier_$Impl_$.CTRL = 192; lime_ui__$KeyModifier_KeyModifier_$Impl_$.SHIFT = 3; lime_ui__$KeyModifier_KeyModifier_$Impl_$.ALT = 768; lime_ui__$KeyModifier_KeyModifier_$Impl_$.META = 3072; lime_ui__$ScanCode_ScanCode_$Impl_$.UNKNOWN = 0; lime_ui__$ScanCode_ScanCode_$Impl_$.BACKSPACE = 42; lime_ui__$ScanCode_ScanCode_$Impl_$.TAB = 43; lime_ui__$ScanCode_ScanCode_$Impl_$.RETURN = 40; lime_ui__$ScanCode_ScanCode_$Impl_$.ESCAPE = 41; lime_ui__$ScanCode_ScanCode_$Impl_$.SPACE = 44; lime_ui__$ScanCode_ScanCode_$Impl_$.SINGLE_QUOTE = 52; lime_ui__$ScanCode_ScanCode_$Impl_$.COMMA = 54; lime_ui__$ScanCode_ScanCode_$Impl_$.MINUS = 45; lime_ui__$ScanCode_ScanCode_$Impl_$.PERIOD = 55; lime_ui__$ScanCode_ScanCode_$Impl_$.SLASH = 56; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_0 = 39; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_1 = 30; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_2 = 31; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_3 = 32; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_4 = 33; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_5 = 34; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_6 = 35; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_7 = 36; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_8 = 37; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMBER_9 = 38; lime_ui__$ScanCode_ScanCode_$Impl_$.SEMICOLON = 51; lime_ui__$ScanCode_ScanCode_$Impl_$.EQUALS = 46; lime_ui__$ScanCode_ScanCode_$Impl_$.LEFT_BRACKET = 47; lime_ui__$ScanCode_ScanCode_$Impl_$.BACKSLASH = 49; lime_ui__$ScanCode_ScanCode_$Impl_$.RIGHT_BRACKET = 48; lime_ui__$ScanCode_ScanCode_$Impl_$.GRAVE = 53; lime_ui__$ScanCode_ScanCode_$Impl_$.A = 4; lime_ui__$ScanCode_ScanCode_$Impl_$.B = 5; lime_ui__$ScanCode_ScanCode_$Impl_$.C = 6; lime_ui__$ScanCode_ScanCode_$Impl_$.D = 7; lime_ui__$ScanCode_ScanCode_$Impl_$.E = 8; lime_ui__$ScanCode_ScanCode_$Impl_$.F = 9; lime_ui__$ScanCode_ScanCode_$Impl_$.G = 10; lime_ui__$ScanCode_ScanCode_$Impl_$.H = 11; lime_ui__$ScanCode_ScanCode_$Impl_$.I = 12; lime_ui__$ScanCode_ScanCode_$Impl_$.J = 13; lime_ui__$ScanCode_ScanCode_$Impl_$.K = 14; lime_ui__$ScanCode_ScanCode_$Impl_$.L = 15; lime_ui__$ScanCode_ScanCode_$Impl_$.M = 16; lime_ui__$ScanCode_ScanCode_$Impl_$.N = 17; lime_ui__$ScanCode_ScanCode_$Impl_$.O = 18; lime_ui__$ScanCode_ScanCode_$Impl_$.P = 19; lime_ui__$ScanCode_ScanCode_$Impl_$.Q = 20; lime_ui__$ScanCode_ScanCode_$Impl_$.R = 21; lime_ui__$ScanCode_ScanCode_$Impl_$.S = 22; lime_ui__$ScanCode_ScanCode_$Impl_$.T = 23; lime_ui__$ScanCode_ScanCode_$Impl_$.U = 24; lime_ui__$ScanCode_ScanCode_$Impl_$.V = 25; lime_ui__$ScanCode_ScanCode_$Impl_$.W = 26; lime_ui__$ScanCode_ScanCode_$Impl_$.X = 27; lime_ui__$ScanCode_ScanCode_$Impl_$.Y = 28; lime_ui__$ScanCode_ScanCode_$Impl_$.Z = 29; lime_ui__$ScanCode_ScanCode_$Impl_$.DELETE = 76; lime_ui__$ScanCode_ScanCode_$Impl_$.CAPS_LOCK = 57; lime_ui__$ScanCode_ScanCode_$Impl_$.F1 = 58; lime_ui__$ScanCode_ScanCode_$Impl_$.F2 = 59; lime_ui__$ScanCode_ScanCode_$Impl_$.F3 = 60; lime_ui__$ScanCode_ScanCode_$Impl_$.F4 = 61; lime_ui__$ScanCode_ScanCode_$Impl_$.F5 = 62; lime_ui__$ScanCode_ScanCode_$Impl_$.F6 = 63; lime_ui__$ScanCode_ScanCode_$Impl_$.F7 = 64; lime_ui__$ScanCode_ScanCode_$Impl_$.F8 = 65; lime_ui__$ScanCode_ScanCode_$Impl_$.F9 = 66; lime_ui__$ScanCode_ScanCode_$Impl_$.F10 = 67; lime_ui__$ScanCode_ScanCode_$Impl_$.F11 = 68; lime_ui__$ScanCode_ScanCode_$Impl_$.F12 = 69; lime_ui__$ScanCode_ScanCode_$Impl_$.PRINT_SCREEN = 70; lime_ui__$ScanCode_ScanCode_$Impl_$.SCROLL_LOCK = 71; lime_ui__$ScanCode_ScanCode_$Impl_$.PAUSE = 72; lime_ui__$ScanCode_ScanCode_$Impl_$.INSERT = 73; lime_ui__$ScanCode_ScanCode_$Impl_$.HOME = 74; lime_ui__$ScanCode_ScanCode_$Impl_$.PAGE_UP = 75; lime_ui__$ScanCode_ScanCode_$Impl_$.END = 77; lime_ui__$ScanCode_ScanCode_$Impl_$.PAGE_DOWN = 78; lime_ui__$ScanCode_ScanCode_$Impl_$.RIGHT = 79; lime_ui__$ScanCode_ScanCode_$Impl_$.LEFT = 80; lime_ui__$ScanCode_ScanCode_$Impl_$.DOWN = 81; lime_ui__$ScanCode_ScanCode_$Impl_$.UP = 82; lime_ui__$ScanCode_ScanCode_$Impl_$.NUM_LOCK = 83; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_DIVIDE = 84; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MULTIPLY = 85; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MINUS = 86; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_PLUS = 87; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_ENTER = 88; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_1 = 89; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_2 = 90; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_3 = 91; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_4 = 92; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_5 = 93; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_6 = 94; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_7 = 95; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_8 = 96; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_9 = 97; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_0 = 98; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_PERIOD = 99; lime_ui__$ScanCode_ScanCode_$Impl_$.APPLICATION = 101; lime_ui__$ScanCode_ScanCode_$Impl_$.POWER = 102; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_EQUALS = 103; lime_ui__$ScanCode_ScanCode_$Impl_$.F13 = 104; lime_ui__$ScanCode_ScanCode_$Impl_$.F14 = 105; lime_ui__$ScanCode_ScanCode_$Impl_$.F15 = 106; lime_ui__$ScanCode_ScanCode_$Impl_$.F16 = 107; lime_ui__$ScanCode_ScanCode_$Impl_$.F17 = 108; lime_ui__$ScanCode_ScanCode_$Impl_$.F18 = 109; lime_ui__$ScanCode_ScanCode_$Impl_$.F19 = 110; lime_ui__$ScanCode_ScanCode_$Impl_$.F20 = 111; lime_ui__$ScanCode_ScanCode_$Impl_$.F21 = 112; lime_ui__$ScanCode_ScanCode_$Impl_$.F22 = 113; lime_ui__$ScanCode_ScanCode_$Impl_$.F23 = 114; lime_ui__$ScanCode_ScanCode_$Impl_$.F24 = 115; lime_ui__$ScanCode_ScanCode_$Impl_$.EXECUTE = 116; lime_ui__$ScanCode_ScanCode_$Impl_$.HELP = 117; lime_ui__$ScanCode_ScanCode_$Impl_$.MENU = 118; lime_ui__$ScanCode_ScanCode_$Impl_$.SELECT = 119; lime_ui__$ScanCode_ScanCode_$Impl_$.STOP = 120; lime_ui__$ScanCode_ScanCode_$Impl_$.AGAIN = 121; lime_ui__$ScanCode_ScanCode_$Impl_$.UNDO = 122; lime_ui__$ScanCode_ScanCode_$Impl_$.CUT = 123; lime_ui__$ScanCode_ScanCode_$Impl_$.COPY = 124; lime_ui__$ScanCode_ScanCode_$Impl_$.PASTE = 125; lime_ui__$ScanCode_ScanCode_$Impl_$.FIND = 126; lime_ui__$ScanCode_ScanCode_$Impl_$.MUTE = 127; lime_ui__$ScanCode_ScanCode_$Impl_$.VOLUME_UP = 128; lime_ui__$ScanCode_ScanCode_$Impl_$.VOLUME_DOWN = 129; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_COMMA = 133; lime_ui__$ScanCode_ScanCode_$Impl_$.ALT_ERASE = 153; lime_ui__$ScanCode_ScanCode_$Impl_$.SYSTEM_REQUEST = 154; lime_ui__$ScanCode_ScanCode_$Impl_$.CANCEL = 155; lime_ui__$ScanCode_ScanCode_$Impl_$.CLEAR = 156; lime_ui__$ScanCode_ScanCode_$Impl_$.PRIOR = 157; lime_ui__$ScanCode_ScanCode_$Impl_$.RETURN2 = 158; lime_ui__$ScanCode_ScanCode_$Impl_$.SEPARATOR = 159; lime_ui__$ScanCode_ScanCode_$Impl_$.OUT = 160; lime_ui__$ScanCode_ScanCode_$Impl_$.OPER = 161; lime_ui__$ScanCode_ScanCode_$Impl_$.CLEAR_AGAIN = 162; lime_ui__$ScanCode_ScanCode_$Impl_$.CRSEL = 163; lime_ui__$ScanCode_ScanCode_$Impl_$.EXSEL = 164; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_00 = 176; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_000 = 177; lime_ui__$ScanCode_ScanCode_$Impl_$.THOUSAND_SEPARATOR = 178; lime_ui__$ScanCode_ScanCode_$Impl_$.DECIMAL_SEPARATOR = 179; lime_ui__$ScanCode_ScanCode_$Impl_$.CURRENCY_UNIT = 180; lime_ui__$ScanCode_ScanCode_$Impl_$.CURRENCY_SUBUNIT = 181; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_LEFT_PARENTHESIS = 182; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_RIGHT_PARENTHESIS = 183; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_LEFT_BRACE = 184; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_RIGHT_BRACE = 185; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_TAB = 186; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_BACKSPACE = 187; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_A = 188; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_B = 189; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_C = 190; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_D = 191; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_E = 192; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_F = 193; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_XOR = 194; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_POWER = 195; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_PERCENT = 196; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_LESS_THAN = 197; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_GREATER_THAN = 198; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_AMPERSAND = 199; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_DOUBLE_AMPERSAND = 200; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_VERTICAL_BAR = 201; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_DOUBLE_VERTICAL_BAR = 202; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_COLON = 203; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_HASH = 204; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_SPACE = 205; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_AT = 206; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_EXCLAMATION = 207; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MEM_STORE = 208; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MEM_RECALL = 209; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MEM_CLEAR = 210; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MEM_ADD = 211; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MEM_SUBTRACT = 212; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MEM_MULTIPLY = 213; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_MEM_DIVIDE = 214; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_PLUS_MINUS = 215; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_CLEAR = 216; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_CLEAR_ENTRY = 217; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_BINARY = 218; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_OCTAL = 219; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_DECIMAL = 220; lime_ui__$ScanCode_ScanCode_$Impl_$.NUMPAD_HEXADECIMAL = 221; lime_ui__$ScanCode_ScanCode_$Impl_$.LEFT_CTRL = 224; lime_ui__$ScanCode_ScanCode_$Impl_$.LEFT_SHIFT = 225; lime_ui__$ScanCode_ScanCode_$Impl_$.LEFT_ALT = 226; lime_ui__$ScanCode_ScanCode_$Impl_$.LEFT_META = 227; lime_ui__$ScanCode_ScanCode_$Impl_$.RIGHT_CTRL = 228; lime_ui__$ScanCode_ScanCode_$Impl_$.RIGHT_SHIFT = 229; lime_ui__$ScanCode_ScanCode_$Impl_$.RIGHT_ALT = 230; lime_ui__$ScanCode_ScanCode_$Impl_$.RIGHT_META = 231; lime_ui__$ScanCode_ScanCode_$Impl_$.MODE = 257; lime_ui__$ScanCode_ScanCode_$Impl_$.AUDIO_NEXT = 258; lime_ui__$ScanCode_ScanCode_$Impl_$.AUDIO_PREVIOUS = 259; lime_ui__$ScanCode_ScanCode_$Impl_$.AUDIO_STOP = 260; lime_ui__$ScanCode_ScanCode_$Impl_$.AUDIO_PLAY = 261; lime_ui__$ScanCode_ScanCode_$Impl_$.AUDIO_MUTE = 262; lime_ui__$ScanCode_ScanCode_$Impl_$.MEDIA_SELECT = 263; lime_ui__$ScanCode_ScanCode_$Impl_$.WWW = 264; lime_ui__$ScanCode_ScanCode_$Impl_$.MAIL = 265; lime_ui__$ScanCode_ScanCode_$Impl_$.CALCULATOR = 266; lime_ui__$ScanCode_ScanCode_$Impl_$.COMPUTER = 267; lime_ui__$ScanCode_ScanCode_$Impl_$.APP_CONTROL_SEARCH = 268; lime_ui__$ScanCode_ScanCode_$Impl_$.APP_CONTROL_HOME = 269; lime_ui__$ScanCode_ScanCode_$Impl_$.APP_CONTROL_BACK = 270; lime_ui__$ScanCode_ScanCode_$Impl_$.APP_CONTROL_FORWARD = 271; lime_ui__$ScanCode_ScanCode_$Impl_$.APP_CONTROL_STOP = 272; lime_ui__$ScanCode_ScanCode_$Impl_$.APP_CONTROL_REFRESH = 273; lime_ui__$ScanCode_ScanCode_$Impl_$.APP_CONTROL_BOOKMARKS = 274; lime_ui__$ScanCode_ScanCode_$Impl_$.BRIGHTNESS_DOWN = 275; lime_ui__$ScanCode_ScanCode_$Impl_$.BRIGHTNESS_UP = 276; lime_ui__$ScanCode_ScanCode_$Impl_$.DISPLAY_SWITCH = 277; lime_ui__$ScanCode_ScanCode_$Impl_$.BACKLIGHT_TOGGLE = 278; lime_ui__$ScanCode_ScanCode_$Impl_$.BACKLIGHT_DOWN = 279; lime_ui__$ScanCode_ScanCode_$Impl_$.BACKLIGHT_UP = 280; lime_ui__$ScanCode_ScanCode_$Impl_$.EJECT = 281; lime_ui__$ScanCode_ScanCode_$Impl_$.SLEEP = 282; lime_ui_Touch.onEnd = new lime_app__$Event_$lime_$ui_$Touch_$Void(); lime_ui_Touch.onMove = new lime_app__$Event_$lime_$ui_$Touch_$Void(); lime_ui_Touch.onStart = new lime_app__$Event_$lime_$ui_$Touch_$Void(); lime_utils_Assets.cache = new lime_utils_AssetCache(); lime_utils_Assets.onChange = new lime_app__$Event_$Void_$Void(); lime_utils_Assets.libraries = new haxe_ds_StringMap(); lime_utils_Assets.libraryPaths = new haxe_ds_StringMap(); lime_utils__$Float32Array_Float32Array_$Impl_$.BYTES_PER_ELEMENT = 4; lime_utils__$Float64Array_Float64Array_$Impl_$.BYTES_PER_ELEMENT = 8; lime_utils__$Int16Array_Int16Array_$Impl_$.BYTES_PER_ELEMENT = 2; lime_utils__$Int32Array_Int32Array_$Impl_$.BYTES_PER_ELEMENT = 4; lime_utils__$Int8Array_Int8Array_$Impl_$.BYTES_PER_ELEMENT = 1; lime_utils_Log.throwErrors = true; lime_utils__$Log_LogLevel_$Impl_$.NONE = 0; lime_utils__$Log_LogLevel_$Impl_$.ERROR = 1; lime_utils__$Log_LogLevel_$Impl_$.WARN = 2; lime_utils__$Log_LogLevel_$Impl_$.INFO = 3; lime_utils__$Log_LogLevel_$Impl_$.DEBUG = 4; lime_utils__$Log_LogLevel_$Impl_$.VERBOSE = 5; lime_utils__$UInt16Array_UInt16Array_$Impl_$.BYTES_PER_ELEMENT = 2; lime_utils__$UInt32Array_UInt32Array_$Impl_$.BYTES_PER_ELEMENT = 4; lime_utils__$UInt8Array_UInt8Array_$Impl_$.BYTES_PER_ELEMENT = 1; lime_utils__$UInt8ClampedArray_UInt8ClampedArray_$Impl_$.BYTES_PER_ELEMENT = 1; motion_actuators_SimpleActuator.actuators = []; motion_actuators_SimpleActuator.actuatorsLength = 0; motion_actuators_SimpleActuator.addedEvent = false; motion_Actuate.defaultActuator = motion_actuators_SimpleActuator; motion_Actuate.defaultEase = motion_easing_Expo.get_easeOut(); motion_Actuate.targetLibraries = new haxe_ds_ObjectMap(); openfl__$internal_renderer_DrawCommandBuffer.empty = new openfl__$internal_renderer_DrawCommandBuffer(); openfl__$internal_renderer_cairo_CairoGraphics.SIN45 = 0.70710678118654752440084436210485; openfl__$internal_renderer_cairo_CairoGraphics.TAN22 = 0.4142135623730950488016887242097; openfl__$internal_renderer_cairo_CairoGraphics.fillCommands = new openfl__$internal_renderer_DrawCommandBuffer(); openfl__$internal_renderer_cairo_CairoGraphics.strokeCommands = new openfl__$internal_renderer_DrawCommandBuffer(); openfl__$internal_renderer_canvas_CanvasGraphics.SIN45 = 0.70710678118654752440084436210485; openfl__$internal_renderer_canvas_CanvasGraphics.TAN22 = 0.4142135623730950488016887242097; openfl__$internal_renderer_canvas_CanvasGraphics.fillCommands = new openfl__$internal_renderer_DrawCommandBuffer(); openfl__$internal_renderer_canvas_CanvasGraphics.strokeCommands = new openfl__$internal_renderer_DrawCommandBuffer(); openfl__$internal_renderer_canvas_CanvasGraphics.hitTestCanvas = window.document.createElement("canvas"); openfl__$internal_renderer_canvas_CanvasGraphics.hitTestContext = openfl__$internal_renderer_canvas_CanvasGraphics.hitTestCanvas.getContext("2d"); openfl__$internal_renderer_canvas_CanvasRenderer.scale = 1; openfl__$internal_renderer_dom_DOMTextField.__regexColor = new EReg("color=(\"#([^\"]+)\"|'#([^']+)')","i"); openfl__$internal_renderer_dom_DOMTextField.__regexFace = new EReg("face=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_renderer_dom_DOMTextField.__regexFont = new EReg("]+)>","gi"); openfl__$internal_renderer_dom_DOMTextField.__regexCloseFont = new EReg("","gi"); openfl__$internal_renderer_dom_DOMTextField.__regexSize = new EReg("size=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_stage3D_AGALConverter.limitedProfile = true; openfl__$internal_stage3D_Context3DStateCache.FLOATS_PER_REGISTER = 4; openfl__$internal_stage3D_Context3DStateCache.MAX_NUM_REGISTERS = 1024; openfl__$internal_stage3D_Context3DStateCache.disableCache = true; openfl__$internal_stage3D_GLUtils.debug = false; openfl__$internal_swf_SWFLite.instances = new haxe_ds_StringMap(); openfl__$internal_text_HTMLParser.__regexAlign = new EReg("align=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexBreakTag = new EReg("","gi"); openfl__$internal_text_HTMLParser.__regexBlockIndent = new EReg("blockindent=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexColor = new EReg("color=(\"#([^\"]+)\"|'#([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexEntities = [new EReg(""","g"),new EReg("'","g"),new EReg("&","g"),new EReg("<","g"),new EReg(">","g"),new EReg(" ","g")]; openfl__$internal_text_HTMLParser.__regexFace = new EReg("face=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexHTMLTag = new EReg("<.*?>","g"); openfl__$internal_text_HTMLParser.__regexHref = new EReg("href=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexIndent = new EReg(" indent=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexLeading = new EReg("leading=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexLeftMargin = new EReg("leftmargin=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexRightMargin = new EReg("rightmargin=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexSize = new EReg("size=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_HTMLParser.__regexTabStops = new EReg("tabstops=(\"([^\"]+)\"|'([^']+)')","i"); openfl__$internal_text_TextEngine.UTF8_TAB = 9; openfl__$internal_text_TextEngine.UTF8_ENDLINE = 10; openfl__$internal_text_TextEngine.UTF8_SPACE = 32; openfl__$internal_text_TextEngine.UTF8_HYPHEN = 45; openfl__$internal_text_TextEngine.__defaultFonts = new haxe_ds_StringMap(); openfl__$internal_utils_PerlinNoise.P = [151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180,151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180]; openfl_display__$BlendMode_BlendMode_$Impl_$.ADD = 0; openfl_display__$BlendMode_BlendMode_$Impl_$.ALPHA = 1; openfl_display__$BlendMode_BlendMode_$Impl_$.DARKEN = 2; openfl_display__$BlendMode_BlendMode_$Impl_$.DIFFERENCE = 3; openfl_display__$BlendMode_BlendMode_$Impl_$.ERASE = 4; openfl_display__$BlendMode_BlendMode_$Impl_$.HARDLIGHT = 5; openfl_display__$BlendMode_BlendMode_$Impl_$.INVERT = 6; openfl_display__$BlendMode_BlendMode_$Impl_$.LAYER = 7; openfl_display__$BlendMode_BlendMode_$Impl_$.LIGHTEN = 8; openfl_display__$BlendMode_BlendMode_$Impl_$.MULTIPLY = 9; openfl_display__$BlendMode_BlendMode_$Impl_$.NORMAL = 10; openfl_display__$BlendMode_BlendMode_$Impl_$.OVERLAY = 11; openfl_display__$BlendMode_BlendMode_$Impl_$.SCREEN = 12; openfl_display__$BlendMode_BlendMode_$Impl_$.SHADER = 13; openfl_display__$BlendMode_BlendMode_$Impl_$.SUBTRACT = 14; openfl_display__$CapsStyle_CapsStyle_$Impl_$.NONE = 0; openfl_display__$CapsStyle_CapsStyle_$Impl_$.ROUND = 1; openfl_display__$CapsStyle_CapsStyle_$Impl_$.SQUARE = 2; openfl_display__$GradientType_GradientType_$Impl_$.LINEAR = 0; openfl_display__$GradientType_GradientType_$Impl_$.RADIAL = 1; openfl_display_GraphicsPath.SIN45 = 0.70710678118654752440084436210485; openfl_display_GraphicsPath.TAN22 = 0.4142135623730950488016887242097; openfl_display__$GraphicsPathWinding_GraphicsPathWinding_$Impl_$.EVEN_ODD = 0; openfl_display__$GraphicsPathWinding_GraphicsPathWinding_$Impl_$.NON_ZERO = 1; openfl_display__$InterpolationMethod_InterpolationMethod_$Impl_$.LINEAR_RGB = 0; openfl_display__$InterpolationMethod_InterpolationMethod_$Impl_$.RGB = 1; openfl_display__$JointStyle_JointStyle_$Impl_$.BEVEL = 0; openfl_display__$JointStyle_JointStyle_$Impl_$.MITER = 1; openfl_display__$JointStyle_JointStyle_$Impl_$.ROUND = 2; openfl_display__$LineScaleMode_LineScaleMode_$Impl_$.HORIZONTAL = 0; openfl_display__$LineScaleMode_LineScaleMode_$Impl_$.NONE = 1; openfl_display__$LineScaleMode_LineScaleMode_$Impl_$.NORMAL = 2; openfl_display__$LineScaleMode_LineScaleMode_$Impl_$.VERTICAL = 3; openfl_display_LoaderInfo.__rootURL = window.document.URL; openfl_display__$PixelSnapping_PixelSnapping_$Impl_$.ALWAYS = 0; openfl_display__$PixelSnapping_PixelSnapping_$Impl_$.AUTO = 1; openfl_display__$PixelSnapping_PixelSnapping_$Impl_$.NEVER = 2; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.BOOL = 0; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.BOOL2 = 1; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.BOOL3 = 2; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.BOOL4 = 3; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.FLOAT = 4; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.FLOAT2 = 5; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.FLOAT3 = 6; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.FLOAT4 = 7; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.INT = 8; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.INT2 = 9; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.INT3 = 10; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.INT4 = 11; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX2X2 = 12; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX2X3 = 13; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX2X4 = 14; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX3X2 = 15; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX3X3 = 16; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX3X4 = 17; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX4X2 = 18; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX4X3 = 19; openfl_display__$ShaderParameterType_ShaderParameterType_$Impl_$.MATRIX4X4 = 20; openfl_display__$ShaderPrecision_ShaderPrecision_$Impl_$.FAST = 0; openfl_display__$ShaderPrecision_ShaderPrecision_$Impl_$.FULL = 1; openfl_display__$SpreadMethod_SpreadMethod_$Impl_$.PAD = 0; openfl_display__$SpreadMethod_SpreadMethod_$Impl_$.REFLECT = 1; openfl_display__$SpreadMethod_SpreadMethod_$Impl_$.REPEAT = 2; openfl_display__$StageAlign_StageAlign_$Impl_$.BOTTOM = 0; openfl_display__$StageAlign_StageAlign_$Impl_$.BOTTOM_LEFT = 1; openfl_display__$StageAlign_StageAlign_$Impl_$.BOTTOM_RIGHT = 2; openfl_display__$StageAlign_StageAlign_$Impl_$.LEFT = 3; openfl_display__$StageAlign_StageAlign_$Impl_$.RIGHT = 4; openfl_display__$StageAlign_StageAlign_$Impl_$.TOP = 5; openfl_display__$StageAlign_StageAlign_$Impl_$.TOP_LEFT = 6; openfl_display__$StageAlign_StageAlign_$Impl_$.TOP_RIGHT = 7; openfl_display__$StageDisplayState_StageDisplayState_$Impl_$.FULL_SCREEN = 0; openfl_display__$StageDisplayState_StageDisplayState_$Impl_$.FULL_SCREEN_INTERACTIVE = 1; openfl_display__$StageDisplayState_StageDisplayState_$Impl_$.NORMAL = 2; openfl_display__$StageQuality_StageQuality_$Impl_$.BEST = 0; openfl_display__$StageQuality_StageQuality_$Impl_$.HIGH = 1; openfl_display__$StageQuality_StageQuality_$Impl_$.LOW = 2; openfl_display__$StageQuality_StageQuality_$Impl_$.MEDIUM = 3; openfl_display__$StageScaleMode_StageScaleMode_$Impl_$.EXACT_FIT = 0; openfl_display__$StageScaleMode_StageScaleMode_$Impl_$.NO_BORDER = 1; openfl_display__$StageScaleMode_StageScaleMode_$Impl_$.NO_SCALE = 2; openfl_display__$StageScaleMode_StageScaleMode_$Impl_$.SHOW_ALL = 3; openfl_display__$TriangleCulling_TriangleCulling_$Impl_$.NEGATIVE = 0; openfl_display__$TriangleCulling_TriangleCulling_$Impl_$.NONE = 1; openfl_display__$TriangleCulling_TriangleCulling_$Impl_$.POSITIVE = 2; openfl_display3D_Context3D.supportsVideoTexture = true; openfl_display3D_Context3D.MAX_SAMPLERS = 8; openfl_display3D_Context3D.MAX_ATTRIBUTES = 16; openfl_display3D_Context3D.MAX_PROGRAM_REGISTERS = 128; openfl_display3D_Context3D.TEXTURE_MAX_ANISOTROPY_EXT = 0; openfl_display3D_Context3D.DEPTH_STENCIL = 0; openfl_display3D_Context3D.__stateCache = new openfl__$internal_stage3D_Context3DStateCache(); openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.DRAW_CALLS = 0; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.COUNT_INDEX_BUFFER = 1; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.COUNT_VERTEX_BUFFER = 2; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.COUNT_TEXTURE = 3; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.COUNT_TEXTURE_COMPRESSED = 4; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.COUNT_PROGRAM = 5; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.MEM_INDEX_BUFFER = 6; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.MEM_VERTEX_BUFFER = 7; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.MEM_TEXTURE = 8; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.MEM_TEXTURE_COMPRESSED = 9; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.MEM_PROGRAM = 10; openfl_display3D__$Context3D_Context3DTelemetry_$Impl_$.$length = 11; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.DESTINATION_ALPHA = 0; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.DESTINATION_COLOR = 1; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.ONE = 2; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.ONE_MINUS_DESTINATION_ALPHA = 3; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.ONE_MINUS_DESTINATION_COLOR = 4; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.ONE_MINUS_SOURCE_ALPHA = 5; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.ONE_MINUS_SOURCE_COLOR = 6; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.SOURCE_ALPHA = 7; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.SOURCE_COLOR = 8; openfl_display3D__$Context3DBlendFactor_Context3DBlendFactor_$Impl_$.ZERO = 9; openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$.DYNAMIC_DRAW = 0; openfl_display3D__$Context3DBufferUsage_Context3DBufferUsage_$Impl_$.STATIC_DRAW = 1; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.ALWAYS = 0; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.EQUAL = 1; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.GREATER = 2; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.GREATER_EQUAL = 3; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.LESS = 4; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.LESS_EQUAL = 5; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.NEVER = 6; openfl_display3D__$Context3DCompareMode_Context3DCompareMode_$Impl_$.NOT_EQUAL = 7; openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$.MIPLINEAR = 0; openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$.MIPNEAREST = 1; openfl_display3D__$Context3DMipFilter_Context3DMipFilter_$Impl_$.MIPNONE = 2; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.BASELINE = 0; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.BASELINE_CONSTRAINED = 1; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.BASELINE_EXTENDED = 2; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.STANDARD = 3; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.STANDARD_CONSTRAINED = 4; openfl_display3D__$Context3DProfile_Context3DProfile_$Impl_$.STANDARD_EXTENDED = 5; openfl_display3D__$Context3DProgramType_Context3DProgramType_$Impl_$.FRAGMENT = 0; openfl_display3D__$Context3DProgramType_Context3DProgramType_$Impl_$.VERTEX = 1; openfl_display3D__$Context3DRenderMode_Context3DRenderMode_$Impl_$.AUTO = 0; openfl_display3D__$Context3DRenderMode_Context3DRenderMode_$Impl_$.SOFTWARE = 1; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.DECREMENT_SATURATE = 0; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.DECREMENT_WRAP = 1; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.INCREMENT_SATURATE = 2; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.INCREMENT_WRAP = 3; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.INVERT = 4; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.KEEP = 5; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.SET = 6; openfl_display3D__$Context3DStencilAction_Context3DStencilAction_$Impl_$.ZERO = 7; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.ANISOTROPIC16X = 0; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.ANISOTROPIC2X = 1; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.ANISOTROPIC4X = 2; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.ANISOTROPIC8X = 3; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.LINEAR = 4; openfl_display3D__$Context3DTextureFilter_Context3DTextureFilter_$Impl_$.NEAREST = 5; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.BGR_PACKED = 0; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.BGRA = 1; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.BGRA_PACKED = 2; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.COMPRESSED = 3; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.COMPRESSED_ALPHA = 4; openfl_display3D__$Context3DTextureFormat_Context3DTextureFormat_$Impl_$.RGBA_HALF_FLOAT = 5; openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$.BACK = 0; openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$.FRONT = 1; openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$.FRONT_AND_BACK = 2; openfl_display3D__$Context3DTriangleFace_Context3DTriangleFace_$Impl_$.NONE = 3; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.BYTES_4 = 0; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.FLOAT_1 = 1; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.FLOAT_2 = 2; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.FLOAT_3 = 3; openfl_display3D__$Context3DVertexBufferFormat_Context3DVertexBufferFormat_$Impl_$.FLOAT_4 = 4; openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$.CLAMP = 0; openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$.CLAMP_U_REPEAT_V = 1; openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$.REPEAT = 2; openfl_display3D__$Context3DWrapMode_Context3DWrapMode_$Impl_$.REPEAT_U_CLAMP_V = 3; openfl_display3D_textures_Texture.__lowMemoryMode = false; openfl_errors_Error.DEFAULT_TO_STRING = "Error"; openfl_events_ActivityEvent.ACTIVITY = "activity"; openfl_events_TextEvent.LINK = "link"; openfl_events_TextEvent.TEXT_INPUT = "textInput"; openfl_events_ErrorEvent.ERROR = "error"; openfl_events_FocusEvent.FOCUS_IN = "focusIn"; openfl_events_FocusEvent.FOCUS_OUT = "focusOut"; openfl_events_FocusEvent.KEY_FOCUS_CHANGE = "keyFocusChange"; openfl_events_FocusEvent.MOUSE_FOCUS_CHANGE = "mouseFocusChange"; openfl_events_FullScreenEvent.FULL_SCREEN = "fullScreen"; openfl_events_FullScreenEvent.FULL_SCREEN_INTERACTIVE_ACCEPTED = "fullScreenInteractiveAccepted"; openfl_events_GameInputEvent.DEVICE_ADDED = "deviceAdded"; openfl_events_GameInputEvent.DEVICE_REMOVED = "deviceRemoved"; openfl_events_GameInputEvent.DEVICE_UNUSABLE = "deviceUnusable"; openfl_events_HTTPStatusEvent.HTTP_RESPONSE_STATUS = "httpResponseStatus"; openfl_events_HTTPStatusEvent.HTTP_STATUS = "httpStatus"; openfl_events_IOErrorEvent.IO_ERROR = "ioError"; openfl_events_KeyboardEvent.KEY_DOWN = "keyDown"; openfl_events_KeyboardEvent.KEY_UP = "keyUp"; openfl_events_MouseEvent.CLICK = "click"; openfl_events_MouseEvent.DOUBLE_CLICK = "doubleClick"; openfl_events_MouseEvent.MIDDLE_CLICK = "middleClick"; openfl_events_MouseEvent.MIDDLE_MOUSE_DOWN = "middleMouseDown"; openfl_events_MouseEvent.MIDDLE_MOUSE_UP = "middleMouseUp"; openfl_events_MouseEvent.MOUSE_DOWN = "mouseDown"; openfl_events_MouseEvent.MOUSE_MOVE = "mouseMove"; openfl_events_MouseEvent.MOUSE_OUT = "mouseOut"; openfl_events_MouseEvent.MOUSE_OVER = "mouseOver"; openfl_events_MouseEvent.MOUSE_UP = "mouseUp"; openfl_events_MouseEvent.MOUSE_WHEEL = "mouseWheel"; openfl_events_MouseEvent.RELEASE_OUTSIDE = "releaseOutside"; openfl_events_MouseEvent.RIGHT_CLICK = "rightClick"; openfl_events_MouseEvent.RIGHT_MOUSE_DOWN = "rightMouseDown"; openfl_events_MouseEvent.RIGHT_MOUSE_UP = "rightMouseUp"; openfl_events_MouseEvent.ROLL_OUT = "rollOut"; openfl_events_MouseEvent.ROLL_OVER = "rollOver"; openfl_events_NetStatusEvent.NET_STATUS = "netStatus"; openfl_events_ProgressEvent.PROGRESS = "progress"; openfl_events_ProgressEvent.SOCKET_DATA = "socketData"; openfl_events_SecurityErrorEvent.SECURITY_ERROR = "securityError"; openfl_events_TouchEvent.TOUCH_BEGIN = "touchBegin"; openfl_events_TouchEvent.TOUCH_END = "touchEnd"; openfl_events_TouchEvent.TOUCH_MOVE = "touchMove"; openfl_events_TouchEvent.TOUCH_OUT = "touchOut"; openfl_events_TouchEvent.TOUCH_OVER = "touchOver"; openfl_events_TouchEvent.TOUCH_ROLL_OUT = "touchRollOut"; openfl_events_TouchEvent.TOUCH_ROLL_OVER = "touchRollOver"; openfl_events_TouchEvent.TOUCH_TAP = "touchTap"; openfl_events_UncaughtErrorEvent.UNCAUGHT_ERROR = "uncaughtError"; openfl_geom__$Orientation3D_Orientation3D_$Impl_$.AXIS_ANGLE = 0; openfl_geom__$Orientation3D_Orientation3D_$Impl_$.EULER_ANGLES = 1; openfl_geom__$Orientation3D_Orientation3D_$Impl_$.QUATERNION = 2; openfl_media_SoundMixer.MAX_ACTIVE_CHANNELS = 32; openfl_media_SoundMixer.__soundChannels = []; openfl_media_SoundMixer.__soundTransform = new openfl_media_SoundTransform(); openfl_net_NetConnection.CONNECT_SUCCESS = "NetConnection.Connect.Success"; openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$.BINARY = 0; openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$.TEXT = 1; openfl_net__$URLLoaderDataFormat_URLLoaderDataFormat_$Impl_$.VARIABLES = 2; openfl_system_ApplicationDomain.currentDomain = new openfl_system_ApplicationDomain(null); openfl_system_Capabilities.avHardwareDisable = true; openfl_system_Capabilities.hasAccessibility = false; openfl_system_Capabilities.hasAudio = true; openfl_system_Capabilities.hasAudioEncoder = false; openfl_system_Capabilities.hasEmbeddedVideo = false; openfl_system_Capabilities.hasIME = false; openfl_system_Capabilities.hasMP3 = false; openfl_system_Capabilities.hasPrinting = true; openfl_system_Capabilities.hasScreenBroadcast = false; openfl_system_Capabilities.hasScreenPlayback = false; openfl_system_Capabilities.hasStreamingAudio = false; openfl_system_Capabilities.hasStreamingVideo = false; openfl_system_Capabilities.hasTLS = true; openfl_system_Capabilities.hasVideoEncoder = true; openfl_system_Capabilities.isDebugger = false; openfl_system_Capabilities.isEmbeddedInAcrobat = false; openfl_system_Capabilities.localFileReadDisable = true; openfl_system_Capabilities.maxLevelIDC = 0; openfl_system_Capabilities.playerType = "PlugIn"; openfl_system_Capabilities.screenColor = "color"; openfl_system_Capabilities.serverString = ""; openfl_system_Capabilities.supports32BitProcesses = false; openfl_system_Capabilities.supports64BitProcesses = false; openfl_system_Capabilities.touchscreenType = 0; openfl_system_Capabilities.__standardDensities = [120,160,240,320,480,640,800,960]; openfl_system_SecurityDomain.currentDomain = new openfl_system_SecurityDomain(); openfl_system_System.useCodePage = false; openfl_system__$TouchscreenType_TouchscreenType_$Impl_$.FINGER = 0; openfl_system__$TouchscreenType_TouchscreenType_$Impl_$.NONE = 1; openfl_system__$TouchscreenType_TouchscreenType_$Impl_$.STYLUS = 2; openfl_text__$AntiAliasType_AntiAliasType_$Impl_$.ADVANCED = 0; openfl_text__$AntiAliasType_AntiAliasType_$Impl_$.NORMAL = 1; openfl_text__$FontStyle_FontStyle_$Impl_$.BOLD = 0; openfl_text__$FontStyle_FontStyle_$Impl_$.BOLD_ITALIC = 1; openfl_text__$FontStyle_FontStyle_$Impl_$.ITALIC = 2; openfl_text__$FontStyle_FontStyle_$Impl_$.REGULAR = 3; openfl_text__$FontType_FontType_$Impl_$.DEVICE = 0; openfl_text__$FontType_FontType_$Impl_$.EMBEDDED = 1; openfl_text__$FontType_FontType_$Impl_$.EMBEDDED_CFF = 2; openfl_text__$GridFitType_GridFitType_$Impl_$.NONE = 0; openfl_text__$GridFitType_GridFitType_$Impl_$.PIXEL = 1; openfl_text__$GridFitType_GridFitType_$Impl_$.SUBPIXEL = 2; openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$.CENTER = 0; openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$.LEFT = 1; openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$.NONE = 2; openfl_text__$TextFieldAutoSize_TextFieldAutoSize_$Impl_$.RIGHT = 3; openfl_text__$TextFieldType_TextFieldType_$Impl_$.DYNAMIC = 0; openfl_text__$TextFieldType_TextFieldType_$Impl_$.INPUT = 1; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.CENTER = 0; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.END = 1; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.JUSTIFY = 2; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.LEFT = 3; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.RIGHT = 4; openfl_text__$TextFormatAlign_TextFormatAlign_$Impl_$.START = 5; openfl_ui_GameInput.isSupported = true; openfl_ui_GameInput.numDevices = 0; openfl_ui_GameInput.__deviceList = []; openfl_ui_GameInput.__devices = new haxe_ds_ObjectMap(); openfl_ui_GameInput.__instances = []; openfl_ui_GameInputDevice.MAX_BUFFER_SIZE = 32000; openfl_ui_Keyboard.NUMBER_0 = 48; openfl_ui_Keyboard.NUMBER_1 = 49; openfl_ui_Keyboard.NUMBER_2 = 50; openfl_ui_Keyboard.NUMBER_3 = 51; openfl_ui_Keyboard.NUMBER_4 = 52; openfl_ui_Keyboard.NUMBER_5 = 53; openfl_ui_Keyboard.NUMBER_6 = 54; openfl_ui_Keyboard.NUMBER_7 = 55; openfl_ui_Keyboard.NUMBER_8 = 56; openfl_ui_Keyboard.NUMBER_9 = 57; openfl_ui_Keyboard.A = 65; openfl_ui_Keyboard.B = 66; openfl_ui_Keyboard.C = 67; openfl_ui_Keyboard.D = 68; openfl_ui_Keyboard.E = 69; openfl_ui_Keyboard.F = 70; openfl_ui_Keyboard.G = 71; openfl_ui_Keyboard.H = 72; openfl_ui_Keyboard.I = 73; openfl_ui_Keyboard.J = 74; openfl_ui_Keyboard.K = 75; openfl_ui_Keyboard.L = 76; openfl_ui_Keyboard.M = 77; openfl_ui_Keyboard.N = 78; openfl_ui_Keyboard.O = 79; openfl_ui_Keyboard.P = 80; openfl_ui_Keyboard.Q = 81; openfl_ui_Keyboard.R = 82; openfl_ui_Keyboard.S = 83; openfl_ui_Keyboard.T = 84; openfl_ui_Keyboard.U = 85; openfl_ui_Keyboard.V = 86; openfl_ui_Keyboard.W = 87; openfl_ui_Keyboard.X = 88; openfl_ui_Keyboard.Y = 89; openfl_ui_Keyboard.Z = 90; openfl_ui_Keyboard.NUMPAD_0 = 96; openfl_ui_Keyboard.NUMPAD_1 = 97; openfl_ui_Keyboard.NUMPAD_2 = 98; openfl_ui_Keyboard.NUMPAD_3 = 99; openfl_ui_Keyboard.NUMPAD_4 = 100; openfl_ui_Keyboard.NUMPAD_5 = 101; openfl_ui_Keyboard.NUMPAD_6 = 102; openfl_ui_Keyboard.NUMPAD_7 = 103; openfl_ui_Keyboard.NUMPAD_8 = 104; openfl_ui_Keyboard.NUMPAD_9 = 105; openfl_ui_Keyboard.NUMPAD_MULTIPLY = 106; openfl_ui_Keyboard.NUMPAD_ADD = 107; openfl_ui_Keyboard.NUMPAD_ENTER = 108; openfl_ui_Keyboard.NUMPAD_SUBTRACT = 109; openfl_ui_Keyboard.NUMPAD_DECIMAL = 110; openfl_ui_Keyboard.NUMPAD_DIVIDE = 111; openfl_ui_Keyboard.F1 = 112; openfl_ui_Keyboard.F2 = 113; openfl_ui_Keyboard.F3 = 114; openfl_ui_Keyboard.F4 = 115; openfl_ui_Keyboard.F5 = 116; openfl_ui_Keyboard.F6 = 117; openfl_ui_Keyboard.F7 = 118; openfl_ui_Keyboard.F8 = 119; openfl_ui_Keyboard.F9 = 120; openfl_ui_Keyboard.F10 = 121; openfl_ui_Keyboard.F11 = 122; openfl_ui_Keyboard.F12 = 123; openfl_ui_Keyboard.F13 = 124; openfl_ui_Keyboard.F14 = 125; openfl_ui_Keyboard.F15 = 126; openfl_ui_Keyboard.BACKSPACE = 8; openfl_ui_Keyboard.TAB = 9; openfl_ui_Keyboard.ALTERNATE = 18; openfl_ui_Keyboard.ENTER = 13; openfl_ui_Keyboard.COMMAND = 15; openfl_ui_Keyboard.SHIFT = 16; openfl_ui_Keyboard.CONTROL = 17; openfl_ui_Keyboard.BREAK = 19; openfl_ui_Keyboard.CAPS_LOCK = 20; openfl_ui_Keyboard.NUMPAD = 21; openfl_ui_Keyboard.ESCAPE = 27; openfl_ui_Keyboard.SPACE = 32; openfl_ui_Keyboard.PAGE_UP = 33; openfl_ui_Keyboard.PAGE_DOWN = 34; openfl_ui_Keyboard.END = 35; openfl_ui_Keyboard.HOME = 36; openfl_ui_Keyboard.LEFT = 37; openfl_ui_Keyboard.RIGHT = 39; openfl_ui_Keyboard.UP = 38; openfl_ui_Keyboard.DOWN = 40; openfl_ui_Keyboard.INSERT = 45; openfl_ui_Keyboard.DELETE = 46; openfl_ui_Keyboard.NUMLOCK = 144; openfl_ui_Keyboard.SEMICOLON = 186; openfl_ui_Keyboard.EQUAL = 187; openfl_ui_Keyboard.COMMA = 188; openfl_ui_Keyboard.MINUS = 189; openfl_ui_Keyboard.PERIOD = 190; openfl_ui_Keyboard.SLASH = 191; openfl_ui_Keyboard.BACKQUOTE = 192; openfl_ui_Keyboard.LEFTBRACKET = 219; openfl_ui_Keyboard.BACKSLASH = 220; openfl_ui_Keyboard.RIGHTBRACKET = 221; openfl_ui_Keyboard.QUOTE = 222; openfl_ui_Mouse.supportsCursor = true; openfl_ui_Mouse.supportsNativeCursor = true; openfl_ui_Mouse.__cursor = "auto"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.ARROW = "arrow"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.AUTO = "auto"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.BUTTON = "button"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.HAND = "hand"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.IBEAM = "ibeam"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__CROSSHAIR = "crosshair"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__CUSTOM = "custom"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__MOVE = "move"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__RESIZE_NESW = "resize_nesw"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__RESIZE_NS = "resize_ns"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__RESIZE_NWSE = "resize_nwse"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__RESIZE_WE = "resize_we"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__WAIT = "wait"; openfl_ui__$MouseCursor_MouseCursor_$Impl_$.__WAIT_ARROW = "waitarrow"; openfl_utils_Assets.cache = new openfl_utils_AssetCache(); openfl_utils_Assets.dispatcher = new openfl_events_EventDispatcher(); openfl_utils__$ByteArray_ByteArray_$Impl_$.__bytePointer = (function($this) { var $r; var this1 = new lime_utils_BytePointerData(null,0); $r = this1; return $r; }(this)); openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$.DEFLATE = 0; openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$.LZMA = 1; openfl_utils__$CompressionAlgorithm_CompressionAlgorithm_$Impl_$.ZLIB = 2; openfl_utils__$Endian_Endian_$Impl_$.BIG_ENDIAN = 0; openfl_utils__$Endian_Endian_$Impl_$.LITTLE_ENDIAN = 1; openfl_utils_TouchData.__pool = new lime_utils_ObjectPool_$openfl_$utils_$TouchData(function() { return new openfl_utils_TouchData(); },function(data) { data.reset(); }); src_game_states_title_TitleMenu.LAYOUT_NAME = "TitleMenu"; src_game_states_title_TitleMenu.ABOUT_PAGE = "https://sites.google.com/1stplayable.com/cards-against-calamity"; ApplicationMain.main(); })(typeof exports != "undefined" ? exports : typeof window != "undefined" ? window : typeof self != "undefined" ? self : this, typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this);